openpty: Update comments.
[gnulib.git] / ChangeLog
1 2011-10-20  Bruno Haible  <bruno@clisp.org>
2
3         openpty: Update comments.
4         * lib/openpty.c: Add comments about Minix.
5
6 2011-10-19  Eric Blake  <eblake@redhat.com>
7
8         openpty: relax license
9         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
10
11         pt_chown: use configmake to simplify build
12         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
13
14         ptsname and others: relax license
15         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
16         * modules/unlockpt (License): Likewise.
17         * modules/pt_chown (License): Likewise.
18         * modules/ptsname (License): Likewise.
19         * modules/ttyname_r (License): Likewise.
20
21 2011-10-19  Jim Meyering  <meyering@redhat.com>
22
23         posix_openpt: remove spurious #endif
24         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
25
26 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
27
28         maint.mk: Respect $(build_aux) in web-manual rule.
29         * top/maint.mk (web-manual): Find gen-announce script in user's
30         $(build_aux) directory instead of hard-coding 'build-aux'.
31
32 2011-10-19  Bruno Haible  <bruno@clisp.org>
33
34         posix_openpt: Fix compilation error.
35         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
36         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
37         Mention the openpty module as an alternative.
38
39 2011-10-19  Bruno Haible  <bruno@clisp.org>
40
41         Support for old NeXTstep 3.3 frexp().
42         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
43         execution time of the test to 5 seconds.
44         Reported by Daniel Richard G. <skunk@iskunk.org>.
45
46 2011-10-19  Bruno Haible  <bruno@clisp.org>
47
48         Support for old NeXTstep 3.3 sed.
49         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
50         part, use /.../, not \|...|. Escape periods in the header file name.
51         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
52         Reported by Daniel Richard G. <skunk@iskunk.org>.
53
54 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
55
56         Support for old NeXTstep 3.3 gcc.
57         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
58         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
59         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
60         * lib/spawn.in.h (_Restrict_arr_): Likewise.
61         * lib/regex.h (_Restrict_arr_): Likewise.
62         * lib/regex_internal.h (re_token_t): Likewise.
63         * lib/regexec.c (check_node_accept_bytes): Likewise.
64         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
65
66 2011-10-18  Eric Blake  <eblake@redhat.com>
67
68         posix_openpt: new module
69         * modules/posix_openpt: New module.
70         * m4/posix_openpt.m4: New file.
71         * lib/posix_openpt.c: Likewise.
72         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
73         (gl_STDLIB_H_DEFAULTS): Set defaults.
74         * modules/stdlib (Makefile.am): Substitute macros.
75         * lib/stdlib.in.h (posix_openpt): Declare.
76         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
77         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
78         * modules/posix_openpt-tests: New test module.
79         * tests/test-posix_openpt.c: New test.
80
81 2011-10-15  Bruno Haible  <bruno@clisp.org>
82
83         xstrtoll: Fix compilation failure.
84         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
85         from lib/strtol.c.
86         * doc/posix-headers/limits.texi: Mention missing numerical limits on
87         some platforms.
88         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
89
90 2011-10-15  Bruno Haible  <bruno@clisp.org>
91
92         vasnprintf: Optimize bit search operation.
93         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
94         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
95         gl_DOUBLE_EXPONENT_LOCATION.
96         * modules/vasnprintf (Files): Add m4/exponentd.m4.
97         * modules/unistdio/u8-vasnprintf (Files): Likewise.
98         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
99         * modules/unistdio/u16-vasnprintf (Files): Likewise.
100         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
101         * modules/unistdio/u32-vasnprintf (Files): Likewise.
102         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
103         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
104         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
105
106 2011-10-15  Bruno Haible  <bruno@clisp.org>
107
108         vasnprintf: Fix comments.
109         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
110
111 2011-10-14  Bruno Haible  <bruno@clisp.org>
112
113         Tests for module 'integer_length_ll'.
114         * modules/integer_length_ll-tests: New file.
115         * tests/test-integer_length_ll.c: New file.
116
117         New module 'integer_length_ll'.
118         * lib/integer_length_ll.c: New file.
119         * modules/integer_length_ll: New file.
120
121 2011-10-14  Bruno Haible  <bruno@clisp.org>
122
123         Tests for module 'integer_length_l'.
124         * modules/integer_length_l-tests: New file.
125         * tests/test-integer_length_l.c: New file.
126
127         New module 'integer_length_l'.
128         * lib/integer_length_l.c: New file.
129         * modules/integer_length_l: New file.
130
131 2011-10-14  Bruno Haible  <bruno@clisp.org>
132
133         Tests for module 'integer_length'.
134         * modules/integer_length-tests: New file.
135         * tests/test-integer_length.c: New file.
136
137         New module 'integer_length'.
138         * lib/integer_length.h: New file.
139         * lib/integer_length.c: New file.
140         * modules/integer_length: New file.
141
142 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
143
144         popen: Fix dependency conditions.
145         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
146
147 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
148
149         perror: Fix autoconf test.
150         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
151         <stdlib.h> and <string.h>.
152
153 2011-10-14  Bruno Haible  <bruno@clisp.org>
154
155         ffsl: Optimize on 64-bit platforms.
156         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
157         unrolling.
158
159 2011-10-13  Bruno Haible  <bruno@clisp.org>
160
161         ffsl: Optimize on 32-bit platforms.
162         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
163         use ffs() without a loop.
164
165         ffsl, ffsll: Optimize for GCC.
166         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
167         * lib/ffsl.c (GCC_BUILTIN): New macro.
168         * lib/ffsll.c (GCC_BUILTIN): Likewise.
169
170 2011-10-13  Bruno Haible  <bruno@clisp.org>
171
172         ffs, bcopy, memset: Support symbol renaming via config.h.
173         * lib/ffs.c: Include <config.h>.
174         * lib/bcopy.c: Likewise.
175         * lib/memset.c: Likewise.
176
177 2011-10-10  Bruno Haible  <bruno@clisp.org>
178
179         atanl: Simplify for platforms where 'long double' == 'double'.
180         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
181         alternative implementation.
182         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
183         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
184         * modules/atanl (Depends-on): Add atan. Update conditions.
185
186 2011-10-10  Bruno Haible  <bruno@clisp.org>
187
188         acosl: Simplify for platforms where 'long double' == 'double'.
189         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
190         alternative implementation.
191         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
192         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
193         * modules/acosl (Depends-on): Add acos. Update conditions.
194
195 2011-10-10  Bruno Haible  <bruno@clisp.org>
196
197         asinl: Simplify for platforms where 'long double' == 'double'.
198         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
199         alternative implementation.
200         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
201         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
202         * modules/asinl (Depends-on): Add asin. Update conditions.
203
204 2011-10-10  Bruno Haible  <bruno@clisp.org>
205
206         tanl: Simplify for platforms where 'long double' == 'double'.
207         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
208         implementation.
209         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
210         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
211         * modules/tanl (Depends-on): Add tan. Update conditions.
212         (configure.ac): Don't compile trigl.c if
213         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
214
215 2011-10-10  Bruno Haible  <bruno@clisp.org>
216
217         cosl: Simplify for platforms where 'long double' == 'double'.
218         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
219         implementation.
220         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
221         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
222         * modules/cosl (Depends-on): Add cos. Update conditions.
223         (configure.ac): Don't compile sincosl.c and trigl.c if
224         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
225
226 2011-10-10  Bruno Haible  <bruno@clisp.org>
227
228         sinl: Simplify for platforms where 'long double' == 'double'.
229         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
230         implementation.
231         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
232         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
233         * modules/sinl (Depends-on): Add sin. Update conditions.
234         (configure.ac): Don't compile sincosl.c and trigl.c if
235         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
236
237 2011-10-10  Bruno Haible  <bruno@clisp.org>
238
239         logl: Simplify for platforms where 'long double' == 'double'.
240         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
241         implementation.
242         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
243         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
244         * modules/logl (Depends-on): Add log. Update conditions.
245
246 2011-10-10  Bruno Haible  <bruno@clisp.org>
247
248         expl: Simplify for platforms where 'long double' == 'double'.
249         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
250         implementation.
251         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
252         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
253         * modules/expl (Depends-on): Add exp. Update conditions.
254
255 2011-10-10  Bruno Haible  <bruno@clisp.org>
256
257         sqrtl: Simplify for platforms where 'long double' == 'double'.
258         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
259         alternative implementation.
260         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
261         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
262         * modules/sqrtl (Depends-on): Update conditions.
263
264 2011-10-10  Bruno Haible  <bruno@clisp.org>
265
266         ldexpl: Simplify for platforms where 'long double' == 'double'.
267         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
268         alternative implementation.
269         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
270         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
271         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
272
273 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
274
275         ffsll: set correct witness
276         * modules/ffsll (configure.ac): Fix typo.
277
278 2011-10-10  Bruno Haible  <bruno@clisp.org>
279
280         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
281         * lib/printf-frexpl.c: Include <config.h>.
282         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
283         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
284         second time.
285         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
286         gl_LONG_DOUBLE_VS_DOUBLE.
287         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
288         conditions.
289
290 2011-10-10  Bruno Haible  <bruno@clisp.org>
291
292         frexpl: Simplify for platforms where 'long double' == 'double'.
293         * lib/frexpl.c: Include <config.h>.
294         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
295         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
296         time.
297         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
298         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
299         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
300         * modules/frexpl (Depends-on): Add frexp. Update conditions.
301         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
302         conditions.
303
304 2011-10-10  Jim Meyering  <meyering@redhat.com>
305
306         test-renameat: don't leave behind a temporary file
307         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
308           ERROR: files left in build directory after distclean:
309           ./gltests/test-renameat.too
310           make[1]: *** [distcleancheck] Error 1
311         Reported by Tom G. Christensen.
312
313 2011-10-09  Bruno Haible  <bruno@clisp.org>
314
315         rint: Determine RINT_LIBM correctly on AIX 7.
316         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
317         directly, not only through a function pointer. Also accept an optional
318         4th argument with extra code.
319         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
320         rintf() call by gcc when optimizing.
321
322         mathfunc.m4: Refactor.
323         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
324         m4 variable.
325
326 2011-10-09  Bruno Haible  <bruno@clisp.org>
327
328         rintl: Simplify for platforms where 'long double' == 'double'.
329         * lib/rintl.c: Include <config.h>.
330         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
331         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
332         time.
333         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
334         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
335         * modules/rintl (Depends-on): Add rint. Update conditions.
336
337 2011-10-09  Bruno Haible  <bruno@clisp.org>
338
339         roundl: Simplify for platforms where 'long double' == 'double'.
340         * lib/roundl.c: Include <config.h>.
341         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
342         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
343         time.
344         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
345         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
346         * modules/roundl (Depends-on): Add round. Update conditions.
347
348 2011-10-09  Bruno Haible  <bruno@clisp.org>
349
350         truncl: Simplify for platforms where 'long double' == 'double'.
351         * lib/truncl.c: Include <config.h>.
352         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
353         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
354         time.
355         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
356         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
357         * modules/truncl (Depends-on): Add trunc. Update conditions.
358
359 2011-10-09  Bruno Haible  <bruno@clisp.org>
360
361         ceill: Simplify for platforms where 'long double' == 'double'.
362         * lib/ceill.c: Include <config.h>.
363         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
364         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
365         time.
366         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
367         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
368         * modules/ceill (Depends-on): Add ceil. Update conditions.
369
370 2011-10-09  Bruno Haible  <bruno@clisp.org>
371
372         floorl: Simplify for platforms where 'long double' == 'double'.
373         * lib/floorl.c: Include <config.h>.
374         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
375         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
376         time.
377         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
378         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
379         * modules/floorl (Depends-on): Add floor. Update conditions.
380
381 2011-10-09  Bruno Haible  <bruno@clisp.org>
382
383         rint: Fix ordering constraints.
384         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
385         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
386         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
387
388 2011-10-09  Bruno Haible  <bruno@clisp.org>
389
390         copysignl: Simplify for platforms where 'long double' == 'double'.
391         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
392         alternative.
393         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
394         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
395         * modules/copysignl (Depends-on): Add copysign. Update conditions.
396
397 2011-10-09  Bruno Haible  <bruno@clisp.org>
398
399         Tests for module 'rintl'.
400         * modules/rintl-tests: New file.
401         * tests/test-rintl.c: New file.
402
403         New module 'rintl'.
404         * lib/math.in.h (rintl): New declaration.
405         * lib/rintl.c: New file.
406         * m4/rintl.m4: New file.
407         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
408         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
409         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
410         * modules/rintl: New file.
411         * tests/test-math-c++.cc: Check the declaration of rintl.
412         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
413         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
414         * doc/posix-functions/rintl.texi: Mention the new module.
415
416 2011-10-09  Bruno Haible  <bruno@clisp.org>
417
418         Tests for module 'rintf'.
419         * modules/rintf-tests: New file.
420         * tests/test-rintf.c: New file.
421
422         New module 'rintf'.
423         * lib/math.in.h (rintf): New declaration.
424         * lib/rintf.c: New file.
425         * m4/rintf.m4: New file.
426         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
427         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
428         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
429         * modules/rintf: New file.
430         * tests/test-math-c++.cc: Check the declaration of rintf.
431         * doc/posix-functions/rintf.texi: Mention the new module.
432
433 2011-10-09  Bruno Haible  <bruno@clisp.org>
434
435         rint: Support for MSVC.
436         * lib/math.in.h (rint): New declaration.
437         * lib/rint.c: New file.
438         * m4/rint.m4: New file.
439         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
440         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
441         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
442         * modules/rint (Description): Fix.
443         (Files): Add lib/rint.c, m4/rint.m4.
444         (Depends-on): Add math.
445         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
446         gl_MATH_MODULE_INDICATOR.
447         * tests/test-math-c++.cc: Check the declaration of rint.
448         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
449         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
450         * doc/posix-functions/rint.texi: Mention the replacement provided by
451         the module.
452
453         rint tests: More tests.
454         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
455         minus-zero.h, infinity.h, nan.h.
456         (main): Skip the test if the current rounding mode is not standard. Add
457         tests for negative numbers, minus zero, infinity, NaN.
458         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
459         tests/nan.h.
460         (Depends-on): Add isnand-nolibm.
461
462 2011-10-09  Bruno Haible  <bruno@clisp.org>
463
464         Tests for module 'copysignl'.
465         * modules/copysignl-tests: New file.
466         * tests/test-copysignl.c: New file.
467
468         New module 'copysignl'.
469         * lib/math.in.h (copysignl): New declaration.
470         * lib/copysignl.c: New file.
471         * m4/copysignl.m4: New file.
472         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
473         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
474         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
475         HAVE_COPYSIGNL.
476         * modules/copysignl: New file.
477         * tests/test-math-c++.cc: Check the declaration of copysignl.
478         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
479         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
480         * doc/posix-functions/copysignl.texi: Mention the new module.
481
482 2011-10-09  Bruno Haible  <bruno@clisp.org>
483
484         Tests for module 'copysignf'.
485         * modules/copysignf-tests: New file.
486         * tests/test-copysignf.c: New file.
487
488         New module 'copysignf'.
489         * lib/math.in.h (copysignf): New declaration.
490         * lib/copysignf.c: New file.
491         * m4/copysignf.m4: New file.
492         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
493         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
494         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
495         HAVE_COPYSIGNF.
496         * modules/copysignf: New file.
497         * tests/test-math-c++.cc: Check the declaration of copysignf.
498         * doc/posix-functions/copysignf.texi: Mention the new module.
499
500 2011-10-09  Bruno Haible  <bruno@clisp.org>
501
502         Ensure that HAVE_* variables are set to 1 before they are set to 0.
503         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
504         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
505         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
506         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
507         gl_SIGNAL_H_DEFAULTS.
508
509 2011-10-09  Bruno Haible  <bruno@clisp.org>
510
511         poll: Make macro safer.
512         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
513         ac_cv_header_poll_h is not set.
514
515 2011-10-09  Bruno Haible  <bruno@clisp.org>
516
517         copysign: Provide replacement.
518         * lib/math.in.h (copysign): New declaration.
519         * lib/copysign.c: New file.
520         * m4/copysign.m4: New file.
521         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
522         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
523         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
524         HAVE_COPYSIGN.
525         * modules/copysign (Description): Clarify.
526         (Files): Add lib/copysign.c, m4/copysign.m4.
527         (Depends-on): Add math, signbit.
528         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
529         gl_MATH_MODULE_INDICATOR.
530         * tests/test-math-c++.cc: Check the declaration of copysign.
531         * doc/posix-functions/copysign.texi: Mention the effects of the module
532         on Minix and MSVC.
533
534 2011-10-09  Bruno Haible  <bruno@clisp.org>
535
536         isinf: Ensure macro on AIX 5.1.
537         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
538         macro.
539         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
540
541 2011-10-09  Bruno Haible  <bruno@clisp.org>
542
543         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
544         * modules/snprintf-posix-tests (configure.ac): Require
545         gl_LONG_DOUBLE_VS_DOUBLE.
546         * modules/sprintf-posix-tests (configure.ac): Likewise.
547         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
548         * modules/vasprintf-posix-tests (configure.ac): Likewise.
549         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
550         * modules/vsprintf-posix-tests (configure.ac): Likewise.
551         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
552         tests on platforms where 'long double' is the same as 'double'.
553         * tests/test-sprintf-posix.h (test_function): Likewise.
554         * tests/test-vasnprintf-posix.c (test_function): Likewise.
555         * tests/test-vasprintf-posix.c (test_function): Likewise.
556
557         *printf: Fix for platforms where 'long double' == 'double'.
558         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
559         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
560         * modules/dprintf-posix (Files): Add m4/math_h.m4.
561         * modules/fprintf-posix (Files): Likewise.
562         * modules/obstack-printf-posix (Files): Likewise.
563         * modules/snprintf-posix (Files): Likewise.
564         * modules/sprintf-posix (Files): Likewise.
565         * modules/vasnprintf (Files): Likewise.
566         * modules/vasnprintf-posix (Files): Likewise.
567         * modules/vasprintf-posix (Files): Likewise.
568         * modules/vdprintf-posix (Files): Likewise.
569         * modules/vfprintf-posix (Files): Likewise.
570         * modules/vsnprintf-posix (Files): Likewise.
571         * modules/vsprintf-posix (Files): Likewise.
572         * modules/unistdio/u8-vasnprintf (Files): Likewise.
573         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
574         * modules/unistdio/u16-vasnprintf (Files): Likewise.
575         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
576         * modules/unistdio/u32-vasnprintf (Files): Likewise.
577         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
578         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
579
580         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
581         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
582         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
583         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
584         'long double'.
585         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
586
587         isinf: Fix for platforms where 'long double' == 'double'.
588         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
589         Don't blindly assume 80-bit 'long double'.
590
591         isfinite: Fix for platforms where 'long double' == 'double'.
592         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
593         Don't blindly assume 80-bit 'long double'.
594
595         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
596         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
597         * modules/isfinite-tests (configure.ac): Require
598         gl_LONG_DOUBLE_VS_DOUBLE.
599         * modules/isinf-tests (configure.ac): Likewise.
600         * modules/isnan-tests (configure.ac): Likewise.
601         * modules/isnanl-tests (configure.ac): Likewise.
602         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
603         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
604         tests on platforms where 'long double' is the same as 'double'.
605         * tests/test-isinf.c (test_isinfl): Likewise.
606         * tests/test-isnan.c (test_long_double): Likewise.
607         * tests/test-isnanl.h (main): Likewise.
608
609 2011-10-08  Bruno Haible  <bruno@clisp.org>
610
611         Tests for module 'tanhf'.
612         * modules/tanhf-tests: New file.
613         * tests/test-tanhf.c: New file.
614
615         New module 'tanhf'.
616         * lib/math.in.h (tanhf): New declaration.
617         * lib/tanhf.c: New file.
618         * m4/tanhf.m4: New file.
619         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
620         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
621         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
622         * modules/tanhf: New file.
623         * tests/test-math-c++.cc: Check the declaration of tanhf.
624         * doc/posix-functions/tanhf.texi: Mention the new module.
625
626         tanh: Use a .m4 file.
627         * m4/tanh.m4: New file.
628         * modules/tanh (Files): Add it.
629         (configure.ac): Just invoke gl_FUNC_TANH.
630
631 2011-10-08  Bruno Haible  <bruno@clisp.org>
632
633         Tests for module 'coshf'.
634         * modules/coshf-tests: New file.
635         * tests/test-coshf.c: New file.
636
637         New module 'coshf'.
638         * lib/math.in.h (coshf): New declaration.
639         * lib/coshf.c: New file.
640         * m4/coshf.m4: New file.
641         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
642         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
643         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
644         * modules/coshf: New file.
645         * tests/test-math-c++.cc: Check the declaration of coshf.
646         * doc/posix-functions/coshf.texi: Mention the new module.
647
648         cosh: Use a .m4 file.
649         * m4/cosh.m4: New file.
650         * modules/cosh (Files): Add it.
651         (configure.ac): Just invoke gl_FUNC_COSH.
652
653 2011-10-08  Bruno Haible  <bruno@clisp.org>
654
655         Tests for module 'sinhf'.
656         * modules/sinhf-tests: New file.
657         * tests/test-sinhf.c: New file.
658
659         New module 'sinhf'.
660         * lib/math.in.h (sinhf): New declaration.
661         * lib/sinhf.c: New file.
662         * m4/sinhf.m4: New file.
663         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
664         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
665         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
666         * modules/sinhf: New file.
667         * tests/test-math-c++.cc: Check the declaration of sinhf.
668         * doc/posix-functions/sinhf.texi: Mention the new module.
669
670         sinh: Use a .m4 file.
671         * m4/sinh.m4: New file.
672         * modules/sinh (Files): Add it.
673         (configure.ac): Just invoke gl_FUNC_SINH.
674
675 2011-10-08  Bruno Haible  <bruno@clisp.org>
676
677         Tests for module 'atan2f'.
678         * modules/atan2f-tests: New file.
679         * tests/test-atan2f.c: New file.
680
681         New module 'atan2f'.
682         * lib/math.in.h (atan2f): New declaration.
683         * lib/atan2f.c: New file.
684         * m4/atan2f.m4: New file.
685         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
686         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
687         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
688         * modules/atan2f: New file.
689         * tests/test-math-c++.cc: Check the declaration of atan2f.
690         * doc/posix-functions/atan2f.texi: Mention the new module.
691
692         atan2: Use a .m4 file.
693         * m4/atan2.m4: New file.
694         * modules/atan2 (Files): Add it.
695         (configure.ac): Just invoke gl_FUNC_ATAN2.
696
697 2011-10-08  Bruno Haible  <bruno@clisp.org>
698
699         Tests for module 'atanf'.
700         * modules/atanf-tests: New file.
701         * tests/test-atanf.c: New file.
702
703         New module 'atanf'.
704         * lib/math.in.h (atanf): New declaration.
705         * lib/atanf.c: New file.
706         * m4/atanf.m4: New file.
707         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
708         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
709         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
710         * modules/atanf: New file.
711         * tests/test-math-c++.cc: Check the declaration of atanf.
712         * doc/posix-functions/atanf.texi: Mention the new module.
713
714         atan: Use a .m4 file.
715         * m4/atan.m4: New file.
716         * modules/atan (Files): Add it.
717         (configure.ac): Just invoke gl_FUNC_ATAN.
718
719 2011-10-08  Bruno Haible  <bruno@clisp.org>
720
721         Tests for module 'acosf'.
722         * modules/acosf-tests: New file.
723         * tests/test-acosf.c: New file.
724
725         New module 'acosf'.
726         * lib/math.in.h (acosf): New declaration.
727         * lib/acosf.c: New file.
728         * m4/acosf.m4: New file.
729         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
730         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
731         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
732         * modules/acosf: New file.
733         * tests/test-math-c++.cc: Check the declaration of acosf.
734         * doc/posix-functions/acosf.texi: Mention the new module.
735
736         acos: Use a .m4 file.
737         * m4/acos.m4: New file.
738         * modules/acos (Files): Add it.
739         (configure.ac): Just invoke gl_FUNC_ACOS.
740
741 2011-10-08  Bruno Haible  <bruno@clisp.org>
742
743         Tests for module 'asinf'.
744         * modules/asinf-tests: New file.
745         * tests/test-asinf.c: New file.
746
747         New module 'asinf'.
748         * lib/math.in.h (asinf): New declaration.
749         * lib/asinf.c: New file.
750         * m4/asinf.m4: New file.
751         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
752         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
753         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
754         * modules/asinf: New file.
755         * tests/test-math-c++.cc: Check the declaration of asinf.
756         * doc/posix-functions/asinf.texi: Mention the new module.
757
758         asin: Use a .m4 file.
759         * m4/asin.m4: New file.
760         * modules/asin (Files): Add it.
761         (configure.ac): Just invoke gl_FUNC_ASIN.
762
763 2011-10-08  Bruno Haible  <bruno@clisp.org>
764
765         Tests for module 'tanf'.
766         * modules/tanf-tests: New file.
767         * tests/test-tanf.c: New file.
768
769         New module 'tanf'.
770         * lib/math.in.h (tanf): New declaration.
771         * lib/tanf.c: New file.
772         * m4/tanf.m4: New file.
773         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
774         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
775         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
776         * modules/tanf: New file.
777         * tests/test-math-c++.cc: Check the declaration of tanf.
778         * doc/posix-functions/tanf.texi: Mention the new module.
779
780         tan: Use a .m4 file.
781         * m4/tan.m4: New file.
782         * modules/tan (Files): Add it.
783         (configure.ac): Just invoke gl_FUNC_TAN.
784
785 2011-10-08  Bruno Haible  <bruno@clisp.org>
786
787         Tests for module 'cosf'.
788         * modules/cosf-tests: New file.
789         * tests/test-cosf.c: New file.
790
791         New module 'cosf'.
792         * lib/math.in.h (cosf): New declaration.
793         * lib/cosf.c: New file.
794         * m4/cosf.m4: New file.
795         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
796         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
797         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
798         * modules/cosf: New file.
799         * tests/test-math-c++.cc: Check the declaration of cosf.
800         * doc/posix-functions/cosf.texi: Mention the new module.
801
802         cos: Use a .m4 file.
803         * m4/cos.m4: New file.
804         * modules/cos (Files): Add it.
805         (configure.ac): Just invoke gl_FUNC_COS.
806
807 2011-10-08  Bruno Haible  <bruno@clisp.org>
808
809         Tests for module 'sinf'.
810         * modules/sinf-tests: New file.
811         * tests/test-sinf.c: New file.
812
813         New module 'sinf'.
814         * lib/math.in.h (sinf): New declaration.
815         * lib/sinf.c: New file.
816         * m4/sinf.m4: New file.
817         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
818         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
819         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
820         * modules/sinf: New file.
821         * tests/test-math-c++.cc: Check the declaration of sinf.
822         * doc/posix-functions/sinf.texi: Mention the new module.
823
824         sin: Use a .m4 file.
825         * m4/sin.m4: New file.
826         * modules/sin (Files): Add it.
827         (configure.ac): Just invoke gl_FUNC_SIN.
828
829 2011-10-08  Bruno Haible  <bruno@clisp.org>
830
831         Tests for module 'powf'.
832         * modules/powf-tests: New file.
833         * tests/test-powf.c: New file.
834
835         New module 'powf'.
836         * lib/math.in.h (powf): New declaration.
837         * lib/powf.c: New file.
838         * m4/powf.m4: New file.
839         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
840         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
841         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
842         * modules/powf: New file.
843         * tests/test-math-c++.cc: Check the declaration of powf.
844         * doc/posix-functions/powf.texi: Mention the new module.
845
846         pow: Use a .m4 file.
847         * m4/pow.m4: New file.
848         * modules/pow (Files): Add it.
849         (configure.ac): Just invoke gl_FUNC_POW.
850
851 2011-10-08  Bruno Haible  <bruno@clisp.org>
852
853         Tests for module 'log10f'.
854         * modules/log10f-tests: New file.
855         * tests/test-log10f.c: New file.
856
857         New module 'log10f'.
858         * lib/math.in.h (log10f): New declaration.
859         * lib/log10f.c: New file.
860         * m4/log10f.m4: New file.
861         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
862         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
863         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
864         * modules/log10f: New file.
865         * tests/test-math-c++.cc: Check the declaration of log10f.
866         * doc/posix-functions/log10f.texi: Mention the new module.
867
868         log10: Use a .m4 file.
869         * m4/log10.m4: New file.
870         * modules/log10 (Files): Add it.
871         (configure.ac): Just invoke gl_FUNC_LOG10.
872
873 2011-10-08  Bruno Haible  <bruno@clisp.org>
874
875         Tests for module 'logf'.
876         * modules/logf-tests: New file.
877         * tests/test-logf.c: New file.
878
879         New module 'logf'.
880         * lib/math.in.h (logf): New declaration.
881         * lib/logf.c: New file.
882         * m4/logf.m4: New file.
883         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
884         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
885         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
886         * modules/logf: New file.
887         * tests/test-math-c++.cc: Check the declaration of logf.
888         * doc/posix-functions/logf.texi: Mention the new module.
889
890         log: Use a .m4 file.
891         * m4/log.m4: New file.
892         * modules/log (Files): Add it.
893         (configure.ac): Just invoke gl_FUNC_LOG.
894
895 2011-10-08  Bruno Haible  <bruno@clisp.org>
896
897         Tests for module 'expf'.
898         * modules/expf-tests: New file.
899         * tests/test-expf.c: New file.
900
901         New module 'expf'.
902         * lib/math.in.h (expf): New declaration.
903         * lib/expf.c: New file.
904         * m4/expf.m4: New file.
905         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
906         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
907         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
908         * modules/expf: New file.
909         * tests/test-math-c++.cc: Check the declaration of expf.
910         * doc/posix-functions/expf.texi: Mention the new module.
911
912         exp: Use a .m4 file.
913         * m4/exp.m4: New file.
914         * modules/exp (Files): Add it.
915         (configure.ac): Just invoke gl_FUNC_EXP.
916
917 2011-10-08  Bruno Haible  <bruno@clisp.org>
918
919         Tests for module 'sqrtf'.
920         * modules/sqrtf-tests: New file.
921         * tests/test-sqrtf.c: New file.
922
923         New module 'sqrtf'.
924         * lib/math.in.h (sqrtf): New declaration.
925         * lib/sqrtf.c: New file.
926         * m4/sqrtf.m4: New file.
927         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
928         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
929         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
930         * modules/sqrtf: New file.
931         * tests/test-math-c++.cc: Check the declaration of sqrtf.
932         * doc/posix-functions/sqrtf.texi: Mention the new module.
933
934 2011-10-08  Bruno Haible  <bruno@clisp.org>
935
936         Tests: Avoid link failures w.r.t. libintl.
937         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
938         $(LIBINTL).
939         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
940         $(LIBINTL).
941         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
942         against $(LIBINTL).
943         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
944         $(LIBINTL).
945         * modules/openat-tests (Makefile.am): Link test-fchmodat against
946         $(LIBINTL).
947         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
948
949 2011-10-08  Bruno Haible  <bruno@clisp.org>
950
951         pow tests: Defeat compiler optimizations.
952         * tests/test-pow.c (main): Assign arguments to x and y before use.
953
954 2011-10-08  Bruno Haible  <bruno@clisp.org>
955
956         gnulib-tool: Improve last commit.
957         * gnulib-tool (func_modules_transitive_closure): Simplify code.
958         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
959         ignore dependencies that are not among the modules list.
960
961 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
962
963         gnulib-tool: don't follow dependencies to avoided modules
964         This fixes a bug that is related to the previous one.
965         * gnulib-tool (func_modules_transitive_closure)
966         (func_emit_autoconf_snippets):
967         Check whether a dependency is acceptable before using it.
968         (--extract-dependencies): Report an error if --avoid is also used,
969         since this combination of options is not yet supported.
970
971         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
972         Problem reported by Peter Dyballa in
973         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
974         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
975         when echoing "$condition".
976
977 2011-10-07  Bruno Haible  <bruno@clisp.org>
978
979         Fix documentation about math functions on MacOS X.
980         * doc/posix-functions/exp2.texi: Don't say the function is missing on
981         MacOS X 10.5.
982         * doc/posix-functions/fdim.texi: Likewise.
983         * doc/posix-functions/feclearexcept.texi: Likewise.
984         * doc/posix-functions/fegetenv.texi: Likewise.
985         * doc/posix-functions/fegetround.texi: Likewise.
986         * doc/posix-functions/feholdexcept.texi: Likewise.
987         * doc/posix-functions/feraiseexcept.texi: Likewise.
988         * doc/posix-functions/fesetenv.texi: Likewise.
989         * doc/posix-functions/fesetround.texi: Likewise.
990         * doc/posix-functions/fetestexcept.texi: Likewise.
991         * doc/posix-functions/feupdateenv.texi: Likewise.
992         * doc/posix-functions/fmax.texi: Likewise.
993         * doc/posix-functions/fmin.texi: Likewise.
994         * doc/posix-functions/log2.texi: Likewise.
995         * doc/posix-functions/modff.texi: Likewise.
996         * doc/posix-functions/nan.texi: Likewise.
997         * doc/posix-functions/nanf.texi: Likewise.
998         * doc/posix-functions/nextafterf.texi: Likewise.
999         * doc/posix-functions/remquo.texi: Likewise.
1000
1001 2011-10-07  Bruno Haible  <bruno@clisp.org>
1002
1003         modff: Drop assumption about library that defines modff.
1004         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
1005         AC_CHECK_FUNCS.
1006         * modules/modff (Files): Add m4/mathfunc.m4.
1007
1008 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
1009
1010         raise tests: Avoid a GCC warning.
1011         * tests/test-raise.c (handler): Use _Noreturn.
1012
1013 2011-10-07  Bruno Haible  <bruno@clisp.org>
1014
1015         Tests for module 'ldexpf'.
1016         * modules/ldexpf-tests: New file.
1017         * tests/test-ldexpf.c: New file.
1018
1019         New module 'ldexpf'.
1020         * lib/math.in.h (ldexpf): New declaration.
1021         * lib/ldexpf.c: New file.
1022         * m4/ldexpf.m4: New file.
1023         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
1024         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
1025         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
1026         * modules/ldexpf: New file.
1027         * tests/test-math-c++.cc: Check the declaration of ldexpf.
1028         * doc/posix-functions/ldexpf.texi: Mention the new module.
1029
1030 2011-10-06  Bruno Haible  <bruno@clisp.org>
1031
1032         frexpf: Work around problems on IRIX and mingw.
1033         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
1034         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
1035         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
1036         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
1037         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
1038         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
1039         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
1040
1041 2011-10-06  Bruno Haible  <bruno@clisp.org>
1042
1043         fabsf: Drop assumption about library that defines fabsf.
1044         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
1045         AC_CHECK_FUNCS.
1046         * modules/fabsf (Files): Add m4/mathfunc.m4.
1047
1048 2011-10-06  Bruno Haible  <bruno@clisp.org>
1049
1050         frexpf: Drop assumption about library that defines frexpf.
1051         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
1052         'int *', 'float *', 'long double *', 'float', 'long double'.
1053         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
1054         AC_CHECK_FUNCS.
1055         * modules/frexpf (Files): Add m4/mathfunc.m4.
1056
1057         Tests for module 'frexpf'.
1058         * modules/frexpf-tests: New file.
1059         * tests/test-frexpf.c: New file.
1060
1061         New module 'frexpf'.
1062         * lib/math.in.h (frexpf): New declaration.
1063         * lib/frexpf.c: New file.
1064         * m4/frexpf.m4: New file.
1065         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
1066         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
1067         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
1068         * modules/frexpf: New file.
1069         * tests/test-math-c++.cc: Check the declaration of frexpf.
1070         * doc/posix-functions/frexpf.texi: Mention the new module.
1071
1072 2011-10-06  Bruno Haible  <bruno@clisp.org>
1073
1074         math: Sort function declarations of math.in.h.
1075         * lib/math.in.h (frexp, logb): Move declarations.
1076
1077 2011-10-05  Bruno Haible  <bruno@clisp.org>
1078
1079         Tests for module 'modff'.
1080         * modules/modff-tests: New file.
1081         * tests/test-modff.c: New file.
1082
1083         New module 'modff'.
1084         * lib/math.in.h (modff): New declaration.
1085         * lib/modff.c: New file.
1086         * m4/modff.m4: New file.
1087         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
1088         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
1089         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
1090         * modules/modff: New file.
1091         * tests/test-math-c++.cc: Check the declaration of modff.
1092         * doc/posix-functions/modff.texi: Mention the new module.
1093
1094         modf tests: Make test sharper.
1095         * tests/test-modf.c (main): Strengthen upper bound.
1096
1097         modf: Use a .m4 file.
1098         * m4/modf.m4: New file.
1099         * modules/modf (Files): Add it.
1100         (configure.ac): Just invoke gl_FUNC_MODF.
1101
1102 2011-10-05  Bruno Haible  <bruno@clisp.org>
1103
1104         Tests for module 'fmodf'.
1105         * modules/fmodf-tests: New file.
1106         * tests/test-fmodf.c: New file.
1107
1108         New module 'fmodf'.
1109         * lib/math.in.h (fmodf): New declaration.
1110         * lib/fmodf.c: New file.
1111         * m4/fmodf.m4: New file.
1112         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
1113         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
1114         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
1115         * modules/fmodf: New file.
1116         * tests/test-math-c++.cc: Check the declaration of fmodf.
1117         * doc/posix-functions/fmodf.texi: Mention the new module.
1118
1119         fmod: Use a .m4 file.
1120         * m4/fmod.m4: New file.
1121         * modules/fmod (Files): Add it.
1122         (configure.ac): Just invoke gl_FUNC_FMOD.
1123
1124 2011-10-05  Bruno Haible  <bruno@clisp.org>
1125
1126         Tests for module 'fabsf'.
1127         * modules/fabsf-tests: New file.
1128         * tests/test-fabsf.c: New file.
1129
1130         New module 'fabsf'.
1131         * lib/math.in.h (fabsf): New declaration.
1132         * lib/fabsf.c: New file.
1133         * m4/fabsf.m4: New file.
1134         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
1135         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
1136         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
1137         * modules/fabsf: New file.
1138         * tests/test-math-c++.cc: Check the declaration of fabsf.
1139         * doc/posix-functions/fabsf.texi: Mention the new module.
1140
1141         fabs: Use a .m4 file.
1142         * m4/fabs.m4: New file.
1143         * modules/fabs (Files): Add it.
1144         (configure.ac): Just invoke gl_FUNC_FABS.
1145
1146 2011-10-05  Jim Meyering  <meyering@redhat.com>
1147
1148         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
1149         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
1150         ls -lL regression introduced in coreutils-8.12, it does so at the
1151         cost of an additional stat call in the common case.  Besides, now
1152         that the kernel change that prompted commit 95f7c57f has been reverted
1153         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
1154         we have no use for commit 95f7c57f, "file-has-acl: use
1155         acl_extended_file_nofollow if available".
1156
1157 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
1158
1159         file-has-acl: revert unintended change in behavior of ls -L
1160         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
1161         derived from...
1162         (file_has_acl): ...code here.  Call it.
1163         This problem was introduced with 2011-07-22 commit 95f7c57f,
1164         "file-has-acl: use acl_extended_file_nofollow if available".
1165         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
1166
1167 2011-10-03  Bruno Haible  <bruno@clisp.org>
1168
1169         poll: Avoid link errors on MSVC.
1170         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
1171         * modules/poll (Depends-on): Add sockets.
1172         (Link): New section.
1173         * NEWS: Mention the change.
1174         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
1175         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
1176         $(LIB_POLL) instead of $(LIBSOCKET).
1177
1178 2011-10-03  Bruno Haible  <bruno@clisp.org>
1179
1180         sys_select tests: Fix link error on MSVC 9.
1181         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
1182         with $(LIB_SELECT) instead of $(LIBSOCKET).
1183
1184 2011-10-03  Bruno Haible  <bruno@clisp.org>
1185
1186         sys_select: Fix compilation error on mingw.
1187         * lib/sys_select.in.h: On native Windows, include <io.h>.
1188
1189 2011-10-03  Bruno Haible  <bruno@clisp.org>
1190
1191         wmemset: Support for MSVC.
1192         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
1193         whether wmemset() exists.
1194
1195 2011-10-03  Bruno Haible  <bruno@clisp.org>
1196
1197         wmemmove: Support for MSVC.
1198         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
1199         whether wmemmove() exists.
1200
1201 2011-10-03  Bruno Haible  <bruno@clisp.org>
1202
1203         wmemcpy: Support for MSVC.
1204         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
1205         whether wmemcpy() exists.
1206
1207 2011-10-03  Bruno Haible  <bruno@clisp.org>
1208
1209         wmemcmp: Support for MSVC.
1210         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
1211         whether wmemcmp() exists.
1212
1213 2011-10-03  Bruno Haible  <bruno@clisp.org>
1214
1215         wmemchr: Support for MSVC.
1216         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
1217         whether wmemchr() exists.
1218
1219 2011-10-03  Bruno Haible  <bruno@clisp.org>
1220
1221         glthread/*, strsignal: Support for MSVC.
1222         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
1223         including <winsock.h> on MSVC 9.
1224         * lib/glthread/lock.h: Likewise.
1225         * lib/glthread/thread.h: Likewise.
1226         * lib/glthread/tls.h: Likewise.
1227         * lib/glthread/yield.h: Likewise.
1228         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
1229         if HAVE_UNISTD_H is false.
1230         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
1231
1232 2011-10-03  Bruno Haible  <bruno@clisp.org>
1233
1234         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
1235         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
1236         Set to 100000.
1237
1238 2011-10-03  Bruno Haible  <bruno@clisp.org>
1239
1240         acl: Fix specification.
1241         * lib/file-has-acl.c (file_has_acl): Fix specification.
1242
1243 2011-10-03  Bruno Haible  <bruno@clisp.org>
1244
1245         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
1246         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
1247         (compute_curr_prefix, shared_library_fullname,
1248         find_shared_library_fullname, get_shared_library_fullname, relocate):
1249         Use it together with PIC && INSTALLDIR.
1250         Reported by <jojelino@gmail.com>
1251         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
1252
1253 2011-10-01  Jim Meyering  <meyering@redhat.com>
1254
1255         maint.mk: adjust a release-related rule not to require use of gzip
1256         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
1257         Instead, check each file in $(DIST_ARCHIVES).  This is better for
1258         projects that build only .tar.xz files.  Also fix an erroneous test.
1259
1260         test-linkat: don't leave behind a temporary file
1261         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
1262         Otherwise, coreutils' "make distcheck" would fail with this:
1263           Only in /c/cu/tests/torture/coreutils/test/\
1264             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
1265           make[2]: *** [my-distcheck] Error 1
1266
1267         float, math: add omitted file
1268         * lib/itold.c: Add file, required for yesterday's float change.
1269
1270 2011-10-01  Bruno Haible  <bruno@clisp.org>
1271
1272         isinf: Fix for OpenBSD/x86.
1273         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
1274         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
1275         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
1276
1277 2011-10-01  Bruno Haible  <bruno@clisp.org>
1278
1279         isfinite: Fix syntax error in configure test.
1280         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
1281
1282         isfinite: Fix typo.
1283         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
1284         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
1285
1286 2011-10-01  Bruno Haible  <bruno@clisp.org>
1287
1288         nonblocking tests: Fix test failure on Linux/IA-64.
1289         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
1290         Set to 270000.
1291
1292 2011-10-01  Bruno Haible  <bruno@clisp.org>
1293
1294         mkfifoat tests: Fix a test failure on mingw.
1295         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
1296         with error ENOSYS.
1297
1298 2011-09-30  Bruno Haible  <bruno@clisp.org>
1299
1300         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
1301         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
1302         'long double'. Set REPLACE_ITOLD.
1303         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
1304         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
1305         * lib/itold.c: New file.
1306         * modules/float (Files): Add lib/itold.c.
1307         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
1308         (Makefile.am): Substitute REPLACE_ITOLD.
1309         * modules/math (Depends-on): Add float.
1310         (Makefile.am): Substitute REPLACE_ITOLD.
1311         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
1312         * doc/posix-headers/math.texi: Likewise.
1313         * doc/posix-functions/logl.texi: Likewise.
1314
1315 2011-09-30  Bruno Haible  <bruno@clisp.org>
1316
1317         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
1318         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
1319         Set to 140000.
1320
1321 2011-09-30  Bruno Haible  <bruno@clisp.org>
1322
1323         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
1324         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
1325         invocation, say "right after AC_PROG_CC_STDC", not "right after
1326         AC_PROG_CC".
1327         Reported by Gary V. Vaughan <gary@gnu.org>.
1328
1329 2011-09-30  Bruno Haible  <bruno@clisp.org>
1330
1331         Centralize C99 requirement.
1332         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
1333         * modules/stdarg (configure.ac-early): Invoke it instead of
1334         AC_PROG_CC_STDC.
1335         Reported by Gary V. Vaughan and Paul Eggert.
1336
1337 2011-09-29  Bruno Haible  <bruno@clisp.org>
1338
1339         float: Fix LDBL_MAX value on Linux/PowerPC.
1340         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
1341         on Linux/PowerPC.
1342         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
1343         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
1344         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
1345         platform.
1346         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
1347
1348 2011-09-29  Bruno Haible  <bruno@clisp.org>
1349
1350         doc: Improve doc about gl_EARLY.
1351         * doc/gnulib-tool.texi (Initial import): Mention where to place an
1352         AC_PROG_CC_STDC invocation.
1353         Reported by Gary V. Vaughan <gary@gnu.org>.
1354
1355 2011-09-28  Bruno Haible  <bruno@clisp.org>
1356
1357         fgetc, fputc, fread, fwrite tests: Fix link error.
1358         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
1359         on non-MSVC platforms.
1360         * tests/test-fputc.c (main): Likewise.
1361         * tests/test-fread.c (main): Likewise.
1362         * tests/test-fwrite.c (main): Likewise.
1363         Reported by Jim Meyering.
1364
1365 2011-09-27  Bruno Haible  <bruno@clisp.org>
1366
1367         fputc, fwrite tests: Avoid test failure on MSVC.
1368         * tests/test-fgetc.c: Include msvc-inval.h.
1369         (main): Invoke gl_msvc_inval_ensure_handler.
1370         * tests/test-fputc.c: Include msvc-inval.h.
1371         (main): Invoke gl_msvc_inval_ensure_handler.
1372         * tests/test-fread.c: Include msvc-inval.h.
1373         (main): Invoke gl_msvc_inval_ensure_handler.
1374         * tests/test-fwrite.c: Include msvc-inval.h.
1375         (main): Invoke gl_msvc_inval_ensure_handler.
1376         * modules/fgetc-tests (Depends-on): Add msvc-inval.
1377         * modules/fputc-tests (Depends-on): Likewise.
1378         * modules/fread-tests (Depends-on): Likewise.
1379         * modules/fwrite-tests (Depends-on): Likewise.
1380
1381 2011-09-27  Bruno Haible  <bruno@clisp.org>
1382
1383         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
1384         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
1385         (raise): Remove older, duplicated declaration.
1386         (_gl_raise_SIGPIPE): New declaration.
1387         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
1388         (rpl_raise): Remove function.
1389         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
1390         a gnulib-defined SIGPIPE here.
1391         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
1392         'sigprocmask' has detected missing signal-blocking and the module
1393         'sigpipe' is enabled.
1394         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
1395
1396 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
1397
1398         base64-tests: avoid memory leak
1399         * tests/test-base64.c (main): Plug memory leak.
1400
1401         base32: new module
1402         * modules/base32: New module.
1403         * lib/base32.c: New file.
1404         * lib/base32.h: Likewise.
1405         * m4/base32.m4: Likewise.
1406         * modules/base32-tests: New test.
1407         * tests/test-base32.c: Likewise.
1408         * MODULES.html.sh (Misc): Mention it.
1409
1410 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
1411
1412         gnulib: use more-standard license notice wording
1413         * gnulib-tool (func_emit_copyright_notice): When emitting a
1414         license notice into a file, use the standard wording as suggested
1415         by the current information for GNU maintainers, except say "file"
1416         rather than "program".  The new wording gives a license version
1417         number, which addresses an issue raised by Glenn Morris in
1418         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
1419         * m4/onceonly.m4: Use that same wording here, too.
1420
1421         dup2: minor simplification
1422         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
1423         as lib/dup2.c no longer uses 'inline'.
1424
1425 2011-09-25  Bruno Haible  <bruno@clisp.org>
1426
1427         strings: Fix compilation error on MSVC.
1428         * lib/strings.in.h: Include <stddef.h> for size_t.
1429
1430 2011-09-25  Bruno Haible  <bruno@clisp.org>
1431
1432         fflush et al.: Document limitation on MSVC.
1433         * doc/posix-functions/fflush.texi: Document possible crash in handling
1434         mode other than DEFAULT_HANDLING.
1435         * doc/posix-functions/fgetc.texi: Likewise.
1436         * doc/posix-functions/fputc.texi: Likewise.
1437         * doc/posix-functions/fread.texi: Likewise.
1438         * doc/posix-functions/fwrite.texi: Likewise.
1439
1440 2011-09-25  Bruno Haible  <bruno@clisp.org>
1441
1442         msvc-inval: Allow three invalid parameter handling modes.
1443         * lib/msvc-inval.h: Don't include <stdlib.h> here.
1444         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
1445         macros.
1446         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
1447         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
1448         SANE_LIBRARY_HANDLING as a no-op.
1449         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
1450         <stdlib.h>.
1451         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
1452
1453 2011-09-25  Bruno Haible  <bruno@clisp.org>
1454
1455         msvc-inval: Make handler multithread-safe.
1456         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
1457         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
1458         declarations.
1459         (gl_msvc_inval_current): New declaration.
1460         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
1461         Operate on the structure returned by gl_msvc_inval_current().
1462         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
1463         Remove varaiables.
1464         (tls_index, tls_initialized): New variables.
1465         (not_per_thread): New variable.
1466         (gl_msvc_inval_current): New function.
1467         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
1468         returned by gl_msvc_inval_current().
1469
1470 2011-09-25  Bruno Haible  <bruno@clisp.org>
1471
1472         msvc-inval: Install handler globally.
1473         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
1474         !_MSC_VER.
1475         (gl_msvc_invalid_parameter_handler): Remove declaration.
1476         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
1477         declarations.
1478         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
1479         Install the handler globally, don't uninstall it.
1480         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
1481         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
1482         currently valid, call RaiseException instead.
1483         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
1484         for !_MSC_VER.
1485
1486 2011-09-25  Bruno Haible  <bruno@clisp.org>
1487
1488         strerror_r-posix: Fix for MSVC 9.
1489         * lib/strerror_r.c (local_snprintf): New function.
1490         (snprintf): Define to local_snprintf, not to _snprintf.
1491
1492 2011-09-25  Bruno Haible  <bruno@clisp.org>
1493
1494         ftruncate: Support for MSVC 9.
1495         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
1496         (chsize_nothrow): New function.
1497         (chsize): Redefine as a macro.
1498         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
1499         * modules/ftruncate (Depends-on): Add msvc-inval.
1500
1501 2011-09-25  Bruno Haible  <bruno@clisp.org>
1502
1503         New module 'fstat'.
1504         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
1505         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
1506         * lib/fchdir.c (rpl_fstat): Remove function.
1507         * m4/fstat.m4: New file.
1508         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
1509         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
1510         declared.
1511         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
1512         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
1513         * modules/fstat: New file.
1514         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
1515         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
1516         is set.
1517         * doc/posix-functions/fstat.texi: Mention the new module and the
1518         problem on MSVC.
1519         * NEWS: Mention the change.
1520         * modules/acl (Depends-on): Add fstat.
1521         * modules/chdir-safer (Depends-on): Likewise.
1522         * modules/chown (Depends-on): Likewise.
1523         * modules/copy-file (Depends-on): Likewise.
1524         * modules/fchdir (Depends-on): Likewise.
1525         * modules/fdopendir (Depends-on): Likewise.
1526         * modules/fopen (Depends-on): Likewise.
1527         * modules/fts (Depends-on): Likewise.
1528         * modules/getcwd (Depends-on): Likewise.
1529         * modules/isapipe (Depends-on): Likewise.
1530         * modules/linkat (Depends-on): Likewise.
1531         * modules/lseek (Depends-on): Likewise.
1532         * modules/mkdir-p (Depends-on): Likewise.
1533         * modules/open (Depends-on): Likewise.
1534         * modules/openat (Depends-on): Likewise.
1535         * modules/read-file (Depends-on): Likewise.
1536         * modules/renameat (Depends-on): Likewise.
1537         * modules/utimens (Depends-on): Likewise.
1538
1539 2011-09-25  Bruno Haible  <bruno@clisp.org>
1540
1541         linkat: Fix compilation on MSVC 9.
1542         * lib/linkat.c: Don't include <stdint.h>.
1543
1544 2011-09-25  Bruno Haible  <bruno@clisp.org>
1545
1546         fclose: Support for MSVC 9.
1547         * lib/fclose.c: Include msvc-inval.h.
1548         (fclose_nothrow): New function.
1549         (rpl_fclose): Use it.
1550         * modules/fclose (Depends-on): Add msvc-inval.
1551         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
1552
1553 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
1554
1555         dup2: minor simplifications
1556         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
1557         that it's a performance win.
1558         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
1559         ! defined __CYGWIN__)" to "ifdef F_GETFL".
1560
1561 2011-09-24  Jim Meyering  <meyering@redhat.com>
1562
1563         test-futimens: avoid a warning from gcc -Wshadow
1564         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
1565         to avoid a shadowing warning.
1566
1567 2011-09-24  Bruno Haible  <bruno@clisp.org>
1568
1569         fdopen: Support for MSVC 9.
1570         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
1571         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
1572         * lib/fdopen.c: Include msvc-inval.h.
1573         (fdopen_nothrow): New function.
1574         (rpl_fdopen): Use it.
1575         * modules/fdopen (Depends-on): Add msvc-inval.
1576         * modules/fclose-tests (Depends-on): Add fdopen.
1577         * modules/fflush-tests (Depends-on): Likewise.
1578         * modules/fgetc-tests (Depends-on): Likewise.
1579         * modules/fputc-tests (Depends-on): Likewise.
1580         * modules/fread-tests (Depends-on): Likewise.
1581         * modules/freopen-tests (Depends-on): Likewise.
1582         * modules/fseeko-tests (Depends-on): Likewise.
1583         * modules/ftello-tests (Depends-on): Likewise.
1584         * modules/fwrite-tests  (Depends-on): Likewise.
1585         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
1586
1587 2011-09-24  Bruno Haible  <bruno@clisp.org>
1588
1589         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
1590         * modules/fgetc-tests (Depends-on): Add unistd.
1591         * modules/fputc-tests (Depends-on): Likewise.
1592         * modules/fread-tests (Depends-on): Likewise.
1593         * modules/fwrite-tests (Depends-on): Likewise.
1594
1595 2011-09-24  Bruno Haible  <bruno@clisp.org>
1596
1597         dup: Simplify autoconf test.
1598         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
1599         on gl_MSVC_INVAL's result.
1600
1601 2011-09-24  Bruno Haible  <bruno@clisp.org>
1602
1603         Tests for function fwrite().
1604         * modules/fwrite-tests: New file.
1605         * tests/test-fwrite.c: New file.
1606         * modules/stdio-tests (Depends-on): Add fwrite-tests.
1607
1608         Tests for function fread().
1609         * modules/fread-tests: New file.
1610         * tests/test-fread.c: New file.
1611         * modules/stdio-tests (Depends-on): Add fread-tests.
1612
1613         Activate fputc tests.
1614         * modules/stdio-tests (Depends-on): Add fputc-tests.
1615
1616         Enhance fgetc, fputc tests.
1617         * tests/test-fgetc.c (main): Also test the stream's error indicator.
1618         * tests/test-fputc.c (main): Likewise.
1619
1620 2011-09-24  Bruno Haible  <bruno@clisp.org>
1621
1622         write: Support for MSVC 9.
1623         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
1624         is not 1.
1625         * lib/write.c (write_nothrow): New function.
1626         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
1627         not 1. Use write_nothrow.
1628         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
1629         invalid parameter handler.
1630         (gl_PREREQ_WRITE): New macro.
1631         * modules/write (Depends-on): Add msvc-inval.
1632         (configure.ac): Invoke gl_PREREQ_WRITE.
1633         * doc/posix-functions/write.texi: Mention the problem on MSVC.
1634
1635 2011-09-24  Bruno Haible  <bruno@clisp.org>
1636
1637         read: Fix last commit.
1638         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
1639
1640 2011-09-24  Bruno Haible  <bruno@clisp.org>
1641
1642         dup2: Fix last commit.
1643         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
1644         (rpl_dup2): Disable fcntl workaround on native Windows.
1645
1646         sigprocmask: Make code safer.
1647         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
1648         section that changes macro definitions for this compilation unit.
1649
1650 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
1651
1652         dup2: clarify by coalescing Windows-specific material
1653         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
1654         "msvc-nothrow.h"' to the Windows-specific section, so that the
1655         Emacs source need not contain these include files.
1656         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
1657         Windows-specific fixes into this function rather than just the
1658         nothrow fix, as this shortens and clarifies the code.  Always
1659         define as a function, as that's a bit cleaner than having it be
1660         sometimes a function and sometimes a macro.
1661         (rpl_dup2): Move the Windows-specific stuff out of here and into
1662         ms_windows_dup2.  Don't protect the Haiku-related fix with
1663         "#if !defined __linux__", as the same code also works around
1664         a Linux kernel bug, and it doesn't add any system calls on any
1665         platform.  Add comment about FreeBSD 6.1.
1666
1667         sigprocmask: move #include directive
1668         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
1669         Windows-specific section, so that the Emacs source need not
1670         contain msvc-inval.h.
1671
1672 2011-09-23  Bruno Haible  <bruno@clisp.org>
1673
1674         read: Support for MSVC 9.
1675         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
1676         is not 1.
1677         * lib/read.c (read_nothrow): New function.
1678         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
1679         read_nothrow.
1680         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
1681         invalid parameter handler.
1682         (gl_PREREQ_READ): New macro.
1683         * modules/read (Depends-on): Add msvc-inval.
1684         (configure.ac): Invoke gl_PREREQ_READ.
1685         * doc/posix-functions/read.texi: Mention the problem on MSVC.
1686
1687 2011-09-23  Bruno Haible  <bruno@clisp.org>
1688
1689         close: Support for MSVC 9.
1690         * lib/close.c: Include <errno.h>, msvc-inval.h.
1691         (close_nothrow): New function.
1692         (rpl_close): Use it.
1693         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
1694         invalid parameter handler.
1695         * modules/close (Depends-on): Add msvc-inval.
1696         * modules/dup2-tests (Depends-on): Add close.
1697         * modules/dup3-tests (Depends-on): Likewise.
1698         * modules/fcntl-tests (Depends-on): Likewise.
1699         * modules/spawn-pipe-tests (Depends-on): Likewise.
1700         * modules/unistd-safer-tests (Depends-on): Likewise.
1701         * doc/posix-functions/close.texi: Mention the problem on MSVC.
1702
1703 2011-09-23  Bruno Haible  <bruno@clisp.org>
1704
1705         New module 'dup'.
1706         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
1707         Allow replacement.
1708         * lib/dup.c: New file.
1709         * lib/fchdir.c (rpl_dup): Remove function.
1710         * m4/dup.m4: New file.
1711         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
1712         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
1713         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
1714         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
1715         * modules/dup: New file.
1716         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
1717         'dup' module is in use.
1718         * modules/fdopendir (Depends-on): Add dup.
1719         * modules/fdutimensat-tests (Depends-on): Likewise.
1720         * modules/fts (Depends-on): Likewise.
1721         * modules/futimens-tests (Depends-on): Likewise.
1722         * modules/posix_spawnp-tests (Depends-on): Likewise.
1723         * modules/unistd-safer-tests (Depends-on): Likewise.
1724         * modules/utimens-tests (Depends-on): Likewise.
1725         * doc/posix-functions/dup.texi: Mention the new module and the problem
1726         on MSVC.
1727
1728 2011-09-23  Bruno Haible  <bruno@clisp.org>
1729
1730         getdtablesize: Support for MSVC 9.
1731         * lib/getdtablesize.c: Include msvc-inval.h.
1732         (_setmaxstdio_nothrow): New function.
1733         (_setmaxstdio): Redefine it.
1734         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
1735         * modules/getdtablesize (Depends-on): Add msvc-inval.
1736         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
1737
1738 2011-09-23  Bruno Haible  <bruno@clisp.org>
1739
1740         signal-h: Rename from signal.
1741         * modules/signal-h: Renamed from modules/signal.
1742         * modules/pthread_sigmask (Depends-on): Update.
1743         * modules/raise (Depends-on): Likewise.
1744         * modules/sigaction (Depends-on): Likewise.
1745         * modules/sigpipe (Depends-on): Likewise.
1746         * modules/sigprocmask (Depends-on): Likewise.
1747         * modules/sys_select (Depends-on): Likewise.
1748         * modules/signal-h-tests: Renamed from modules/signal-tests.
1749         (Files, Depends-on, Makefile.am): Update.
1750         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
1751         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
1752         (Files, Makefile.am): Update.
1753         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
1754         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
1755         * modules/signal: New placeholder file.
1756         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
1757         * doc/posix-headers/signal.texi: Update.
1758         * NEWS: Mention the change.
1759
1760 2011-09-23  Bruno Haible  <bruno@clisp.org>
1761
1762         sigprocmask: Avoid crashes through signal() on MSVC 9.
1763         * lib/sigprocmask.c: Include msvc-inval.h.
1764         (signal_nothrow): New function.
1765         (signal): Redefine it.
1766         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
1767         * modules/sigprocmask (Depends-on): Add msvc-inval.
1768         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
1769
1770 2011-09-23  Bruno Haible  <bruno@clisp.org>
1771
1772         Tests for module 'raise'.
1773         * modules/raise-tests: New file.
1774         * tests/test-raise.c: New file.
1775
1776         raise: Support for MSVC.
1777         * lib/signal.in.h (raise): New declaration.
1778         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
1779         for native Windows platforms.
1780         * m4/raise.m4: New file.
1781         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
1782         HAVE_RAISE, REPLACE_RAISE.
1783         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
1784         REPLACE_RAISE.
1785         * modules/raise (Status, Notice): Remove fields.
1786         (Files): Add m4/raise.m4.
1787         (Depends-on): Add signal, msvc-inval.
1788         (configure.ac): Use the common idioms.
1789         (Maintainer): Add me.
1790         * tests/test-signal-c++.cc: Check the signature of raise.
1791         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
1792
1793 2011-09-23  Bruno Haible  <bruno@clisp.org>
1794
1795         pipe2: Fix compilation on pre-C99 compilers.
1796         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
1797
1798 2011-09-23  Bruno Haible  <bruno@clisp.org>
1799
1800         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
1801         * lib/msvc-nothrow.h: New file.
1802         * lib/msvc-nothrow.c: New file.
1803         * m4/msvc-nothrow.m4: New file.
1804         * modules/msvc-nothrow: New file.
1805         * lib/dup2.c: Include msvc-nothrow.h.
1806         (rpl_dup2): No need to protect _get_osfhandle call here.
1807         * lib/accept4.c: Include msvc-nothrow.h.
1808         * lib/error.c: Likewise.
1809         * lib/fcntl.c: Likewise.
1810         * lib/lseek.c: Likewise.
1811         * lib/nonblocking.c: Likewise.
1812         * lib/poll.c: Likewise.
1813         * lib/read.c: Likewise.
1814         * lib/select.c: Likewise.
1815         * lib/sockets.h: Likewise.
1816         * lib/sockets.c: Likewise.
1817         * lib/stdio-read.c: Likewise.
1818         * lib/stdio-write.c: Likewise.
1819         * lib/write.c: Likewise.
1820         * lib/w32sock.h: Likewise.
1821         * lib/w32spawn.h: Likewise.
1822         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
1823         * lib/fsync.c: Likewise.
1824         * lib/isapipe.c: Likewise.
1825         * modules/dup2 (Depends-on): Add msvc-nothrow.
1826         * modules/accept4 (Depends-on): Likewise.
1827         * modules/error (Depends-on): Likewise.
1828         * modules/fcntl (Depends-on): Likewise.
1829         * modules/lseek (Depends-on): Likewise.
1830         * modules/nonblocking (Depends-on): Likewise.
1831         * modules/poll (Depends-on): Likewise.
1832         * modules/read (Depends-on): Likewise.
1833         * modules/select (Depends-on): Likewise.
1834         * modules/sockets (Depends-on): Likewise.
1835         * modules/sigpipe (Depends-on): Likewise.
1836         * modules/write (Depends-on): Likewise.
1837         * modules/accept (Depends-on): Likewise.
1838         * modules/bind (Depends-on): Likewise.
1839         * modules/connect (Depends-on): Likewise.
1840         * modules/gethostname (Depends-on): Likewise.
1841         * modules/getpeername (Depends-on): Likewise.
1842         * modules/getsockname (Depends-on): Likewise.
1843         * modules/getsockopt (Depends-on): Likewise.
1844         * modules/ioctl (Depends-on): Likewise.
1845         * modules/listen (Depends-on): Likewise.
1846         * modules/recv (Depends-on): Likewise.
1847         * modules/recvfrom (Depends-on): Likewise.
1848         * modules/send (Depends-on): Likewise.
1849         * modules/sendto (Depends-on): Likewise.
1850         * modules/setsockopt (Depends-on): Likewise.
1851         * modules/shutdown (Depends-on): Likewise.
1852         * modules/socket (Depends-on): Likewise.
1853         * modules/execute (Depends-on): Likewise.
1854         * modules/spawn-pipe (Depends-on): Likewise.
1855         * modules/flock (Depends-on): Likewise.
1856         * modules/fsync (Depends-on): Likewise.
1857         * modules/isapipe (Depends-on): Likewise.
1858         * tests/test-cloexec.c: Include msvc-nothrow.h.
1859         * tests/test-dup-safer.c: Likewise.
1860         * tests/test-dup2.c: Likewise.
1861         * tests/test-dup3.c: Likewise.
1862         * tests/test-fcntl.c: Likewise.
1863         * tests/test-pipe.c: Likewise.
1864         * tests/test-pipe2.c: Likewise.
1865         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
1866         * modules/unistd-safer-tests (Depends-on): Likewise.
1867         * modules/dup2-tests (Depends-on): Likewise.
1868         * modules/dup3-tests (Depends-on): Likewise.
1869         * modules/fcntl-tests (Depends-on): Likewise.
1870         * modules/pipe-posix-tests (Depends-on): Likewise.
1871         * modules/pipe2-tests (Depends-on): Likewise.
1872
1873 2011-09-23  Bruno Haible  <bruno@clisp.org>
1874
1875         dup2: Make code more maintainable.
1876         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
1877         (rpl_dup2): Use it.
1878         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
1879         * modules/dup2 (configure.ac): Invoke it.
1880         Reported by Paul Eggert.
1881
1882 2011-09-23  Bruno Haible  <bruno@clisp.org>
1883
1884         msvc-inval: Fix compilation error.
1885         * lib/msvc-inval.h: Include <excpt.h>.
1886
1887 2011-09-23  Bruno Haible  <bruno@clisp.org>
1888
1889         mkdir: Tweak for MSVC 9.
1890         * lib/sys_stat.in.h: Update comments.
1891         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
1892
1893         Tests for module 'chdir'.
1894         * modules/chdir-tests: New file.
1895         * tests/test-chdir.c: New file.
1896
1897         New module 'chdir'.
1898         * modules/chdir: New file.
1899         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
1900         (chdir): New declaration.
1901         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
1902         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
1903         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
1904         * tests/test-unistd-c++.cc: Check signature of chdir.
1905         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
1906         * modules/chdir-long (Depends-on): Add chdir.
1907         * modules/fchdir (Depends-on): Likewise.
1908         * modules/rename (Depends-on): Likewise.
1909         * modules/savewd (Depends-on): Likewise.
1910
1911         rmdir: Support for mingw, MSVC 9.
1912         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
1913         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
1914
1915         getcwd: Tweak for MSVC 9.
1916         * lib/unistd.in.h: Update comments.
1917         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
1918
1919 2011-09-22  Bruno Haible  <bruno@clisp.org>
1920
1921         strerror_r-posix: Avoid a link error on MSVC.
1922         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
1923         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
1924
1925 2011-09-22  Bruno Haible  <bruno@clisp.org>
1926
1927         select: Avoid link errors on MSVC.
1928         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
1929         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
1930         * modules/pselect (Link): Likewise.
1931         * NEWS: Mention the change.
1932         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
1933         test-select-stdin against $(LIB_SELECT).
1934         * modules/pselect-tests (Makefile.am): Link test-pselect against
1935         $(LIB_SELECT).
1936
1937 2011-09-22  Bruno Haible  <bruno@clisp.org>
1938
1939         select: Avoid compilation error on MSVC.
1940         * lib/select.c: Don't include <stdbool.h>.
1941
1942 2011-09-21  Bruno Haible  <bruno@clisp.org>
1943
1944         Consolidate all uses of PATH_MAX in *.m4 files.
1945         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
1946         macros.
1947         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
1948         and gl_PATHMAX_SNIPPET.
1949         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
1950         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
1951         * modules/chdir-long (Files): Add m4/pathmax.m4.
1952         * modules/getcwd (Files): Likewise.
1953
1954 2011-09-21  Bruno Haible  <bruno@clisp.org>
1955
1956         ftruncate: Un-deprecate, concentrate on Win32 support.
1957         * modules/ftruncate (Status, Notice): Remove sections.
1958         (Depends-on): Add largefile.
1959         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
1960         non-mingw platforms.
1961         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
1962         include <io.h>.
1963         * modules/perror-tests (Depends-on): Add ftruncate.
1964         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
1965         'ftruncate' module.
1966
1967 2011-09-21  Bruno Haible  <bruno@clisp.org>
1968
1969         Add dependencies to new dirent related modules.
1970         * modules/opendir (Depends-on): Add closedir.
1971         * modules/getcwd (Depends-on): Add opendir, closedir.
1972         * modules/dirent-safer-tests (Depends-on): Likewise.
1973         * modules/fdopendir-tests (Depends-on): Likewise.
1974         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
1975         * modules/renameat-tests (Depends-on): Likewise.
1976
1977 2011-09-21  Bruno Haible  <bruno@clisp.org>
1978
1979         opendir: Avoid compilation error on mingw.
1980         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
1981         * modules/opendir (Depends-on): Add unistd.
1982
1983 2011-09-21  Bruno Haible  <bruno@clisp.org>
1984
1985         ftruncate tests: Avoid a test failure on mingw.
1986         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
1987
1988 2011-09-21  Bruno Haible  <bruno@clisp.org>
1989
1990         select tests: Avoid test failures on OSF/1 5.1 and mingw.
1991         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
1992         native Windows.
1993
1994 2011-09-21  Bruno Haible  <bruno@clisp.org>
1995
1996         New module 'fdopen'.
1997         * lib/stdio.in.h (fdopen): New declaration.
1998         * lib/fdopen.c: New file.
1999         * m4/fdopen.m4: New file.
2000         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
2001         REPLACE_FDOPEN.
2002         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
2003         REPLACE_FDOPEN.
2004         * modules/fdopen: New file.
2005         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
2006         * tests/test-stdio-c++.cc: Check signature of fdopen.
2007         * doc/posix-functions/fdopen.texi: Mention the new module.
2008
2009 2011-09-21  Bruno Haible  <bruno@clisp.org>
2010
2011         unlockpt tests: Avoid test failure on NetBSD 5.1.
2012         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
2013         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
2014
2015 2011-09-21  Bruno Haible  <bruno@clisp.org>
2016
2017         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
2018         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
2019         * tests/test-getlogin_r.c (main): Likewise.
2020
2021 2011-09-20  Bruno Haible  <bruno@clisp.org>
2022
2023         time tests: Don't require pid_t.
2024         * doc/posix-headers/time.texi: Revert last change.
2025         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
2026         * tests/test-time.c: Comment out the check for pid_t.
2027
2028 2011-09-20  Bruno Haible  <bruno@clisp.org>
2029
2030         fsync tests: Avoid a test failure on mingw.
2031         * tests/test-fsync.c (main): Allow a failure with EIO.
2032
2033 2011-09-20  Bruno Haible  <bruno@clisp.org>
2034
2035         euidaccess: Update comments.
2036         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
2037
2038 2011-09-20  Bruno Haible  <bruno@clisp.org>
2039
2040         Ensure EBADF returns for socket functions on mingw.
2041         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
2042         descriptor is invalid.
2043         * lib/bind.c (rpl_bind): Likewise.
2044         * lib/connect.c (rpl_connect): Likewise.
2045         * lib/getpeername.c (rpl_getpeername): Likewise.
2046         * lib/getsockname.c (rpl_getsockname): Likewise.
2047         * lib/getsockopt.c (rpl_getsockopt): Likewise.
2048         * lib/listen.c (rpl_listen): Likewise.
2049         * lib/recv.c (rpl_recv): Likewise.
2050         * lib/recvfrom.c (rpl_recvfrom): Likewise.
2051         * lib/send.c (rpl_send): Likewise.
2052         * lib/sendto.c (rpl_sendto): Likewise.
2053         * lib/setsockopt.c (rpl_setsockopt): Likewise.
2054         * lib/shutdown.c (rpl_shutdown): Likewise.
2055
2056 2011-09-20  Bruno Haible  <bruno@clisp.org>
2057
2058         select tests: EBADF tests.
2059         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
2060         test_bad_fd): New functions.
2061         (test_function): Invoke also test_bad_fd.
2062
2063 2011-09-20  Bruno Haible  <bruno@clisp.org>
2064
2065         Tests for module 'posix_spawn_file_actions_addopen.
2066         * modules/posix_spawn_file_actions_addopen-tests: New file.
2067         * tests/test-posix_spawn_file_actions_addopen.c: New file.
2068
2069         Tests for module 'posix_spawn_file_actions_adddup2'.
2070         * modules/posix_spawn_file_actions_adddup2-tests: New file.
2071         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
2072
2073         Tests for module 'posix_spawn_file_actions_addclose'.
2074         * modules/posix_spawn_file_actions_addclose-tests: New file.
2075         * tests/test-posix_spawn_file_actions_addclose.c: New file.
2076
2077 2011-09-20  Bruno Haible  <bruno@clisp.org>
2078
2079         Tests for module 'unlockpt'.
2080         * modules/unlockpt-tests: New file.
2081         * tests/test-unlockpt.c: New file.
2082         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
2083
2084         Tests for module 'grantpt'.
2085         * modules/grantpt-tests: New file.
2086         * tests/test-grantpt.c: New file.
2087         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
2088
2089 2011-09-20  Bruno Haible  <bruno@clisp.org>
2090
2091         freopen tests: EBADF tests.
2092         * tests/test-freopen.c: Include errno.h, unistd.h.
2093         (main): Add tests for EBADF, commented out for the moment.
2094
2095         fclose tests: EBADF tests.
2096         * tests/test-fclose.c (main): Add tests for EBADF.
2097
2098         fflush tests: EBADF tests.
2099         * tests/test-fflush.c: Include errno.h, macros.h.
2100         (main): Add tests for EBADF.
2101
2102         ftello tests: EBADF tests.
2103         * tests/test-ftello4.sh: New file.
2104         * tests/test-ftello4.c: New file.
2105         * modules/ftello-tests (Files): Add them.
2106         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
2107
2108         fseeko tests: EBADF tests.
2109         * tests/test-fseeko4.sh: New file.
2110         * tests/test-fseeko4.c: New file.
2111         * modules/fseeko-tests (Files): Add them.
2112         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
2113
2114         Tests for function fputc().
2115         * modules/fputc-tests: New file.
2116         * tests/test-fputc.c: New file.
2117         * modules/stdio-tests (Depends-on): Add fputc-tests.
2118
2119         Tests for function fgetc().
2120         * modules/fgetc-tests: New file.
2121         * tests/test-fgetc.c: New file.
2122         * modules/stdio-tests (Depends-on): Add fgetc-tests.
2123
2124         Tests for function fdopen().
2125         * modules/fdopen-tests: New file.
2126         * tests/test-fdopen.c: New file.
2127         * modules/stdio-tests (Depends-on): Add fdopen-tests.
2128
2129         Tests for module 'vdprintf'.
2130         * modules/vdprintf-tests: New file.
2131         * tests/test-vdprintf.c: New file.
2132
2133         Tests for module 'dprintf'.
2134         * modules/dprintf-tests: New file.
2135         * tests/test-dprintf.c: New file.
2136
2137 2011-09-20  Bruno Haible  <bruno@clisp.org>
2138
2139         Tests for module 'ioctl'.
2140         * modules/ioctl-tests: New file.
2141         * tests/test-ioctl.c: New file.
2142
2143 2011-09-20  Bruno Haible  <bruno@clisp.org>
2144
2145         fcntl tests: EBADF tests.
2146         * tests/test-fcntl.c (main): Add more tests for EBADF.
2147
2148 2011-09-20  Bruno Haible  <bruno@clisp.org>
2149
2150         utimensat tests: EBADF tests.
2151         * tests/test-utimensat.c (main): Add tests for EBADF.
2152
2153         renameat tests: EBADF tests.
2154         * tests/test-renameat.c (main): Add tests for EBADF.
2155
2156         mkfifoat tests: EBADF tests.
2157         * tests/test-mkfifoat.c (main): Add tests for EBADF.
2158
2159         readlinkat tests: EBADF tests.
2160         * tests/test-readlinkat.c (main): Add tests for EBADF.
2161
2162         symlinkat tests: EBADF tests.
2163         * tests/test-symlinkat.c (main): Add tests for EBADF.
2164
2165         linkat tests: EBADF tests.
2166         * tests/test-linkat.c (main): Add tests for EBADF.
2167
2168         Tests for module 'faccessat'.
2169         * modules/faccessat-tests: New file.
2170         * tests/test-faccessat.c: New file.
2171
2172         fdopendir tests: EBADF tests.
2173         * tests/test-fdopendir.c (main): Add more tests for EBADF.
2174
2175         openat tests: EBADF tests.
2176         * tests/test-fchownat.c (main): Add tests for EBADF.
2177         * tests/test-fstatat.c (main): Likewise.
2178         * tests/test-mkdirat.c (main): Likewise.
2179         * tests/test-openat.c (main): Likewise.
2180         * tests/test-unlinkat.c (main): Likewise.
2181         * tests/test-fchmodat.c: New file.
2182         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
2183         (Makefile.am): Also run 'test-fchmodat'.
2184
2185 2011-09-20  Bruno Haible  <bruno@clisp.org>
2186
2187         utimens, futimens, fdutimensat tests: EBADF tests.
2188         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
2189
2190         Tests for function fstat().
2191         * modules/fstat-tests: New file.
2192         * tests/test-fstat.c: New file.
2193         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
2194
2195 2011-09-20  Bruno Haible  <bruno@clisp.org>
2196
2197         test-ttyname_r tests: EBADF tests.
2198         * tests/test-ttyname_r.c (main): Add tests for EBADF.
2199
2200         Tests for module 'isatty'.
2201         * modules/isatty-tests: New file.
2202         * tests/test-isatty.c: New file.
2203
2204         Tests for module 'write'.
2205         * modules/write-tests: New file.
2206         * tests/test-write.c: New file.
2207
2208         Tests for module 'read'.
2209         * modules/read-tests: New file.
2210         * tests/test-read.c: New file.
2211
2212         pwrite tests: EBADF tests.
2213         * tests/test-pwrite.c (main): Add tests for EBADF.
2214
2215         pread tests: EBADF tests.
2216         * tests/test-pread.c (main): Add tests for EBADF.
2217
2218         lseek tests: EBADF tests.
2219         * tests/test-lseek.c (main): Add more tests for EBADF.
2220
2221         Tests for module 'ftruncate'.
2222         * modules/ftruncate-tests: New file.
2223         * tests/test-ftruncate.sh: New file.
2224         * tests/test-ftruncate.c: New file.
2225
2226         fsync tests: EBADF tests.
2227         * tests/test-fsync.c (main): Add more tests for EBADF.
2228
2229         fdatasync tests: EBADF tests.
2230         * tests/test-fdatasync.c (main): Add more tests for EBADF.
2231
2232         Tests for module 'fchown'.
2233         * modules/fchown-tests: New file.
2234         * tests/test-fchown.c: New file.
2235
2236         Tests for module 'fchmod'.
2237         * modules/fchmod-tests: New file.
2238         * tests/test-fchmod.c: New file.
2239
2240         fchdir tests: EBADF tests.
2241         * tests/test-fchdir.c (main): Add more tests for EBADF.
2242
2243         dup2 tests: EBADF tests.
2244         * tests/test-dup2.c (main): Add more tests for EBADF.
2245
2246         Tests for module 'dup'.
2247         * modules/dup-tests: New file.
2248         * tests/test-dup.c: New file.
2249
2250         Tests for module 'close'.
2251         * modules/close-tests: New file.
2252         * tests/test-close.c: New file.
2253
2254 2011-09-20  Bruno Haible  <bruno@clisp.org>
2255
2256         Tests for module 'shutdown'.
2257         * modules/shutdown-tests: New file.
2258         * tests/test-shutdown.c: New file.
2259
2260         Tests for module 'setsockopt'.
2261         * modules/setsockopt-tests: New file.
2262         * tests/test-setsockopt.c: New file.
2263
2264         Tests for module 'sendto'.
2265         * modules/sendto-tests: New file.
2266         * tests/test-sendto.c: New file.
2267
2268         Tests for module 'send'.
2269         * modules/send-tests: New file.
2270         * tests/test-send.c: New file.
2271
2272         Tests for module 'recvfrom'.
2273         * modules/recvfrom-tests: New file.
2274         * tests/test-recvfrom.c: New file.
2275
2276         Tests for module 'recv'.
2277         * modules/recv-tests: New file.
2278         * tests/test-recv.c: New file.
2279
2280         Tests for module 'listen'.
2281         * modules/listen-tests: New file.
2282         * tests/test-listen.c: New file.
2283
2284         Tests for module 'getsockopt'.
2285         * modules/getsockopt-tests: New file.
2286         * tests/test-getsockopt.c: New file.
2287
2288         Tests for module 'getsockname'.
2289         * modules/getsockname-tests: New file.
2290         * tests/test-getsockname.c: New file.
2291
2292         Tests for module 'getpeername'.
2293         * modules/getpeername-tests: New file.
2294         * tests/test-getpeername.c: New file.
2295
2296         Tests for module 'connect'.
2297         * modules/connect-tests: New file.
2298         * tests/test-connect.c: New file.
2299
2300         Tests for module 'bind'.
2301         * modules/bind-tests: New file.
2302         * tests/test-bind.c: New file.
2303
2304         accept4 tests: Fix for native Windows.
2305         * tests/test-accept4.c: Include sockets.h.
2306         (main): Invoke gl_sockets_startup.
2307         * modules/accept4-tests (Depends-on): Add sockets.
2308
2309         accept tests: Fix for native Windows.
2310         * tests/test-accept.c: Include sockets.h.
2311         (main): Invoke gl_sockets_startup.
2312         * modules/accept-tests (Depends-on): Add sockets.
2313
2314 2011-09-19  Bruno Haible  <bruno@clisp.org>
2315
2316         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
2317         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
2318         do...while(0).
2319         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
2320         Suggested by Paul Eggert.
2321
2322 2011-09-19  Bruno Haible  <bruno@clisp.org>
2323
2324         sched: Ensure pid_t is defined.
2325         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
2326         not define pid_t.
2327         * lib/sched.in.h: Include <sys/types.h>.
2328         * doc/posix-headers/sched.texi: Mention the pid_t problem.
2329         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2330
2331 2011-09-19  Bruno Haible  <bruno@clisp.org>
2332
2333         msvc-inval: Ensure the entire expansion is a single statement.
2334         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
2335         of braces.
2336
2337 2011-09-19  Jim Meyering  <meyering@redhat.com>
2338
2339         tests: use printf, not echo in init.sh's warn_ function
2340         * tests/init.sh (warn_): Use printf, not echo.  The latter would
2341         misbehave when given strings containing a backslash or starting
2342         with e.g., -n.  James Youngman suggested setting IFS.
2343
2344 2011-09-19  Eric Blake  <eblake@redhat.com>
2345
2346         futimens: enhance test
2347         * tests/test-futimens.h (test_futimens): Also check for EBADF on
2348         closed non-negative fd.
2349
2350         date: accept 'hence' as opposite of 'ago'
2351         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
2352         * tests/test-parse-datetime.c (main): Enhance test.
2353         Suggested by Jesse Wilson.
2354
2355 2011-09-19  Jim Meyering  <meyering@redhat.com>
2356
2357         getcwd: don't fail in a deep directory on a system without openat
2358         Before this change, getcwd would fail when called from a directory
2359         of depth PATH_MAX / 3 or greater.  That was due to the fact that
2360         the non-openat implementation used "..", "../..", "../../..", etc.
2361         to access ancestor directories.  With too many, that string would
2362         be longer than PATH_MAX.
2363         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
2364         using gnulib's openat replacement.
2365         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
2366         we're using the replacement function.
2367
2368 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
2369
2370         maint.mk: avoid warnings from perl about missing files
2371         * top/maint.mk (def_sym_regex): Ignore files listed in
2372         $(gl_other_headers_) that do not exist, say because a project
2373         does not use a corresponding module.
2374
2375 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
2376
2377         stat: use pathmax.h only if needed
2378         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
2379         This is better for Emacs, which does not have a mingw port and
2380         therefore can avoid the pathmax module.
2381
2382         utimens: remove dependency on dup2
2383         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
2384         to work around the Linux kernel bug.
2385         * modules/utimens (Depends-on): Remove dup2.
2386
2387 2011-09-18  Bruno Haible  <bruno@clisp.org>
2388
2389         inet_ntop, inet_pton: Look for it also in libresolv.
2390         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
2391         libnsl, search for it in libresolv.
2392         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
2393         Needed on Solaris 7.
2394
2395 2011-09-18  Bruno Haible  <bruno@clisp.org>
2396
2397         accept, accept4 tests: Avoid link error on Solaris.
2398         * modules/accept-tests (Makefile.am): Link test-accept against
2399         $(LIBSOCKET).
2400         * modules/accept4-tests (Makefile.am): Link test-accept4 against
2401         $(LIBSOCKET).
2402
2403         accept4: Avoid link error on Solaris.
2404         * modules/accept4 (Link): New section.
2405
2406         socket functions: Avoid link errors on Solaris.
2407         * modules/accept (Depends-on): Add socketlib.
2408         (Link): New section.
2409         * modules/bind (Depends-on): Add socketlib.
2410         (Link): New section.
2411         * modules/connect (Depends-on): Add socketlib.
2412         (Link): New section.
2413         * modules/getpeername (Depends-on): Add socketlib.
2414         (Link): New section.
2415         * modules/getsockname (Depends-on): Add socketlib.
2416         (Link): New section.
2417         * modules/getsockopt (Depends-on): Add socketlib.
2418         (Link): New section.
2419         * modules/listen (Depends-on): Add socketlib.
2420         (Link): New section.
2421         * modules/recv (Depends-on): Add socketlib.
2422         (Link): New section.
2423         * modules/recvfrom (Depends-on): Add socketlib.
2424         (Link): New section.
2425         * modules/send (Depends-on): Add socketlib.
2426         (Link): New section.
2427         * modules/sendto (Depends-on): Add socketlib.
2428         (Link): New section.
2429         * modules/setsockopt (Depends-on): Add socketlib.
2430         (Link): New section.
2431         * modules/shutdown (Depends-on): Add socketlib.
2432         (Link): New section.
2433         * modules/socket (Depends-on): Add socketlib.
2434         (Link): New section.
2435
2436 2011-09-18  Bruno Haible  <bruno@clisp.org>
2437
2438         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
2439         * tests/test-ptsname.c (main): Terminate the test if it takes longer
2440         than 5 seconds.
2441         * modules/ptsname-tests (configure.ac): Test for alarm.
2442
2443 2011-09-18  Bruno Haible  <bruno@clisp.org>
2444
2445         posix_spawn_file_actions_add*: Fix module dependencies.
2446         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
2447         posix_spawn_file_actions_init.
2448         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
2449         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
2450
2451 2011-09-18  Bruno Haible  <bruno@clisp.org>
2452
2453         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
2454         * tests/test-rename.h (test_rename): Allow error code EEXIST.
2455         * tests/test-renameat.c (main): Likewise.
2456
2457 2011-09-18  Bruno Haible  <bruno@clisp.org>
2458
2459         Tests for module 'accept4'.
2460         * modules/accept4-tests: New file.
2461         * tests/test-accept4.c: New file.
2462
2463 2011-09-18  Bruno Haible  <bruno@clisp.org>
2464
2465         Tests for module 'accept'.
2466         * modules/accept-tests: New file.
2467         * tests/test-accept.c: New file.
2468
2469 2011-09-18  Bruno Haible  <bruno@clisp.org>
2470
2471         dup2: Support for MSVC.
2472         * lib/dup2.c: Include msvc-inval.h.
2473         (rpl_dup2): Handle invalid parameter notifications during dup2 and
2474         _get_osfhandle calls.
2475         * modules/dup2 (Depends-on): Add msvc-inval.
2476         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
2477
2478         New module 'msvc-inval'.
2479         * lib/msvc-inval.h: New file.
2480         * lib/msvc-inval.c: New file.
2481         * m4/msvc-inval.m4: New file.
2482         * modules/msvc-inval: New file.
2483
2484 2011-09-17  Bruno Haible  <bruno@clisp.org>
2485
2486         Tests for module 'pclose'.
2487         * modules/pclose-tests: New file.
2488
2489         New module 'pclose'.
2490         * lib/stdio.in.h (pclose): New declaration.
2491         * lib/pclose.c: New file.
2492         * m4/pclose.m4: New file.
2493         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
2494         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
2495         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
2496         * modules/pclose: New file.
2497         * modules/popen-tests (Depends-on): Add pclose.
2498         * modules/popen-safer-tests (Depends-on): Likewise.
2499         * doc/posix-functions/pclose.texi: Mention the new module.
2500
2501 2011-09-17  Bruno Haible  <bruno@clisp.org>
2502
2503         popen: Support for MSVC.
2504         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
2505         * lib/popen.c (popen): Provide alternate definition for native Windows.
2506         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
2507         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
2508         * modules/popen (Depends-on, configure.ac): Update condition.
2509         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
2510         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
2511         fixed.
2512
2513 2011-09-17  Bruno Haible  <bruno@clisp.org>
2514
2515         isnanl, isnand, isnanf: Work around MSVC bug.
2516         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
2517
2518 2011-09-17  Bruno Haible  <bruno@clisp.org>
2519
2520         sys_socket tests: Fix recent mistake.
2521         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
2522
2523 2011-09-17  Bruno Haible  <bruno@clisp.org>
2524
2525         putenv: Support for MSVC.
2526         * modules/putenv (Depends-on): Add environ.
2527         * lib/putenv.c (environ): Disable declaration.
2528         * lib/unistd.in.h: Update comment.
2529
2530 2011-09-17  Bruno Haible  <bruno@clisp.org>
2531
2532         math: Avoid macro redefinition warnings on MSVC.
2533         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
2534         Undefine before redefining.
2535
2536 2011-09-17  Bruno Haible  <bruno@clisp.org>
2537
2538         doc: Mention functions which are declared as macros.
2539         * doc/posix-functions/*[fl].texi: Mention that some functions are
2540         defined as macros with arguments only.
2541
2542 2011-09-17  Bruno Haible  <bruno@clisp.org>
2543
2544         Add dependencies to new dirent related modules.
2545         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
2546         * modules/fts (Depends-on): Likewise.
2547         * modules/glob (Depends-on): Likewise.
2548         * modules/savedir (Depends-on): Likewise.
2549         * modules/scandir (Depends-on): Likewise.
2550         * modules/dirent-safer (Depends-on): Add opendir, closedir.
2551         * modules/fdopendir (Depends-on): Add opendir.
2552
2553 2011-09-17  Bruno Haible  <bruno@clisp.org>
2554
2555         inet_pton: Support for MSVC on Windows Vista or newer.
2556         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
2557         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
2558         HAVE_DECL_INET_PTON is defined.
2559         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
2560         On platforms with <winsock2.h>, test whether inet_pton is declared in
2561         <ws2tcpip.h>. If so, arrange to replace it.
2562         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
2563         REPLACE_INET_PTON.
2564         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
2565         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
2566         (Depends-on, configure.ac): Update condition.
2567         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
2568
2569 2011-09-17  Bruno Haible  <bruno@clisp.org>
2570
2571         inet_ntop: Support for MSVC on Windows Vista or newer.
2572         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
2573         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
2574         HAVE_DECL_INET_NTOP is defined.
2575         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
2576         On platforms with <winsock2.h>, test whether inet_ntop is declared in
2577         <ws2tcpip.h>. If so, arrange to replace it.
2578         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
2579         REPLACE_INET_NTOP.
2580         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
2581         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
2582         (Depends-on, configure.ac): Update condition.
2583         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
2584
2585 2011-09-16  Eric Blake  <eblake@redhat.com>
2586
2587         test-fsync: yet another enhancement
2588         * tests/test-fsync.c (main): Also test behavior on read-only text
2589         file.
2590
2591 2011-09-16  Bruno Haible  <bruno@clisp.org>
2592
2593         Enhance fsync, fdatasync tests.
2594         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
2595         * tests/test-fdatasync.c (main): Likewise.
2596
2597 2011-09-16  Bruno Haible  <bruno@clisp.org>
2598
2599         Support for MSVC compiler: Ensure mode_t gets defined.
2600         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
2601         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
2602         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
2603         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
2604         * tests/test-fcntl-h.c: Check that mode_t is defined.
2605         * tests/test-sys_stat.c: Likewise.
2606         * tests/test-sys_types.c: Likewise.
2607         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
2608         * doc/posix-headers/sys_stat.texi: Likewise.
2609         * doc/posix-headers/sys_types.texi: Likewise.
2610
2611 2011-09-16  Bruno Haible  <bruno@clisp.org>
2612
2613         sys_stat: Support for MSVC.
2614         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
2615         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
2616         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
2617         MSVC.
2618
2619 2011-09-16  Bruno Haible  <bruno@clisp.org>
2620
2621         Support for MSVC compiler: Ensure off_t gets defined.
2622         * lib/unistd.in.h: Include <sys/types.h>.
2623         * tests/test-fcntl-h.c: Check that off_t is defined.
2624         * tests/test-sys_stat.c: Likewise.
2625         * tests/test-sys_types.c: Likewise.
2626
2627 2011-09-16  Eric Blake  <eblake@redhat.com>
2628
2629         fdatasync: port to Solaris
2630         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
2631         * modules/fdatasync (Link): Document it.
2632         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
2633
2634         fdatasync: port to MacOS X 10.7
2635         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
2636         declared.
2637         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
2638         * modules/unistd (Makefile.am): Substitute it.
2639         * lib/unistd.in.h (fdatasync): Declare on MacOS.
2640         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
2641
2642         fdatasync: minor improvements
2643         * modules/fdatasync (Depends-on): Add condition for fsync.
2644         * lib/fdatasync.c (fdatasync): Add comment.
2645         * tests/test-unistd-c++.cc: Test fdatasync.
2646
2647         unistd: update refs to newer POSIX
2648         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
2649         Suggested by Bruno Haible.
2650
2651         fdatasync: new module
2652         * modules/fsync (Description): Document difference to fdatasync.
2653         * modules/fdatasync: New module.
2654         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
2655         * lib/fdatasync.c (fdatasync): Likewise.
2656         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
2657         defaults.
2658         * modules/unistd (Makefile.am): Set witnesses.
2659         * lib/unistd.in.h (fdatasync): Declare.
2660         * MODULES.html.sh: Document it.
2661         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
2662         * modules/fdatasync-tests: New test.
2663         * tests/test-fdatasync.c: Likewise.
2664
2665 2011-09-16  Eric Blake  <eblake@redhat.com>
2666
2667         test-fsync: enhance tests
2668         * modules/fsync-tests (Depends-on): Add errno, for mingw.
2669         * tests/test-fsync.c (main): Enhance test.
2670
2671 2011-09-15  Bruno Haible  <bruno@clisp.org>
2672
2673         Support for MSVC compiler: Ensure ssize_t gets defined.
2674         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
2675         * doc/posix-headers/stdio.texi: Likewise.
2676         * modules/stdio (Depends-on): Add ssize_t.
2677         * modules/sys_socket (Depends-on): Likewise.
2678         * modules/sys_types (Depends-on): Likewise.
2679         * modules/sys_uio (Depends-on): Likewise.
2680         * modules/unistd (Depends-on): Likewise.
2681         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
2682         * tests/test-sys_types.c: Check that ssize_t is defined.
2683
2684 2011-09-14  Bruno Haible  <bruno@clisp.org>
2685
2686         Avoid using #, the m4 comment starter character, near brackets.
2687         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
2688         delimiter character in sed expressions.
2689         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
2690         Suggested by Eric Blake.
2691
2692         Properly quote AC_CHECK_DECLS' 4th argument.
2693         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
2694         argument.
2695         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
2696         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
2697         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
2698         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
2699         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
2700         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
2701         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
2702         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
2703         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
2704         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
2705         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
2706         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
2707         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
2708         * m4/isinf.m4 (gl_ISINF): Likewise.
2709         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
2710         * m4/readutmp.m4 (gl_READUTMP): Likewise.
2711         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
2712         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
2713         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
2714         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
2715         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
2716         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
2717         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
2718         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
2719         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
2720         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
2721         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
2722         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
2723         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
2724         Reported by Eric Blake.
2725
2726         Properly quote AC_CHECK_DECL's 4th argument.
2727         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
2728         argument.
2729         * m4/argp.m4 (gl_ARGP): Likewise.
2730         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
2731         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
2732         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
2733         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
2734         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
2735         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
2736         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
2737         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
2738         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
2739         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
2740         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
2741         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
2742         Reported by Eric Blake.
2743
2744 2011-09-14  Eric Blake  <eblake@redhat.com>
2745
2746         opendir: avoid compile warning
2747         * lib/opendir.c (includes): Always include errno.h.
2748         Reported by Tatsuro MATSUOKA.
2749
2750 2011-09-14  Jim Meyering  <meyering@redhat.com>
2751
2752         maint.mk: sc_tight_scope: propagate failure from sub-make
2753         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
2754         Reported by Martin von Gagern.
2755
2756 2011-09-13  Bruno Haible  <bruno@clisp.org>
2757
2758         tempname: Support for MSVC.
2759         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
2760         MSVC.
2761         * modules/tempname (Depends-on): Add fcntl-h.
2762
2763 2011-09-13  Bruno Haible  <bruno@clisp.org>
2764
2765         sys_time: Support for MSVC.
2766         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
2767         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
2768         include <winsock2.h>.
2769         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
2770         function declarations that collide with POSIX.
2771         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
2772         (Makefile.am): Substitute HAVE_WINSOCK2_H.
2773
2774 2011-09-13  Bruno Haible  <bruno@clisp.org>
2775
2776         stat: Support for MSVC.
2777         * lib/stat.c: Include pathmax.h.
2778         * modules/stat (Depends-on): Add pathmax.
2779
2780         pathmax: Support for native Windows.
2781         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
2782
2783 2011-09-12  Bruno Haible  <bruno@clisp.org>
2784
2785         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
2786         * lib/dirent.in.h (struct dirent): New type.
2787         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
2788         DT_WHT): New macros.
2789         (DIR): New type.
2790         (opendir, closedir): Declare only if the module 'opendir' is enabled.
2791         (readdir, rewinddir): New declarations.
2792         * lib/dirent-private.h: New file.
2793         * lib/opendir.c: New file.
2794         * lib/readdir.c: New file.
2795         * lib/rewinddir.c: New file.
2796         * lib/closedir.c: New file.
2797         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
2798         * m4/opendir.m4: New file.
2799         * m4/readdir.m4: New file.
2800         * m4/rewinddir.m4: New file.
2801         * m4/closedir.m4: New file.
2802         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
2803         REPLACE_CLOSEDIR here.
2804         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
2805         readdir, rewinddir are declared.
2806         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
2807         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
2808         HAVE_REWINDDIR, HAVE_CLOSEDIR.
2809         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
2810         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
2811         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
2812         * modules/opendir: New file.
2813         * modules/readdir: New file.
2814         * modules/rewinddir: New file.
2815         * modules/closedir: New file.
2816         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
2817         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
2818         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
2819         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
2820         * NEWS: Mention the 'fchdir' change.
2821
2822 2011-09-11  Bruno Haible  <bruno@clisp.org>
2823
2824         asm-underscore.m4: Support for MSVC.
2825         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
2826         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
2827
2828 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
2829
2830         Doc about crypt functions.
2831         * doc/posix-functions/crypt.texi: Expand range of glibc versions
2832         needing for _GNU_SOURCE to get crypt.
2833         * doc/posix-functions/encrypt.texi: Likewise.
2834         * doc/posix-functions/setkey.texi: Likewise.
2835
2836 2011-09-11  Bruno Haible  <bruno@clisp.org>
2837
2838         doc: Update regarding MSVC 9.
2839         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
2840         tested".
2841         * doc/posix-functions/*.texi: Update with info about MSVC 9.
2842         * doc/posix-headers/*.texi: Likewise.
2843         * doc/pastposix-functions/*.texi: Likewise.
2844         * doc/glibc-functions/*.texi: Likewise.
2845         * doc/glibc-headers/*.texi: Likewise.
2846
2847 2011-09-11  Bruno Haible  <bruno@clisp.org>
2848
2849         unistd et al.: Don't assume <unistd.h> exists.
2850         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
2851         does not exist.
2852         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
2853         exist. But include <stdlib.h>.
2854         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
2855         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
2856         symlink() does not exist.
2857         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
2858         include <io.h> instead.
2859         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
2860         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
2861         include <direct.h> instead.
2862         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
2863         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
2864         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
2865         <io.h> instead.
2866         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
2867         correctly if the system does not have hard links.
2868         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
2869         <direct.h> instead.
2870         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
2871         it when looking for function declarations.
2872         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
2873         <direct.h> and <io.h> instead.
2874         * doc/posix-headers/unistd.texi: More details about MSVC problem.
2875
2876 2011-09-11  Bruno Haible  <bruno@clisp.org>
2877
2878         strcase: Support for MSVC.
2879         * modules/strcase (Status, Notice): Remove obsoletion mark.
2880         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
2881         * doc/posix-functions/strncasecmp.texi: Likewise.
2882
2883         strings: Don't assume <strings.h> exists.
2884         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
2885         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
2886         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
2887         * doc/posix-headers/strings.texi: Mention the MSVC problem.
2888
2889 2011-09-11  Bruno Haible  <bruno@clisp.org>
2890
2891         dirent: Don't assume <dirent.h> exists.
2892         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
2893         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
2894         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
2895         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
2896
2897 2011-09-11  Bruno Haible  <bruno@clisp.org>
2898
2899         Fix wint_t on MSVC.
2900         * lib/wchar.in.h (wint_t): On MSVC, override it.
2901         * lib/wctype.in.h (wint_t): Likewise.
2902         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
2903         MSVC.
2904         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
2905         * doc/posix-headers/wctype.texi: Likewise.
2906
2907 2011-09-11  Bruno Haible  <bruno@clisp.org>
2908
2909         sys_types: Fix typo.
2910         * lib/sys_types.in.h: Fix typo in comment.
2911         Reported by Paul Eggert.
2912
2913         Support for MSVC compiler: Ensure size_t gets defined.
2914         * modules/strings (Depends-on): Add 'sys_types'.
2915         * modules/sys_uio (Depends-on): Likewise.
2916         * lib/sys_uio.in.h: Update comment.
2917
2918         C++ tests for module 'sys_types'.
2919         * modules/sys_types-c++-tests: New file.
2920         * tests/test-sys_types-c++.cc: New file.
2921
2922         Tests for module 'sys_types'.
2923         * modules/sys_types-tests: New file.
2924         * tests/test-sys_types.c: New file.
2925
2926         New module 'sys_types'.
2927         * lib/sys_types.in.h: New file.
2928         * m4/sys_types_h.m4: New file.
2929         * modules/sys_types: New file.
2930         * doc/posix-headers/sys_types.texi: Mention the new module and the
2931         size_t problem on MSVC 9.
2932
2933 2011-09-11  Bruno Haible  <bruno@clisp.org>
2934
2935         Support for MSVC compiler: Avoid division by a literal 0.
2936         * lib/math.in.h (NAN): Define through a function call also on MSVC.
2937         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
2938         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
2939         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
2940         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
2941         * tests/infinity.h: New file.
2942         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
2943         on MSVC.
2944         * tests/test-ceilf1.c: Include infinity.h.
2945         (main): Use Infinityf.
2946         * tests/test-ceil1.c: Include infinity.h.
2947         (main): Use Infinityd.
2948         * tests/test-ceill.c: Include infinity.h.
2949         (main): Use Infinityl.
2950         * tests/test-dprintf-posix.c: Include infinity.h.
2951         (test_function): Use Infinityd.
2952         * tests/test-floorf1.c: Include infinity.h.
2953         (main): Use Infinityf.
2954         * tests/test-floor1.c: Include infinity.h.
2955         (main): Use Infinityd.
2956         * tests/test-floorl.c: Include infinity.h.
2957         (main): Use Infinityl.
2958         * tests/test-fprintf-posix.c: Include infinity.h.
2959         (test_function): Use Infinityd.
2960         * tests/test-frexp.c: Include infinity.h.
2961         (main): Use Infinityd.
2962         * tests/test-frexpl.c: Include infinity.h.
2963         (main): Use Infinityl.
2964         * tests/test-isfinite.c: Include infinity.h.
2965         (test_isfinitef): Use Infinityf.
2966         (test_isfinited): Use Infinityd.
2967         (test_isfinitel): Use Infinityl.
2968         * tests/test-isinf.c: Include infinity.h.
2969         (test_isinff): Use Infinityf.
2970         (test_isinfd): Use Infinityd.
2971         (test_isinfl): Use Infinityl.
2972         * tests/test-isnan.c: Include infinity.h.
2973         (test_float): Use Infinityf.
2974         (test_double): Use Infinityd.
2975         (test_long_double): Use Infinityl.
2976         * tests/test-isnanf.h: Include infinity.h.
2977         (main): Use Infinityf.
2978         * tests/test-isnand.h: Include infinity.h.
2979         (main): Use Infinityd.
2980         * tests/test-isnanl.h: Include infinity.h.
2981         (main): Use Infinityl.
2982         * tests/test-ldexpl.c: Include infinity.h.
2983         (main): Use Infinityl.
2984         * tests/test-printf-posix.h: Include infinity.h.
2985         (test_function): Use Infinityd.
2986         * tests/test-roundf1.c: Include infinity.h.
2987         (main): Use Infinityf.
2988         * tests/test-round1.c: Include infinity.h.
2989         (main): Use Infinityd.
2990         * tests/test-roundl.c: Include infinity.h.
2991         (main): Use Infinityl.
2992         * tests/test-signbit.c: Include infinity.h.
2993         (test_signbitf): Use Infinityf.
2994         (test_signbitd): Use Infinityd.
2995         (test_signbitl): Use Infinityl.
2996         * tests/test-snprintf-posix.h: Include infinity.h.
2997         (test_function): Use Infinityd, Infinityl.
2998         * tests/test-sprintf-posix.h: Include infinity.h.
2999         (test_function): Use Infinityd, Infinityl.
3000         * tests/test-truncf1.c: Include infinity.h.
3001         (main): Use Infinityf.
3002         * tests/test-trunc1.c: Include infinity.h.
3003         (main): Use Infinityd.
3004         * tests/test-truncl.c: Include infinity.h.
3005         (main): Use Infinityl.
3006         * tests/test-vasnprintf-posix.c: Include infinity.h.
3007         (test_function): Use Infinityd, Infinityl.
3008         * tests/test-vasprintf-posix.c: Include infinity.h.
3009         (test_function): Use Infinityd, Infinityl.
3010         * modules/ceilf-tests (Files): Add tests/infinity.h.
3011         * modules/ceil-tests (Files): Likewise.
3012         * modules/ceill-tests (Files): Likewise.
3013         * modules/dprintf-posix-tests (Files): Likewise.
3014         * modules/floorf-tests (Files): Likewise.
3015         * modules/floor-tests (Files): Likewise.
3016         * modules/floorl-tests (Files): Likewise.
3017         * modules/fprintf-posix-tests (Files): Likewise.
3018         * modules/frexp-tests (Files): Likewise.
3019         * modules/frexp-nolibm-tests (Files): Likewise.
3020         * modules/frexpl-tests (Files): Likewise.
3021         * modules/frexpl-nolibm-tests (Files): Likewise.
3022         * modules/isfinite-tests (Files): Likewise.
3023         * modules/isinf-tests (Files): Likewise.
3024         * modules/isnan-tests (Files): Likewise.
3025         * modules/isnanf-tests (Files): Likewise.
3026         * modules/isnanf-nolibm-tests (Files): Likewise.
3027         * modules/isnand-tests (Files): Likewise.
3028         * modules/isnand-nolibm-tests (Files): Likewise.
3029         * modules/isnanl-tests (Files): Likewise.
3030         * modules/isnanl-nolibm-tests (Files): Likewise.
3031         * modules/ldexpl-tests (Files): Likewise.
3032         * modules/printf-posix-tests (Files): Likewise.
3033         * modules/roundf-tests (Files): Likewise.
3034         * modules/round-tests (Files): Likewise.
3035         * modules/roundl-tests (Files): Likewise.
3036         * modules/signbit-tests (Files): Likewise.
3037         * modules/snprintf-posix-tests (Files): Likewise.
3038         * modules/sprintf-posix-tests (Files): Likewise.
3039         * modules/truncf-tests (Files): Likewise.
3040         * modules/trunc-tests (Files): Likewise.
3041         * modules/truncl-tests (Files): Likewise.
3042         * modules/vasnprintf-posix-tests (Files): Likewise.
3043         * modules/vasprintf-posix-tests (Files): Likewise.
3044         * modules/vdprintf-posix-tests (Files): Likewise.
3045         * modules/vfprintf-posix-tests (Files): Likewise.
3046         * modules/vprintf-posix-tests (Files): Likewise.
3047         * modules/vsnprintf-posix-tests (Files): Likewise.
3048         * modules/vsprintf-posix-tests (Files): Likewise.
3049         * modules/xprintf-posix-tests (Files): Likewise.
3050
3051 2011-09-11  Bruno Haible  <bruno@clisp.org>
3052
3053         Ensure pid_t gets defined.
3054         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
3055         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
3056         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
3057         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
3058         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
3059         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
3060         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
3061         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
3062         * tests/test-fcntl-h.c: Check that pid_t is defined.
3063         * tests/test-sched.c: Likewise.
3064         * tests/test-termios.c: Likewise.
3065         * tests/test-time.c: Likewise.
3066         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
3067         * doc/posix-headers/signal.texi: Likewise.
3068         * doc/posix-headers/sys_types.texi: Likewise.
3069         * doc/posix-headers/time.texi: Likewise.
3070
3071 2011-09-11  Bruno Haible  <bruno@clisp.org>
3072
3073         acl: Fix compilation on Solaris 10 (older version).
3074         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
3075         of ACE_EVERYONE.
3076         * lib/set-mode-acl.c (qset_acl): Likewise.
3077         Reported by Christian Jullien <eligis@orange.fr>.
3078
3079 2011-09-10  Bruno Haible  <bruno@clisp.org>
3080
3081         iconv, unsetenv: Add support for MSVC compiler.
3082         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
3083         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
3084
3085 2011-09-10  Bruno Haible  <bruno@clisp.org>
3086
3087         *printf: Add support for MSVC compiler.
3088         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
3089         handles the exception caused by the %n directive. When cross-compiling,
3090         guess no on native Windows.
3091         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
3092         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
3093         emulate it through vsnprintf.
3094         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
3095         * doc/posix-functions/dprintf.texi: Update documentation regarding
3096         MSVC 9.
3097         * doc/posix-functions/fprintf.texi: Likewise.
3098         * doc/posix-functions/printf.texi: Likewise.
3099         * doc/posix-functions/snprintf.texi: Likewise.
3100         * doc/posix-functions/sprintf.texi: Likewise.
3101         * doc/posix-functions/swprintf.texi: Likewise.
3102         * doc/posix-functions/vdprintf.texi: Likewise.
3103         * doc/posix-functions/vfprintf.texi: Likewise.
3104         * doc/posix-functions/vprintf.texi: Likewise.
3105         * doc/posix-functions/vsnprintf.texi: Likewise.
3106         * doc/posix-functions/vsprintf.texi: Likewise.
3107         * doc/glibc-functions/asprintf.texi: Likewise.
3108         * doc/glibc-functions/obstack_printf.texi: Likewise.
3109         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
3110         * doc/glibc-functions/vasprintf.texi: Likewise.
3111
3112 2011-09-10  Bruno Haible  <bruno@clisp.org>
3113
3114         nocrash: Add support for native Windows.
3115         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
3116
3117 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
3118             Bruno Haible  <bruno@clisp.org>
3119
3120         absolute-header, include-next: Add support for MSVC compiler.
3121         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
3122         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
3123         directory separator in #line directives.
3124         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
3125         recognize also backslash as directory separator in #line directives.
3126
3127 2011-09-08  Jim Meyering  <meyering@redhat.com>
3128
3129         maint.mk: mark the post-release commit log with "maint: " prefix
3130         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
3131         one-line commit-log summary.
3132
3133 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
3134             Bruno Haible  <bruno@clisp.org>
3135
3136         Doc about crypt functions.
3137         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
3138         systems.
3139         * doc/posix-functions/encrypt.texi: Likewise.
3140         * doc/posix-functions/setkey.texi: Likewise.
3141
3142 2011-09-08  Simon Josefsson  <simon@josefsson.org>
3143
3144         * lib/gc.h: Fix copyright header.
3145
3146 2011-09-07  Bruno Haible  <bruno@clisp.org>
3147
3148         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
3149         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
3150         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
3151
3152 2011-09-07  Bruno Haible  <bruno@clisp.org>
3153
3154         openat: Work around compilation error with OSF/1 5.1 DTK cc.
3155         * lib/fopen.c: Use different syntax for include of <stdio.h>.
3156         * lib/freopen.c: Likewise.
3157         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
3158         * lib/lstat.c: Likewise.
3159         * lib/stat.c: Likewise.
3160         * lib/open.c: Use different syntax for include of <fcntl.h>.
3161         * lib/openat.c: Include fcntl.h again, explicitly.
3162
3163 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
3164
3165         parse-datetime: document the newly accepted format
3166         * doc/parse-datetime.texi (Combined date and time of day items):
3167         New section.
3168
3169 2011-09-06  Bruno Haible  <bruno@clisp.org>
3170
3171         acl: Fix a test failure on newer Solaris 10 with ZFS.
3172         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
3173         ENOSYS as no ACL.
3174         Reported by Jim Meyering.
3175
3176 2011-09-06  Bruno Haible  <bruno@clisp.org>
3177
3178         acl: Update for AIX >= 5.3 with NFS.
3179         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
3180         ENOSYS as no ACL.
3181
3182         acl: Fix a test failure on AIX >= 5.3 with NFS.
3183         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
3184         as no ACL.
3185
3186 2011-09-06  Bruno Haible  <bruno@clisp.org>
3187
3188         acl: Fix a test failure on IRIX 6.5 with NFS.
3189         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
3190         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
3191         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
3192         * lib/copy-acl.c (qcopy_acl): Likewise.
3193
3194 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
3195
3196         openat: port to AIX 7.1 with large files
3197         AIX 7.1 does a "#define openat open64at" if large files are in use,
3198         so we can't simply #undef openat.  Use the orig_openat trick (similar
3199         to orig_open in lib/open.c) to work around the problem.  Problem
3200         reported by Kevin Brott for GNU tar, in the thread containing
3201         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
3202         * lib/openat.c (__need_system_fcntl_h): Define first.
3203         Include <fcntl.h> and <sys/types.h> before undefining.
3204         (orig_openat) [HAVE_OPENAT]: New inline function.
3205         (openat) [HAVE_OPENAT]: Do not undef.
3206         (rpl_openat): Use orig_openat, not openat.
3207
3208 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
3209             Bruno Haible  <bruno@clisp.org>
3210
3211         acl: Avoid errors on NonStop Kernel.
3212         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
3213         ENOTSUP errors.
3214
3215 2011-09-05  Bruno Haible  <bruno@clisp.org>
3216
3217         acl: Clean up Solaris code.
3218         * lib/acl-internal.h: Remove no-op #if.
3219         * lib/file-has-acl.c: Likewise.
3220         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
3221         * lib/copy-acl.c (qcopy_acl): Likewise.
3222
3223 2011-09-05  Bruno Haible  <bruno@clisp.org>
3224
3225         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
3226         binaries built on the original Solaris 10.
3227         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
3228         trivial.
3229
3230 2011-09-05  Bruno Haible  <bruno@clisp.org>
3231
3232         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
3233         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
3234         10.
3235         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
3236         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
3237         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
3238         instead of acl_get, facl_get, acl_set, facl_set.
3239
3240 2011-09-05  Bruno Haible  <bruno@clisp.org>
3241
3242         copy-file: Try unit tests on more file systems.
3243         * tests/test-copy-file-1.sh: New file.
3244         * tests/test-copy-file-2.sh: New file.
3245         * modules/copy-file-tests (Files): Add them.
3246         (Makefile.am): Add them to TESTS.
3247
3248         acl: Try unit tests on more file systems.
3249         * tests/test-file-has-acl-1.sh: New file.
3250         * tests/test-file-has-acl-2.sh: New file.
3251         * tests/test-set-mode-acl-1.sh: New file.
3252         * tests/test-set-mode-acl-2.sh: New file.
3253         * tests/test-copy-acl-1.sh: New file.
3254         * tests/test-copy-acl-2.sh: New file.
3255         * modules/acl-tests (Files): Add them.
3256         (Makefile.am): Add them to TESTS.
3257
3258 2011-09-04  Bruno Haible  <bruno@clisp.org>
3259
3260         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
3261         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
3262         10.
3263         (OLD_ALLOW, OLD_DENY): New macros.
3264         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
3265         ACE_ACCESS_ALLOWED_ACE_TYPE.
3266         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
3267         ACE_ACCESS_DENIED_ACE_TYPE.
3268         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
3269         (NEW_ACE_EXECUTE): Fix value.
3270         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
3271         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
3272         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
3273         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
3274         NEW_ACE_SYNCHRONIZE): New macros.
3275         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
3276         instead of acl_fromtext, acl_set, facl_set.
3277         Fixes a coreutils/tests/cp/perm failure.
3278
3279 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
3280
3281         openat: test for fstatat (..., 0) bug
3282         Further testing with tar suggests that fstatat (..., 0)
3283         does not work in general, on AIX 7.1; see
3284         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
3285         So, give up entirely on AIX 7.1's fstatat, and fall back on our
3286         replacement fstatat (which is what older AIX releases were using
3287         anyway).
3288         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
3289         use is now changed to orig_fstatat.  This was probably the right
3290         thing to do anyway.
3291         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
3292         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
3293         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
3294         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
3295         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
3296         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
3297         if the bug is found.
3298
3299         openat: test for fstatat (AT_FDCWD, ..., 0) bug
3300         This tests for another fstatat bug on AIX 7.1:
3301         fstatat (AT_FDCWD, ..., 0) does not work.  See
3302         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
3303         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
3304         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
3305         (rpl_fstatat): Adjust so that it works around either (or both)
3306         bugs if present.
3307         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
3308
3309 2011-09-03  Karl Berry  <karl@gnu.org>
3310
3311         * doc/regex.texi (Character Class Operators): Avoid literal ":"
3312         in index entries.
3313
3314 2011-09-02  Bruno Haible  <bruno@clisp.org>
3315
3316         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
3317         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
3318         values of AR, ARFLAGS, RANLIB.
3319         Reported by John W. Eaton <jwe@gnu.org> for Octave.
3320
3321 2011-09-02  Bruno Haible  <bruno@clisp.org>
3322
3323         Find 'ar' program that fits with --host argument.
3324         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
3325
3326 2011-09-02  Bruno Haible  <bruno@clisp.org>
3327
3328         tests: init.sh: Support any non-GNU diff.
3329         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
3330         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
3331         Solaris 8.
3332
3333 2011-09-02  Bruno Haible  <bruno@clisp.org>
3334
3335         tests: init.sh: work also with any non-GNU diff that supports -u
3336         * tests/init.sh: Relax check for diff -u support.
3337         Rather than checking for GNU diff via --version, simply check
3338         for support for -u itself.  Useful at least on OpenBSD 4.9,
3339         AIX 7.1, IRIX 6.5, and Solaris 10.
3340
3341 2011-09-01  Bruno Haible  <bruno@clisp.org>
3342
3343         strtoimax, strtoumax: Document problem on HP-UX 11.
3344         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
3345         * doc/posix-functions/strtoumax.texi: Likewise.
3346
3347 2011-09-01  Bruno Haible  <bruno@clisp.org>
3348
3349         strtoumax: Avoid link error on OSF/1 with DTK cc.
3350         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
3351         defined as a function.
3352         * modules/strtoumax (Depends-on, configure.ac): Test only whether
3353         strtoumax is defined, not whether it is declared.
3354
3355 2011-09-01  Bruno Haible  <bruno@clisp.org>
3356
3357         strtoimax: Avoid link error on OSF/1 with DTK cc.
3358         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
3359         defined as a function.
3360         * modules/strtoimax (Depends-on, configure.ac): Test only whether
3361         strtoimax is defined, not whether it is declared.
3362
3363 2011-09-01  Bruno Haible  <bruno@clisp.org>
3364
3365         imaxdiv: Avoid link error on OSF/1 with DTK cc.
3366         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
3367         as a function.
3368         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
3369         whether it is declared.
3370
3371 2011-09-01  Bruno Haible  <bruno@clisp.org>
3372
3373         imaxabs: Avoid link error on OSF/1 with DTK cc.
3374         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
3375         as a function.
3376         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
3377         whether it is declared.
3378
3379 2011-09-01  Bruno Haible  <bruno@clisp.org>
3380
3381         Tests for module 'strtoumax'.
3382         * modules/strtoumax-tests: New file.
3383         * tests/test-strtoumax.c: New file.
3384
3385         Tests for module 'strtoimax'.
3386         * modules/strtoimax-tests: New file.
3387         * tests/test-strtoimax.c: New file.
3388
3389         Tests for module 'imaxdiv'.
3390         * modules/imaxdiv-tests: New file.
3391         * tests/test-imaxdiv.c: New file.
3392
3393         Tests for module 'imaxabs'.
3394         * modules/imaxabs-tests: New file.
3395         * tests/test-imaxabs.c: New file.
3396
3397 2011-09-01  Bruno Haible  <bruno@clisp.org>
3398
3399         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
3400         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
3401         pthread_create.
3402
3403 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
3404
3405         openat: work around AIX 7.1 fstatat issue
3406         This should fix the problem that was not properly fixed
3407         in the previous change, dated 2011-08-30.
3408         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
3409         __need_system_stat_h defined.
3410         (orig_fstatat) [HAVE_FSTATAT]: New function.
3411         (rpl_fstatat): Go back to the old way of doing things,
3412         except call orig_fstatat instead of fstatat.
3413         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
3414         Remove unnecessary check whether fstatat fills in st_size etc.
3415
3416 2011-09-01  Bruno Haible  <bruno@clisp.org>
3417
3418         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
3419         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
3420         just include the system's header.
3421
3422 2011-08-31  Jim Meyering  <meyering@redhat.com>
3423
3424         tests: avoid spurious assertion failure in test-float.c on ppc64
3425         * tests/test-float.c (test_long_double): Comment out an assertion,
3426         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
3427         with gcc-4.4.4.
3428
3429         maint: indent with spaces, not TABs
3430         I need to get in the habit of running gnulib's "make check".
3431         Both of these would have been caught.
3432         * m4/largefile.m4: Indent with spaces, not TABs.
3433         * lib/parse-datetime.y (iso_8601_time): Likewise.
3434         Spotted by Pádraig Brady.
3435
3436         test-parse-datetime.c: accommodate a relatively strict gcc warning
3437         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
3438         to avoid a warning from gcc's -Werror=missing-declarations.
3439         Insert a few spaces-before-funcall-parenthesis.
3440
3441 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
3442
3443         parse-datetime: accept ISO 8601 date and time rep with "T" separator
3444         The parser now accepts ISO 8601 date-time strings with "T" as the
3445         separator.  It has long parsed dates like "2004-02-29 16:21:42"
3446         with a space between the date and time strings.  Now it also parses
3447         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
3448         variants like "2004-02-29T16:21:42.333-07:00"
3449         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
3450         of day representation using the 'T' separator character.
3451         * doc/parse-datetime.texi (General date syntax): replace use of
3452         deprecated --iso-8601 option with --rfc-3339 in example of date
3453         command output formats that can be parsed.
3454         * tests/test-parse-datetime.c (tm_diff): New function, taken from
3455         lib/parse-datetime.y.
3456         (gmt_offset): New function.
3457         (main): Add additional test cases to validate ISO8601 extended
3458         date and time of day parsing.
3459
3460 2011-08-31  Bruno Haible  <bruno@clisp.org>
3461
3462         freopen: Documentation.
3463         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
3464         name.
3465         Reported by Claudio Bley <claudio.bley@gmail.com>.
3466
3467 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
3468
3469         freopen: Don't crash if the filename argument is NULL.
3470         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
3471         NULL.
3472
3473 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
3474
3475         openat: work around AIX 7.1 fstatat bug
3476         Problem reported by Kevin Brott for GNU tar, in the thread containing
3477         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
3478         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
3479         FSTATAT_ST_SIZE_ETC_BROKEN.
3480         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
3481         rpl_fstatat.
3482         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
3483         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
3484         AC_CHECK_FUNCS_ONCE for fstatat.
3485         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
3486         fchmodat, mkdirat, openat and unlinkat.
3487
3488 2011-08-30  Bruno Haible  <bruno@clisp.org>
3489
3490         Avoid endless recursions if config.h includes some header files.
3491         * lib/fopen.c (__need_FILE): Define already before including config.h.
3492         * lib/freopen.c (__need_FILE): Likewise.
3493         * lib/open.c (__need_system_fcntl_h): Likewise.
3494         * lib/stat.c (__need_system_sys_stat_h): Likewise.
3495         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
3496         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
3497
3498 2011-08-25  Karl Berry  <karl@gnu.org>
3499
3500         * config/srclist.txt (ylwrap): new try.
3501         * build-aux/ylwrap: new file.
3502
3503 2011-08-23  Bruno Haible  <bruno@clisp.org>
3504
3505         tmpdir: Use a good default directory on native Windows.
3506         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
3507         (P_tmpdir): Default to _P_tmpdir on native Windows.
3508         (path_search): On native Windows, try the value returned by GetTempPath
3509         before trying P_tmpdir.
3510         * modules/tmpdir (Depends-on): Add pathmax.
3511         Suggested by John Darrington <john@darrington.wattle.id.au>.
3512
3513 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
3514
3515         doc: fix typo in README-release
3516         * top/README-release: Capitalize first word of a sentence.
3517
3518 2011-08-19  Jim Meyering  <meyering@redhat.com>
3519
3520         fts: do not exhaust memory when processing million-entry directories
3521         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
3522         directory would require about 256*N bytes of memory.  Thus, it was
3523         easy to construct a directory too large to be processed by any of
3524         those tools.  With this change, fts' maximum memory utilization is
3525         now limited to around 30MB.
3526         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
3527         (fts_read): When we've processed the final entry (i.e., when
3528         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
3529         using the parent entry to read any remaining entries.  Dispatch
3530         depending on what fts_build returns:
3531         - NULL+stop, aka failure: stop
3532         - NULL otherwise: move up in the dir hierarchy
3533         - non-NULL: handle this new entry
3534         (fts_build): Declare and use new local, continue_readdir.
3535         Prepare to be called from fts_read, when the entries
3536         from a partially-read directory have just been exhausted.
3537         In that case, we'll skip the opendir and instead use the parent's
3538         fts_dirp and derive dir_fd from that.
3539         Finally, in the readdir loop, if we read max_entries entries,
3540         exit the loop ensuring *not* to call closedir.  This is required
3541         so that fts_dirp can be reused on a subsequent call.
3542         Prompted by Ben England's report of memory exhaustion in find
3543         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
3544
3545         maint: fts: move decl of `dp' down into while loop; split a long line
3546         * lib/fts.c (fts_build): No semantic change.
3547
3548         fts: add/use new struct member, fts_dirp
3549         We are about to use this to manage any directory with
3550         too many entries to read all of them into memory at once.
3551         To do that, we'll need to save the DIR* pointer in each
3552         affected FTSENT struct.
3553         * lib/fts_.h: Include <dirent.h>.
3554         (struct FTSENT) [fts_dirp]: New member.
3555         * lib/fts.c (closedir_and_clear): Define.
3556         Use it in place of closedir so that we are sure to
3557         clear the new fts_dirp member when done with it.
3558         (fts_alloc): Initialize the new member.
3559         (fts_lfree): Free, if needed.
3560
3561         maint: fts: give __opendir2 a new parameter and rename
3562         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
3563         than surreptitiously using sole caller's "dir_fd".
3564         (fts_opendir): Rename from __opendir2.
3565
3566         maint: fts.c: remove __opendir2's now-unused parameter, oflag
3567         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
3568
3569         maint: fts.c: correct off-by-one indentation
3570         * lib/fts.c (fts_build): Correct indentation, change style
3571         of a couple of block comments, and bracing style.
3572
3573         maint: fts.c: move __opendir2 #define "up" out of function body
3574         * lib/fts.c (__opendir2): Move "up".  No semantic change.
3575
3576         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
3577         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
3578         out for a long time and besides was useful only on BSD systems.
3579
3580 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
3581
3582         regex: port to Stratus OpenVOS
3583         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
3584         define to empty, rather than attempting nonportable optimizations.
3585         Problem reported by Paul Green in:
3586         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
3587         and fix suggested by Eric Blake in:
3588         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
3589
3590 2011-08-17  Eric Blake  <eblake@redhat.com>
3591
3592         getcwd: fix test failures on mingw
3593         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
3594         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
3595         test if long directory cannot be created, and allow mingw errno.
3596
3597         getcwd-lgpl: fix m4 to match relaxed test for BSD
3598         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
3599         (gl_FUNC_GETCWD_SIGNATURE): New macro.
3600         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
3601         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
3602         signature problem.
3603
3604         getcwd: fix compilation on mingw64
3605         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
3606         getcwd.
3607         Reported by Marc-André Lureau.
3608
3609         pipe2: silence compiler warning
3610         * lib/pipe2.c (pipe2): Hide label if it is not used.
3611
3612 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
3613
3614         relocatable-prog: fix link error
3615         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
3616         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
3617         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
3618         into modules/relocatable-lib without noticing that
3619         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
3620         also needs to build relocatable.c.
3621
3622 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
3623
3624         getaddrinfo: fix sh typo in gai_strerrorA decl checking
3625         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
3626         shell code: it contained a 'break' that was not in a loop.
3627         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
3628         via a shell-language loop; this may have been true in old Autoconf
3629         versions, but it's not true in Autoconf 2.68.  I found this bug
3630         when testing coreutils git on Solaris 8, whose shell complains
3631         about the syntax error.
3632
3633 2011-08-12  Simon Josefsson  <simon@josefsson.org>
3634
3635         * lib/base64.c: Fix comment to reference RFC 4648.
3636         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
3637         <gvtulder@gmail.com>.
3638
3639 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
3640
3641         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
3642
3643         po/Makefile.in.in: fix make -q problem
3644         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
3645         rule, since there's no file named 'check-macro-version' and its
3646         use as a file breaks make -q.
3647         (all): Don't depend on check-macro-version.
3648         (CHECK_MACRO_VERSION): New macro.
3649         (stamp-po): Use it.
3650
3651         configmake: fix make -q problem
3652         * modules/configmake (configmake.h): Update configmake.h's time stamp
3653         even if the file does not change.  Otherwise, 'make -q' fails.
3654         Problem reported by Simon Josefsson in
3655         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
3656
3657 2011-08-11  Jim Meyering  <meyering@redhat.com>
3658
3659         git-version-gen: correct the advice in a comment
3660         * build-aux/git-version-gen: Correct comment.
3661         Don't recommend to list .tarball-version in .gitignore.
3662
3663 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
3664
3665         base64: fix off-by-one buffer size bug
3666         Problem and (trivial) fix reported by Gijs van Tulder in
3667         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
3668         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
3669         * tests/test-base64.c (main): Catch the bug.
3670
3671 2011-08-10  Eric Blake  <eblake@redhat.com>
3672
3673         closein: correct comments
3674         * lib/closein.c (close_stdin): Improve comments.
3675
3676 2011-08-09  Bruno Haible  <bruno@clisp.org>
3677
3678         More tests for 'fseeko'.
3679         * tests/test-fseeko3.c: New file, from Eric Blake.
3680         * tests/test-fseeko3.sh: New file.
3681         * modules/fseeko-tests (Files): Add them.
3682         (TESTS): Add test-fseeko3.sh.
3683         (check_PROGRAMS): Add test-fseeko3.
3684
3685 2011-08-09  Eric Blake  <eblake@redhat.com>
3686
3687         fseeko: remove unneeded hack
3688         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
3689
3690         fseeko: fix bug on glibc
3691         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
3692         Reported by John W. Eaton.
3693
3694 2011-08-08  Bruno Haible  <bruno@clisp.org>
3695
3696         unictype/base: Fix interoperability with preinstalled libunistring.
3697         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
3698         Reported by Simon Josefsson.
3699
3700 2011-08-08  Bruno Haible  <bruno@clisp.org>
3701
3702         iswblank: Detect declaration correctly.
3703         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
3704         AC_CHECK_DECLS invocation.
3705
3706 2011-08-08  Bruno Haible  <bruno@clisp.org>
3707
3708         tcgetsid: Detect declaration correctly.
3709         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
3710         AC_CHECK_DECLS invocation.
3711         Reported by Simon Josefsson.
3712
3713 2011-08-08  Eric Blake  <eblake@redhat.com>
3714
3715         largefile: fix typo that regressed large file support
3716         * modules/largefile (configure.ac-early): Fix section name.
3717
3718 2011-08-06  Karl Berry  <karl@gnu.org>
3719
3720         * MODULES.html.sh (func_all_files): _Noreturn is no longer
3721         a separate module.
3722
3723 2011-08-05  Simon Josefsson  <simon@josefsson.org>
3724
3725         openat: Fix warnings and commens when building unlinkat.c on Hurd.
3726         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
3727         get prototype for free.
3728
3729 2011-08-04  Bruno Haible  <bruno@clisp.org>
3730
3731         Tests for module 'pathmax'.
3732         * modules/pathmax-tests: New file.
3733         * tests/test-pathmax.c: New file.
3734
3735         canonicalize-lgpl: Support larger filenames on the Hurd.
3736         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
3737         Reported by Paul Eggert.
3738
3739         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
3740         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
3741         * lib/chdir-long.h: Include pathmax.h.
3742         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
3743         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
3744         (PATH_MAX): Remove code that is done by pathmax.h.
3745         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
3746         * lib/tmpfile.c: Add a comment.
3747         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
3748         * modules/chdir-long (Depends-on): Add pathmax.
3749         * modules/getcwd (Depends-on): Add pathmax.
3750         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
3751         is not defined.
3752         * doc/posix-headers/limits.texi: Mention the pathmax module.
3753         * NEWS: Mention the change.
3754
3755 2011-08-02  Bruno Haible  <bruno@clisp.org>
3756
3757         pthread_sigmask: Actually use results of gl_THREADLIB.
3758         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
3759         gl_THREADLIB, not gl_[]THREADLIB.
3760         Reported by Eric Blake.
3761
3762 2011-08-02  Jim Meyering  <meyering@redhat.com>
3763
3764         maint.mk: relax the default _gl_TS_function_match regexp
3765         * top/maint.mk (_gl_TS_function_match): Don't require at least one
3766         space between function name and "(" in an "extern" declaration.
3767         That would fail to match a decl with no space there: extern void foo();
3768
3769 2011-07-31  Iain Nicol  <iain@thenicols.net>
3770
3771         git-version-gen: document that EXTRA_DIST must include .version
3772         * build-aux/git-version-gen: In the how-to-use comment, document
3773         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
3774         will fail when run from an unpacked distribution tarball.
3775
3776 2011-08-01  Bruno Haible  <bruno@clisp.org>
3777
3778         wctype-h: Fix last change.
3779         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
3780         REPLACE_TOWLOWER to 0.
3781         Reported by Sam Steingold <sds@gnu.org>.
3782
3783 2011-07-31  Bruno Haible  <bruno@clisp.org>
3784
3785         frexpl: Update autoconf test.
3786         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
3787         according to changes of 2011-06-20.
3788
3789 2011-07-31  Bruno Haible  <bruno@clisp.org>
3790
3791         sys_utsname: Add support for Minix.
3792         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
3793         <sys/utsname.h>.
3794         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
3795         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
3796
3797 2011-07-31  Bruno Haible  <bruno@clisp.org>
3798
3799         strings: Add support for Minix.
3800         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
3801         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
3802         * doc/posix-headers/strings.texi: Document the Minix problem.
3803
3804 2011-07-31  Bruno Haible  <bruno@clisp.org>
3805
3806         wctype-h: Add support for Minix.
3807         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
3808         REPLACE_TOWLOWER.
3809         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
3810         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
3811         REPLACE_ISWCNTRL.
3812
3813 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
3814
3815         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
3816         This is a performance improvement for 64-bit hosts: it causes the
3817         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
3818
3819 2011-07-31  Bruno Haible  <bruno@clisp.org>
3820
3821         stdioext: Add support for Minix.
3822         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
3823         * lib/fpurge.c (fpurge): Likewise.
3824         * lib/freadahead.c (freadahead): Likewise.
3825         * lib/freadable.c (freadable): Likewise.
3826         * lib/freading.c (freading): Likewise.
3827         * lib/freadptr.c (freadptr): Likewise.
3828         * lib/freadseek.c (freadptrinc): Likewise.
3829         * lib/fseeko.c (rpl_fseeko): Likewise.
3830         * lib/fseterr.c (fseterr): Likewise.
3831         * lib/fwritable.c (fwritable): Likewise.
3832         * lib/fwriting.c (fwriting): Likewise.
3833         * lib/fflush.c (clear_ungetc_buffer): Update comment.
3834         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
3835
3836 2011-07-31  Bruno Haible  <bruno@clisp.org>
3837
3838         errno: Port to Minix.
3839         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
3840         ECONNABORTED are defined.
3841         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
3842         GNULIB_defined_ECONNABORTED): New macros.
3843         * lib/strerror-override.h (strerror_override): Test also
3844         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
3845         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
3846         ECONNABORTED.
3847         * doc/posix-headers/errno.texi: Mention the Minix problem.
3848
3849 2011-07-31  Bruno Haible  <bruno@clisp.org>
3850
3851         Work around declaration collisions on Minix.
3852         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
3853         defined, set REPLACE_MBSINIT.
3854         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
3855         defined, set REPLACE_MBRTOWC.
3856         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
3857         set REPLACE_MBRLEN.
3858         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
3859         defined, set REPLACE_MBSRTOWCS.
3860         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
3861         defined, set REPLACE_WCRTOMB.
3862         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
3863         defined, set REPLACE_WCSRTOMBS.
3864
3865 2011-07-31  Bruno Haible  <bruno@clisp.org>
3866
3867         Add support for Minix with ACK compiler.
3868         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
3869         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
3870         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
3871
3872 2011-07-31  Bruno Haible  <bruno@clisp.org>
3873
3874         Documentation about Minix.
3875         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
3876         * doc/glibc-headers/*.texi: Likewise.
3877         * doc/posix-functions/*.texi: Likewise.
3878         * doc/glibc-functions/*.texi: Likewise.
3879
3880 2011-07-31  Bruno Haible  <bruno@clisp.org>
3881
3882         snippet/warn-on-use: Fix indentation.
3883         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
3884
3885 2011-07-25  Jim Meyering  <meyering@redhat.com>
3886
3887         tests: test-update-copyright.sh: remove unnecessary "rm" commands
3888         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
3889         commands.
3890
3891 2011-07-27  Jim Meyering  <meyering@redhat.com>
3892
3893         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
3894         * top/maint.mk (gl_extract_significant_defines_): Now that
3895         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
3896         gnulib/lib/signal.in.h, and now that we recommend to
3897         define-if-undefined those two symbols in application code,
3898         we must filter them out of the "significant" list.
3899         This avoids a "make syntax-check" failure in coreutils.
3900
3901 2011-07-26  Eric Blake  <eblake@redhat.com>
3902
3903         warnings: add comments about previous patch
3904         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
3905         * m4/include_next.m4: Likewise.
3906         * m4/warn-on-use.m4: Likewise.
3907         * m4/warnings.m4: Likewise, and simplify use.
3908         Suggested by Stefano Lattarini.
3909
3910         include-next, warnings: support older autoconf
3911         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
3912         AS_VAR_PUSHDEF in a way that works with older autoconf.
3913         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
3914         Reported by Daniel P. Berrange.
3915
3916 2011-07-25  Bruno Haible  <bruno@clisp.org>
3917
3918         fseek, ftell: Fix doc.
3919         * doc/posix-functions/fseek.texi: Reword statement about
3920         AC_SYS_LARGEFILE.
3921         * doc/posix-functions/ftell.texi: Likewise.
3922
3923 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
3924             Bruno Haible  <bruno@clisp.org>
3925
3926         Add dependencies to the 'largefile' module.
3927         * modules/fopen (Depends-on): Add 'largefile'.
3928         * modules/freopen (Depends-on): Likewise.
3929         * modules/fseeko (Depends-on): Likewise.
3930         * modules/ftello (Depends-on): Likewise.
3931         * modules/glob (Depends-on): Likewise.
3932         * modules/lseek (Depends-on): Likewise.
3933         * modules/lstat (Depends-on): Likewise.
3934         * modules/mkostemp (Depends-on): Likewise.
3935         * modules/mkostemps (Depends-on): Likewise.
3936         * modules/mkstemp (Depends-on): Likewise.
3937         * modules/mkstemps (Depends-on): Likewise.
3938         * modules/open (Depends-on): Likewise.
3939         * modules/openat (Depends-on): Likewise.
3940         * modules/pread (Depends-on): Likewise.
3941         * modules/pwrite (Depends-on): Likewise.
3942         * modules/scandir (Depends-on): Likewise.
3943         * modules/stat (Depends-on): Likewise.
3944         * modules/tmpfile (Depends-on): Likewise.
3945         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
3946         since the containing module now depends on the largefile module.
3947         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
3948         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
3949         off_t is fixed by gnulib.
3950         * doc/posix-functions/freopen.texi: Likewise.
3951         * doc/posix-functions/fseeko.texi: Likewise.
3952         * doc/posix-functions/fstatat.texi: Likewise.
3953         * doc/posix-functions/ftello.texi: Likewise.
3954         * doc/posix-functions/glob.texi: Likewise.
3955         * doc/posix-functions/lseek.texi: Likewise.
3956         * doc/posix-functions/lstat.texi: Likewise.
3957         * doc/posix-functions/mkstemp.texi: Likewise.
3958         * doc/posix-functions/open.texi: Likewise.
3959         * doc/posix-functions/openat.texi: Likewise.
3960         * doc/posix-functions/pread.texi: Likewise.
3961         * doc/posix-functions/pwrite.texi: Likewise.
3962         * doc/posix-functions/scandir.texi: Likewise.
3963         * doc/posix-functions/stat.texi: Likewise.
3964         * doc/posix-functions/tmpfile.texi: Likewise.
3965         * doc/glibc-functions/mkostemp.texi: Likewise.
3966         * doc/glibc-functions/mkostemps.texi: Likewise.
3967         * doc/glibc-functions/mkstemps.texi: Likewise.
3968
3969 2011-07-25  Bruno Haible  <bruno@clisp.org>
3970
3971         fcntl: Move AC_LIBOBJ invocation to module description.
3972         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
3973         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
3974
3975         fcntl: Remove call-in from fchdir.m4.
3976         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
3977         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
3978
3979         dup3: Remove potential call-in from fchdir.m4.
3980         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
3981         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
3982
3983         dup2: Move AC_LIBOBJ invocation to module description.
3984         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
3985         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
3986         Don't invoke AC_LIBOBJ.
3987         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
3988
3989         dup2: Remove call-in from fchdir.m4.
3990         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
3991         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
3992
3993         fclose: Move AC_LIBOBJ invocation to module description.
3994         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
3995         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
3996         to 1.
3997         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
3998
3999         fclose: Remove call-in from close.m4.
4000         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
4001         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
4002
4003         close: Move AC_LIBOBJ invocation to module description.
4004         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
4005         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
4006         1.
4007         * modules/close (configure.ac): Invoke AC_LIBOBJ.
4008
4009         close: Remove call-in from fchdir.m4.
4010         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
4011         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
4012
4013         open: Move AC_LIBOBJ invocation to module description.
4014         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
4015         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
4016         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
4017
4018         open: Remove call-in from fchdir.m4.
4019         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
4020         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
4021
4022         fchdir: Start to remove gl_REPLACE_* idiom.
4023         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
4024         (gl_FUNC_FCHDIR): Invoke it.
4025
4026 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
4027
4028         * lib/ftell.c (ftell): Comment out cast.
4029
4030         close: use gl_REPLACE_FCLOSE only if defined
4031         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
4032         is defined.  The close module doesn't depend on the fclose module
4033         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
4034         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
4035         I reproduced the problem with "./gnulib-tool --test close sys_socket".
4036
4037 2011-07-24  Jim Meyering  <meyering@redhat.com>
4038
4039         test-select.h: avoid warning when using gcc's -Wmissing-declarations
4040         * tests/test-select.h (test_function): Declare as "static".
4041
4042 2011-07-24  Bruno Haible  <bruno@clisp.org>
4043
4044         doc: Mention the effects of AC_SYS_LARGEFILE.
4045         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
4046         on this function.
4047         * doc/posix-functions/aio_error.texi: Likewise.
4048         * doc/posix-functions/aio_fsync.texi: Likewise.
4049         * doc/posix-functions/aio_read.texi: Likewise.
4050         * doc/posix-functions/aio_return.texi: Likewise.
4051         * doc/posix-functions/aio_suspend.texi: Likewise.
4052         * doc/posix-functions/aio_write.texi: Likewise.
4053         * doc/posix-functions/fgetpos.texi: Likewise.
4054         * doc/posix-functions/fopen.texi: Likewise.
4055         * doc/posix-functions/freopen.texi: Likewise.
4056         * doc/posix-functions/fsetpos.texi: Likewise.
4057         * doc/posix-functions/fstatvfs.texi: Likewise.
4058         * doc/posix-functions/ftruncate.texi: Likewise.
4059         * doc/posix-functions/ftw.texi: Likewise.
4060         * doc/posix-functions/getrlimit.texi: Likewise.
4061         * doc/posix-functions/glob.texi: Likewise.
4062         * doc/posix-functions/lio_listio.texi: Likewise.
4063         * doc/posix-functions/lockf.texi: Likewise.
4064         * doc/posix-functions/mkstemp.texi: Likewise.
4065         * doc/posix-functions/mmap.texi: Likewise.
4066         * doc/posix-functions/nftw.texi: Likewise.
4067         * doc/posix-functions/openat.texi: Likewise.
4068         * doc/posix-functions/opendir.texi: Likewise.
4069         * doc/posix-functions/posix_fadvise.texi: Likewise.
4070         * doc/posix-functions/posix_fallocate.texi: Likewise.
4071         * doc/posix-functions/pread.texi: Likewise.
4072         * doc/posix-functions/pwrite.texi: Likewise.
4073         * doc/posix-functions/readdir.texi: Likewise.
4074         * doc/posix-functions/readdir_r.texi: Likewise.
4075         * doc/posix-functions/rewinddir.texi: Likewise.
4076         * doc/posix-functions/scandir.texi: Likewise.
4077         * doc/posix-functions/seekdir.texi: Likewise.
4078         * doc/posix-functions/setrlimit.texi: Likewise.
4079         * doc/posix-functions/statvfs.texi: Likewise.
4080         * doc/posix-functions/telldir.texi: Likewise.
4081         * doc/posix-functions/tmpfile.texi: Likewise.
4082         * doc/posix-functions/truncate.texi: Likewise.
4083         * doc/glibc-functions/fallocate.texi: Likewise.
4084         * doc/glibc-functions/fstatfs.texi: Likewise.
4085         * doc/glibc-functions/fts_children.texi: Likewise.
4086         * doc/glibc-functions/fts_read.texi: Likewise.
4087         * doc/glibc-functions/getdirentries.texi: Likewise.
4088         * doc/glibc-functions/mkostemp.texi: Likewise.
4089         * doc/glibc-functions/mkostemps.texi: Likewise.
4090         * doc/glibc-functions/mkstemps.texi: Likewise.
4091         * doc/glibc-functions/preadv.texi: Likewise.
4092         * doc/glibc-functions/pwritev.texi: Likewise.
4093         * doc/glibc-functions/sendfile.texi: Likewise.
4094         * doc/glibc-functions/statfs.texi: Likewise.
4095
4096 2011-07-24  Bruno Haible  <bruno@clisp.org>
4097
4098         doc: Fix typo.
4099         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
4100
4101 2011-07-24  Bruno Haible  <bruno@clisp.org>
4102
4103         doc: Mention fsusage.
4104         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
4105
4106 2011-07-24  Bruno Haible  <bruno@clisp.org>
4107
4108         doc: Mention new glibc headers and functions.
4109         * doc/glibc-headers/gshadow.texi: New file.
4110         * doc/glibc-functions/endsgent.texi: New file.
4111         * doc/glibc-functions/fgetsgent.texi: New file.
4112         * doc/glibc-functions/fgetsgent_r.texi: New file.
4113         * doc/glibc-functions/getsgent.texi: New file.
4114         * doc/glibc-functions/getsgent_r.texi: New file.
4115         * doc/glibc-functions/getsgnam.texi: New file.
4116         * doc/glibc-functions/getsgnam_r.texi: New file.
4117         * doc/glibc-functions/putsgent.texi: New file.
4118         * doc/glibc-functions/setsgent.texi: New file.
4119         * doc/glibc-functions/sgetsgent.texi: New file.
4120         * doc/glibc-functions/sgetsgent_r.texi: New file.
4121         * doc/glibc-functions/malloc_info.texi: New file.
4122         * doc/glibc-functions/preadv.texi: New file.
4123         * doc/glibc-functions/pwritev.texi: New file.
4124         * doc/glibc-functions/register_printf_modifier.texi: New file.
4125         * doc/glibc-functions/register_printf_specifier.texi: New file.
4126         * doc/glibc-functions/register_printf_type.texi: New file.
4127         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
4128         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
4129         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
4130         * doc/glibc-functions/pthread_getname_np.texi: New file.
4131         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
4132         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
4133         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
4134         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
4135         * doc/glibc-functions/pthread_setname_np.texi: New file.
4136         * doc/glibc-functions/pthread_sigqueue.texi: New file.
4137         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
4138         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
4139         * doc/glibc-functions/qsort_r.texi: New file.
4140         * doc/glibc-functions/quick_exit.texi: New file.
4141         * doc/glibc-functions/syncfs.texi: New file.
4142         * doc/gnulib.texi: Include them.
4143         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
4144         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
4145         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
4146         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
4147         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
4148         * doc/glibc-functions/execvpe.texi: Likewise.
4149
4150 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
4151
4152         ftell: don't include <unistd.h>
4153         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
4154         guaranteed to define off_t, and the ftell module depends on the
4155         stdio module.
4156
4157         ftell: do not assume wraparound signed arithmetic
4158         * lib/ftell.c: Include <limits.h>.
4159         (ftell): Don't assume wraparound signed arithmetic.
4160
4161 2011-07-24  Bruno Haible  <bruno@clisp.org>
4162
4163         close: No longer depend on module 'fclose'.
4164         * modules/close (Depends-on): Remove fclose.
4165         * NEWS: Mention the change.
4166         Suggested by Sam Steingold <sds@gnu.org>.
4167
4168 2011-07-24  Bruno Haible  <bruno@clisp.org>
4169
4170         fsusage: Enable large volume support on AIX >= 5.2.
4171         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
4172         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
4173         instead of STAT_STATVFS.
4174         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
4175
4176         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
4177         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
4178         f_blocks field only on MacOS X.
4179
4180         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
4181         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
4182         * modules/fsusage (Depends-on): Add largefile.
4183
4184 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
4185
4186         * README: Modernize discussion of signed integers.
4187         Assuming overflow wraparound is no longer safe.
4188         Mention ones' complement and signed magnitude.
4189
4190 2011-07-22  Bruno Haible  <bruno@clisp.org>
4191
4192         select tests, pselect tests: Refactor.
4193         * tests/test-select.h: New file, extracted from tests/test-select.c.
4194         (select_fn): New type.
4195         (test, do_select, do_select_nowait, do_select_wait, test_tty,
4196         test_connect_first, test_accept_first, test_pair, test_socket_pair,
4197         test_pipe): Add my_select argument.
4198         (test_function): Renamed from main. Add my_select argument.
4199         * tests/test-select.c: Move most code to tests/test-select.h. Include
4200         test-select.h.
4201         * modules/select-tests (Files): Add tests/test-select.h.
4202         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
4203         (my_select, main): New functions.
4204         * modules/pselect-tests (Files): Add tests/test-select.h,
4205         tests/macros.h, tests/signature.h.
4206         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
4207         (configure.ac): Check for <sys/wait.h>.
4208
4209 2011-07-22  Bruno Haible  <bruno@clisp.org>
4210
4211         sys_select tests: Check the signature of FD_*.
4212         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
4213         signature tests from here...
4214         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
4215         here.
4216         * modules/sys_select-tests (Files): Add tests/signature.h.
4217
4218 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
4219
4220         largefile: new module, replacing large-inode
4221         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
4222         * MODULES.html.sh: Add largefile, remove large-inode.
4223         * modules/largefile, m4/largefile.m4: New files.
4224         * modules/large-inode, m4/large-inode.m4: Remove.
4225
4226         fsusage: port to MacOS X 10.7 with 4 TiB file systems
4227         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
4228         implementations that use only 32 bits to count blocks.
4229         On typical hosts with 1024-byte blocks, this fails with file
4230         systems as small as 4 TiB.  Problem reported by Herb Wartens
4231         <http://debbugs.gnu.org/9140> and this should also fix a similar
4232         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
4233
4234         large-inode: New module
4235         * MODULES.html.sh: Add it.
4236         * modules/large-inode, m4/large-inode.m4: New files.
4237
4238         extensions: Enable extensions on MacOS X 10.5 and later.
4239         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
4240
4241 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
4242
4243         file-has-acl: use acl_extended_file_nofollow if available
4244         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
4245         (acl_extended_file): New macro.
4246         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
4247         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
4248
4249 2011-07-21  Bruno Haible  <bruno@clisp.org>
4250
4251         Declare system functions in a way that works with C++.
4252         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
4253         declare fdopendir as extern "C".
4254         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
4255         declare frexpl as extern "C".
4256         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
4257         declare gai_strerror as extern "C".
4258         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
4259         programs, declare gai_strerror as extern "C".
4260         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
4261         declare getlogin_r as extern "C".
4262         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
4263         as extern "C".
4264         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
4265         declare ldexpl as extern "C".
4266         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
4267         as extern "C".
4268         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
4269         program, declare getmntinfo as extern "C".
4270         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
4271         stpncpy as extern "C".
4272         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
4273         program, declare __xpg_strerror_r as extern "C".
4274         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
4275         strndup as extern "C".
4276         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
4277         declare memset and bzero as extern "C".
4278         Reported by Sam Steingold <sds@gnu.org>.
4279
4280 2011-07-12  Jim Meyering  <meyering@redhat.com>
4281
4282         maint.mk: prohibit inclusion of "verify.h" without use
4283         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
4284
4285 2011-07-19  Pádraig Brady  <P@draigBrady.com>
4286
4287         timer-time: A new module to check for timer_settime()
4288         * m4/timer_time.m4: Check for the posix function.
4289         * modules/timer-time: Add the new module.
4290         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
4291         Mention it.
4292
4293 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
4294             Bruno Haible  <bruno@clisp.org>
4295
4296         pthread_sigmask: assume POSIX threads if --avoid=threadlib
4297         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
4298         not defined, assume POSIX threads and look for pthread_sigmask in
4299         $LIBS, without changing $CPPFLAGS.
4300
4301 2011-07-19  Bruno Haible  <bruno@clisp.org>
4302
4303         strstr: Update cross-compilation guess.
4304         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
4305         CPUs, guess no, in view of glibc
4306         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
4307         Suggested by Eric Blake. Reported by Reuben Thomas.
4308
4309 2011-07-19  Pádraig Brady  <P@draigBrady.com>
4310
4311         getopt-gnu: suppress core dumps from detection code
4312         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
4313         to suppress core dumps that may well occur on glibc systems.
4314         * modules/getopt-gnu: Depend on nocrash.
4315
4316 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
4317
4318         pthread_sigmask: ensure usleep is declared
4319         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
4320         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
4321
4322 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
4323
4324         doc: Document NonStop portability issues.
4325         * doc/posix-functions/sigaction.texi (sigaction):
4326         * doc/posix-headers/signal.texi (signal.h):
4327         Document NonStop.  See Joachim Schmitz in
4328         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
4329
4330 2011-07-15  Bruno Haible  <bruno@clisp.org>
4331
4332         ffsl, ffsll: Avoid unportable behaviour.
4333         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
4334
4335 2011-07-15  Bruno Haible  <bruno@clisp.org>
4336
4337         ffs: More tests.
4338         * tests/test-ffs.c (NBITS): New macro.
4339         (main): Add more tests.
4340         * tests/test-ffsl.c (NBITS): New macro.
4341         (main): Add more tests.
4342         * tests/test-ffsll.c (NBITS): New macro.
4343         (main): Add more tests.
4344
4345 2011-07-15  Eric Blake  <eblake@redhat.com>
4346
4347         ffsl, ffsll: new modules
4348         * modules/ffsl: New file.
4349         * modules/ffsll: Likewise.
4350         * m4/ffsl.m4: Likewise.
4351         * m4/ffsll.m4: Likewise.
4352         * lib/ffsl.c: Likewise.
4353         * lib/ffsl.h: Likewise.
4354         * lib/ffsll.c: Likewise.
4355         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
4356         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
4357         * modules/string (Makefile.am): Substitute witnesses.
4358         * lib/strings.in.h (ffsl, ffsll): Declare.
4359         * modules/ffsl-tests: New test file.
4360         * modules/ffsll-tests: Likewise.
4361         * tests/test-ffsl.c: Likewise.
4362         * tests/test-ffsll.c: Likewise.
4363         * MODULES.html.sh (Integer arithmetic functions): Mention it.
4364         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
4365         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
4366
4367         ffs: fix m4 prerequisite
4368         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
4369
4370         ffs: avoid undefined behavior
4371         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
4372         * tests/test-ffs.c (naive, main): Avoid signed shifts.
4373         Reported by Bruno Haible.
4374
4375 2011-07-12  Bruno Haible  <bruno@clisp.org>
4376
4377         pthread_sigmask: Rely on module 'threadlib'.
4378         * modules/pthread_sigmask (Depends-on): Add threadlib.
4379         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
4380         is defined.
4381
4382 2011-07-12  Bruno Haible  <bruno@clisp.org>
4383
4384         regex: Depend on module 'strcase'.
4385         * modules/regex (Depends-on): Add strcase, for strcasecmp().
4386
4387 2011-07-12  Jim Meyering  <meyering@redhat.com>
4388
4389         warn-on-use: fix typo in file name
4390         * modules/snippet/warn-on-use (Files): Correct file name:
4391         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
4392
4393 2011-07-12  Bruno Haible  <bruno@clisp.org>
4394
4395         strings: Document module.
4396         * doc/posix-headers/strings.texi: Mention module 'strings'.
4397
4398 2011-07-12  Bruno Haible  <bruno@clisp.org>
4399
4400         Rename module '_Noreturn' to 'snippet/_Noreturn'.
4401         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
4402         (Files, Makefile.am): Update.
4403         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
4404         * modules/stdlib (Depends-on): Update.
4405
4406 2011-07-12  Bruno Haible  <bruno@clisp.org>
4407
4408         * NEWS: Mention the changes.
4409
4410         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
4411         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
4412         (Files, Makefile.am): Update.
4413         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
4414         * modules/arpa_inet (Depends-on): Update.
4415         * modules/ctype (Depends-on): Update.
4416         * modules/dirent (Depends-on): Update.
4417         * modules/fcntl-h (Depends-on): Update.
4418         * modules/glob (Depends-on): Update.
4419         * modules/iconv-h (Depends-on): Update.
4420         * modules/inttypes-incomplete (Depends-on): Update.
4421         * modules/langinfo (Depends-on): Update.
4422         * modules/locale (Depends-on): Update.
4423         * modules/math (Depends-on): Update.
4424         * modules/netdb (Depends-on): Update.
4425         * modules/poll-h (Depends-on): Update.
4426         * modules/pty (Depends-on): Update.
4427         * modules/search (Depends-on): Update.
4428         * modules/signal (Depends-on): Update.
4429         * modules/spawn (Depends-on): Update.
4430         * modules/stdio (Depends-on): Update.
4431         * modules/stdlib (Depends-on): Update.
4432         * modules/string (Depends-on): Update.
4433         * modules/strings (Depends-on): Update.
4434         * modules/sys_file (Depends-on): Update.
4435         * modules/sys_ioctl (Depends-on): Update.
4436         * modules/sys_select (Depends-on): Update.
4437         * modules/sys_socket (Depends-on): Update.
4438         * modules/sys_stat (Depends-on): Update.
4439         * modules/sys_time (Depends-on): Update.
4440         * modules/sys_times (Depends-on): Update.
4441         * modules/sys_utsname (Depends-on): Update.
4442         * modules/sys_wait (Depends-on): Update.
4443         * modules/termios (Depends-on): Update.
4444         * modules/time (Depends-on): Update.
4445         * modules/unistd (Depends-on): Update.
4446         * modules/wchar (Depends-on): Update.
4447         * modules/wctype-h (Depends-on): Update.
4448         * MODULES.html.sh (Support for building libraries and executables):
4449         Update.
4450
4451         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
4452         * modules/snippet/unused-parameter: Renamed from
4453         modules/unused-parameter.
4454         (Files, Makefile.am): Update.
4455         * build-aux/snippet/unused-parameter.h: Renamed from
4456         build-aux/unused-parameter.h.
4457         * modules/selinux-h (Depends-on): Update.
4458         * modules/unistr/base (Depends-on): Update.
4459         * MODULES.html.sh (Core language properties): Update.
4460
4461         Rename module 'link-warning' to 'snippet/link-warning'.
4462         * modules/snippet/link-warning: Renamed from modules/link-warning.
4463         (Files, Makefile.am): Update.
4464         * build-aux/snippet/link-warning.h: Renamed from
4465         build-aux/link-warning.h.
4466         * MODULES.html.sh (Support for building libraries and executables):
4467         Update.
4468
4469         Rename module 'c++defs' to 'snippet/c++defs'.
4470         * modules/snippet/c++defs: Renamed from modules/c++defs.
4471         (Files, Makefile.am): Update.
4472         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
4473         * modules/arpa_inet (Depends-on): Update.
4474         * modules/ctype (Depends-on): Update.
4475         * modules/dirent (Depends-on): Update.
4476         * modules/fcntl-h (Depends-on): Update.
4477         * modules/glob (Depends-on): Update.
4478         * modules/iconv-h (Depends-on): Update.
4479         * modules/langinfo (Depends-on): Update.
4480         * modules/locale (Depends-on): Update.
4481         * modules/math (Depends-on): Update.
4482         * modules/netdb (Depends-on): Update.
4483         * modules/poll-h (Depends-on): Update.
4484         * modules/pty (Depends-on): Update.
4485         * modules/search (Depends-on): Update.
4486         * modules/signal (Depends-on): Update.
4487         * modules/spawn (Depends-on): Update.
4488         * modules/stdio (Depends-on): Update.
4489         * modules/stdlib (Depends-on): Update.
4490         * modules/string (Depends-on): Update.
4491         * modules/strings (Depends-on): Update.
4492         * modules/sys_ioctl (Depends-on): Update.
4493         * modules/sys_select (Depends-on): Update.
4494         * modules/sys_socket (Depends-on): Update.
4495         * modules/sys_stat (Depends-on): Update.
4496         * modules/sys_time (Depends-on): Update.
4497         * modules/sys_wait (Depends-on): Update.
4498         * modules/termios (Depends-on): Update.
4499         * modules/time (Depends-on): Update.
4500         * modules/unistd (Depends-on): Update.
4501         * modules/wchar (Depends-on): Update.
4502         * modules/wctype-h (Depends-on): Update.
4503
4504         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
4505         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
4506         (Files, Makefile.am): Update.
4507         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
4508         * modules/argv-iter (Depends-on): Update.
4509         * modules/arpa_inet (Depends-on): Update.
4510         * modules/dirent (Depends-on): Update.
4511         * modules/fcntl-h (Depends-on): Update.
4512         * modules/fnmatch (Depends-on): Update.
4513         * modules/getopt-posix (Depends-on): Update.
4514         * modules/glob (Depends-on): Update.
4515         * modules/iconv-h (Depends-on): Update.
4516         * modules/inttypes-incomplete (Depends-on): Update.
4517         * modules/locale (Depends-on): Update.
4518         * modules/math (Depends-on): Update.
4519         * modules/netdb (Depends-on): Update.
4520         * modules/search (Depends-on): Update.
4521         * modules/signal (Depends-on): Update.
4522         * modules/spawn (Depends-on): Update.
4523         * modules/stdio (Depends-on): Update.
4524         * modules/stdlib (Depends-on): Update.
4525         * modules/string (Depends-on): Update.
4526         * modules/strings (Depends-on): Update.
4527         * modules/sys_socket (Depends-on): Update.
4528         * modules/sys_stat (Depends-on): Update.
4529         * modules/sys_time (Depends-on): Update.
4530         * modules/sys_times (Depends-on): Update.
4531         * modules/sys_utsname (Depends-on): Update.
4532         * modules/time (Depends-on): Update.
4533         * modules/unistd (Depends-on): Update.
4534         * modules/wchar (Depends-on): Update.
4535         * MODULES.html.sh (Support for building libraries and executables):
4536         Update.
4537
4538 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
4539
4540         Improvements on _Noreturn and related modules.
4541
4542         modules/_Exit-tests: test _Noreturn too
4543         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
4544         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
4545         (main): Use them.
4546
4547         stdnoreturn, stdnoreturn-tests: remove modules
4548         They're not needed here and a bit premature for use elsewhere.  See
4549         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
4550         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
4551         * tests/test-stdnoreturn.c: Remove files.
4552         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
4553         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
4554         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
4555         and using noreturn.
4556         * modules/openat, modules/sigpipe-die, modules/xalloc:
4557         * modules/xmemdup0, modules/xstrtol:
4558         Remove dependency on stdnoreturn.
4559
4560         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
4561         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
4562         Reparenthesize to avoid GCC warning.
4563         Support Microsoft's syntax.
4564         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
4565
4566         _Noreturn-tests: remove module
4567         * modules/_Noreturn-tests: Remove.
4568         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
4569         * tests/test-_Noreturn.c: Remove.
4570         * tests/test-stdnoreturn.c: Merge from the old
4571         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
4572
4573 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
4574
4575         _Noreturn, stdnoreturn, and related modules.
4576
4577         * top/maint.mk: Adjust to new noreturn support.
4578         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
4579         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
4580
4581         xalloc: use stdnoreturn.h
4582         * lib/xalloc.h: Include <stdnoreturn.h>.
4583         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
4584         * modules/xalloc (Depends-on): Add stdnoreturn.
4585
4586         xstrtol: use stdnoreturn.h
4587         * lib/xstrtol.h: Include <stdnoreturn.h>.
4588         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
4589         * modules/xstrtol (Depends-on): Add stdnoreturn.
4590
4591         xmemdup0: use stdnoreturn.h
4592         * lib/xmemdup0.h: Include <stdnoreturn.h>.
4593         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
4594         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
4595
4596         sigpipe-die: use stdnoreturn.h
4597         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
4598         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
4599         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
4600
4601         openat: use stdnoreturn.h
4602         * lib/openat.h: Include <stdnoreturn.h>.
4603         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
4604         * modules/openat (Depends-on): Add stdnoreturn.
4605
4606         * lib/openat-die.c (openat_save_fail): Modernize comment.
4607
4608         * lib/xalloc-die.c (xalloc_die): Modernize comment.
4609
4610         * lib/glthread/thread.h: Modernize comment.
4611
4612         obstack: use _Noreturn
4613         * lib/obstack.c (__attribute__): Remove macro.
4614         (print_and_abort): Use _Noreturn.
4615
4616         c-stack: use _Noreturn
4617         * lib/c-stack.c (die, overflow_handler, segv_handler):
4618         Use _Noreturn rather than __attribute__((noreturn)).
4619
4620         argmatch-tests, exclude_tests: use _Noreturn
4621         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
4622         Remove.
4623         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
4624
4625         stdlib: use _Noreturn
4626         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
4627         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
4628         * modules/stdlib (Depends-on): Add _Noreturn.
4629         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
4630
4631         stdnoreturn-tests: new module
4632         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
4633
4634         stdnoreturn: new module
4635         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
4636         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
4637
4638         _Noreturn-tests: new module
4639         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
4640
4641         _Noreturn: new module
4642         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
4643         New section, mentioning it.
4644         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
4645
4646         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
4647
4648 2011-07-11  Eric Blake  <eblake@redhat.com>
4649
4650         ffs: new module
4651         * modules/ffs: New file.
4652         * m4/ffs.m4: Likewise.
4653         * lib/ffs.c: Likewise.
4654         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
4655         * modules/strings (Makefile.am): Substitute witness.
4656         (Depends-on): Add c++defs.
4657         * lib/strings.in.h (ffs): Declare.
4658         * modules/ffs-tests: New test file.
4659         * tests/test-ffs.c: Test new module.
4660         * MODULES.html.sh (Integer arithmetic functions): Mention it.
4661         * doc/posix-functions/ffs.texi (ffs): Likewise.
4662
4663         regex: avoid compiler warning
4664         * lib/regex.c (includes): Include <strings.h>, for use of
4665         strcasecmp in regcomp.c.
4666         Reported by Joachim Schmitz.
4667
4668 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
4669
4670         stdint: respect system's intmax_t if INTMAX_MAX
4671         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
4672         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
4673         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
4674         long but int64_t is long long, and where we will clash with the
4675         system intmax_t if we override it.  See
4676         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
4677         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
4678         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
4679         similarly for UINTMAX_C.
4680
4681 2011-07-08  Bruno Haible  <bruno@clisp.org>
4682
4683         pthread_sigmask tests: Avoid a compiler warning.
4684         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
4685         non-zero.
4686
4687         sigprocmask tests: A better way to avoid a compiler warning.
4688         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
4689         (main): Complain if system() returns non-zero.
4690         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
4691
4692 2011-07-08  Bruno Haible  <bruno@clisp.org>
4693
4694         pthread_sigmask: Work around IRIX bug.
4695         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
4696         bug.
4697         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
4698         there may be unblocked pending signals.
4699         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
4700
4701 2011-07-08  Bruno Haible  <bruno@clisp.org>
4702
4703         pthread_sigmask: Work around Cygwin bug.
4704         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
4705         bug.
4706         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
4707         the system's pthread_sigmask function.
4708         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
4709
4710 2011-07-08  Bruno Haible  <bruno@clisp.org>
4711
4712         pthread_sigmask: Work around bug in single-threaded implementation.
4713         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
4714         FreeBSD, HP-UX, Solaris bug.
4715         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
4716         * lib/pthread_sigmask.c: Include <stddef.h>.
4717         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
4718         the system's pthread_sigmask function.
4719         * modules/pthread_sigmask (configure.ac): Invoke
4720         gl_PREREQ_PTHREAD_SIGMASK.
4721         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
4722         HP-UX, Solaris.
4723
4724 2011-07-08  Eric Blake  <eblake@redhat.com>
4725
4726         test-sigprocmask: avoid compiler warning
4727         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
4728         * tests/test-sigprocmask.c (main): Use it to silence warning.
4729         Reported by Jim Meyering.
4730
4731         test-snprintf: avoid compiler warning
4732         * tests/test-snprintf.c (main): Avoid shadowed declaration.
4733         * tests/test-vsnprintf.c (main): Likewise.
4734         Reported by Jim Meyering.
4735
4736 2011-07-08  Bruno Haible  <bruno@clisp.org>
4737
4738         Tests for module 'pthread_sigmask'.
4739         * modules/pthread_sigmask-tests: New file.
4740         * tests/test-pthread_sigmask1.c: New file, based on
4741         tests/test-sigprocmask.c.
4742         * tests/test-pthread_sigmask2.c: New file.
4743
4744 2011-07-08  Jim Meyering  <meyering@redhat.com>
4745
4746         test-getopt.h: avoid warning about an unused variable
4747         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
4748
4749 2011-07-07  Jim Meyering  <meyering@redhat.com>
4750
4751         maint: reduce list of files exempt from sc_prohibit_leading_TABs
4752         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
4753         now that it no longer contains leading TABs.
4754         Remove unused "url=FIXME" statement.
4755
4756 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
4757
4758         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
4759         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
4760         When gl_THREADLIB is not in use, assume that the POSIX sematics
4761         are desired.  This is better for Emacs, which uses POSIX semantics
4762         on GNUish and/or POSIXish platforms, and does not use threads at
4763         all otherwise.
4764
4765         pthread_sigmask: fix typo when testing for libraries
4766         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
4767         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
4768
4769 2011-07-08  Eric Blake  <eblake@redhat.com>
4770
4771         fts: introduce FTS_NOATIME
4772         * lib/fts_.h (FTS_NOATIME): New bit flag.
4773         (FTS_OPTIONMASK): Adjust.
4774         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
4775         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
4776
4777 2011-07-08  Bruno Haible  <bruno@clisp.org>
4778
4779         Tests for module 'thread'.
4780         * modules/thread-tests: New file.
4781         * tests/test-thread_self.c: New file.
4782         * tests/test-thread_create.cc: New file.
4783
4784 2011-07-08  Bruno Haible  <bruno@clisp.org>
4785
4786         thread: Avoid gcc warnings when using gl_thread_self().
4787         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
4788         'void *'.
4789         (gl_thread_self_pointer): Update.
4790
4791 2011-07-07  Bruno Haible  <bruno@clisp.org>
4792
4793         signal-c++-tests: Check declaration of pthread_sigmask.
4794         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
4795         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
4796         $(LIB_PTHREAD_SIGMASK).
4797
4798 2011-07-07  Bruno Haible  <bruno@clisp.org>
4799
4800         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
4801         * lib/signal.in.h (pthread_sigmask): Override if
4802         REPLACE_PTHREAD_SIGMASK is 1.
4803         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
4804         REPLACE_PTHREAD_SIGMASK.
4805         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
4806         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
4807         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
4808         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
4809         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
4810
4811 2011-07-07  Bruno Haible  <bruno@clisp.org>
4812
4813         pthread_sigmask: Ensure declaration in <signal.h>.
4814         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
4815         include <pthread.h>.
4816         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
4817         problem.
4818
4819 2011-07-07  Bruno Haible  <bruno@clisp.org>
4820
4821         pthread_sigmask: Document the module.
4822         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
4823
4824 2011-07-07  Bruno Haible  <bruno@clisp.org>
4825
4826         pthread_sigmask: Follow gnulib conventions.
4827         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
4828         gl_PTHREAD_SIGMASK.
4829         * modules/pthread_sigmask (configure.ac): Update.
4830
4831 2011-07-07  Bruno Haible  <bruno@clisp.org>
4832
4833         pthread_sigmask: Make declaration C++ safe.
4834         * lib/signal.in.h: In two special conditions, just do an #include_next.
4835         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
4836         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
4837         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
4838         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
4839         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
4840         not REPLACE_PTHREAD_MASK.
4841         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
4842         not REPLACE_PTHREAD_MASK.
4843         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
4844
4845 2011-07-07  Bruno Haible  <bruno@clisp.org>
4846
4847         pthread_sigmask: Fix return value.
4848         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
4849         * lib/pthread_sigmask.c: New file.
4850         * modules/pthread_sigmask (Files): Add it.
4851         (configure.ac): Invoke AC_LIBOBJ.
4852
4853 2011-07-07  Eric Blake  <eblake@redhat.com>
4854
4855         getopt: more portable argv creation
4856         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
4857         const, use char arrays rather than strings.
4858         Suggested by Paul Eggert.
4859
4860 2011-07-07  Bruno Haible  <bruno@clisp.org>
4861
4862         Tests for module 'sigprocmask'.
4863         * modules/sigprocmask-tests: New file.
4864         * tests/test-sigprocmask.c: New file.
4865
4866 2011-07-07  Bruno Haible  <bruno@clisp.org>
4867
4868         float tests: Tweak.
4869         * tests/test-float.c (main): Tweak skip message.
4870
4871 2011-07-07  Eric Blake  <eblake@redhat.com>
4872
4873         getopt: avoid compiler warning during configure
4874         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
4875         assigning string literals to non-const pointer.
4876
4877         getopt-gnu: avoid crash in glibc getopt
4878         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
4879         * tests/test-getopt.h (test_getopt): Enhance test.
4880         * tests/test-getopt_long.h (test_getopt_long): Likewise.
4881         * doc/posix-functions/getopt.texi (getopt): Document it.
4882         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
4883         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
4884         Likewise.
4885
4886 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
4887
4888         getopt: handle W; without long options in getopt [BZ #12922]
4889         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
4890         but no long options are defined, just return 'W'.
4891
4892 2011-07-07  Bruno Haible  <bruno@clisp.org>
4893
4894         Avoid literal tabs.
4895         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
4896         variable containing a tab instead of a literal tab.
4897         Reported by Jim Meyering.
4898
4899 2011-07-07  Bruno Haible  <bruno@clisp.org>
4900
4901         Comments.
4902         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
4903
4904 2011-07-06  Bruno Haible  <bruno@clisp.org>
4905
4906         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
4907         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
4908         <winsock2.h>.
4909         (rpl_fd_isset, FD_ISSET): New definitions, copied from
4910         lib/sys_socket.in.h.
4911         (close, gethostname): Hide declarations from <winsock2.h>.
4912         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
4913         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
4914         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
4915         (select): Don't override if gnulib's <sys/select.h> was already
4916         included.
4917         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
4918         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
4919         setsockopt, shutdown, select): Tweak indentation.
4920
4921 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
4922
4923         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
4924         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
4925         in an application that does not use the sys_select module.
4926
4927 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
4928
4929         poll: do not return 0 on timeout=-1
4930         * lib/poll.c: Loop with yield if no events occured
4931
4932 2011-07-06  Eric Blake  <eblake@redhat.com>
4933
4934         pthread_sigmask: always replace when not using pthread
4935         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
4936         replacement when using some threading other than pthread.  Fix
4937         logic bug.
4938
4939 2011-07-06  Bruno Haible  <bruno@clisp.org>
4940
4941         Comments.
4942         * m4/printf.m4: Update comments about mingw.
4943
4944 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
4945
4946         sys_select: define sigset_t more portably
4947         * lib/sys_select.in.h: Always include <sys/types.h>, since
4948         we now need sigset_t and mingw defines it there.
4949         Include <signal.h> before split inclusion guard, to avoid
4950         mishaps on Solaris, whose <signal.h> eventually includes us.
4951         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
4952         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
4953         which come from ...
4954         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
4955         gl_CHECK_TYPE_SIGSET_T.
4956         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
4957         does the real work.
4958         * modules/sys_select (Depends-on): Add 'signal'.
4959
4960         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
4961         Suggested by Bruno Haible.
4962
4963         pselect: Use pthread_sigmask, not sigprocmask.
4964         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
4965         multithreaded apps better than sigprocmask does.
4966         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
4967         sigprocmask directly.
4968
4969 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
4970
4971         * lib/pselect.c (pselect): Use plain name, without "rpl_".
4972         Don't #undef,  since we don't need any underlying pselect.
4973         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
4974         (Depends-on): Add select.
4975         (Link): Add $(LIBSOCKET).
4976         These changes suggested by Bruno Haible.
4977
4978         pselect: document better
4979         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
4980         * doc/posix-functions/pselect.texi (pselect): Document new module.
4981
4982         pthread_sigmask: new module
4983         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
4984         * doc/posix-functions/pthread_sigmask.texi: Document new module.
4985         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
4986         This is done only as a macro; I don't know how well that'll
4987         work for C++.  Move <sys/types.h> include before the include_next,
4988         to avoid mishap on Solaris.
4989         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
4990         * modules/signal (Makefile.am): Substitute the check's results.
4991         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
4992
4993         test-pselect: new module
4994         * modules/pselect-tests, tests/test-pselect.c: New files.
4995         * tests/test-select.c, tests/test-sys_select-c++.cc:
4996         If TEST_PSELECT is defined, test pselect instead of testing select.
4997
4998         * tests/test-sys_select.c (sigset_t): Test for it, too.
4999         Suggested by Bruno Haible.
5000
5001 2011-07-05  Eric Blake  <eblake@redhat.com>
5002
5003         snprintf: guarantee %1$d, for libintl
5004         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
5005         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
5006         * doc/posix-functions/snprintf.texi (snprintf): Update.
5007         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
5008         * tests/test-snprintf.c (main): Enhance test.
5009         * tests/test-vsnprintf.c (main): Likewise.
5010
5011 2011-07-05  Jim Meyering  <meyering@redhat.com>
5012
5013         maint: exempt stdio-read.c and stdio-write.c from the cppi check
5014         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
5015         per Bruno's request, to accommodate this idiom (no space after "#")
5016         even when the function is inside an #if block:
5017         char *
5018         gets (char *s)
5019         #undef gets
5020         {
5021           ...
5022         }
5023
5024 2011-07-04  Jim Meyering  <meyering@redhat.com>
5025
5026         maint: indent with spaces, not TABs, and add a rule to check this
5027         * tests/test-userspec.c: Indent with spaces, not TABs.
5028         * tests/test-argp.c: Likewise.
5029         * tests/test-c-stack2.sh: Likewise.
5030         * tests/test-parse-duration.sh: Likewise
5031         * m4/strtod.m4: Likewise.
5032         * m4/alloca.m4: Likewise.
5033         * m4/pselect.m4: Likewise.
5034         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
5035
5036 2011-07-03  Jim Meyering  <meyering@redhat.com>
5037
5038         maint.mk: correct omissions in prohibit_argmatch_without_use check
5039         This rule would mistakenly report that argmatch.h is included without
5040         use even when both the argmatch and invalid_arg macro were used.
5041         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
5042         of argmatch and invalid_arg.
5043
5044 2011-07-03  Bruno Haible  <bruno@clisp.org>
5045
5046         Comments about EINTR.
5047         * lib/safe-read.h: Explain the purpose of this module.
5048         * lib/safe-write.h: Likewise.
5049         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
5050         module.
5051         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
5052         module.
5053         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5054
5055 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
5056
5057         xnanosleep: Rewrite to use new dtotimespec module.
5058         It has the conversion code that used to be in xnanosleep.
5059         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
5060         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
5061         (TIME_T_MAX): Remove.
5062         (xnanosleep): Rewrite in terms of dtotimespec.
5063         * modules/xnanosleep (Depends-on): Add dtotimespec.
5064         Remove intprops, stdbool.
5065
5066         timespec-add, timespec-sub: new modules
5067         * lib/timespec.h (timespec_add, timespec_sub): New decls.
5068         * lib/timespec-add.c, lib/timespec-sub.c:
5069         * modules/timespec-add, modules/timespec-sub: New files.
5070
5071         dtotimespec: new module
5072         * lib/timespec.h (dtotimespec): New decl.
5073         * lib/dtotimespec.c, modules/dtotimespec: New files.
5074
5075         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
5076
5077         pselect: new module
5078         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
5079         (pselect): New decls.
5080         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
5081         since the standard pselect decl uses 'restrict'.
5082         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
5083         HAVE_PSELECT, REPLACE_PSELECT.
5084         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
5085         HAVE_PSELECT, REPLACE_PSELECT.
5086         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
5087
5088         sys_select: don't depend on sys_socket
5089         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
5090         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
5091         This fix works on GNU and GNU-like platforms, but has not been tested
5092         on native Windows.
5093         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
5094         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
5095         gl_HEADER_SYS_SOCKET.
5096         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
5097         gl_PREREQ_SYS_H_WINSOCK2.
5098
5099 2011-06-29  Eric Blake  <eblake@redhat.com>
5100
5101         pipe2: fix C89 compile problem
5102         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
5103         Reported by Bruno Haible.
5104
5105         pipe, pipe2: don't corrupt fd on error
5106         * lib/pipe.c (pipe): Leave fd unchanged on error.
5107         * lib/pipe2.c (pipe2): Likewise.
5108         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
5109         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
5110
5111 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
5112
5113         mmap-anon: do not use regular expressions inadvertently
5114         * m4/mmap-anon.m4: Remove trailing period from strings sought
5115         in the output.
5116
5117 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
5118
5119         nanosleep: fix integer overflow problem
5120         * lib/nanosleep.c (my_usleep): Don't assume signed integer
5121         arithmetic wraps around on overflow.
5122
5123         nanosleep: simplify carrying
5124         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
5125         first call to the underyling nanosleep, not for the last one.
5126         This doesn't fix any bugs, but it simplifies the computation of
5127         the remaining delay.  Found while auditing integer overflow issues.
5128
5129         dup2: remove test for existence of fcntl
5130         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
5131         "#if HAVE_FCNTL", in the configure-time test program.
5132         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
5133         and therefore speeds up "configure" a bit.  Found while
5134         adding the dup2 module to Emacs.
5135
5136 2011-06-24  Eric Blake  <eblake@redhat.com>
5137
5138         maint.mk: enhance useless header checks
5139         * top/maint.mk (_sc_header_without_use): Check both include
5140         styles.
5141         (sc_prohibit_assert_without_use)
5142         (sc_prohibit_close_stream_without_use)
5143         (sc_prohibit_getopt_without_use)
5144         (sc_prohibit_quotearg_without_use)
5145         (sc_prohibit_quote_without_use)
5146         (sc_prohibit_long_options_without_use)
5147         (sc_prohibit_inttostr_without_use)
5148         (sc_prohibit_ignore_value_without_use)
5149         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
5150         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
5151         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
5152         (sc_prohibit_hash_pjw_without_use)
5153         (sc_prohibit_safe_read_without_use)
5154         (sc_prohibit_argmatch_without_use)
5155         (sc_prohibit_canonicalize_without_use)
5156         (sc_prohibit_root_dev_ino_without_use)
5157         (sc_prohibit_openat_without_use)
5158         (sc_prohibit_c_ctype_without_use)
5159         (sc_prohibit_signal_without_use)
5160         (sc_prohibit_stdio--_without_use)
5161         (sc_prohibit_stdio-safer_without_use)
5162         (sc_prohibit_strings_without_use)
5163         (sc_prohibit_intprops_without_use)
5164         (sc_prohibit_stddef_without_use)
5165         (sc_prohibit_xfreopen_without_use): Update clients.
5166
5167 2011-06-24  Jim Meyering  <meyering@redhat.com>
5168
5169         syntax-check: keep one maint.mk rule in sync with its header
5170         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
5171         of the bug Eric has just fixed, with today's commit 25e4c2ec.
5172         I prefer to avoid temporary files here, so use <(...), but that
5173         is not supported by /bin/sh, so...
5174         (SHELL): Define to /bin/bash.
5175
5176 2011-06-24  Eric Blake  <eblake@redhat.com>
5177
5178         maint.mk: update sc_prohibit_intprops_without_use
5179         * top/maint.mk (_intprops_names): Match recent changes.
5180
5181 2011-06-24  Bruno Haible  <bruno@clisp.org>
5182
5183         strerror-override: No-op tweak.
5184         * lib/strerror-override.h (strerror_override): Reorder conditions,
5185         for consistency with lib/strerror-override.c.
5186
5187 2011-06-23  Eric Blake  <eblake@redhat.com>
5188
5189         maint.mk: test further PATH_MAX issues
5190         * top/maint.mk (sc_prohibit_path_max_array): Rename...
5191         (sc_prohibit_path_max_allocation): ...and also test alloca.
5192         Suggested by Jim Meyering.
5193
5194 2011-06-22  Eric Blake  <eblake@redhat.com>
5195
5196         maint.mk: add syntax-check to avoid char[PATH_MAX]
5197         * top/maint.mk (sc_prohibit_path_max_array): New rule.
5198
5199         stat: be robust to PATH_MAX definition
5200         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
5201         * modules/stat (Depends-on): Add verify.
5202
5203         link: work around IRIX bug
5204         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
5205         * lib/link.c (rpl_link): Work around it.
5206         * tests/test-link.h (test_link): Enhance test.
5207         * doc/posix-functions/link.texi (link): Document the bug.
5208
5209         getopt: silence clang warning
5210         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
5211         dereference.
5212         Reported by Gustavo Martin Domato.
5213
5214 2011-06-22  Jim Meyering  <meyering@redhat.com>
5215
5216         bootstrap: do not insert a blank line into each .gitignore file
5217         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
5218
5219 2011-06-21  Eric Blake  <eblake@redhat.com>
5220
5221         perror: test for output mismatch
5222         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
5223         perror on IRIX.
5224
5225         strerror_r: fix OpenBSD behavior on out-of-range
5226         * lib/strerror_r.c (strerror_r): Always use maximal string.
5227         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
5228
5229         strerror_r: fix OpenBSD behavior on 0
5230         * lib/strerror-override.c (strerror_override): Also override 0
5231         when needed.
5232         * lib/strerror-override.h (strerror_override): Likewise.
5233         * lib/strerror.c (strerror): Simplify, now that 0 override is done
5234         earlier.
5235         * lib/strerror_r.c (strerror_r): Likewise.
5236         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
5237         behavior...
5238         (gl_FUNC_STRERROR_0): ...into new macro.
5239         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
5240         is overridden.
5241         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
5242         * modules/strerror-override (Files): Add strerror.m4.
5243         (configure.ac): Also provide override for 0 when needed.
5244         * doc/posix-functions/strerror.texi (strerror): Document this.
5245         * doc/posix-functions/perror.texi (perror): Likewise.
5246
5247         perror: adjust array size
5248         * modules/perror (Depends-on): Add strerror-override.
5249         * lib/perror.c (perror): Use it to avoid magic number.
5250
5251         strerror-override: reduce size
5252         * lib/strerror-override.c (strerror_override): Use fewer lines.
5253
5254 2011-06-20  Bruno Haible  <bruno@clisp.org>
5255
5256         pathmax: Ensure correct value for PATH_MAX on HP-UX.
5257         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
5258
5259 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
5260
5261         alloca: port to compilers that can optimize like GCC 4.6.0
5262         * lib/alloca.c (find_stack_direction): New signature, taken from
5263         Autoconf git.  This works with GCC 4.6.0.  This code should never
5264         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
5265         be used with other compilers that optimize as well as GCC 4.6.0 does.
5266         (alloca): Adjust to new signature.
5267         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
5268         New macro, which patches Autoconf in a similar way.
5269
5270         c-stack: stop worrying about stack direction
5271         * lib/c-stack.c (find_stack_direction): Remove.
5272         (segv_handler): Don't worry about stack direction growth, as it's
5273         too much of a pain to configure this correctly, given how compilers
5274         are optimizing-away our stack-growth detection code.  Instead, assume
5275         that any access to just before or just after the stack is OK.
5276         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
5277         Don't require AC_FUNC_ALLOCA; no longer needed.
5278
5279 2011-06-20  Eric Blake  <eblake@redhat.com>
5280
5281         test-stat: don't allocate PATH_MAX bytes
5282         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
5283         PATH_MAX-sized buffer.
5284         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
5285         * modules/stat-tests (Depends-on): Likewise.
5286         * tests/test-fstatat.c (includes): Drop pathmax.h.
5287         * tests/test-stat.c (includes): Likewise.
5288         Reported by Bruno Haible.
5289
5290 2011-06-20  Bruno Haible  <bruno@clisp.org>
5291
5292         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
5293         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
5294         * lib/float.c: New file.
5295         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
5296         REPLACE_FLOAT_LDBL.
5297         * modules/float (Files): Add lib/float.c.
5298         (configure.ac): Invoke AC_LIBOBJ.
5299         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
5300
5301 2011-06-20  Bruno Haible  <bruno@clisp.org>
5302
5303         Tests for module 'float'.
5304         * modules/float-tests: New file.
5305         * tests/test-float.c: New file.
5306
5307 2011-06-19  Bruno Haible  <bruno@clisp.org>
5308
5309         isinf: Coding style.
5310         * lib/isinf.c: Use GNU coding style.
5311
5312 2011-06-19  Bruno Haible  <bruno@clisp.org>
5313
5314         linkat test: Avoid test failure on AIX 7.1.
5315         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
5316         * tests/test-link.h (test_link): Likewise.
5317
5318 2011-06-19  Bruno Haible  <bruno@clisp.org>
5319
5320         pread test: Avoid test failure on OpenBSD 4.9.
5321         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
5322
5323 2011-06-19  Bruno Haible  <bruno@clisp.org>
5324
5325         sprintf-posix: Fix test failure on AIX 7.1.
5326         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
5327         * doc/posix-functions/dprintf.texi: Mention limited precision problem
5328         on AIX.
5329         * doc/posix-functions/fprintf.texi: Likewise.
5330         * doc/posix-functions/printf.texi: Likewise.
5331         * doc/posix-functions/snprintf.texi: Likewise.
5332         * doc/posix-functions/sprintf.texi: Likewise.
5333         * doc/posix-functions/vdprintf.texi: Likewise.
5334         * doc/posix-functions/vfprintf.texi: Likewise.
5335         * doc/posix-functions/vprintf.texi: Likewise.
5336         * doc/posix-functions/vsnprintf.texi: Likewise.
5337         * doc/posix-functions/vsprintf.texi: Likewise.
5338
5339 2011-06-19  Bruno Haible  <bruno@clisp.org>
5340
5341         roundl-ieee: Fix test failure on AIX 7.1.
5342         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
5343         * doc/posix-functions/roundl.texi: Mention problem with negative
5344         arguments.
5345
5346 2011-06-19  Bruno Haible  <bruno@clisp.org>
5347
5348         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
5349         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
5350         * doc/posix-functions/round.texi: Mention problem with negative
5351         arguments.
5352         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
5353
5354 2011-06-19  Bruno Haible  <bruno@clisp.org>
5355
5356         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
5357         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
5358         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
5359         * doc/posix-functions/roundf.texi: Mention problem with negative
5360         arguments.
5361         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
5362
5363 2011-06-19  Bruno Haible  <bruno@clisp.org>
5364
5365         ceilf-ieee: Work around bug on MacOS X 10.5.
5366         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
5367
5368         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
5369         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
5370         IEEE compliant, avoid compiler optimizations.
5371         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
5372         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
5373         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
5374         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
5375         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
5376         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
5377         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
5378         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
5379         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
5380         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
5381
5382 2011-06-19  Bruno Haible  <bruno@clisp.org>
5383
5384         ceilf-ieee: Work around bug on AIX 7.1.
5385         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
5386         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
5387
5388 2011-06-19  Bruno Haible  <bruno@clisp.org>
5389
5390         ceil-ieee: Work around bug on AIX 7.1.
5391         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
5392         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
5393
5394 2011-06-18  Bruno Haible  <bruno@clisp.org>
5395
5396         fsync test: Avoid test failure on MacOS X and AIX.
5397         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
5398         EINVAL.
5399
5400 2011-06-18  Bruno Haible  <bruno@clisp.org>
5401
5402         openat, fdopendir tests: Fix link errors.
5403         * modules/openat-tests (Depends-on): Add progname.
5404         * modules/fdopendir-tests (Depends-on): Likewise.
5405         * tests/test-fchownat.c: Include progname.h.
5406         (main): Call set_program_name.
5407         * tests/test-fstatat.c: Include progname.h.
5408         (main): Call set_program_name.
5409         * tests/test-mkdirat.c: Include progname.h.
5410         (main): Call set_program_name.
5411         * tests/test-openat.c: Include progname.h.
5412         (main): Call set_program_name.
5413         * tests/test-unlinkat.c: Include progname.h.
5414         (main): Call set_program_name.
5415         * tests/test-fdopendir.c: Include progname.h.
5416         (main): Call set_program_name.
5417
5418 2011-06-18  Bruno Haible  <bruno@clisp.org>
5419
5420         Doc update.
5421         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
5422         HP-UX.
5423         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
5424
5425 2011-06-18  Bruno Haible  <bruno@clisp.org>
5426
5427         getcwd tests: Avoid compilation error on HP-UX 11.31.
5428         * modules/getcwd-tests (Depends-on): Add pathmax.
5429         * tests/test-getcwd.c: Include pathmax.h.
5430
5431 2011-06-18  Bruno Haible  <bruno@clisp.org>
5432
5433         isfinite, isinf: Fix link error on AIX 6 and 7.
5434         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
5435         needed, also test the macro with a 'float' argument.
5436         * m4/isinf.m4 (gl_ISINF): Likewise.
5437
5438 2011-06-18  Bruno Haible  <bruno@clisp.org>
5439
5440         getloadavg: Don't clobber LIBS. Regression from previous commit.
5441         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
5442         AC_CHECK_LIB from here...
5443         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
5444         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
5445         gl_func_getloadavg_done.
5446         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5447
5448 2011-06-18  Bruno Haible  <bruno@clisp.org>
5449
5450         clean-temp: Improve documentation.
5451         * lib/clean-temp.h: Explain better how to use this module.
5452         Reported by John Darrington <john@darrington.wattle.id.au>.
5453
5454 2011-06-17  Bruno Haible  <bruno@clisp.org>
5455
5456         pread, pwrite: Avoid cc warning on AIX.
5457         * lib/unistd.in.h (pread): Undefine before defining as a macro.
5458         (pwrite): Likewise.
5459
5460 2011-06-17  Bruno Haible  <bruno@clisp.org>
5461
5462         spawn-pipe tests: Fix link error.
5463         * tests/test-spawn-pipe-child.c: Undefine fprintf.
5464         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5465
5466 2011-06-17  Bruno Haible  <bruno@clisp.org>
5467
5468         Tests: Remove unnecessary dependency.
5469         * modules/canonicalize-tests (Depends-on): Remove progname.
5470         * modules/chown-tests (Depends-on): Likewise.
5471         * modules/dirname-tests (Depends-on): Likewise.
5472         * modules/fdopendir-tests (Depends-on): Likewise.
5473         * modules/fdutimensat-tests (Depends-on): Likewise.
5474         * modules/hash-tests (Depends-on): Likewise.
5475         * modules/lchown-tests (Depends-on): Likewise.
5476         * modules/linkat-tests (Depends-on): Likewise.
5477         * modules/renameat-tests (Depends-on): Likewise.
5478         * modules/spawn-pipe-tests (Depends-on): Likewise.
5479         * modules/utimensat-tests (Depends-on): Likewise.
5480
5481 2011-06-17  Bruno Haible  <bruno@clisp.org>
5482
5483         spawn-pipe tests: Fix link error.
5484         * tests/test-spawn-pipe-child.c: Undefine fflush.
5485
5486 2011-06-17  Bruno Haible  <bruno@clisp.org>
5487
5488         Fix tests link errors.
5489         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
5490         * modules/chown-tests (Makefile.am): Don't link test-chown with
5491         LIBINTL.
5492         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
5493         LIBINTL.
5494         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
5495         LIBINTL.
5496         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
5497         LIBINTL.
5498
5499 2011-06-16  Bruno Haible  <bruno@clisp.org>
5500
5501         crypto/gc-sha1: Fix recent regression.
5502         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
5503         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
5504
5505         crypto/gc-md5: Fix recent regression.
5506         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
5507
5508         crypto/gc-md4: Fix recent regression.
5509         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
5510         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
5511
5512         crypto/gc-arctwo: Fix recent regression.
5513         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
5514         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
5515
5516         crypto/gc-rijndael: Fix recent regression.
5517         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
5518         (configure.ac): Invoke AC_LIBOBJ here.
5519         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
5520         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5521
5522         crypto/gc-hmac-sha1: Fix recent regression.
5523         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
5524         (configure.ac): Invoke AC_LIBOBJ here.
5525         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
5526         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5527
5528         crypto/gc-hmac-md5: Fix recent regression.
5529         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
5530         (configure.ac): Invoke AC_LIBOBJ here.
5531         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
5532         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5533
5534         crypto/gc-des: Fix recent regression.
5535         * modules/crypto/gc-des (Files): Remove m4/des.m4.
5536         (configure.ac): Invoke AC_LIBOBJ here.
5537         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
5538         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5539
5540         crypto/gc-arcfour: Fix recent regression.
5541         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
5542         (configure.ac): Invoke AC_LIBOBJ here.
5543         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
5544         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5545
5546 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
5547
5548         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
5549         After the 2011-05-21 change, this macro requires
5550         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
5551         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
5552
5553 2011-06-16  Bruno Haible  <bruno@clisp.org>
5554
5555         fprintftime: Move AC_LIBOBJ invocations to module description.
5556         * m4/fprintftime.m4: Remove file.
5557         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
5558         (configure.ac): Remove gl_FPRINTFTIME call.
5559         (Makefile.am): Augment lib_SOURCES.
5560         Reported by Jim Meyering.
5561
5562 2011-06-16  Bruno Haible  <bruno@clisp.org>
5563
5564         tmpfile-safer: Finish 2011-05-23 commit.
5565         * m4/stdio-safer.m4: Really remove file.
5566         Reported by Jim Meyering.
5567
5568 2011-06-16  Bruno Haible  <bruno@clisp.org>
5569
5570         syntax-check: Fix typo.
5571         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
5572         printf-posix.m4.
5573         Reported by Jim Meyering.
5574
5575 2011-06-13  Jim Meyering  <meyering@redhat.com>
5576
5577         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
5578         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
5579
5580 2011-05-23  Bruno Haible  <bruno@clisp.org>
5581
5582         yesno: Move AC_LIBOBJ invocations to module description.
5583         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
5584         * modules/yesno (Makefile.am): Augment lib_SOURCES.
5585
5586 2011-05-23  Bruno Haible  <bruno@clisp.org>
5587
5588         xstrtol: Move AC_LIBOBJ invocations to module description.
5589         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
5590         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
5591
5592 2011-05-23  Bruno Haible  <bruno@clisp.org>
5593
5594         xstrtold: Move AC_LIBOBJ invocations to module description.
5595         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
5596         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
5597
5598 2011-05-23  Bruno Haible  <bruno@clisp.org>
5599
5600         xstrtod: Move AC_LIBOBJ invocations to module description.
5601         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
5602         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
5603
5604 2011-05-23  Bruno Haible  <bruno@clisp.org>
5605
5606         xnanosleep: Move AC_LIBOBJ invocations to module description.
5607         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
5608         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
5609
5610 2011-05-23  Bruno Haible  <bruno@clisp.org>
5611
5612         xgetcwd: Move AC_LIBOBJ invocations to module description.
5613         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
5614         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
5615
5616 2011-05-23  Bruno Haible  <bruno@clisp.org>
5617
5618         xalloc: Move AC_LIBOBJ invocations to module description.
5619         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
5620         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
5621
5622 2011-05-23  Bruno Haible  <bruno@clisp.org>
5623
5624         write-any-file: Move AC_LIBOBJ invocations to module description.
5625         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
5626         invocation.
5627         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
5628
5629 2011-05-23  Bruno Haible  <bruno@clisp.org>
5630
5631         utimens: Move AC_LIBOBJ invocations to module description.
5632         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
5633         * modules/utimens (Makefile.am): Augment lib_SOURCES.
5634
5635 2011-05-23  Bruno Haible  <bruno@clisp.org>
5636
5637         utimecmp: Move AC_LIBOBJ invocations to module description.
5638         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
5639         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
5640
5641 2011-05-23  Bruno Haible  <bruno@clisp.org>
5642
5643         userspec: Move AC_LIBOBJ invocations to module description.
5644         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
5645         * modules/userspec (Makefile.am): Augment lib_SOURCES.
5646
5647 2011-05-23  Bruno Haible  <bruno@clisp.org>
5648
5649         unlinkdir: Move AC_LIBOBJ invocations to module description.
5650         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
5651         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
5652
5653 2011-05-23  Bruno Haible  <bruno@clisp.org>
5654
5655         unistd-safer: Move AC_LIBOBJ invocations to module description.
5656         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
5657         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
5658
5659 2011-05-23  Bruno Haible  <bruno@clisp.org>
5660
5661         tempname: Move AC_LIBOBJ invocations to module description.
5662         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
5663         * modules/tempname (Makefile.am): Augment lib_SOURCES.
5664
5665 2011-05-23  Bruno Haible  <bruno@clisp.org>
5666
5667         strftime: Move AC_LIBOBJ invocations to module description.
5668         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
5669         * modules/strftime (Makefile.am): Augment lib_SOURCES.
5670
5671 2011-05-23  Bruno Haible  <bruno@clisp.org>
5672
5673         stdlib-safer: Move AC_LIBOBJ invocations to module description.
5674         * m4/stdlib-safer.m4: Remove file.
5675         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
5676         (configure.ac): Remove gl_STDLIB_SAFER call.
5677         (Makefile.am): Augment lib_SOURCES.
5678
5679 2011-05-23  Bruno Haible  <bruno@clisp.org>
5680
5681         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
5682         * m4/stdio-safer.m4: Remove file.
5683         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
5684         (configure.ac): Remove gl_TMPFILE_SAFER call.
5685         (Makefile.am): Augment lib_SOURCES.
5686
5687 2011-05-23  Bruno Haible  <bruno@clisp.org>
5688
5689         popen-safer: Move AC_LIBOBJ invocations to module description.
5690         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
5691         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
5692         (configure.ac): Remove gl_POPEN_SAFER call.
5693         (Makefile.am): Augment lib_SOURCES.
5694
5695 2011-05-23  Bruno Haible  <bruno@clisp.org>
5696
5697         freopen-safer: Move AC_LIBOBJ invocations to module description.
5698         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
5699         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
5700         (configure.ac): Remove gl_FREOPEN_SAFER call.
5701         (Makefile.am): Augment lib_SOURCES.
5702
5703 2011-05-23  Bruno Haible  <bruno@clisp.org>
5704
5705         fopen-safer: Move AC_LIBOBJ invocations to module description.
5706         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
5707         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
5708         (configure.ac): Remove gl_FOPEN_SAFER call.
5709         (Makefile.am): Augment lib_SOURCES.
5710
5711 2011-05-23  Bruno Haible  <bruno@clisp.org>
5712
5713         crypto/sha512: Move AC_LIBOBJ invocations to module description.
5714         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
5715         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
5716
5717 2011-05-23  Bruno Haible  <bruno@clisp.org>
5718
5719         crypto/sha256: Move AC_LIBOBJ invocations to module description.
5720         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
5721         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
5722
5723 2011-05-23  Bruno Haible  <bruno@clisp.org>
5724
5725         crypto/sha1: Move AC_LIBOBJ invocations to module description.
5726         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
5727         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
5728
5729 2011-05-23  Bruno Haible  <bruno@clisp.org>
5730
5731         settime: Move AC_LIBOBJ invocations to module description.
5732         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
5733         * modules/settime (Makefile.am): Augment lib_SOURCES.
5734
5735 2011-05-23  Bruno Haible  <bruno@clisp.org>
5736
5737         savedir: Move AC_LIBOBJ invocations to module description.
5738         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
5739         * modules/savedir (Makefile.am): Augment lib_SOURCES.
5740
5741 2011-05-23  Bruno Haible  <bruno@clisp.org>
5742
5743         save-cwd: Move AC_LIBOBJ invocations to module description.
5744         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
5745         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
5746
5747 2011-05-23  Bruno Haible  <bruno@clisp.org>
5748
5749         same: Move AC_LIBOBJ invocations to module description.
5750         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
5751         * modules/same (Makefile.am): Augment lib_SOURCES.
5752
5753 2011-05-23  Bruno Haible  <bruno@clisp.org>
5754
5755         safe-write: Move AC_LIBOBJ invocations to module description.
5756         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
5757         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
5758         instead of gl_SAFE_WRITE.
5759         (Makefile.am): Augment lib_SOURCES.
5760
5761 2011-05-23  Bruno Haible  <bruno@clisp.org>
5762
5763         safe-read: Move AC_LIBOBJ invocations to module description.
5764         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
5765         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
5766         of gl_SAFE_READ.
5767         (Makefile.am): Augment lib_SOURCES.
5768
5769 2011-05-23  Bruno Haible  <bruno@clisp.org>
5770
5771         safe-alloc: Move AC_LIBOBJ invocations to module description.
5772         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
5773         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
5774
5775 2011-05-23  Bruno Haible  <bruno@clisp.org>
5776
5777         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
5778         * m4/rijndael.m4: Remove file.
5779         * modules/crypto/rijndael (Files): Remove it.
5780         (configure.ac): Remove gl_RIJNDAEL call.
5781         (Makefile.am): Augment lib_SOURCES.
5782
5783 2011-05-23  Bruno Haible  <bruno@clisp.org>
5784
5785         readtokens: Move AC_LIBOBJ invocations to module description.
5786         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
5787         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
5788
5789 2011-05-23  Bruno Haible  <bruno@clisp.org>
5790
5791         read-file: Move AC_LIBOBJ invocations to module description.
5792         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
5793         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
5794         of gl_FUNC_READ_FILE.
5795         (Makefile.am): Augment lib_SOURCES.
5796
5797 2011-05-23  Bruno Haible  <bruno@clisp.org>
5798
5799         quotearg: Move AC_LIBOBJ invocations to module description.
5800         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
5801         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
5802
5803 2011-05-23  Bruno Haible  <bruno@clisp.org>
5804
5805         quote: Move AC_LIBOBJ invocations to module description.
5806         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
5807         * modules/quote (Makefile.am): Augment lib_SOURCES.
5808
5809 2011-05-23  Bruno Haible  <bruno@clisp.org>
5810
5811         posixver: Move AC_LIBOBJ invocations to module description.
5812         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
5813         * modules/posixver (Makefile.am): Augment lib_SOURCES.
5814
5815 2011-05-23  Bruno Haible  <bruno@clisp.org>
5816
5817         posixtm: Move AC_LIBOBJ invocations to module description.
5818         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
5819         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
5820
5821 2011-05-23  Bruno Haible  <bruno@clisp.org>
5822
5823         physmem: Move AC_LIBOBJ invocations to module description.
5824         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
5825         * modules/physmem (Makefile.am): Augment lib_SOURCES.
5826
5827 2011-05-23  Bruno Haible  <bruno@clisp.org>
5828
5829         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
5830         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
5831         invocation.
5832         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
5833
5834 2011-05-23  Bruno Haible  <bruno@clisp.org>
5835
5836         mpsort: Move AC_LIBOBJ invocations to module description.
5837         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
5838         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
5839
5840 2011-05-23  Bruno Haible  <bruno@clisp.org>
5841
5842         modechange: Move AC_LIBOBJ invocations to module description.
5843         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
5844         * modules/modechange (Makefile.am): Augment lib_SOURCES.
5845
5846 2011-05-23  Bruno Haible  <bruno@clisp.org>
5847
5848         mkdir-p: Move AC_LIBOBJ invocations to module description.
5849         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
5850         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
5851
5852 2011-05-23  Bruno Haible  <bruno@clisp.org>
5853
5854         mkancesdirs: Move AC_LIBOBJ invocations to module description.
5855         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
5856         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
5857
5858 2011-05-23  Bruno Haible  <bruno@clisp.org>
5859
5860         mgetgroups: Move AC_LIBOBJ invocations to module description.
5861         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
5862         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
5863
5864 2011-05-23  Bruno Haible  <bruno@clisp.org>
5865
5866         memxor: Move AC_LIBOBJ invocations to module description.
5867         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
5868         * modules/memxor (Makefile.am): Augment lib_SOURCES.
5869
5870 2011-05-23  Bruno Haible  <bruno@clisp.org>
5871
5872         memcoll: Move AC_LIBOBJ invocations to module description.
5873         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
5874         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
5875
5876 2011-05-23  Bruno Haible  <bruno@clisp.org>
5877
5878         memcasecmp: Move AC_LIBOBJ invocations to module description.
5879         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
5880         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
5881
5882 2011-05-23  Bruno Haible  <bruno@clisp.org>
5883
5884         crypto/md5: Move AC_LIBOBJ invocations to module description.
5885         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
5886         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
5887
5888 2011-05-23  Bruno Haible  <bruno@clisp.org>
5889
5890         crypto/md4: Move AC_LIBOBJ invocations to module description.
5891         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
5892         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
5893
5894 2011-05-23  Bruno Haible  <bruno@clisp.org>
5895
5896         crypto/md2: Move AC_LIBOBJ invocations to module description.
5897         * m4/md2.m4: Remove file.
5898         * modules/crypto/md2 (Files): Remove it.
5899         (configure.ac): Remove gl_MD2 call.
5900         (Makefile.am): Augment lib_SOURCES.
5901
5902 2011-05-23  Bruno Haible  <bruno@clisp.org>
5903
5904         long-options: Move AC_LIBOBJ invocations to module description.
5905         * m4/long-options.m4: Remove file.
5906         * modules/long-options (Files): Remove it.
5907         (configure.ac): Remove gl_LONG_OPTIONS call.
5908         (Makefile.am): Augment lib_SOURCES.
5909
5910 2011-05-23  Bruno Haible  <bruno@clisp.org>
5911
5912         i-ring: Move AC_LIBOBJ invocations to module description.
5913         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
5914         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
5915
5916 2011-05-23  Bruno Haible  <bruno@clisp.org>
5917
5918         idcache: Move AC_LIBOBJ invocations to module description.
5919         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
5920         * modules/idcache (Makefile.am): Augment lib_SOURCES.
5921
5922 2011-05-23  Bruno Haible  <bruno@clisp.org>
5923
5924         human: Move AC_LIBOBJ invocations to module description.
5925         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
5926         * modules/human (Makefile.am): Augment lib_SOURCES.
5927
5928 2011-05-23  Bruno Haible  <bruno@clisp.org>
5929
5930         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
5931         * m4/hmac-sha1.m4: Remove file.
5932         * modules/crypto/hmac-sha1 (Files): Remove it.
5933         (configure.ac): Remove gl_HMAC_SHA1 call.
5934         (Makefile.am): Augment lib_SOURCES.
5935
5936 2011-05-23  Bruno Haible  <bruno@clisp.org>
5937
5938         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
5939         * m4/hmac-md5.m4: Remove file.
5940         * modules/crypto/hmac-md5 (Files): Remove it.
5941         (configure.ac): Remove gl_HMAC_MD5 call.
5942         (Makefile.am): Augment lib_SOURCES.
5943
5944 2011-05-23  Bruno Haible  <bruno@clisp.org>
5945
5946         hash: Move AC_LIBOBJ invocations to module description.
5947         * m4/hash.m4: Remove file.
5948         * modules/hash (Files): Remove it.
5949         (configure.ac): Remove gl_HASH call.
5950         (Makefile.am): Augment lib_SOURCES.
5951
5952 2011-05-23  Bruno Haible  <bruno@clisp.org>
5953
5954         hard-locale: Move AC_LIBOBJ invocations to module description.
5955         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
5956         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
5957
5958 2011-05-23  Bruno Haible  <bruno@clisp.org>
5959
5960         getugroups: Move AC_LIBOBJ invocations to module description.
5961         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
5962         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
5963
5964 2011-05-23  Bruno Haible  <bruno@clisp.org>
5965
5966         gettime: Move AC_LIBOBJ invocations to module description.
5967         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
5968         * modules/gettime (Makefile.am): Augment lib_SOURCES.
5969
5970 2011-05-23  Bruno Haible  <bruno@clisp.org>
5971
5972         getndelim2: Move AC_LIBOBJ invocations to module description.
5973         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
5974         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
5975
5976 2011-05-23  Bruno Haible  <bruno@clisp.org>
5977
5978         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
5979         * m4/gc-pbkdf2-sha1.m4: Remove file.
5980         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
5981         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
5982         (Makefile.am): Augment lib_SOURCES.
5983
5984 2011-05-23  Bruno Haible  <bruno@clisp.org>
5985
5986         fts: Move AC_LIBOBJ invocations to module description.
5987         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
5988         * modules/fts (configure.ac): ... to here.
5989
5990 2011-05-23  Bruno Haible  <bruno@clisp.org>
5991
5992         file-type: Move AC_LIBOBJ invocations to module description.
5993         * m4/file-type.m4: Remove file.
5994         * modules/file-type (Files): Remove it.
5995         (configure.ac): Remove gl_FILE_TYPE call.
5996         (Makefile.am): Augment lib_SOURCES.
5997
5998 2011-05-23  Bruno Haible  <bruno@clisp.org>
5999
6000         filenamecat*: Respect rules for use of AC_LIBOBJ.
6001         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
6002         Remove AC_LIBOBJ invocation.
6003         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
6004         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
6005
6006 2011-05-23  Bruno Haible  <bruno@clisp.org>
6007
6008         filemode: Move AC_LIBOBJ invocations to module description.
6009         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
6010         * modules/filemode (Makefile.am): Augment lib_SOURCES.
6011
6012 2011-05-23  Bruno Haible  <bruno@clisp.org>
6013
6014         openat-safer: Move AC_LIBOBJ invocations to module description.
6015         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
6016         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
6017
6018 2011-05-23  Bruno Haible  <bruno@clisp.org>
6019
6020         fcntl-safer: Move AC_LIBOBJ invocations to module description.
6021         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
6022         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
6023
6024 2011-05-23  Bruno Haible  <bruno@clisp.org>
6025
6026         exclude: Move AC_LIBOBJ invocations to module description.
6027         * m4/exclude.m4: Remove file.
6028         * modules/exclude (Files): Remove it.
6029         (configure.ac): Remove gl_EXCLUDE call.
6030         (Makefile.am): Augment lib_SOURCES.
6031
6032 2011-05-23  Bruno Haible  <bruno@clisp.org>
6033
6034         dirname*: Respect rules for use of AC_LIBOBJ.
6035         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
6036         invocations.
6037         * modules/dirname (Makefile.am): Augment lib_SOURCES.
6038         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
6039
6040 2011-05-23  Bruno Haible  <bruno@clisp.org>
6041
6042         dirent-safer: Move AC_LIBOBJ invocations to module description.
6043         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
6044         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
6045
6046 2011-05-23  Bruno Haible  <bruno@clisp.org>
6047
6048         crypto/des: Move AC_LIBOBJ invocations to module description.
6049         * m4/des.m4: Remove file.
6050         * modules/crypto/des (Files): Remove it.
6051         (configure.ac): Remove gl_DES call.
6052         (Makefile.am): Augment lib_SOURCES.
6053
6054 2011-05-23  Bruno Haible  <bruno@clisp.org>
6055
6056         cycle-check: Move AC_LIBOBJ invocations to module description.
6057         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
6058         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
6059
6060 2011-05-23  Bruno Haible  <bruno@clisp.org>
6061
6062         c-strtold: Move AC_LIBOBJ invocations to module description.
6063         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
6064         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
6065
6066 2011-05-23  Bruno Haible  <bruno@clisp.org>
6067
6068         c-strtod: Move AC_LIBOBJ invocations to module description.
6069         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
6070         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
6071
6072 2011-05-23  Bruno Haible  <bruno@clisp.org>
6073
6074         crc: Move AC_LIBOBJ invocations to module description.
6075         * m4/crc.m4: Remove file.
6076         * modules/crc (Files): Remove it.
6077         (configure.ac): Remove gl_CRC call.
6078         (Makefile.am): Augment lib_SOURCES.
6079
6080 2011-05-23  Bruno Haible  <bruno@clisp.org>
6081
6082         close-stream: Move AC_LIBOBJ invocations to module description.
6083         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
6084         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
6085
6086 2011-05-23  Bruno Haible  <bruno@clisp.org>
6087
6088         closeout: Move AC_LIBOBJ invocations to module description.
6089         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
6090         * modules/closeout (Makefile.am): Augment lib_SOURCES.
6091
6092 2011-05-23  Bruno Haible  <bruno@clisp.org>
6093
6094         closein: Move AC_LIBOBJ invocations to module description.
6095         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
6096         * modules/closein (Makefile.am): Augment lib_SOURCES.
6097
6098 2011-05-23  Bruno Haible  <bruno@clisp.org>
6099
6100         cloexec: Move AC_LIBOBJ invocations to module description.
6101         * m4/cloexec.m4: Remove file.
6102         * modules/cloexec (Files): Remove it.
6103         (configure.ac): Remove gl_CLOEXEC call.
6104         (Makefile.am): Augment lib_SOURCES.
6105
6106 2011-05-23  Bruno Haible  <bruno@clisp.org>
6107
6108         check-version: Move AC_LIBOBJ invocations to module description.
6109         * m4/check-version.m4: Remove file.
6110         * modules/check-version (Files): Remove it.
6111         (configure.ac): Remove gl_CHECK_VERSION call.
6112         (Makefile.am): Augment lib_SOURCES.
6113
6114 2011-05-23  Bruno Haible  <bruno@clisp.org>
6115
6116         chdir-safer: Move AC_LIBOBJ invocations to module description.
6117         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
6118         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
6119
6120 2011-05-23  Bruno Haible  <bruno@clisp.org>
6121
6122         canonicalize: Move AC_LIBOBJ invocations to module description.
6123         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
6124         AC_LIBOBJ invocation.
6125         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
6126
6127 2011-05-23  Bruno Haible  <bruno@clisp.org>
6128
6129         canon-host: Move AC_LIBOBJ invocations to module description.
6130         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
6131         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
6132         instead of gl_CANON_HOST.
6133         (Makefile.am): Augment lib_SOURCES.
6134
6135 2011-05-23  Bruno Haible  <bruno@clisp.org>
6136
6137         backupfile: Move AC_LIBOBJ invocations to module description.
6138         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
6139         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
6140
6141 2011-05-23  Bruno Haible  <bruno@clisp.org>
6142
6143         argmatch: Move AC_LIBOBJ invocations to module description.
6144         * m4/argmatch.m4: Remove file.
6145         * modules/argmatch (Files): Remove it.
6146         (configure.ac): Remove gl_ARGMATCH call.
6147         (Makefile.am): Augment lib_SOURCES.
6148
6149 2011-05-23  Bruno Haible  <bruno@clisp.org>
6150
6151         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
6152         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
6153         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
6154
6155 2011-05-23  Bruno Haible  <bruno@clisp.org>
6156
6157         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
6158         * m4/arcfour.m4: Remove file.
6159         * modules/crypto/arcfour (Files): Remove it.
6160         (configure.ac): Remove gl_ARCFOUR call.
6161         (Makefile.am): Augment lib_SOURCES.
6162
6163 2011-05-22  Bruno Haible  <bruno@clisp.org>
6164
6165         write: Move AC_LIBOBJ invocations to module description.
6166         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
6167         * modules/write (configure.ac): ... to here.
6168
6169 2011-05-22  Bruno Haible  <bruno@clisp.org>
6170
6171         wmemset: Move AC_LIBOBJ invocations to module description.
6172         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
6173         here...
6174         * modules/wmemset (configure.ac): ... to here.
6175
6176 2011-05-22  Bruno Haible  <bruno@clisp.org>
6177
6178         wmemmove: Move AC_LIBOBJ invocations to module description.
6179         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
6180         here...
6181         * modules/wmemmove (configure.ac): ... to here.
6182
6183 2011-05-22  Bruno Haible  <bruno@clisp.org>
6184
6185         wmemcpy: Move AC_LIBOBJ invocations to module description.
6186         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
6187         here...
6188         * modules/wmemcpy (configure.ac): ... to here.
6189
6190 2011-05-22  Bruno Haible  <bruno@clisp.org>
6191
6192         wmemcmp: Move AC_LIBOBJ invocations to module description.
6193         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
6194         here...
6195         * modules/wmemcmp (configure.ac): ... to here.
6196
6197 2011-05-22  Bruno Haible  <bruno@clisp.org>
6198
6199         wmemchr: Move AC_LIBOBJ invocations to module description.
6200         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
6201         here...
6202         * modules/wmemchr (configure.ac): ... to here.
6203
6204 2011-05-22  Bruno Haible  <bruno@clisp.org>
6205
6206         wcswidth: Move AC_LIBOBJ invocations to module description.
6207         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
6208         here...
6209         * modules/wcswidth (configure.ac): ... to here.
6210
6211 2011-05-22  Bruno Haible  <bruno@clisp.org>
6212
6213         wcwidth: Respect rules for use of AC_LIBOBJ.
6214         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
6215         invocation from here...
6216         * modules/wcwidth (configure.ac): ... to here.
6217         (Depends-on): Update conditions.
6218
6219 2011-05-22  Bruno Haible  <bruno@clisp.org>
6220
6221         wctype: Move AC_LIBOBJ invocations to module description.
6222         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
6223         invocation from here...
6224         * modules/wctype (configure.ac): ... to here.
6225         (Depends-on): Update conditions.
6226
6227 2011-05-22  Bruno Haible  <bruno@clisp.org>
6228
6229         wctrans: Move AC_LIBOBJ invocations to module description.
6230         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
6231         invocation from here...
6232         * modules/wctrans (configure.ac): ... to here.
6233
6234 2011-05-22  Bruno Haible  <bruno@clisp.org>
6235
6236         wctomb: Move AC_LIBOBJ invocations to module description.
6237         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
6238         invocations from here...
6239         * modules/wctomb (configure.ac): ... to here.
6240
6241 2011-05-22  Bruno Haible  <bruno@clisp.org>
6242
6243         wctob: Move AC_LIBOBJ invocations to module description.
6244         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
6245         gl_PREREQ_WCTOB invocations from here...
6246         * modules/wctob (configure.ac): ... to here.
6247         (Depends-on): Update conditions.
6248
6249 2011-05-22  Bruno Haible  <bruno@clisp.org>
6250
6251         wcsxfrm: Move AC_LIBOBJ invocations to module description.
6252         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
6253         here...
6254         * modules/wcsxfrm (configure.ac): ... to here.
6255
6256 2011-05-22  Bruno Haible  <bruno@clisp.org>
6257
6258         wcstok: Move AC_LIBOBJ invocations to module description.
6259         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
6260         * modules/wcstok (configure.ac): ... to here.
6261
6262 2011-05-22  Bruno Haible  <bruno@clisp.org>
6263
6264         wcsstr: Move AC_LIBOBJ invocations to module description.
6265         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
6266         * modules/wcsstr (configure.ac): ... to here.
6267
6268 2011-05-22  Bruno Haible  <bruno@clisp.org>
6269
6270         wcsspn: Move AC_LIBOBJ invocations to module description.
6271         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
6272         * modules/wcsspn (configure.ac): ... to here.
6273
6274 2011-05-22  Bruno Haible  <bruno@clisp.org>
6275
6276         wcsrtombs: Move AC_LIBOBJ invocations to module description.
6277         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
6278         gl_PREREQ_WCSRTOMBS invocations from here...
6279         * modules/wcsrtombs (configure.ac): ... to here.
6280
6281 2011-05-22  Bruno Haible  <bruno@clisp.org>
6282
6283         wcsrchr: Move AC_LIBOBJ invocations to module description.
6284         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
6285         here...
6286         * modules/wcsrchr (configure.ac): ... to here.
6287
6288 2011-05-22  Bruno Haible  <bruno@clisp.org>
6289
6290         wcspbrk: Move AC_LIBOBJ invocations to module description.
6291         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
6292         here...
6293         * modules/wcspbrk (configure.ac): ... to here.
6294
6295 2011-05-22  Bruno Haible  <bruno@clisp.org>
6296
6297         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
6298         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
6299         gl_PREREQ_WCSNRTOMBS invocations from here...
6300         * modules/wcsnrtombs (configure.ac): ... to here.
6301
6302 2011-05-22  Bruno Haible  <bruno@clisp.org>
6303
6304         wcsnlen: Move AC_LIBOBJ invocations to module description.
6305         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
6306         here...
6307         * modules/wcsnlen (configure.ac): ... to here.
6308
6309 2011-05-22  Bruno Haible  <bruno@clisp.org>
6310
6311         wcsncpy: Move AC_LIBOBJ invocations to module description.
6312         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
6313         here...
6314         * modules/wcsncpy (configure.ac): ... to here.
6315
6316 2011-05-22  Bruno Haible  <bruno@clisp.org>
6317
6318         wcsncmp: Move AC_LIBOBJ invocations to module description.
6319         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
6320         here...
6321         * modules/wcsncmp (configure.ac): ... to here.
6322
6323 2011-05-22  Bruno Haible  <bruno@clisp.org>
6324
6325         wcsncat: Move AC_LIBOBJ invocations to module description.
6326         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
6327         here...
6328         * modules/wcsncat (configure.ac): ... to here.
6329
6330 2011-05-22  Bruno Haible  <bruno@clisp.org>
6331
6332         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
6333         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
6334         from here...
6335         * modules/wcsncasecmp (configure.ac): ... to here.
6336
6337 2011-05-22  Bruno Haible  <bruno@clisp.org>
6338
6339         wcslen: Move AC_LIBOBJ invocations to module description.
6340         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
6341         * modules/wcslen (configure.ac): ... to here.
6342
6343 2011-05-22  Bruno Haible  <bruno@clisp.org>
6344
6345         wcsdup: Move AC_LIBOBJ invocations to module description.
6346         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
6347         * modules/wcsdup (configure.ac): ... to here.
6348
6349 2011-05-22  Bruno Haible  <bruno@clisp.org>
6350
6351         wcscspn: Move AC_LIBOBJ invocations to module description.
6352         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
6353         here...
6354         * modules/wcscspn (configure.ac): ... to here.
6355
6356 2011-05-22  Bruno Haible  <bruno@clisp.org>
6357
6358         wcscpy: Move AC_LIBOBJ invocations to module description.
6359         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
6360         * modules/wcscpy (configure.ac): ... to here.
6361
6362 2011-05-22  Bruno Haible  <bruno@clisp.org>
6363
6364         wcscoll: Move AC_LIBOBJ invocations to module description.
6365         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
6366         here...
6367         * modules/wcscoll (configure.ac): ... to here.
6368
6369 2011-05-22  Bruno Haible  <bruno@clisp.org>
6370
6371         wcscmp: Move AC_LIBOBJ invocations to module description.
6372         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
6373         * modules/wcscmp (configure.ac): ... to here.
6374
6375 2011-05-22  Bruno Haible  <bruno@clisp.org>
6376
6377         wcschr: Move AC_LIBOBJ invocations to module description.
6378         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
6379         * modules/wcschr (configure.ac): ... to here.
6380
6381 2011-05-22  Bruno Haible  <bruno@clisp.org>
6382
6383         wcscat: Move AC_LIBOBJ invocations to module description.
6384         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
6385         * modules/wcscat (configure.ac): ... to here.
6386
6387 2011-05-22  Bruno Haible  <bruno@clisp.org>
6388
6389         wcscasecmp: Move AC_LIBOBJ invocations to module description.
6390         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
6391         here...
6392         * modules/wcscasecmp (configure.ac): ... to here.
6393
6394 2011-05-22  Bruno Haible  <bruno@clisp.org>
6395
6396         wcrtomb: Move AC_LIBOBJ invocations to module description.
6397         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
6398         invocations from here...
6399         * modules/wcrtomb (configure.ac): ... to here.
6400
6401 2011-05-22  Bruno Haible  <bruno@clisp.org>
6402
6403         wcpncpy: Move AC_LIBOBJ invocations to module description.
6404         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
6405         here...
6406         * modules/wcpncpy (configure.ac): ... to here.
6407
6408 2011-05-22  Bruno Haible  <bruno@clisp.org>
6409
6410         wcpcpy: Move AC_LIBOBJ invocations to module description.
6411         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
6412         * modules/wcpcpy (configure.ac): ... to here.
6413
6414 2011-05-22  Bruno Haible  <bruno@clisp.org>
6415
6416         waitpid: Move AC_LIBOBJ invocations to module description.
6417         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
6418         invocation from here...
6419         * modules/waitpid (configure.ac): ... to here.
6420
6421 2011-05-22  Bruno Haible  <bruno@clisp.org>
6422
6423         utimensat: Move AC_LIBOBJ invocations to module description.
6424         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
6425         here...
6426         * modules/utimensat (configure.ac): ... to here.
6427
6428 2011-05-22  Bruno Haible  <bruno@clisp.org>
6429
6430         usleep: Move AC_LIBOBJ invocations to module description.
6431         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
6432         here...
6433         * modules/usleep (configure.ac): ... to here.
6434
6435 2011-05-22  Bruno Haible  <bruno@clisp.org>
6436
6437         unlockpt: Move AC_LIBOBJ invocations to module description.
6438         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
6439         gl_PREREQ_UNLOCKPT invocations from here...
6440         * modules/unlockpt (configure.ac): ... to here.
6441
6442 2011-05-22  Bruno Haible  <bruno@clisp.org>
6443
6444         unlink: Respect rules for use of AC_LIBOBJ.
6445         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
6446         * modules/unlink (configure.ac): ... to here.
6447
6448 2011-05-22  Bruno Haible  <bruno@clisp.org>
6449
6450         uname: Move AC_LIBOBJ invocations to module description.
6451         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
6452         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
6453         here...
6454         * modules/uname (configure.ac): ... to here.
6455
6456 2011-05-22  Bruno Haible  <bruno@clisp.org>
6457
6458         ttyname_r: Move AC_LIBOBJ invocations to module description.
6459         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
6460         gl_PREREQ_TTYNAME_R invocations from here...
6461         * modules/ttyname_r (configure.ac): ... to here.
6462
6463 2011-05-22  Bruno Haible  <bruno@clisp.org>
6464
6465         tsearch: Move AC_LIBOBJ invocations to module description.
6466         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
6467         invocations from here...
6468         * modules/tsearch (configure.ac): ... to here.
6469
6470 2011-05-22  Bruno Haible  <bruno@clisp.org>
6471
6472         towctrans: Move AC_LIBOBJ invocations to module description.
6473         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
6474         AC_LIBOBJ invocation from here...
6475         * modules/towctrans (configure.ac): ... to here.
6476
6477 2011-05-22  Bruno Haible  <bruno@clisp.org>
6478
6479         tmpfile: Move AC_LIBOBJ invocations to module description.
6480         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
6481         invocations from here...
6482         * modules/tmpfile (configure.ac): ... to here.
6483
6484 2011-05-22  Bruno Haible  <bruno@clisp.org>
6485
6486         times: Move AC_LIBOBJ invocations to module description.
6487         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
6488         * modules/times (configure.ac): ... to here.
6489
6490 2011-05-22  Bruno Haible  <bruno@clisp.org>
6491
6492         time_r: Move AC_LIBOBJ invocations to module description.
6493         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
6494         invocations from here...
6495         * modules/time_r (configure.ac): ... to here.
6496
6497 2011-05-22  Bruno Haible  <bruno@clisp.org>
6498
6499         timegm: Move AC_LIBOBJ invocations to module description.
6500         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
6501         invocations from here...
6502         * modules/timegm (configure.ac): ... to here.
6503
6504 2011-05-22  Bruno Haible  <bruno@clisp.org>
6505
6506         tcgetsid: Move AC_LIBOBJ invocations to module description.
6507         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
6508         and gl_PREREQ_TCGETSID invocations from here...
6509         * modules/tcgetsid (configure.ac): ... to here.
6510         (Depends-on): Update conditions.
6511
6512 2011-05-22  Bruno Haible  <bruno@clisp.org>
6513
6514         symlinkat: Move AC_LIBOBJ invocations to module description.
6515         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
6516         here...
6517         * modules/symlinkat (configure.ac): ... to here.
6518
6519 2011-05-22  Bruno Haible  <bruno@clisp.org>
6520
6521         symlink: Move AC_LIBOBJ invocations to module description.
6522         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
6523         here...
6524         * modules/symlink (configure.ac): ... to here.
6525
6526 2011-05-22  Bruno Haible  <bruno@clisp.org>
6527
6528         strverscmp: Move AC_LIBOBJ invocations to module description.
6529         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
6530         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
6531         from here...
6532         * modules/strverscmp (configure.ac): ... to here.
6533
6534 2011-05-22  Bruno Haible  <bruno@clisp.org>
6535
6536         strtok_r: Move AC_LIBOBJ invocations to module description.
6537         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
6538         and gl_PREREQ_STRTOK_R invocations from here...
6539         * modules/strtok_r (configure.ac): ... to here.
6540         (Depends-on): Update conditions.
6541
6542 2011-05-22  Bruno Haible  <bruno@clisp.org>
6543
6544         strtoumax: Move AC_LIBOBJ invocations to module description.
6545         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
6546         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
6547         from here...
6548         * modules/strtoumax (configure.ac): ... to here.
6549
6550 2011-05-22  Bruno Haible  <bruno@clisp.org>
6551
6552         strtoimax: Move AC_LIBOBJ invocations to module description.
6553         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
6554         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
6555         from here...
6556         * modules/strtoimax (configure.ac): ... to here.
6557
6558 2011-05-22  Bruno Haible  <bruno@clisp.org>
6559
6560         strtoull: Move AC_LIBOBJ invocations to module description.
6561         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
6562         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
6563         from here...
6564         * modules/strtoull (configure.ac): ... to here.
6565
6566 2011-05-22  Bruno Haible  <bruno@clisp.org>
6567
6568         strtoll: Move AC_LIBOBJ invocations to module description.
6569         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
6570         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
6571         here...
6572         * modules/strtoll (configure.ac): ... to here.
6573
6574 2011-05-22  Bruno Haible  <bruno@clisp.org>
6575
6576         strtoul: Move AC_LIBOBJ invocations to module description.
6577         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
6578         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
6579         * modules/strtoul (configure.ac): ... to here.
6580
6581 2011-05-22  Bruno Haible  <bruno@clisp.org>
6582
6583         strtol: Move AC_LIBOBJ invocations to module description.
6584         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
6585         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
6586         * modules/strtol (configure.ac): ... to here.
6587
6588 2011-05-22  Bruno Haible  <bruno@clisp.org>
6589
6590         strtod: Move AC_LIBOBJ invocations to module description.
6591         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
6592         invocations from here...
6593         * modules/strtod (configure.ac): ... to here.
6594
6595 2011-05-22  Bruno Haible  <bruno@clisp.org>
6596
6597         strstr*: Move AC_LIBOBJ invocations to module description.
6598         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
6599         invocations from here...
6600         * modules/strstr-simple (configure.ac): ... to here.
6601         * modules/strstr (configure.ac): ... and here.
6602
6603 2011-05-22  Bruno Haible  <bruno@clisp.org>
6604
6605         strsignal: Move AC_LIBOBJ invocations to module description.
6606         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
6607         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
6608         * modules/strsignal (configure.ac): ... to here.
6609         (Depends-on): Update conditions.
6610
6611 2011-05-22  Bruno Haible  <bruno@clisp.org>
6612
6613         strsep: Move AC_LIBOBJ invocations to module description.
6614         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
6615         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
6616         here...
6617         * modules/strsep (configure.ac): ... to here.
6618
6619 2011-05-22  Bruno Haible  <bruno@clisp.org>
6620
6621         strptime: Move AC_LIBOBJ invocations to module description.
6622         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
6623         gl_PREREQ_STRPTIME invocations from here...
6624         * modules/strptime (configure.ac): ... to here.
6625
6626 2011-05-22  Bruno Haible  <bruno@clisp.org>
6627
6628         strpbrk: Move AC_LIBOBJ invocations to module description.
6629         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
6630         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
6631         here...
6632         * modules/strpbrk (configure.ac): ... to here.
6633
6634 2011-05-22  Bruno Haible  <bruno@clisp.org>
6635
6636         strnlen: Move AC_LIBOBJ invocations to module description.
6637         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
6638         invocations from here...
6639         * modules/strnlen (configure.ac): ... to here.
6640
6641 2011-05-22  Bruno Haible  <bruno@clisp.org>
6642
6643         strndup: Move AC_LIBOBJ invocations to module description.
6644         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
6645         invocations from here...
6646         * modules/strndup (configure.ac): ... to here.
6647         (Depends-on): Update conditions.
6648
6649 2011-05-22  Bruno Haible  <bruno@clisp.org>
6650
6651         strncat: Move AC_LIBOBJ invocations to module description.
6652         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
6653         invocations from here...
6654         * modules/strncat (configure.ac): ... to here.
6655
6656 2011-05-22  Bruno Haible  <bruno@clisp.org>
6657
6658         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
6659         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
6660         invocations from here...
6661         * modules/strdup (configure.ac): ... to here.
6662         * modules/strdup-posix (configure.ac): ... and here.
6663
6664 2011-05-22  Bruno Haible  <bruno@clisp.org>
6665
6666         strcspn: Move AC_LIBOBJ invocations to module description.
6667         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
6668         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
6669         here...
6670         * modules/strcspn (configure.ac): ... to here.
6671
6672 2011-05-22  Bruno Haible  <bruno@clisp.org>
6673
6674         strchrnul: Move AC_LIBOBJ invocations to module description.
6675         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
6676         gl_PREREQ_STRCHRNUL invocations from here...
6677         * modules/strchrnul (configure.ac): ... to here.
6678
6679 2011-05-22  Bruno Haible  <bruno@clisp.org>
6680
6681         strcasestr*: Move AC_LIBOBJ invocations to module description.
6682         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
6683         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
6684         * modules/strcasestr-simple (configure.ac): ... to here.
6685         * modules/strcasestr (configure.ac): ... and here.
6686
6687 2011-05-22  Bruno Haible  <bruno@clisp.org>
6688
6689         strcase: Move AC_LIBOBJ invocations to module description.
6690         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
6691         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
6692         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
6693         gl_PREREQ_STRNCASECMP invocations from here...
6694         * modules/strcase (configure.ac): ... to here.
6695
6696 2011-05-22  Bruno Haible  <bruno@clisp.org>
6697
6698         stpncpy: Move AC_LIBOBJ invocations to module description.
6699         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
6700         here...
6701         * modules/stpncpy (configure.ac): ... to here.
6702
6703 2011-05-22  Bruno Haible  <bruno@clisp.org>
6704
6705         stpcpy: Move AC_LIBOBJ invocations to module description.
6706         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
6707         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
6708         here...
6709         * modules/stpcpy (configure.ac): ... to here.
6710
6711 2011-05-21  Bruno Haible  <bruno@clisp.org>
6712
6713         stat: Move AC_LIBOBJ invocations to module description.
6714         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
6715         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
6716         here...
6717         * modules/stat (configure.ac): ... to here.
6718
6719 2011-05-21  Bruno Haible  <bruno@clisp.org>
6720
6721         sleep: Move AC_LIBOBJ invocations to module description.
6722         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
6723         * modules/sleep (configure.ac): ... to here.
6724
6725 2011-05-21  Bruno Haible  <bruno@clisp.org>
6726
6727         signbit: Move AC_LIBOBJ invocations to module description.
6728         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
6729         * modules/signbit (configure.ac): ... to here.
6730
6731 2011-05-21  Bruno Haible  <bruno@clisp.org>
6732
6733         sigprocmask: Move AC_LIBOBJ invocations to module description.
6734         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
6735         gl_PREREQ_SIGPROMASK invocations from here...
6736         * modules/sigprocmask (configure.ac): ... to here.
6737
6738 2011-05-21  Bruno Haible  <bruno@clisp.org>
6739
6740         sigaction: Move AC_LIBOBJ invocations to module description.
6741         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
6742         gl_PREREQ_SIGACTION invocations from here...
6743         * modules/sigaction (configure.ac): ... to here.
6744
6745 2011-05-21  Bruno Haible  <bruno@clisp.org>
6746
6747         sig2str: Move AC_LIBOBJ invocations to module description.
6748         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
6749         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
6750         here...
6751         * modules/sig2str (configure.ac): ... to here.
6752
6753 2011-05-21  Bruno Haible  <bruno@clisp.org>
6754
6755         setlocale: Move AC_LIBOBJ invocations to module description.
6756         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
6757         gl_PREREQ_SETLOCALE invocations from here...
6758         * modules/setlocale (configure.ac): ... to here.
6759
6760 2011-05-21  Bruno Haible  <bruno@clisp.org>
6761
6762         unsetenv: Move AC_LIBOBJ invocations to module description.
6763         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
6764         and gl_PREREQ_UNSETENV invocations from here...
6765         * modules/unsetenv (configure.ac): ... to here.
6766         (Depends-on): Update.
6767
6768 2011-05-21  Bruno Haible  <bruno@clisp.org>
6769
6770         setenv: Move AC_LIBOBJ invocations to module description.
6771         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
6772         here...
6773         * modules/setenv (configure.ac): ... to here.
6774
6775 2011-05-21  Bruno Haible  <bruno@clisp.org>
6776
6777         selinux-h: Move AC_LIBOBJ invocations to module description.
6778         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
6779         AC_LIBOBJ invocation from here...
6780         * modules/selinux-h (configure.ac): ... to here.
6781
6782 2011-05-21  Bruno Haible  <bruno@clisp.org>
6783
6784         select: Respect rules for use of AC_LIBOBJ.
6785         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
6786         here...
6787         * modules/select (configure.ac): ... to here.
6788
6789 2011-05-21  Bruno Haible  <bruno@clisp.org>
6790
6791         scandir: Move AC_LIBOBJ invocations to module description.
6792         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
6793         invocations from here...
6794         * modules/scandir (configure.ac): ... to here.
6795
6796 2011-05-21  Bruno Haible  <bruno@clisp.org>
6797
6798         rpmatch: Move AC_LIBOBJ invocations to module description.
6799         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
6800         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
6801         here...
6802         * modules/rpmatch (configure.ac): ... to here.
6803
6804 2011-05-21  Bruno Haible  <bruno@clisp.org>
6805
6806         rmdir: Respect rules for use of AC_LIBOBJ.
6807         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
6808         * modules/rmdir (configure.ac): ... to here.
6809
6810 2011-05-21  Bruno Haible  <bruno@clisp.org>
6811
6812         renameat: Move AC_LIBOBJ invocations to module description.
6813         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
6814         here...
6815         * modules/renameat (configure.ac): ... to here.
6816
6817 2011-05-21  Bruno Haible  <bruno@clisp.org>
6818
6819         rename: Respect rules for use of AC_LIBOBJ.
6820         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
6821         here...
6822         * modules/rename (configure.ac): ... to here.
6823
6824 2011-05-21  Bruno Haible  <bruno@clisp.org>
6825
6826         remove: Move AC_LIBOBJ invocations to module description.
6827         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
6828         here...
6829         * modules/remove (configure.ac): ... to here.
6830
6831 2011-05-21  Bruno Haible  <bruno@clisp.org>
6832
6833         relocatable-lib: Move AC_LIBOBJ invocations to module description.
6834         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
6835         macro.
6836         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
6837         * modules/relocatable-lib (configure.ac): ... to here.
6838         * modules/relocatable-prog-wrapper (configure.ac): Invoke
6839         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
6840
6841 2011-05-21  Bruno Haible  <bruno@clisp.org>
6842
6843         relocatable-prog: Move AC_LIBOBJ invocations to module description.
6844         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
6845         here...
6846         * modules/relocatable-prog (configure.ac): ... to here.
6847
6848 2011-05-21  Bruno Haible  <bruno@clisp.org>
6849
6850         regex: Move AC_LIBOBJ invocations to module description.
6851         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
6852         invocations from here...
6853         * modules/regex (configure.ac): ... to here.
6854
6855 2011-05-21  Bruno Haible  <bruno@clisp.org>
6856
6857         realloc-*: Move AC_LIBOBJ invocations to module description.
6858         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
6859         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
6860         AC_LIBOBJ invocations from here...
6861         * modules/realloc-gnu (configure.ac): ... to here.
6862         * modules/realloc-posix (configure.ac): ... and here.
6863
6864 2011-05-21  Bruno Haible  <bruno@clisp.org>
6865
6866         readutmp: Move AC_LIBOBJ invocations to module description.
6867         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
6868         * modules/readutmp (configure.ac): ... to here.
6869
6870 2011-05-21  Bruno Haible  <bruno@clisp.org>
6871
6872         readlinkat: Move AC_LIBOBJ invocations to module description.
6873         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
6874         here...
6875         * modules/readlinkat (configure.ac): ... to here.
6876
6877 2011-05-21  Bruno Haible  <bruno@clisp.org>
6878
6879         readlink: Move AC_LIBOBJ invocations to module description.
6880         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
6881         gl_PREREQ_READLINK invocations from here...
6882         * modules/readlink (configure.ac): ... to here.
6883
6884 2011-05-21  Bruno Haible  <bruno@clisp.org>
6885
6886         readline: Move AC_LIBOBJ invocations to module description.
6887         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
6888         gl_PREREQ_READLINE invocations from here...
6889         * modules/readline (configure.ac): ... to here.
6890
6891 2011-05-21  Bruno Haible  <bruno@clisp.org>
6892
6893         read: Move AC_LIBOBJ invocations to module description.
6894         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
6895         * modules/read (configure.ac): ... to here.
6896
6897 2011-05-21  Bruno Haible  <bruno@clisp.org>
6898
6899         rawmemchr: Move AC_LIBOBJ invocations to module description.
6900         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
6901         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
6902         from here...
6903         * modules/rawmemchr (configure.ac): ... to here.
6904
6905 2011-05-21  Bruno Haible  <bruno@clisp.org>
6906
6907         random_r: Move AC_LIBOBJ invocations to module description.
6908         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
6909         gl_PREREQ_RANDOM_R invocations from here...
6910         * modules/random_r (configure.ac): ... to here.
6911
6912 2011-05-21  Bruno Haible  <bruno@clisp.org>
6913
6914         pwrite: Move AC_LIBOBJ invocations to module description.
6915         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
6916         * modules/pwrite (configure.ac): ... to here.
6917
6918 2011-05-21  Bruno Haible  <bruno@clisp.org>
6919
6920         putenv: Move AC_LIBOBJ invocations to module description.
6921         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
6922         * modules/putenv (configure.ac): ... to here.
6923
6924 2011-05-21  Bruno Haible  <bruno@clisp.org>
6925
6926         login_tty: Move AC_LIBOBJ invocations to module description.
6927         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
6928         * modules/login_tty (configure.ac): ... to here.
6929
6930 2011-05-21  Bruno Haible  <bruno@clisp.org>
6931
6932         openpty: Move AC_LIBOBJ invocations to module description.
6933         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
6934         * modules/openpty (configure.ac): ... to here.
6935
6936 2011-05-21  Bruno Haible  <bruno@clisp.org>
6937
6938         forkpty: Move AC_LIBOBJ invocations to module description.
6939         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
6940         * modules/forkpty (configure.ac): ... to here.
6941
6942 2011-05-21  Bruno Haible  <bruno@clisp.org>
6943
6944         ptsname: Move AC_LIBOBJ invocations to module description.
6945         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
6946         invocations from here...
6947         * modules/ptsname (configure.ac): ... to here.
6948
6949 2011-05-21  Bruno Haible  <bruno@clisp.org>
6950
6951         pread: Move AC_LIBOBJ invocations to module description.
6952         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
6953         * modules/pread (configure.ac): ... to here.
6954
6955 2011-05-21  Bruno Haible  <bruno@clisp.org>
6956
6957         posix_spawn*: Move AC_LIBOBJ invocations to module description.
6958         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
6959         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
6960         * modules/posix_spawn (configure.ac): ... to here.
6961         * modules/posix_spawnp (configure.ac): ... and here.
6962
6963 2011-05-21  Bruno Haible  <bruno@clisp.org>
6964
6965         popen: Move AC_LIBOBJ invocations to module description.
6966         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
6967         invocations from here...
6968         * modules/popen (configure.ac): ... to here.
6969
6970 2011-05-21  Bruno Haible  <bruno@clisp.org>
6971
6972         poll: Move AC_LIBOBJ invocations to module description.
6973         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
6974         invocations from here...
6975         * modules/poll (configure.ac): ... to here.
6976
6977 2011-05-21  Bruno Haible  <bruno@clisp.org>
6978
6979         pipe-posix: Move AC_LIBOBJ invocations to module description.
6980         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
6981         * modules/pipe-posix (configure.ac): ... to here.
6982
6983 2011-05-21  Bruno Haible  <bruno@clisp.org>
6984
6985         openat: Respect rules for use of AC_LIBOBJ.
6986         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
6987         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
6988         * modules/openat (configure.ac): ... to here.
6989
6990 2011-05-21  Bruno Haible  <bruno@clisp.org>
6991
6992         obstack-printf*: Move AC_LIBOBJ invocations to module description.
6993         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
6994         invocation from here...
6995         * modules/obstack-printf (configure.ac): ... to here.
6996         * modules/obstack-printf-posix (configure.ac): ... and here.
6997
6998 2011-05-21  Bruno Haible  <bruno@clisp.org>
6999
7000         nl_langinfo: Move AC_LIBOBJ invocations to module description.
7001         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
7002         from here...
7003         * modules/nl_langinfo (configure.ac): ... to here.
7004
7005 2011-05-21  Bruno Haible  <bruno@clisp.org>
7006
7007         nanosleep: Move AC_LIBOBJ invocations to module description.
7008         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
7009         gl_PREREQ_NANOSLEEP invocations from here...
7010         * modules/nanosleep (configure.ac): ... to here.
7011
7012 2011-05-21  Bruno Haible  <bruno@clisp.org>
7013
7014         mountlist: Move AC_LIBOBJ invocations to module description.
7015         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
7016         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
7017         * modules/mountlist (configure.ac): ... to here.
7018
7019 2011-05-21  Bruno Haible  <bruno@clisp.org>
7020
7021         mktime: Respect rules for use of AC_LIBOBJ.
7022         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
7023         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
7024         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
7025         (gl_FUNC_MKTIME_INTERNAL): ... and here...
7026         * modules/mktime (configure.ac): ... to here.
7027         * modules/mktime-internal (configure.ac): ... and here.
7028         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
7029
7030 2011-05-21  Bruno Haible  <bruno@clisp.org>
7031
7032         mkstemps: Move AC_LIBOBJ invocations to module description.
7033         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
7034         here...
7035         * modules/mkstemps (configure.ac): ... to here.
7036
7037 2011-05-21  Bruno Haible  <bruno@clisp.org>
7038
7039         mkstemp: Move AC_LIBOBJ invocations to module description.
7040         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
7041         gl_PREREQ_MKSTEMP invocations from here...
7042         * modules/mkstemp (configure.ac): ... to here.
7043
7044 2011-05-21  Bruno Haible  <bruno@clisp.org>
7045
7046         mkostemps: Move AC_LIBOBJ invocations to module description.
7047         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
7048         here...
7049         * modules/mkostemps (configure.ac): ... to here.
7050
7051 2011-05-21  Bruno Haible  <bruno@clisp.org>
7052
7053         mkostemp: Move AC_LIBOBJ invocations to module description.
7054         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
7055         gl_PREREQ_MKOSTEMP invocations from here...
7056         * modules/mkostemp (configure.ac): ... to here.
7057
7058 2011-05-21  Bruno Haible  <bruno@clisp.org>
7059
7060         mknod: Move AC_LIBOBJ invocations to module description.
7061         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
7062         * modules/mknod (configure.ac): ... to here.
7063
7064 2011-05-21  Bruno Haible  <bruno@clisp.org>
7065
7066         mkfifoat: Move AC_LIBOBJ invocations to module description.
7067         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
7068         here...
7069         * modules/mkfifoat (configure.ac): ... to here.
7070
7071 2011-05-21  Bruno Haible  <bruno@clisp.org>
7072
7073         mkfifo: Respect rules for use of AC_LIBOBJ.
7074         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
7075         here...
7076         * modules/mkfifo (configure.ac): ... to here.
7077
7078 2011-05-21  Bruno Haible  <bruno@clisp.org>
7079
7080         mkdtemp: Move AC_LIBOBJ invocations to module description.
7081         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
7082         invocations from here...
7083         * modules/mkdtemp (configure.ac): ... to here.
7084
7085 2011-05-21  Bruno Haible  <bruno@clisp.org>
7086
7087         mkdir: Move AC_LIBOBJ invocations to module description.
7088         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
7089         * modules/mkdir (configure.ac): ... to here.
7090
7091 2011-05-21  Bruno Haible  <bruno@clisp.org>
7092
7093         memset: Move AC_LIBOBJ invocations to module description.
7094         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
7095         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
7096         here...
7097         * modules/memset (configure.ac): ... to here.
7098
7099 2011-05-21  Bruno Haible  <bruno@clisp.org>
7100
7101         memrchr: Move AC_LIBOBJ invocations to module description.
7102         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
7103         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
7104         here...
7105         * modules/memrchr (configure.ac): ... to here.
7106
7107 2011-05-21  Bruno Haible  <bruno@clisp.org>
7108
7109         mempcpy: Move AC_LIBOBJ invocations to module description.
7110         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
7111         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
7112         here...
7113         * modules/mempcpy (configure.ac): ... to here.
7114
7115 2011-05-21  Bruno Haible  <bruno@clisp.org>
7116
7117         memmove: Move AC_LIBOBJ invocations to module description.
7118         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
7119         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
7120         here...
7121         * modules/memmove (configure.ac): ... to here.
7122
7123 2011-05-21  Bruno Haible  <bruno@clisp.org>
7124
7125         memmem*: Move AC_LIBOBJ invocations to module description.
7126         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
7127         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
7128         here...
7129         (gl_FUNC_MEMMEM): ... and here...
7130         * modules/memmem-simple (configure.ac): ... to here.
7131         * modules/memmem (configure.ac): ... and here.
7132
7133 2011-05-21  Bruno Haible  <bruno@clisp.org>
7134
7135         memcpy: Move AC_LIBOBJ invocations to module description.
7136         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
7137         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
7138         here...
7139         * modules/memcpy (configure.ac): ... to here.
7140
7141 2011-05-21  Bruno Haible  <bruno@clisp.org>
7142
7143         memcmp: Simplify autoconf macro.
7144         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
7145         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
7146         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
7147
7148 2011-05-21  Bruno Haible  <bruno@clisp.org>
7149
7150         memcmp: Move AC_LIBOBJ invocations to module description.
7151         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
7152         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
7153         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
7154         * modules/memcmp (configure.ac): ... to here.
7155         (Depends-on): Update conditions.
7156
7157 2011-05-21  Bruno Haible  <bruno@clisp.org>
7158
7159         memchr: Respect rules for use of AC_LIBOBJ.
7160         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
7161         invocations from here...
7162         * modules/memchr (configure.ac): ... to here.
7163
7164 2011-05-21  Bruno Haible  <bruno@clisp.org>
7165
7166         mbtowc: Move AC_LIBOBJ invocations to module description.
7167         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
7168         invocations from here...
7169         * modules/mbtowc (configure.ac): ... to here.
7170
7171 2011-05-21  Bruno Haible  <bruno@clisp.org>
7172
7173         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
7174         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
7175         gl_PREREQ_MBSRTOWCS invocations from here...
7176         * modules/mbsrtowcs (configure.ac): ... to here.
7177
7178 2011-05-21  Bruno Haible  <bruno@clisp.org>
7179
7180         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
7181         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
7182         gl_PREREQ_MBSNRTOWCS invocations from here...
7183         * modules/mbsnrtowcs (configure.ac): ... to here.
7184
7185 2011-05-21  Bruno Haible  <bruno@clisp.org>
7186
7187         mbsinit: Move AC_LIBOBJ invocations to module description.
7188         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
7189         invocations from here...
7190         * modules/mbsinit (configure.ac): ... to here.
7191
7192 2011-05-21  Bruno Haible  <bruno@clisp.org>
7193
7194         mbrlen: Move AC_LIBOBJ invocations to module description.
7195         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
7196         invocations from here...
7197         * modules/mbrlen (configure.ac): ... to here.
7198
7199 2011-05-21  Bruno Haible  <bruno@clisp.org>
7200
7201         mbrtowc: Respect rules for use of AC_LIBOBJ.
7202         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
7203         invocations from here...
7204         * modules/mbrtowc (configure.ac): ... to here.
7205
7206 2011-05-21  Bruno Haible  <bruno@clisp.org>
7207
7208         malloc-*: Move AC_LIBOBJ invocations to module description.
7209         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
7210         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
7211         AC_LIBOBJ invocations from here...
7212         * modules/malloc-gnu (configure.ac): ... to here.
7213         * modules/malloc-posix (configure.ac): ... and here.
7214
7215 2011-05-21  Bruno Haible  <bruno@clisp.org>
7216
7217         lstat, openat: Respect rules for use of AC_LIBOBJ.
7218         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
7219         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
7220         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
7221         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
7222         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
7223         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
7224         here.
7225         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
7226
7227 2011-05-21  Bruno Haible  <bruno@clisp.org>
7228
7229         lseek: Move AC_LIBOBJ invocations to module description.
7230         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
7231         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
7232         * modules/lseek (configure.ac): ... to here.
7233
7234 2011-05-21  Bruno Haible  <bruno@clisp.org>
7235
7236         linkat: Move AC_LIBOBJ invocations to module description.
7237         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
7238         here...
7239         * modules/linkat (configure.ac): ... to here.
7240
7241 2011-05-21  Bruno Haible  <bruno@clisp.org>
7242
7243         link: Respect rules for use of AC_LIBOBJ.
7244         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
7245         * modules/link (configure.ac): ... to here.
7246
7247 2011-05-21  Bruno Haible  <bruno@clisp.org>
7248
7249         lchown: Move AC_LIBOBJ invocations to module description.
7250         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
7251         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
7252         * modules/lchown (configure.ac): ... to here.
7253
7254 2011-05-21  Bruno Haible  <bruno@clisp.org>
7255
7256         iswctype: Move AC_LIBOBJ invocations to module description.
7257         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
7258         here...
7259         * modules/iswctype (configure.ac): ... to here.
7260
7261 2011-05-21  Bruno Haible  <bruno@clisp.org>
7262
7263         iswblank: Move AC_LIBOBJ invocations to module description.
7264         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
7265         here...
7266         * modules/iswblank (configure.ac): ... to here.
7267
7268 2011-05-21  Bruno Haible  <bruno@clisp.org>
7269
7270         atanl: Move AC_LIBOBJ invocations to module description.
7271         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
7272         * modules/atanl (configure.ac): ... to here.
7273
7274 2011-05-21  Bruno Haible  <bruno@clisp.org>
7275
7276         acosl: Move AC_LIBOBJ invocations to module description.
7277         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
7278         * modules/acosl (configure.ac): ... to here.
7279
7280 2011-05-21  Bruno Haible  <bruno@clisp.org>
7281
7282         asinl: Respect rules for use of AC_LIBOBJ.
7283         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
7284         * modules/asinl (configure.ac): ... to here.
7285
7286 2011-05-21  Bruno Haible  <bruno@clisp.org>
7287
7288         tanl: Move AC_LIBOBJ invocations to module description.
7289         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
7290         * modules/tanl (configure.ac): ... to here.
7291
7292 2011-05-21  Bruno Haible  <bruno@clisp.org>
7293
7294         cosl: Move AC_LIBOBJ invocations to module description.
7295         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
7296         * modules/cosl (configure.ac): ... to here.
7297
7298 2011-05-21  Bruno Haible  <bruno@clisp.org>
7299
7300         sinl: Move AC_LIBOBJ invocations to module description.
7301         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
7302         * modules/sinl (configure.ac): ... to here.
7303
7304 2011-05-21  Bruno Haible  <bruno@clisp.org>
7305
7306         logl: Move AC_LIBOBJ invocations to module description.
7307         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
7308         * modules/logl (configure.ac): ... to here.
7309
7310 2011-05-21  Bruno Haible  <bruno@clisp.org>
7311
7312         expl: Move AC_LIBOBJ invocations to module description.
7313         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
7314         * modules/expl (configure.ac): ... to here.
7315
7316 2011-05-21  Bruno Haible  <bruno@clisp.org>
7317
7318         roundl: Move AC_LIBOBJ invocations to module description.
7319         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
7320         * modules/roundl (configure.ac): ... to here.
7321
7322 2011-05-21  Bruno Haible  <bruno@clisp.org>
7323
7324         round: Move AC_LIBOBJ invocations to module description.
7325         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
7326         * modules/round (configure.ac): ... to here.
7327
7328 2011-05-21  Bruno Haible  <bruno@clisp.org>
7329
7330         roundf: Move AC_LIBOBJ invocations to module description.
7331         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
7332         * modules/roundf (configure.ac): ... to here.
7333
7334 2011-05-21  Bruno Haible  <bruno@clisp.org>
7335
7336         truncl: Move AC_LIBOBJ invocations to module description.
7337         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
7338         * modules/truncl (configure.ac): ... to here.
7339
7340 2011-05-21  Bruno Haible  <bruno@clisp.org>
7341
7342         trunc: Move AC_LIBOBJ invocations to module description.
7343         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
7344         * modules/trunc (configure.ac): ... to here.
7345
7346 2011-05-21  Bruno Haible  <bruno@clisp.org>
7347
7348         truncf: Move AC_LIBOBJ invocations to module description.
7349         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
7350         * modules/truncf (configure.ac): ... to here.
7351
7352 2011-05-21  Bruno Haible  <bruno@clisp.org>
7353
7354         ceill: Move AC_LIBOBJ invocations to module description.
7355         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
7356         * modules/ceill (configure.ac): ... to here.
7357
7358 2011-05-21  Bruno Haible  <bruno@clisp.org>
7359
7360         ceil: Move AC_LIBOBJ invocations to module description.
7361         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
7362         * modules/ceil (configure.ac): ... to here.
7363
7364 2011-05-21  Bruno Haible  <bruno@clisp.org>
7365
7366         ceilf: Move AC_LIBOBJ invocations to module description.
7367         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
7368         * modules/ceilf (configure.ac): ... to here.
7369
7370 2011-05-21  Bruno Haible  <bruno@clisp.org>
7371
7372         floorl: Respect rules for use of AC_LIBOBJ.
7373         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
7374         * modules/floorl (configure.ac): ... to here.
7375
7376 2011-05-21  Bruno Haible  <bruno@clisp.org>
7377
7378         floor: Respect rules for use of AC_LIBOBJ.
7379         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
7380         * modules/floor (configure.ac): ... to here.
7381
7382 2011-05-21  Bruno Haible  <bruno@clisp.org>
7383
7384         floorf: Move AC_LIBOBJ invocations to module description.
7385         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
7386         * modules/floorf (configure.ac): ... to here.
7387
7388 2011-05-20  Bruno Haible  <bruno@clisp.org>
7389
7390         sqrtl: Respect rules for use of AC_LIBOBJ.
7391         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
7392         * modules/sqrtl (configure.ac): ... to here.
7393
7394 2011-05-20  Bruno Haible  <bruno@clisp.org>
7395
7396         ldexpl: Respect rules for use of AC_LIBOBJ.
7397         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
7398         * modules/ldexpl (configure.ac): ... to here.
7399
7400 2011-05-20  Bruno Haible  <bruno@clisp.org>
7401
7402         frexpl*: Respect rules for use of AC_LIBOBJ.
7403         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
7404         invocation from here...
7405         * modules/frexpl (configure.ac): ... to here.
7406         * modules/frexpl-nolibm (configure.ac): ... and here.
7407
7408 2011-05-20  Bruno Haible  <bruno@clisp.org>
7409
7410         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
7411         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
7412         invocation from here...
7413         * modules/frexp (configure.ac): ... to here.
7414         * modules/frexp-nolibm (configure.ac): ... and here.
7415
7416 2011-05-20  Bruno Haible  <bruno@clisp.org>
7417
7418         isnan: Respect rules for use of AC_LIBOBJ.
7419         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
7420         invocations here.
7421         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
7422         REPLACE_ISNAN.
7423         * modules/isnand (configure.ac): Likewise.
7424         * modules/isnanl (configure.ac): Likewise.
7425
7426 2011-05-20  Bruno Haible  <bruno@clisp.org>
7427
7428         isnanl*: Respect rules for use of AC_LIBOBJ.
7429         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
7430         invocation from here...
7431         * modules/isnanl (configure.ac): ... to here.
7432         * modules/isnanl-nolibm (configure.ac): ... and here.
7433
7434 2011-05-20  Bruno Haible  <bruno@clisp.org>
7435
7436         isnand*: Move AC_LIBOBJ invocations to module description.
7437         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
7438         invocation from here...
7439         * modules/isnand (configure.ac): ... to here.
7440         * modules/isnand-nolibm (configure.ac): ... and here.
7441
7442 2011-05-20  Bruno Haible  <bruno@clisp.org>
7443
7444         isnanf*: Move AC_LIBOBJ invocations to module description.
7445         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
7446         invocation from here...
7447         * modules/isnanf (configure.ac): ... to here.
7448         * modules/isnanf-nolibm (configure.ac): ... and here.
7449
7450 2011-05-20  Bruno Haible  <bruno@clisp.org>
7451
7452         isnan*: Separate the AC_LIBOBJ invocations.
7453         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
7454         AC_LIBOBJ invocation.
7455         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
7456         here.
7457         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
7458         AC_LIBOBJ invocation.
7459         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
7460         here.
7461         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
7462         AC_LIBOBJ invocation.
7463         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
7464         here.
7465         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
7466
7467 2011-05-08  Bruno Haible  <bruno@clisp.org>
7468
7469         isinf: Move AC_LIBOBJ invocations to module description.
7470         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
7471         * modules/isinf (configure.ac): ... to here.
7472
7473 2011-05-08  Bruno Haible  <bruno@clisp.org>
7474
7475         isfinite: Move AC_LIBOBJ invocations to module description.
7476         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
7477         * modules/isfinite (configure.ac): ... to here.
7478
7479 2011-05-08  Bruno Haible  <bruno@clisp.org>
7480
7481         isblank: Move AC_LIBOBJ invocations to module description.
7482         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
7483         here...
7484         * modules/isblank (configure.ac): ... to here.
7485
7486 2011-05-08  Bruno Haible  <bruno@clisp.org>
7487
7488         isapipe: Move AC_LIBOBJ invocations to module description.
7489         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
7490         gl_PREREQ_ISAPIPE invocations from here...
7491         * modules/isapipe (configure.ac): ... to here.
7492         (Depends-on): Update condition.
7493
7494 2011-05-08  Bruno Haible  <bruno@clisp.org>
7495
7496         ioctl: Move AC_LIBOBJ invocations to module description.
7497         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
7498         invocations from here...
7499         * modules/ioctl (configure.ac): ... to here.
7500         (Depends-on): Update condition.
7501
7502 2011-05-08  Bruno Haible  <bruno@clisp.org>
7503
7504         imaxdiv: Move AC_LIBOBJ invocations to module description.
7505         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
7506         invocations from here...
7507         * modules/imaxdiv (configure.ac): ... to here.
7508
7509 2011-05-08  Bruno Haible  <bruno@clisp.org>
7510
7511         imaxabs: Move AC_LIBOBJ invocations to module description.
7512         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
7513         invocations from here...
7514         * modules/imaxabs (configure.ac): ... to here.
7515
7516 2011-05-08  Bruno Haible  <bruno@clisp.org>
7517
7518         getaddrinfo: Move AC_LIBOBJ invocations to module description.
7519         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
7520         AC_LIBOBJ invocations from here...
7521         * modules/getaddrinfo (configure.ac): ... to here.
7522         (Depends-on): Add conditions.
7523
7524 2011-05-08  Bruno Haible  <bruno@clisp.org>
7525
7526         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
7527         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
7528         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
7529         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
7530         (gl_PREREQ_INET_PTON): ... from here.
7531         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
7532         gl_PREREQ_INET_PTON here.
7533         (Depends-on): Update condition.
7534
7535 2011-05-08  Bruno Haible  <bruno@clisp.org>
7536
7537         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
7538         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
7539         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
7540         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
7541         (gl_PREREQ_INET_NTOP): ... from here.
7542         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
7543         gl_PREREQ_INET_NTOP here.
7544         (Depends-on): Update condition.
7545
7546 2011-05-08  Bruno Haible  <bruno@clisp.org>
7547
7548         iconv_open: Move AC_LIBOBJ invocations to module description.
7549         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
7550         AC_LIBOBJ invocations from here...
7551         * modules/iconv_open (configure.ac): ... to here.
7552
7553 2011-05-08  Bruno Haible  <bruno@clisp.org>
7554
7555         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
7556         If module 'iconv_open' is among the main modules and module
7557         'iconv_open-utf' is among the tests dependencies, then
7558         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
7559         return the special iconv_t values. Therefore iconv() and iconv_close()
7560         must support these special iconv_t values, already in lib, not only in
7561         tests.
7562         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
7563         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
7564         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
7565         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
7566         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
7567         (Depends-on): Add the dependencies of iconv_open-utf.
7568         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
7569         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
7570         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
7571
7572 2011-05-08  Bruno Haible  <bruno@clisp.org>
7573
7574         group-member: Move AC_LIBOBJ invocations to module description.
7575         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
7576         gl_PREREQ_GROUP_MEMBER invocations from here...
7577         * modules/group-member (configure.ac): ... to here.
7578
7579 2011-05-08  Bruno Haible  <bruno@clisp.org>
7580
7581         grantpt: Move AC_LIBOBJ invocations to module description.
7582         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
7583         invocations from here...
7584         * modules/grantpt (configure.ac): ... to here.
7585
7586 2011-05-08  Bruno Haible  <bruno@clisp.org>
7587
7588         glob: Move AC_LIBOBJ invocations to module description.
7589         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
7590         from here...
7591         * modules/glob (configure.ac): ... to here.
7592
7593 2011-05-08  Bruno Haible  <bruno@clisp.org>
7594
7595         getusershell: Move AC_LIBOBJ invocations to module description.
7596         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
7597         Move AC_LIBOBJ invocation from here...
7598         * modules/getusershell (configure.ac): ... to here.
7599         (Depends-on): Update condition.
7600
7601 2011-05-08  Bruno Haible  <bruno@clisp.org>
7602
7603         gettimeofday: Move AC_LIBOBJ invocations to module description.
7604         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
7605         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
7606         gl_PREREQ_GETTIMEOFDAY invocations from here...
7607         * modules/gettimeofday (configure.ac): ... to here.
7608
7609 2011-05-08  Bruno Haible  <bruno@clisp.org>
7610
7611         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
7612         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
7613         just gl_FUNC_TZSET.
7614         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
7615         (gl_FUNC_TZSET_CLOBBER): Remove actions.
7616         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
7617         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
7618
7619 2011-05-08  Bruno Haible  <bruno@clisp.org>
7620
7621         getsubopt: Move AC_LIBOBJ invocations to module description.
7622         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
7623         gl_PREREQ_GETSUBOPT invocations from here...
7624         * modules/getsubopt (configure.ac): ... to here.
7625
7626 2011-05-08  Bruno Haible  <bruno@clisp.org>
7627
7628         getpass-gnu: Move AC_LIBOBJ invocations to module description.
7629         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
7630         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
7631         * modules/getpass-gnu (configure.ac): ... to here.
7632
7633 2011-05-08  Bruno Haible  <bruno@clisp.org>
7634
7635         getpass: Move AC_LIBOBJ invocations to module description.
7636         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
7637         gl_PREREQ_GETPASS invocations from here...
7638         * modules/getpass (configure.ac): ... to here.
7639
7640 2011-05-08  Bruno Haible  <bruno@clisp.org>
7641
7642         getpagesize: Move AC_LIBOBJ invocations to module description.
7643         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
7644         from here...
7645         * modules/getpagesize (configure.ac): ... to here.
7646
7647 2011-05-08  Bruno Haible  <bruno@clisp.org>
7648
7649         getopt: Move AC_LIBOBJ invocations to module description.
7650         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
7651         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
7652         invocations from here...
7653         * modules/getopt-gnu (configure.ac): ... to here.
7654         * modules/getopt-posix (configure.ac): ... and here.
7655         (Depends-on): Update condition.
7656
7657 2011-05-08  Bruno Haible  <bruno@clisp.org>
7658
7659         getopt, argp: Respect rules for use of AC_LIBOBJ.
7660         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
7661         (gl_REPLACE_GETOPT_ALWAYS): New macro.
7662         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
7663         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
7664
7665 2011-05-08  Bruno Haible  <bruno@clisp.org>
7666
7667         getlogin_r: Move AC_LIBOBJ invocations to module description.
7668         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
7669         gl_PREREQ_GETLOGIN_R invocations from here...
7670         * modules/getlogin_r (configure.ac): ... to here.
7671
7672 2011-05-08  Bruno Haible  <bruno@clisp.org>
7673
7674         getlogin: Move AC_LIBOBJ invocations to module description.
7675         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
7676         here...
7677         * modules/getlogin (configure.ac): ... to here.
7678
7679 2011-05-08  Bruno Haible  <bruno@clisp.org>
7680
7681         getloadavg: Move AC_LIBOBJ invocations to module description.
7682         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
7683         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
7684         * modules/getloadavg (configure.ac): ... to here.
7685
7686 2011-05-08  Bruno Haible  <bruno@clisp.org>
7687
7688         gethrxtime: Move AC_LIBOBJ invocations to module description.
7689         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
7690         LIB_GETHRXTIME from here...
7691         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
7692         invocations from here...
7693         * modules/gethrxtime (configure.ac): ... to here.
7694
7695 2011-05-08  Bruno Haible  <bruno@clisp.org>
7696
7697         gethostname: Move AC_LIBOBJ invocations to module description.
7698         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
7699         gl_PREREQ_GETHOSTNAME invocations from here...
7700         * modules/gethostname (configure.ac): ... to here.
7701
7702 2011-05-08  Bruno Haible  <bruno@clisp.org>
7703
7704         getgroups: Move AC_LIBOBJ invocations to module description.
7705         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
7706         here...
7707         * modules/getgroups (configure.ac): ... to here.
7708
7709 2011-05-08  Bruno Haible  <bruno@clisp.org>
7710
7711         getdtablesize: Move AC_LIBOBJ invocations to module description.
7712         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
7713         invocation from here...
7714         * modules/getdtablesize (configure.ac): ... to here.
7715
7716 2011-05-08  Bruno Haible  <bruno@clisp.org>
7717
7718         getdomainname: Move AC_LIBOBJ invocations to module description.
7719         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
7720         gl_PREREQ_GETDOMAINNAME invocations from here...
7721         * modules/getdomainname (configure.ac): ... to here.
7722
7723 2011-05-08  Bruno Haible  <bruno@clisp.org>
7724
7725         getline: Move AC_LIBOBJ invocations to module description.
7726         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
7727         invocations from here...
7728         * modules/getline (configure.ac): ... to here.
7729
7730 2011-05-08  Bruno Haible  <bruno@clisp.org>
7731
7732         getline: Simplify.
7733         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
7734         It's already handled through the module dependency.
7735
7736 2011-05-08  Bruno Haible  <bruno@clisp.org>
7737
7738         getdelim: Move AC_LIBOBJ invocations to module description.
7739         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
7740         and gl_PREREQ_GETDELIM invocations from here...
7741         * modules/getdelim (configure.ac): ... to here.
7742         (Depends-on): Fix condition.
7743
7744 2011-05-08  Bruno Haible  <bruno@clisp.org>
7745
7746         getcwd: Move AC_LIBOBJ invocations to module description.
7747         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
7748         invocations from here...
7749         * modules/getcwd (configure.ac): ... to here.
7750
7751 2011-05-08  Bruno Haible  <bruno@clisp.org>
7752
7753         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
7754         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
7755         here...
7756         * modules/getcwd-lgpl (configure.ac): ... to here.
7757
7758 2011-05-07  Bruno Haible  <bruno@clisp.org>
7759
7760         crypto/gc: Move AC_LIBOBJ invocations to module description.
7761         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
7762         * modules/crypto/gc (configure.ac): ... to here.
7763
7764 2011-05-07  Bruno Haible  <bruno@clisp.org>
7765
7766         fwriting: Move AC_LIBOBJ invocations to module description.
7767         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
7768         here...
7769         * modules/fwriting (configure.ac): ... to here.
7770
7771 2011-05-07  Bruno Haible  <bruno@clisp.org>
7772
7773         fwritable: Move AC_LIBOBJ invocations to module description.
7774         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
7775         here...
7776         * modules/fwritable (configure.ac): ... to here.
7777
7778 2011-05-07  Bruno Haible  <bruno@clisp.org>
7779
7780         futimens: Move AC_LIBOBJ invocations to module description.
7781         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
7782         here...
7783         * modules/futimens (configure.ac): ... to here.
7784
7785 2011-05-07  Bruno Haible  <bruno@clisp.org>
7786
7787         ftruncate: Move AC_LIBOBJ invocations to module description.
7788         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
7789         gl_PREREQ_FTRUNCATE invocations from here...
7790         * modules/ftruncate (configure.ac): ... to here.
7791
7792 2011-05-07  Bruno Haible  <bruno@clisp.org>
7793
7794         fsync: Move AC_LIBOBJ invocations to module description.
7795         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
7796         invocations from here...
7797         * modules/fsync (configure.ac): ... to here.
7798
7799 2011-05-07  Bruno Haible  <bruno@clisp.org>
7800
7801         fsusage: Move AC_LIBOBJ invocations to module description.
7802         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
7803         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
7804         * modules/fsusage (configure.ac): ... to here.
7805
7806 2011-05-07  Bruno Haible  <bruno@clisp.org>
7807
7808         freopen: Move AC_LIBOBJ invocations to module description.
7809         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
7810         invocations from here...
7811         * modules/freopen (configure.ac): ... to here.
7812
7813 2011-05-07  Bruno Haible  <bruno@clisp.org>
7814
7815         free: Move AC_LIBOBJ invocations to module description.
7816         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
7817         invocations from here...
7818         * modules/free (configure.ac): ... to here.
7819
7820 2011-05-07  Bruno Haible  <bruno@clisp.org>
7821
7822         freadable: Move AC_LIBOBJ invocations to module description.
7823         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
7824         here...
7825         * modules/freadable (configure.ac): ... to here.
7826
7827 2011-05-07  Bruno Haible  <bruno@clisp.org>
7828
7829         fpurge: Move AC_LIBOBJ invocations to module description.
7830         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
7831         invocations from here...
7832         * modules/fpurge (configure.ac): ... to here.
7833
7834 2011-05-07  Bruno Haible  <bruno@clisp.org>
7835
7836         fpending: Move AC_LIBOBJ invocations to module description.
7837         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
7838         gl_FUNC_FPENDING.
7839         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
7840         invocations from here...
7841         * modules/fpending (configure.ac): ... to here.
7842
7843 2011-05-07  Bruno Haible  <bruno@clisp.org>
7844
7845         fopen: Move AC_LIBOBJ invocations to module description.
7846         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
7847         invocations from here...
7848         * modules/fopen (configure.ac): ... to here.
7849
7850 2011-05-07  Bruno Haible  <bruno@clisp.org>
7851
7852         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
7853         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
7854         gl_FUNC_FNMATCH_POSIX.
7855         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
7856         invocations from here...
7857         * modules/fnmatch (configure.ac): ... to here.
7858         * modules/fnmatch-gnu (configure.ac): ... and here.
7859
7860 2011-05-07  Bruno Haible  <bruno@clisp.org>
7861
7862         flock: Move AC_LIBOBJ invocations to module description.
7863         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
7864         invocations from here...
7865         * modules/flock (configure.ac): ... to here.
7866
7867 2011-05-07  Bruno Haible  <bruno@clisp.org>
7868
7869         fileblocks: Move AC_LIBOBJ invocations to module description.
7870         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
7871         gl_PREREQ_FILEBLOCKS invocations from here...
7872         * modules/fileblocks (configure.ac): ... to here.
7873
7874 2011-05-06  Bruno Haible  <bruno@clisp.org>
7875
7876         fflush: Move AC_LIBOBJ invocations to module description.
7877         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
7878         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
7879         invocations from here...
7880         * modules/fflush (configure.ac): ... to here.
7881
7882 2011-05-06  Bruno Haible  <bruno@clisp.org>
7883
7884         fdopendir: Move AC_LIBOBJ invocations to module description.
7885         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
7886         here...
7887         * modules/fdopendir (configure.ac): ... to here.
7888         (Depends-on): Improve conditions.
7889
7890 2011-05-06  Bruno Haible  <bruno@clisp.org>
7891
7892         _Exit: Move AC_LIBOBJ invocations to module description.
7893         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
7894         invocations from here...
7895         * modules/_Exit (configure.ac): ... to here.
7896
7897 2011-05-21  Bruno Haible  <bruno@clisp.org>
7898
7899         euidaccess: Respect rules for use of AC_LIBOBJ.
7900         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
7901         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
7902         from here...
7903         * modules/euidaccess (configure.ac): ... to here.
7904
7905 2011-05-06  Bruno Haible  <bruno@clisp.org>
7906
7907         error: Move AC_LIBOBJ invocations to module description.
7908         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
7909         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
7910         invocations from here...
7911         * modules/error (configure.ac): ... to here.
7912
7913 2011-05-06  Bruno Haible  <bruno@clisp.org>
7914
7915         duplocale: Move AC_LIBOBJ invocations to module description.
7916         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
7917         gl_PREREQ_DUPLOCALE invocations from here...
7918         * modules/duplocale (configure.ac): ... to here.
7919
7920 2011-05-05  Bruno Haible  <bruno@clisp.org>
7921
7922         dirfd: Move AC_LIBOBJ invocations to module description.
7923         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
7924         gl_FUNC_DIRFD.
7925         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
7926         here...
7927         * modules/dirfd (configure.ac): ... to here.
7928         (Depends-on): Fix condition.
7929
7930 2011-05-05  Bruno Haible  <bruno@clisp.org>
7931
7932         chown: Respect rules for use of AC_LIBOBJ.
7933         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
7934         * modules/chown (configure.ac): ... to here.
7935
7936 2011-05-05  Bruno Haible  <bruno@clisp.org>
7937
7938         chdir-long: Move AC_LIBOBJ invocations to module description.
7939         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
7940         gl_PREREQ_CHDIR_LONG invocations from here...
7941         * modules/chdir-long (configure.ac): ... to here.
7942
7943 2011-05-05  Bruno Haible  <bruno@clisp.org>
7944
7945         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
7946         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
7947         from here...
7948         * modules/canonicalize-lgpl (configure.ac): ... to here.
7949
7950 2011-05-05  Bruno Haible  <bruno@clisp.org>
7951
7952         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
7953         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
7954         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
7955         REPLACE_CALLOC.
7956         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
7957         * modules/calloc-gnu (configure.ac): Likewise.
7958
7959 2011-05-05  Bruno Haible  <bruno@clisp.org>
7960
7961         btowc: Move AC_LIBOBJ invocations to module description.
7962         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
7963         invocations from here...
7964         * modules/btowc (configure.ac): ... to here.
7965
7966 2011-05-21  Bruno Haible  <bruno@clisp.org>
7967
7968         atexit: Move AC_LIBOBJ invocations to module description.
7969         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
7970         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
7971         here...
7972         * modules/atexit (configure.ac): ... to here.
7973
7974 2011-05-05  Bruno Haible  <bruno@clisp.org>
7975
7976         atoll: Move AC_LIBOBJ invocations to module description.
7977         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
7978         invocations from here...
7979         * modules/atoll (configure.ac): ... to here.
7980
7981 2011-05-05  Bruno Haible  <bruno@clisp.org>
7982
7983         argz: Move AC_LIBOBJ invocations to module description.
7984         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
7985         * modules/argz (configure.ac): ... to here.
7986
7987 2011-05-05  Bruno Haible  <bruno@clisp.org>
7988
7989         alphasort: Move AC_LIBOBJ invocations to module description.
7990         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
7991         gl_PREREQ_ALPHASORT invocations from here...
7992         * modules/alphasort (configure.ac): ... to here.
7993
7994 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
7995
7996         verify: new macro verify_expr; verify_true deprecated
7997         * NEWS: Mention this.
7998         * doc/verify.texi (Compile-time Assertions): Document this.
7999         * lib/verify.h (verify_true): Deprecate.
8000         (verify_expr): New macro.
8001         * tests/test-verify.c (function): Test verify_expr.
8002
8003 2011-06-14  Jim Meyering  <meyering@redhat.com>
8004
8005         init.sh: give more portable redirection-related advice in a comment
8006         * tests/init.sh (stderr_fileno_): Update the advice in comments.
8007         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
8008         for lots of discussion.  Stefano Lattarini suggested the solution
8009         of putting "9>&2" after the command.  Reported by Bruno Haible.
8010
8011 2011-06-13  Bruno Haible  <bruno@clisp.org>
8012
8013         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
8014         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
8015         'none'.
8016
8017 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
8018
8019         ftoastr: use strtof only if HAVE_STRTOF
8020         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
8021         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
8022         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
8023         * modules/ftoastr (configure.ac): Check for strtof.
8024
8025 2011-06-13  Bruno Haible  <bruno@clisp.org>
8026
8027         gnulib-tool: Addendum to 2011-06-08 commit.
8028         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
8029         and --witness-c-macro have been given, augment AM_CPPFLAGS.
8030
8031 2011-06-13  Bruno Haible  <bruno@clisp.org>
8032
8033         fseeko: Provide a non-inline replacement of fseek().
8034         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
8035         * modules/fseeko (Depends-on): Add fseek.
8036         * modules/fseek (License): Change to LGPLv2+.
8037
8038 2011-06-13  Bruno Haible  <bruno@clisp.org>
8039
8040         ftello: Provide a non-inline replacement of ftell().
8041         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
8042         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
8043         not have ftello() (such as on mingw).
8044         * modules/ftello (Depends-on): Add ftell.
8045         * modules/ftell (License): Change to LGPLv2+.
8046
8047 2011-05-07  Bruno Haible  <bruno@clisp.org>
8048
8049         ftell: Move AC_LIBOBJ invocations to module description.
8050         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
8051         * modules/ftell (configure.ac): ... to here.
8052
8053 2011-05-07  Bruno Haible  <bruno@clisp.org>
8054
8055         ftello: Respect rules for use of AC_LIBOBJ.
8056         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
8057         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
8058         here...
8059         * modules/ftello (configure.ac): ... to here.
8060
8061 2011-05-07  Bruno Haible  <bruno@clisp.org>
8062
8063         fseeko: Simplify.
8064         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
8065         (gl_FUNC_FSEEKO): Inline it here.
8066
8067 2011-05-07  Bruno Haible  <bruno@clisp.org>
8068
8069         fseek: Move AC_LIBOBJ invocations to module description.
8070         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
8071         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
8072         * modules/fseek (configure.ac): ... to here.
8073
8074 2011-05-07  Bruno Haible  <bruno@clisp.org>
8075
8076         fseek: Respect rules for use of AC_LIBOBJ.
8077         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
8078         here...
8079         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
8080
8081 2011-05-07  Bruno Haible  <bruno@clisp.org>
8082
8083         fseeko: Respect rules for use of AC_LIBOBJ.
8084         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
8085         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
8086         here...
8087         * modules/fseeko (configure.ac): ... to here.
8088
8089 2011-06-13  Bruno Haible  <bruno@clisp.org>
8090
8091         gnulib-tool: Allow comments in the 'Depends-on' section.
8092         * doc/gnulib.texi (Module description): Mention comment syntax in the
8093         Depends-on section.
8094         * gnulib-tool (func_get_dependencies): Filter out comment lines.
8095
8096 2011-06-13  Bruno Haible  <bruno@clisp.org>
8097
8098         file-set.h: guard __attibute__ use, now that it's not always defined
8099         * lib/file-set.h (record_file): Use __attribute__ only with compiler
8100         versions that support it.  This fixes a coreutils build failure with
8101         the vendor cc on HP-UX 11.31.
8102
8103 2011-06-12  Bruno Haible  <bruno@clisp.org>
8104
8105         acl: Add support for HP-UX >= 11.11 JFS ACLs.
8106         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
8107         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
8108         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
8109         (acl, aclsort): New declarations.
8110         (aclv_nontrivial): New declaration.
8111         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
8112         (file_has_acl): Read also the second kind of HP-UX ACLs.
8113         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
8114         kind of HP-UX ACLs if the first kind fails.
8115         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
8116         second kind of HP-UX ACLs.
8117         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
8118         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
8119         agree.
8120         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
8121         hpuxjfs.
8122         Handle hpuxjfs.
8123         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
8124         hpuxjfs.
8125         Handle hpuxjfs.
8126         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
8127         (func_test_same_acls): Use both lsacl and getacl.
8128         Handle hpuxjfs.
8129         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
8130         (func_test_same_acls): Use both lsacl and getacl.
8131         Handle hpuxjfs.
8132
8133 2011-06-12  Bruno Haible  <bruno@clisp.org>
8134
8135         acl: Complete the 2010-08-10 fix.
8136         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
8137         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
8138         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
8139         explicitly.
8140         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
8141         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
8142
8143 2011-06-12  Bruno Haible  <bruno@clisp.org>
8144
8145         spawn-pipe tests: Comments.
8146         * tests/test-spawn-pipe-child.c (main): Update comment.
8147         Reported by James Youngman <jay@gnu.org>.
8148
8149 2011-06-11  James Youngman  <jay@gnu.org>
8150
8151         New module 'stat-size'.
8152         * modules/stat-size: New module.  Provides macros for accessing
8153         file size information in instances of struct stat.  Depends on the
8154         fileblocks module because it calls st_blocks.
8155         * lib/stat-size.h: New file, adapted from coreutils' system.h.
8156         * doc/gnulib.texi: Include stat-size.texi.
8157         * doc/stat-size.texi: Documentation for this module.
8158         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
8159         * m4/fileblocks.m4: Mention that stat-size depends on the call to
8160         AC_STRUCT_ST_BLOCKS.
8161
8162 2011-06-09  Bruno Haible  <bruno@clisp.org>
8163
8164         thread: Support pthreads-win32.
8165         * lib/glthread/thread.h (gl_thread_self): Define differently on
8166         pthreads-win32.
8167         (gl_null_thread): New declaration.
8168         (gl_thread_self_pointer): New macro.
8169         * lib/glthread/thread.c (gl_null_thread): New constant.
8170         * tests/test-lock.c: Use gl_thread_self_pointer instead of
8171         gl_thread_self.
8172         * tests/test-tls.c: Likewise.
8173         Suggested by Paul Eggert. Reported by Eric Blake.
8174
8175 2011-06-09  Bruno Haible  <bruno@clisp.org>
8176
8177         thread: Fix confusion between NULL and 0.
8178         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
8179         Reported by Paul Eggert.
8180
8181 2011-06-09  Bruno Haible  <bruno@clisp.org>
8182
8183         spawn-pipe tests: Avoid test failure on HP-UX 11.
8184         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
8185         is closed.
8186
8187 2011-06-09  Bruno Haible  <bruno@clisp.org>
8188
8189         acl tests: Fix compilation error on HP-UX 11.
8190         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
8191
8192 2011-06-09  Bruno Haible  <bruno@clisp.org>
8193
8194         rmdir: Avoid test failure on HP-UX 10.20.
8195         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
8196         EEXIST.
8197
8198 2011-06-08  Eric Blake  <eblake@redhat.com>
8199
8200         perror: fix test on mingw
8201         * modules/perror-tests (Depends-on): Add dup2.
8202
8203         strerror_r-posix: fix on MacOS
8204         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
8205         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
8206         logic bug.
8207         * lib/strerror_r.c (strerror_r): Fix the bug.
8208         * lib/strerror.c (strerror): Likewise.
8209         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
8210         problem.
8211         * doc/posix-functions/strerror.texi (strerror): Likewise.
8212         * doc/posix-functions/perror.texi (perror): Likewise.
8213         * tests/test-strerror.c (main): Enhance test.
8214         * tests/test-strerror_r.c (main): Likewise.
8215
8216 2011-06-08  Bruno Haible  <bruno@clisp.org>
8217
8218         gnulib-tool: Better isolation between different gnulib-tool invocations.
8219         * gnulib-tool: New option --witness-c-macro.
8220         (witness_c_macro): New variable.
8221         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
8222         AM_CPPFLAGS define it as a C macro.
8223         (func_emit_tests_Makefile_am): Likewise.
8224         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
8225         read it from there.
8226         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
8227         m4_define, not AC_DEFUN.
8228         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
8229         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
8230         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
8231         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
8232         s|...|...|, to substitute the values of the GNULIB_* module indicator
8233         variables.
8234         * modules/dirent (Makefile.am): Likewise.
8235         * modules/fcntl-h (Makefile.am): Likewise.
8236         * modules/iconv-h (Makefile.am): Likewise.
8237         * modules/langinfo (Makefile.am): Likewise.
8238         * modules/locale (Makefile.am): Likewise.
8239         * modules/math (Makefile.am): Likewise.
8240         * modules/netdb (Makefile.am): Likewise.
8241         * modules/poll-h (Makefile.am): Likewise.
8242         * modules/pty (Makefile.am): Likewise.
8243         * modules/search (Makefile.am): Likewise.
8244         * modules/signal (Makefile.am): Likewise.
8245         * modules/spawn (Makefile.am): Likewise.
8246         * modules/stdio (Makefile.am): Likewise.
8247         * modules/stdlib (Makefile.am): Likewise.
8248         * modules/string (Makefile.am): Likewise.
8249         * modules/sys_ioctl (Makefile.am): Likewise.
8250         * modules/sys_select (Makefile.am): Likewise.
8251         * modules/sys_socket (Makefile.am): Likewise.
8252         * modules/sys_stat (Makefile.am): Likewise.
8253         * modules/sys_times (Makefile.am): Likewise.
8254         * modules/sys_utsname (Makefile.am): Likewise.
8255         * modules/sys_wait (Makefile.am): Likewise.
8256         * modules/termios (Makefile.am): Likewise.
8257         * modules/time (Makefile.am): Likewise.
8258         * modules/unistd (Makefile.am): Likewise.
8259         * modules/wchar (Makefile.am): Likewise.
8260
8261 2011-06-08  Eric Blake  <eblake@redhat.com>
8262
8263         strerror: simplify replacement
8264         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
8265         * modules/strerror (configure.ac): No prereqs needed here...
8266         * modules/strerror-override (configure.ac): ...but this needs it.
8267         (Files): Add file for needed prereq macro.
8268
8269 2011-06-08  Bruno Haible  <bruno@clisp.org>
8270
8271         strerror_r-posix: Tweaks.
8272         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
8273         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
8274         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
8275         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
8276         (gl_FUNC_STRERROR_R): ... to here.
8277         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
8278
8279 2011-06-07  Eric Blake  <eblake@redhat.com>
8280
8281         perror: document fixed bugs
8282         * doc/posix-functions/perror.texi (perror): Document recent
8283         patches.
8284
8285 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
8286
8287         stat-time: get_stat_birthtime failure is better-defined
8288         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
8289         return a timestamp whose tv_sec and tv_nsec values are both -1.
8290         Previously, the spec said only that the tv_nsec value was negative.
8291         This upward-compatible change simplifies GNU tar a bit.
8292
8293 2011-06-07  Eric Blake  <eblake@redhat.com>
8294
8295         strerror_r-posix: work around cygwin 1.7.9
8296         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
8297         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
8298         bug without replacing strerror_r.
8299         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
8300         strerror_r is buggy, but without requiring strerror_r compilation.
8301         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
8302
8303         test-perror: relax test to ignore cygwin bug
8304         * tests/test-perror2.c (main): Relax test on requiring detection
8305         of stream errors, and use unbuffered stream.
8306         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
8307         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
8308         * doc/posix-functions/fputc.texi (fputc): Likewise.
8309         * doc/posix-functions/fputs.texi (fputs): Likewise.
8310         * doc/posix-functions/fputws.texi (fputws): Likewise.
8311         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
8312         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
8313         * doc/posix-functions/getopt.texi (getopt): Likewise.
8314         * doc/posix-functions/perror.texi (perror): Likewise.
8315         * doc/posix-functions/printf.texi (printf): Likewise.
8316         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
8317         * doc/posix-functions/psignal.texi (psignal): Likewise.
8318         * doc/posix-functions/putc.texi (putc): Likewise.
8319         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
8320         Likewise.
8321         * doc/posix-functions/putchar.texi (putchar): Likewise.
8322         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
8323         Likewise.
8324         * doc/posix-functions/puts.texi (puts): Likewise.
8325         * doc/posix-functions/putwc.texi (putwc): Likewise.
8326         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
8327         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
8328         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
8329         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
8330         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
8331         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
8332         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
8333         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
8334
8335 2011-05-22  Bruno Haible  <bruno@clisp.org>
8336
8337         strerror: Move AC_LIBOBJ invocations to module description.
8338         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
8339         gl_PREREQ_STRERROR invocations from here...
8340         * modules/strerror (configure.ac): ... to here.
8341
8342 2011-05-21  Bruno Haible  <bruno@clisp.org>
8343
8344         perror: Use common idiom.
8345         * modules/perror (configure.ac): Reorder statements.
8346
8347 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
8348
8349         tests: fix usage message in 'mktempd_'
8350         * tests/init.sh (mktempd_): In the usage message, use literal
8351         'mktempd_', not '$ME' (which is even undefined), as the name of
8352         the subroutine.
8353
8354 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
8355
8356         tests init: new function 'fatal_', for hard errors
8357         Before this patch, the only way offered by tests/init.sh to
8358         properly signal a hard error was the `framework_failure_'
8359         function.  But the error message issued by that function,
8360         as its name would suggest, refers to a set-up failure in the
8361         testsuite, while hard errors can obviously also be due to
8362         other reasons.  The best way to fix this inconsistency is to
8363         introduce a new function with a more general error message.
8364         * tests/init.sh (fatal_): New function.
8365
8366 2011-06-06  Eric Blake  <eblake@redhat.com>
8367
8368         canonicalize-lgpl: use common idiom
8369         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
8370         over newer POSIX -Rf.
8371         Reported by Bruno Haible.
8372
8373         canonicalize-lgpl: work around AIX realpath bug
8374         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
8375         * doc/posix-functions/realpath.texi (realpath): Document it.
8376         Reported by Bruno Haible.
8377
8378         strerror: work around FreeBSD bug
8379         * lib/strerror.c (strerror): Special case 0.
8380         Reported by Bruno Haible.
8381
8382         strerror-override: avoid bloating errno module
8383         * modules/errno (Files, configure.ac): Move replacement strings...
8384         * modules/strerror-override: ...to new module.
8385         * modules/strerror (Depends-on): Add strerror-override.
8386         * modules/strerror_r-posix (Depends-on): Likewise.
8387         * MODULES.html.sh: Document new module.
8388         Reported by Bruno Haible.
8389
8390 2011-06-06  Bruno Haible  <bruno@clisp.org>
8391
8392         spawn-pipe tests: Rename program.
8393         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
8394         * tests/test-spawn-pipe-child.c: Update comment.
8395         * tests/test-spawn-pipe.sh: Update.
8396         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
8397
8398         spawn-pipe tests: Link the child program only against libc.
8399         * tests/test-spawn-pipe-child.c: New file, extracted from
8400         tests/test-spawn-pipe.c.
8401         (main): Expect only one argument.
8402         (is_open): New function, copied from tests/test-pipe.c.
8403         * tests/test-spawn-pipe.c: Don't include <errno.h>.
8404         (child_main): Remove function.
8405         (test_pipe): Pass only one argument to the child program.
8406         (main): Remove child process code. Expect the child program's name as
8407         first argument.
8408         * tests/test-spawn-pipe.sh: Pass the child program's name as first
8409         argument.
8410         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
8411         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
8412         test-spawn-pipe-child against no libraries.
8413
8414 2011-06-06  Bruno Haible  <bruno@clisp.org>
8415
8416         careadlinkat: Avoid mismatch between ssize_t and int.
8417         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
8418         * lib/careadlinkat.c (careadlinkatcwd): Define always.
8419
8420 2011-06-06  Jim Meyering  <meyering@redhat.com>
8421
8422         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
8423         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
8424         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
8425
8426 2011-06-05  Bruno Haible  <bruno@clisp.org>
8427
8428         ansi-c++-opt: Interoperability with libtool.
8429         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
8430         set the variable to "no", not to ":".
8431         * NEWS: Mention the change.
8432
8433 2011-06-05  Bruno Haible  <bruno@clisp.org>
8434
8435         acl: Fix test failure on AIX 7.
8436         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
8437         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
8438
8439 2011-06-05  Bruno Haible  <bruno@clisp.org>
8440
8441         pipe-filter-ii: Fix test failure on AIX and IRIX.
8442         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
8443         with EAGAIN, retry with a smaller buffer size.
8444
8445 2011-06-05  Bruno Haible  <bruno@clisp.org>
8446
8447         localename: Fix link dependencies.
8448         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
8449         * modules/localename-tests (Makefile.am): Link test-localename with
8450         $(LIBTHREAD).
8451
8452 2011-06-05  Bruno Haible  <bruno@clisp.org>
8453
8454         error: Avoid gcc warning.
8455         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
8456
8457 2011-06-05  Bruno Haible  <bruno@clisp.org>
8458
8459         unsetenv: Avoid gcc warning.
8460         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
8461
8462 2011-06-05  Bruno Haible  <bruno@clisp.org>
8463
8464         setenv: Avoid gcc warning.
8465         * lib/setenv.c (setenv): Provide declaration if system lacks it.
8466
8467 2011-06-05  Bruno Haible  <bruno@clisp.org>
8468
8469         sys_select: Ensure memset is declared also on AIX 7.
8470         * lib/sys_select.in.h: Include <string.h> also on AIX.
8471         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
8472         self-contained also on AIX 7.1.
8473
8474 2011-06-04  Jim Meyering  <meyering@redhat.com>
8475
8476         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
8477         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
8478         function name, "error".
8479         (_gl_translatable_diag_func_re): New configurable variable.
8480
8481 2011-06-04  Bruno Haible  <bruno@clisp.org>
8482
8483         getopt: Avoid gcc warning.
8484         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
8485
8486 2011-06-04  Bruno Haible  <bruno@clisp.org>
8487
8488         strerror_r: Fix comments.
8489         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
8490         commit.
8491
8492 2011-06-04  Bruno Haible  <bruno@clisp.org>
8493
8494         perror: Fix compilation error.
8495         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
8496         Undefine fprintf, not sprintf.
8497         * modules/perror (Depends-on): Remove intprops, verify.
8498
8499 2011-06-04  Bruno Haible  <bruno@clisp.org>
8500
8501         setlocale: Enable replacement on Cygwin 1.5.
8502         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
8503         Cygwin 1.5.x.
8504         * doc/posix-functions/setlocale.texi: Mention that the problem with the
8505         LC_CTYPE category also exists on Cygwin 1.5.x.
8506
8507 2011-06-04  Bruno Haible  <bruno@clisp.org>
8508
8509         strerror-override: Don't disable symbol renamings.
8510         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
8511         * lib/strerror-override.c: Include config.h.
8512         (strerror_override): Don't undefine.
8513
8514 2011-06-03  Bruno Haible  <bruno@clisp.org>
8515
8516         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
8517         * lib/localename.h: Update copyright header.
8518         * lib/localename.c: Likewise.
8519         * lib/relocatable.h: Likewise.
8520         * lib/relocatable.c: Likewise.
8521
8522 2011-06-02  Bruno Haible  <bruno@clisp.org>
8523
8524         doc: Fix a module name.
8525         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
8526
8527 2011-06-02  Bruno Haible  <bruno@clisp.org>
8528
8529         pipe2: Remove dependency on 'nonblocking' module.
8530         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
8531         O_NONBLOCK is defined by gnulib.
8532         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
8533         is zero.
8534         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
8535         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
8536         defined by gnulib.
8537         (get_nonblocking_flag): New function.
8538         (main): Test O_NONBLOCK flag only if it is nonzero.
8539         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
8540
8541 2011-06-03  Jim Meyering  <meyering@redhat.com>
8542
8543         maint: three new prohibit-header-without-use rules
8544         Prohibit use of cloexec.h, posixver.h, same.h without use.
8545         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
8546         (sc_prohibit_posixver_without_use): Likewise.
8547         (sc_prohibit_same_without_use): Likewise.
8548
8549 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
8550
8551         allocator: 'die' routine is now given requested size
8552         * lib/allocator.h (struct allocator.die): New size arg.
8553         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
8554         If the actual problem is an ssize_t limitation, not a size_t or
8555         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
8556
8557 2011-06-01  Eric Blake  <eblake@redhat.com>
8558
8559         strerror: drop strerror_r dependency
8560         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
8561         * lib/strerror-override.c (strerror_override): ...to new file.
8562         * lib/strerror-override.h: Add prototype.
8563         * lib/strerror-impl.h: Delete.
8564         * lib/strerror.c (strerror): New implementation.
8565         * modules/errno (Files): Add new files.
8566         (configure.ac): Compile new file as appropriate.
8567         * modules/strerror (Files): Drop unused file.
8568         (Depends-on): Drop strerror_r-posix.
8569         * MODULES.html.sh: Document strerror_r-posix.
8570         Requested by Sam Steingold.
8571
8572         perror: call strerror_r directly
8573         * modules/perror (Files): Drop strerror-impl.h.
8574         * lib/perror.c (perror): Use our own stack buffer, rather than
8575         calling a wrapper that uses static storage.
8576         * doc/posix-functions/perror.texi (perror): Document a limitation
8577         of our replacement.
8578
8579         strerror_r: fix includes for FreeBSD
8580         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
8581         since we use abort on some platforms.
8582         Reported by Matthias Bolte.
8583
8584 2011-05-31  Bruno Haible  <bruno@clisp.org>
8585
8586         Fix link errors in tests: openat-die uses gettext-h.
8587         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
8588         against $(LIBINTL).
8589         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
8590         against $(LIBINTL).
8591         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
8592         $(LIBINTL).
8593         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
8594         against $(LIBINTL).
8595         * modules/linkat-tests (Makefile.am): Link test-linkat against
8596         $(LIBINTL).
8597         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
8598         $(LIBINTL).
8599         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
8600         against $(LIBINTL).
8601         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
8602         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
8603         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
8604         $(LIBINTL).
8605         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
8606         $(LIBINTL).
8607         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
8608         $(LIBINTL).
8609         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8610
8611 2011-05-31  Bruno Haible  <bruno@clisp.org>
8612
8613         Fix link errors in tests: wait-process uses gettext-h.
8614         * modules/nonblocking-pipe-tests (Makefile.am): Set
8615         test_nonblocking_pipe_main_LDADD.
8616         * modules/nonblocking-socket-tests (Makefile.am): Link
8617         test-nonblocking-socket-main against $(LIBINTL).
8618         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8619
8620 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
8621
8622         assert-h: work around 'verify' incompatibility
8623         * lib/verify.h: Use @...@ directives, not ifdef.
8624         * modules/assert-h (assert.h): Implement the directives.
8625         (assert.h): Substitute the symbol-prefix more consistently.
8626
8627 2011-05-29  Jim Meyering  <meyering@redhat.com>
8628
8629         trim: remove three superfluous assignments
8630         * lib/trim.c (trim2): Remove three superfluous assignments
8631         and correct brace positioning.
8632
8633 2011-05-29  Bruno Haible  <bruno@clisp.org>
8634
8635         wctype-h: Avoid namespace pollution on Solaris 2.6.
8636         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
8637         identifiers.
8638         * doc/posix-headers/wctype.texi: Mention the problem.
8639         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8640
8641 2011-05-28  Jim Meyering  <meyering@redhat.com>
8642
8643         parse-datetime.y: accommodate -Wstrict-overflow
8644         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
8645         placate -Wstrict-overflow.
8646
8647         trim: avoid a warning from -O2 -Wstrict-overflow
8648         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
8649
8650 2011-05-29  Bruno Haible  <bruno@clisp.org>
8651
8652         gnulib-tool: Fix bug in yesterday's commit.
8653         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
8654         twice.
8655
8656 2011-05-29  Bruno Haible  <bruno@clisp.org>
8657
8658         Allow multiple gnulib generated include files to be combined.
8659         * gnulib-tool (func_compute_include_guard_prefix): New function.
8660         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
8661         ${gl_include_guard_prefix} references.
8662         (func_import, func_create_testdir): Invoke
8663         func_compute_include_guard_prefix.
8664         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
8665         * lib/ctype.in.h: Likewise.
8666         * lib/dirent.in.h: Likewise.
8667         * lib/errno.in.h: Likewise.
8668         * lib/fcntl.in.h: Likewise.
8669         * lib/float.in.h: Likewise.
8670         * lib/getopt.in.h: Likewise.
8671         * lib/iconv.in.h: Likewise.
8672         * lib/langinfo.in.h: Likewise.
8673         * lib/locale.in.h: Likewise.
8674         * lib/math.in.h: Likewise.
8675         * lib/netdb.in.h: Likewise.
8676         * lib/netinet_in.in.h: Likewise.
8677         * lib/poll.in.h: Likewise.
8678         * lib/pthread.in.h: Likewise.
8679         * lib/pty.in.h: Likewise.
8680         * lib/sched.in.h: Likewise.
8681         * lib/se-selinux.in.h: Likewise.
8682         * lib/search.in.h: Likewise.
8683         * lib/signal.in.h: Likewise.
8684         * lib/spawn.in.h: Likewise.
8685         * lib/stdarg.in.h: Likewise.
8686         * lib/stddef.in.h: Likewise.
8687         * lib/stdint.in.h: Likewise.
8688         * lib/stdio.in.h: Likewise.
8689         * lib/stdlib.in.h: Likewise.
8690         * lib/string.in.h: Likewise.
8691         * lib/strings.in.h: Likewise.
8692         * lib/sys_file.in.h: Likewise.
8693         * lib/sys_ioctl.in.h: Likewise.
8694         * lib/sys_select.in.h: Likewise.
8695         * lib/sys_socket.in.h: Likewise.
8696         * lib/sys_stat.in.h: Likewise.
8697         * lib/sys_time.in.h: Likewise.
8698         * lib/sys_times.in.h: Likewise.
8699         * lib/sys_uio.in.h: Likewise.
8700         * lib/sys_utsname.in.h: Likewise.
8701         * lib/sys_wait.in.h: Likewise.
8702         * lib/sysexits.in.h: Likewise.
8703         * lib/termios.in.h: Likewise.
8704         * lib/time.in.h: Likewise.
8705         * lib/unistd.in.h: Likewise.
8706         * lib/wchar.in.h: Likewise.
8707         * lib/wctype.in.h: Likewise.
8708         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
8709         * modules/ctype (Makefile.am): Likewise.
8710         * modules/dirent (Makefile.am): Likewise.
8711         * modules/errno (Makefile.am): Likewise.
8712         * modules/fcntl-h (Makefile.am): Likewise.
8713         * modules/float (Makefile.am): Likewise.
8714         * modules/getopt-posix (Makefile.am): Likewise.
8715         * modules/iconv-h (Makefile.am): Likewise.
8716         * modules/langinfo (Makefile.am): Likewise.
8717         * modules/locale (Makefile.am): Likewise.
8718         * modules/math (Makefile.am): Likewise.
8719         * modules/netdb (Makefile.am): Likewise.
8720         * modules/netinet_in (Makefile.am): Likewise.
8721         * modules/poll-h (Makefile.am): Likewise.
8722         * modules/pthread (Makefile.am): Likewise.
8723         * modules/pty (Makefile.am): Likewise.
8724         * modules/sched (Makefile.am): Likewise.
8725         * modules/search (Makefile.am): Likewise.
8726         * modules/selinux-h (Makefile.am): Likewise.
8727         * modules/signal (Makefile.am): Likewise.
8728         * modules/spawn (Makefile.am): Likewise.
8729         * modules/stdarg (Makefile.am): Likewise.
8730         * modules/stddef (Makefile.am): Likewise.
8731         * modules/stdint (Makefile.am): Likewise.
8732         * modules/stdio (Makefile.am): Likewise.
8733         * modules/stdlib (Makefile.am): Likewise.
8734         * modules/string (Makefile.am): Likewise.
8735         * modules/strings (Makefile.am): Likewise.
8736         * modules/sys_file (Makefile.am): Likewise.
8737         * modules/sys_ioctl (Makefile.am): Likewise.
8738         * modules/sys_select (Makefile.am): Likewise.
8739         * modules/sys_socket (Makefile.am): Likewise.
8740         * modules/sys_stat (Makefile.am): Likewise.
8741         * modules/sys_time (Makefile.am): Likewise.
8742         * modules/sys_times (Makefile.am): Likewise.
8743         * modules/sys_uio (Makefile.am): Likewise.
8744         * modules/sys_utsname (Makefile.am): Likewise.
8745         * modules/sys_wait (Makefile.am): Likewise.
8746         * modules/sysexits (Makefile.am): Likewise.
8747         * modules/termios (Makefile.am): Likewise.
8748         * modules/time (Makefile.am): Likewise.
8749         * modules/unistd (Makefile.am): Likewise.
8750         * modules/wchar (Makefile.am): Likewise.
8751         * modules/wctype-h (Makefile.am): Likewise.
8752         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
8753
8754 2011-05-29  Bruno Haible  <bruno@clisp.org>
8755
8756         assert-h: Allow multiple gnulib generated replacements to coexist.
8757         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
8758
8759 2011-05-29  Bruno Haible  <bruno@clisp.org>
8760
8761         argp: Allow coexistence with strerror_r-posix module.
8762         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
8763         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
8764         by gnulib's <string.h> replacement), assume it has the POSIX signature,
8765         not the glibc signature.
8766
8767 2011-05-28  Bruno Haible  <bruno@clisp.org>
8768
8769         gnulib-tool: Alternative structure of testdirs, similar to --import.
8770         * gnulib-tool: New option --single-configure.
8771         (func_usage): Document it.
8772         (single_configure): New variable.
8773         (func_modules_transitive_closure_separately,
8774         func_modules_transitive_closure_separately,
8775         func_determine_use_libtests, func_modules_add_dummy_separately,
8776         func_modules_to_filelist_separately): New functions, extracted from
8777         func_import.
8778         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
8779         (func_import): Use the new functions.
8780         (func_create_testdir): Set final_modules. Handle $single_configure =
8781         true case.
8782
8783 2011-05-28  Bruno Haible  <bruno@clisp.org>
8784
8785         getloadavg: Remove an unreliable safety check.
8786         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
8787         getloadavg.c is in place.
8788         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
8789         Reported by Sam Steingold <sds@gnu.org>.
8790
8791 2011-05-28  Bruno Haible  <bruno@clisp.org>
8792
8793         doc: Cleanup yet another file produced by texinfo.tex.
8794         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
8795
8796 2011-05-28  Bruno Haible  <bruno@clisp.org>
8797
8798         Finish the conditional dependencies mechanism.
8799         * gnulib-tool: New option --no-conditional-dependencies.
8800         (func_usage): Document it. Don't mark --conditional-dependencies as
8801         experimental.
8802         (cond_dependencies): The possible values can now be true, false, empty.
8803         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
8804         (func_import): Store setting in gnulib-cache.m4 and read it from there.
8805         * doc/gnulib-tool.texi (Conditional dependencies): New section.
8806
8807 2011-05-28  Bruno Haible  <bruno@clisp.org>
8808
8809         doc: Use a recent texinfo.tex.
8810         * doc/Makefile (tex_opts): New variable.
8811         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
8812
8813 2011-05-28  Jim Meyering  <meyering@redhat.com>
8814
8815         intprops.h: adjust comment to match code change
8816         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
8817         only once, it *may* have side effects.  Also fix an unrelated typo.
8818         (_GL_INT_SIGNED): Likewise.
8819
8820 2011-05-26  Simon Josefsson  <simon@josefsson.org>
8821
8822         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
8823
8824 2011-05-26  Bruno Haible  <bruno@clisp.org>
8825
8826         mbsrchr: Avoid collision with system function on Interix.
8827         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
8828         Reported by Markus Duft <mduft@gentoo.org>.
8829
8830 2011-05-15  James Youngman  <jay@gnu.org>
8831
8832         getopt: for ambiguous options, enumerate the possibilities.
8833         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
8834         the ambiguous options when an ambiguous prefix is given. This was
8835         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
8836         glibc change was
8837         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
8838
8839 2011-05-25  Eric Blake  <eblake@redhat.com>
8840
8841         getcwd: work around mingw bug
8842         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
8843         * doc/posix-functions/getcwd.texi (getcwd): Document it.
8844         Reported by Matthias Bolte.
8845
8846 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
8847
8848         test-intprops: disable -Wtype-limits diagnostics
8849         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
8850         diagnostics.  Otherwise, the integer overflow macros generate many
8851         diagnostics.  Reported by Jim Meyering in
8852         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
8853
8854         intprops: shorten, to pacify gcc -Woverlength-strings
8855         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
8856         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
8857         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
8858         likely to run afoul of C compiler limits for string constant lengths.
8859         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
8860
8861 2011-05-24  Eric Blake  <eblake@redhat.com>
8862
8863         docs: document recently fixed glibc printf bug
8864         * doc/posix-functions/fprintf.texi (fprintf): Document it.
8865         * doc/posix-functions/printf.texi (printf): Likewise.
8866         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
8867         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
8868
8869         closein-tests: convert to init.sh
8870         * modules/closein-tests (Files): Add init.sh
8871         * tests/test-closein.sh Use it.
8872
8873         yesno-tests: convert to init.sh
8874         * modules/yesno-tests (Files): Add init.sh.
8875         * tests/test-yesno.sh: Use it.
8876
8877         atexit-tests: ensure reliable exit status
8878         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
8879         Reported by Bruno Haible.
8880
8881 2011-05-24  Bruno Haible  <bruno@clisp.org>
8882
8883         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
8884         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
8885         gl_PREREQ_STRERROR_R invocations from here...
8886         * modules/strerror_r-posix (configure.ac): ... to here.
8887
8888 2011-05-24  Eric Blake  <eblake@redhat.com>
8889
8890         strerror_r: fix missing header
8891         * lib/strerror_r.c: Avoid compiler warning about snprintf.
8892
8893         strerror_r: fix AIX test failures
8894         * lib/strerror_r.c (strerror_r): Convert silent truncation to
8895         ERANGE failure.
8896
8897         strerror_r: fix Solaris test failures
8898         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
8899         failures.
8900         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
8901
8902         strerror_r: enforce POSIX recommendations
8903         * lib/strerror_r.c (safe_copy): New helper method.
8904         (strerror_r): Guarantee a non-empty string.
8905         * tests/test-strerror_r.c (main): Enhance tests to incorporate
8906         recent POSIX rulings and to match our strerror guarantees.
8907         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
8908
8909 2011-05-24  Jim Meyering  <meyering@redhat.com>
8910
8911         test-perror2.c: avoid warning about unused variable
8912         * tests/test-perror2.c (main): Remove declaration of unused "fp".
8913
8914 2011-05-24  Eric Blake  <eblake@redhat.com>
8915
8916         perror: avoid spurious test failure on HP-UX
8917         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
8918
8919         tests: fix logic bug in init.sh
8920         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
8921         shell.
8922
8923 2011-05-24  Jim Meyering  <meyering@redhat.com>
8924
8925         utimensat: do not reference an out-of-scope buffer
8926         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
8927         declared in an inner scope, yet "times" would be dereferenced outside
8928         the scope in which "ts" was valid.
8929         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
8930         of ts[2] "out/up", so that the use of aliased "times" (via
8931         "times = ts;") does not end up referencing an out-of-scope "ts"
8932
8933         opendir-safer.c: don't clobber errno; don't close negative FD
8934         * lib/opendir-safer.c (opendir_safer):
8935         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
8936         file descriptor, and more importantly, don't clobber the
8937         offending errno value with EINVAL.  Before, upon failure
8938         of dup_safer, we would pass the negative file descriptor to
8939         fdopendir, which would clobber errno.
8940
8941 2011-05-23  Bruno Haible  <bruno@clisp.org>
8942
8943         idcache: Fix module description.
8944         * modules/idcache (Include): Set to "idcache.h".
8945
8946 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
8947
8948         gnulib-tool: fix portability problem with MacOS sed
8949         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
8950         before the "}".  Problem reported by Leo in
8951         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
8952         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
8953         sed_extract_condition1, sed_extract_condition2.
8954
8955 2011-05-23  Bruno Haible  <bruno@clisp.org>
8956
8957         hash: Simplify autoconf macro.
8958         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
8959
8960 2011-05-23  Bruno Haible  <bruno@clisp.org>
8961
8962         getugroups: Fix module description.
8963         * modules/getugroups (Include): Set to "getugroups.h".
8964
8965 2011-05-23  Bruno Haible  <bruno@clisp.org>
8966
8967         linkat: Simplify autoconf macro.
8968         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
8969
8970 2011-05-23  Bruno Haible  <bruno@clisp.org>
8971             Eric Blake  <eblake@redhat.com>
8972
8973         linkat, renameat: Update dependencies.
8974         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
8975         * modules/linkat (Depends-on): Likewise. Remove also readlink,
8976         symlinkat.
8977
8978 2011-05-23  Jim Meyering  <meyering@redhat.com>
8979
8980         maint.mk: more tight_scope improvements
8981         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
8982         (_gl_TS_headers): Define only in if-0'd block.
8983         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
8984         sometimes we must *not* use it.  Adjust uses accordingly.
8985         (sc_tight_scope): Use much simpler grep-based test to determine
8986         whether we skip this rule.
8987
8988         maint.mk: generalize/improve the tight-scope rule
8989         * top/maint.mk: Emit a warning when the test is skipped.
8990         (_gl_TS_dir): Add $(srcdir)/ prefix.
8991         (_gl_TS_function_match): Simplify, rather than trying
8992         to enumerate common types.  Otherwise, it would fail to match an
8993         "extern unsigned char const *" declaration in idutils.
8994         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
8995         a way to support use of that type of macro.
8996         (_gl_TS_var_match): Simplify regexp.
8997         (_gl_TS_obj_files): New configurable variable.
8998         (_gl_TS_headers): Likewise.
8999
9000 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
9001
9002         verify: fix bug when gnulib <assert.h> is also included
9003         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
9004         is defined, not if _GL_STATIC_ASSERT_H is not defined.
9005         Perhaps there's a better way, but this fixes the immediate problem.
9006         Problem reported by Bruno Haible in
9007         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
9008
9009 2011-05-22  Bruno Haible  <bruno@clisp.org>
9010
9011         xgetcwd: Simplify autoconf macro.
9012         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
9013
9014 2011-05-22  Bruno Haible  <bruno@clisp.org>
9015
9016         New module 'mktime-internal'.
9017         * modules/mktime-internal: New file.
9018         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
9019         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
9020         mktime_internal as a C macro if libc has __mktime_internal.
9021         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
9022         conditions.
9023         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
9024
9025 2011-05-22  Bruno Haible  <bruno@clisp.org>
9026
9027         timegm: Correct mktime replacement statements.
9028         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
9029         defining mktime as a C macro. This completes a 2009-07-28 commit.
9030
9031 2011-05-22  Bruno Haible  <bruno@clisp.org>
9032
9033         timegm: Simplify autoconf macro.
9034         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
9035
9036 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
9037
9038         clock-time: change to LGPLv2+.
9039         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
9040         BSD-like but we have no mark for that; this is good enough for now.
9041
9042 2011-05-21  Bruno Haible  <bruno@clisp.org>
9043
9044         strerror_r: Fix comments.
9045         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
9046
9047 2011-05-21  Bruno Haible  <bruno@clisp.org>
9048
9049         relocatable-prog-wrapper: Fix possible link error.
9050         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
9051         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
9052         (gl_FUNC_SETENV): ... to here.
9053         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
9054         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
9055
9056 2011-05-21  Bruno Haible  <bruno@clisp.org>
9057
9058         relocatable-prog-wrapper: Assume strerror() exists.
9059         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
9060         m4/strerror.m4.
9061         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
9062         * lib/relocwrapper.c: Remove mention of strerror module.
9063         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
9064         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
9065         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
9066         C macro.
9067
9068 2011-05-21  Bruno Haible  <bruno@clisp.org>
9069
9070         select: Simplify replacement idiom.
9071         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
9072         Win32 platforms.
9073         * lib/sys_select.in.h (select): Simplify accordingly.
9074         * modules/select (Depends-on): Likewise.
9075
9076 2011-05-21  Bruno Haible  <bruno@clisp.org>
9077
9078         mkdir-p: Simplify autoconf macro.
9079         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
9080         gl_FUNC_LCHOWN.
9081
9082 2011-05-21  Eric Blake  <eblake@redhat.com>
9083
9084         strerror_r: avoid clobbering strerror on cygwin
9085         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
9086         fall back instead to sys_errlist.
9087         * modules/strerror (configure.ac): Add witness.
9088         * tests/test-strerror_r.c (main): Enhance test.
9089         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
9090         * tests/test-perror2.c (main): Free memory before exit.
9091
9092 2011-05-21  Bruno Haible  <bruno@clisp.org>
9093
9094         mkdtemp: Use gnulib naming conventions.
9095         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
9096         * modules/mkdtemp (configure.ac): Update.
9097
9098 2011-05-20  Eric Blake  <eblake@redhat.com>
9099
9100         strerror_r: avoid corrupting errno on Solaris
9101         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
9102         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
9103
9104         strerror_r: avoid compiler warning
9105         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
9106
9107         strerror_r: simplify AIX code
9108         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
9109
9110         test-perror: avoid spurious failure on FreeBSD
9111         * modules/perror-tests (Depends-on): Add strerror, now that
9112         strerror_r no longer pulls it in.
9113
9114 2011-05-20  Bruno Haible  <bruno@clisp.org>
9115
9116         strerror_r-posix: Remove unused dependencies.
9117         * modules/strerror_r-posix (Depends-on): Remove strerror.
9118         Reported by Eric Blake.
9119
9120 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
9121
9122         intprops: remove assumption about A|B representation
9123         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
9124         is a valid integer if both A and B are.  Although this is true for
9125         all known practical hosts, the C standard doesn't guarantee it,
9126         and the code need not assume it.  Also, this change may work around
9127         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
9128         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
9129
9130 2011-05-20  Eric Blake  <eblake@redhat.com>
9131
9132         perror: work around FreeBSD bug
9133         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
9134         is broken.  Move AC_LIBOBJ...
9135         * modules/perror (configure.ac): Here.
9136         * doc/posix-functions/perror.texi (perror): Document this.
9137         * tests/test-perror2.c (main): Enhance test.
9138
9139         test-perror: check for strerror interactions
9140         * tests/macros.h (STREQ): Add macro.
9141         * modules/perror-tests (Files): Add second test.
9142         * tests/test-perror2.c (main): New file.
9143         * doc/posix-functions/perror.texi (perror): Document glibc bug.
9144
9145         test-perror: rewrite to use init script
9146         * modules/perror-tests (Files): Add init.sh.
9147         * tests/test-perror.sh: Use temporary directory.
9148
9149 2011-05-20  Jim Meyering  <meyering@redhat.com>
9150
9151         maint: replace misused "a" with "an"
9152         * doc/intprops.texi: "a integer"
9153         * doc/regex.texi: "a explanation"
9154         * lib/alignof.h: "a object"
9155         * lib/argmatch.h: "a explanation"
9156         * lib/argp-help.c: "a option" and "a OPTION_DOC"
9157         * lib/stdint.in.h: "a integer"
9158         * lib/userspec.c: "a owner"
9159         * doc/gnulib.texi: Fix "a idea", and reword.
9160
9161 2011-05-19  Jim Meyering  <meyering@redhat.com>
9162
9163         maint: correct misuse of "a" and "an"
9164         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
9165         * lib/argp-help.c: "an docum...": s/an/a/
9166         * lib/argp-parse.c: "An vector": s/An/A/
9167         * lib/execute.c: "an native": s/an/a/
9168         * lib/spawn-pipe.c: Likewise.
9169         * lib/gc.h: "an Gc_rc": s/an/a/
9170         * lib/unigbrk.in.h: "an grapheme": s/an/a/
9171         * lib/fts.c: "an stat.st_dev": s/an/a/
9172
9173 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
9174
9175         intprops-tests: work around HP-UX 11.23 cc bug with constants
9176         * tests/test-intprops.c (VERIFY): New macro.
9177         (main): Use it, instead of verify, to work around the compiler bug; see
9178         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
9179
9180         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
9181         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
9182         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
9183         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
9184         (_GL_REMAINDER_OVERFLOW): Use it.
9185
9186         intprops-tests: revert unsigned part of previous change
9187         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
9188         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
9189         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
9190         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
9191
9192 2011-05-19  Bruno Haible  <bruno@clisp.org>
9193
9194         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
9195         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
9196         strerror_r() returned without filling the buffer.
9197         Reported by Eric Blake.
9198
9199 2011-05-19  Eric Blake  <eblake@redhat.com>
9200
9201         strerror_r: guarantee unchanged errno
9202         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
9203         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
9204         failure.
9205         * tests/test-strerror_r.c (main): Enhance test.
9206
9207 2011-05-19  Bruno Haible  <bruno@clisp.org>
9208
9209         strerror_r: Reorder #if blocks.
9210         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
9211         for consistency with the previous commit.
9212
9213 2011-05-19  Bruno Haible  <bruno@clisp.org>
9214
9215         perror: Avoid clobbering the strerror buffer when possible.
9216         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
9217         * lib/strerror.c: Include it.
9218         * modules/strerror (Files): Add lib/strerror-impl.h.
9219         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
9220         (my_strerror): New function, defined through lib/strerror-impl.h.
9221         (perror): Use it instead of strerror.
9222         * modules/perror (Files): Add lib/strerror-impl.h.
9223         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
9224
9225 2011-05-19  Eric Blake  <eblake@redhat.com>
9226
9227         strerror_r: fix on newer cygwin
9228         * lib/strerror_r.c (strerror_r): Cygwin now has
9229         __xpg_strerror_r, use it.
9230
9231 2011-05-19  Bruno Haible  <bruno@clisp.org>
9232
9233         strerror_r: Avoid clobbering the strerror buffer when possible.
9234         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
9235         (sys_nerr, sys_errlist): New declarations.
9236         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
9237         HP-UX, native Win32, IRIX, and 32-bit Solaris.
9238         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
9239
9240 2011-05-19  Bruno Haible  <bruno@clisp.org>
9241
9242         strerror_r: Fix test failure on mingw.
9243         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
9244         EXTEND_STRERROR_R.
9245         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
9246         macros from errno.in.h instead.
9247
9248 2011-05-19  Eric Blake  <eblake@redhat.com>
9249
9250         strerror: relax test for Solaris
9251         * tests/test-strerror.c (main): Permit Solaris behavior.
9252         * tests/test-strerror_r.c (main): Likewise.
9253
9254         strerror: enforce POSIX ruling on strerror(0)
9255         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
9256         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
9257         * lib/strerror_r.c (rpl_strerror_r): Work around it.
9258         * doc/posix-functions/strerror.texi (strerror): Document it.
9259         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
9260         * tests/test-strerror.c (main): Strengthen test.
9261         * tests/test-strerror_r.c (main): Likewise.
9262
9263 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
9264
9265         intprop-tests: port to older and more-pedantic compilers
9266         * modules/intprops-tests (Files): Add tests/macros.h.
9267         * tests/test-intprops.c: Include macros.h.
9268         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
9269         it's no longer documented to expand to an integer constant expression.
9270         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
9271         argument is floating point, as it's no longer documented to expand
9272         to an integer constant expression in that case.
9273         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
9274         compiler bugs reported by Bruno Haible.  See
9275         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
9276         (U0, U1): New constants, to work around the same bugs.  Also,
9277         in tests, use e.g., "(unsigned int) 39" rather than "39u".
9278
9279         intprops: work around C compiler bugs
9280         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
9281         bug in Sun C 5.11 2010/08/13 and other compilers; see
9282         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
9283
9284         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
9285         * doc/intprops.texi (Integer Type Determination): Fix
9286         documentation for TYPE_IS_INTEGER: it returns an constant
9287         expression, not an integer constant expression.  Fix doc for
9288         TYPE_SIGNED: it returns an integer constant expression only if its
9289         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
9290         hardly worth documented that way....)
9291
9292 2011-05-18  Bruno Haible  <bruno@clisp.org>
9293
9294         strerror_r: Avoid clobbering the strerror buffer when possible.
9295         * lib/strerror_r.c (strerror_r): Merge the three implementations.
9296         Handle gnulib defined errno values here. When strerror() returns NULL
9297         or an empty string, return EINVAL.
9298         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
9299         gnulib defined errno values here.
9300         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
9301
9302 2011-05-18  Eric Blake  <eblake@redhat.com>
9303
9304         fnmatch: avoid compiler warning
9305         * lib/fnmatch_loop.c (FCT): Use correct type.
9306         Reported by Matthias Bolte.
9307
9308 2011-05-13  Jim Meyering  <meyering@redhat.com>
9309
9310         maint.mk: three new prohibit_<HDR>_without_use rules
9311         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
9312         (sc_prohibit_stdio-safer_without_use): Likewise.
9313         (sc_prohibit_xfreopen_without_use): Likewise.
9314
9315 2011-05-17  Jim Meyering  <meyering@redhat.com>
9316
9317         announce-gen: fail if the NEWS delta is empty
9318         If there's nothing noteworthy in NEWS, then either you forgot
9319         or you shouldn't be releasing.
9320         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
9321
9322 2011-05-17  Pádraig Brady <P@draigBrady.com>
9323
9324         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
9325         reserved symbols starting with double underscore from the check.
9326
9327 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
9328
9329         intprops: add doc
9330         * doc/intprops.texi: New file, documenting intprops.
9331         * doc/gnulib.texi (Particular Modules): Include it.
9332
9333         verify: add doc to gnulib manual and fix example
9334         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
9335         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
9336         (Compile-time Assertions): Fix example so it can't overflow.
9337
9338 2011-05-17  Jim Meyering  <meyering@redhat.com>
9339
9340         warnings.m4: don't usurp save_CPPFLAGS variable name
9341         * m4/warnings.m4: Prefix local temporary variable name with gl_.
9342
9343         doc: fix typo
9344         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
9345
9346 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
9347             Bruno Haible  <bruno@clisp.org>
9348
9349         doc: Tweak recent change.
9350         * README (Portability guidelines): Tweak new text.
9351         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
9352         Interix 6.1.
9353
9354 2011-05-16  Eric Blake  <eblake@redhat.com>
9355
9356         inttypes: avoid autoconf warning
9357         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
9358         * m4/stdint.m4 (gl_STDINT_H): Likewise.
9359
9360 2011-05-16  Sam Steingold <sds@gnu.org>
9361         and Eric Blake  <eblake@redhat.com>
9362
9363         vc-list-files: accept multiple directory operands
9364         * build-aux/vc-list-files: Iterate over all remaining operands.
9365
9366 2011-05-16  Bruno Haible  <bruno@clisp.org>
9367
9368         Fix confusion regarding deprecated modules.
9369         * modules/calloc (Status, Notice): Mark module as deprecated, not
9370         obsolete.
9371         * modules/fnmatch-posix (Status, Notice): Likewise.
9372         * modules/getdate (Status, Notice): Likewise.
9373         * modules/getopt (Status, Notice): Likewise.
9374         * modules/malloc (Status, Notice): Likewise.
9375         * modules/pipe (Status, Notice): Likewise.
9376         * modules/realloc (Status, Notice): Likewise.
9377         * modules/rename-dest-slash (Status, Notice): Likewise.
9378         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
9379         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
9380         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
9381         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
9382         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
9383
9384 2011-05-16  Bruno Haible  <bruno@clisp.org>
9385
9386         doc: List the target platforms.
9387         * doc/gnulib-intro.texi (Target Platforms): New section.
9388         * doc/gnulib.texi (Introduction): Update menu.
9389         * README (Portability guidelines): Refer to the new section. Update
9390         statement about oldest supported environment. Remove rationale why
9391         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
9392         unportable C89 function.
9393         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
9394         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
9395
9396 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
9397
9398         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
9399
9400 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
9401
9402         intprops-tests: new module
9403         * modules/intprops-tests, tests/test-intprops.c: New files.
9404
9405         intprops: add safe, portable integer overflow checking
9406         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
9407         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
9408         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
9409         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
9410         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
9411         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
9412         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
9413         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
9414         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
9415         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
9416         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
9417
9418 2011-05-12  James Youngman  <jay@gnu.org>
9419
9420         Add a test for glibc's Bugzilla bug #12378.
9421         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
9422         doesn't allow the literal matching of a lone "[" (which is
9423         required by POSIX).
9424         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
9425
9426 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
9427
9428         Sync glibc change fixing Bugzilla bug #12378.
9429         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
9430         beginning and fall back to matching as normal character if the
9431         string ends before the matching ']' is found.  This is what POSIX
9432         requires.
9433
9434 2011-05-13  Eric Blake  <eblake@redhat.com>
9435
9436         getcwd-lgpl: relax test for FreeBSD
9437         * doc/posix-functions/getcwd.texi (getcwd): Document portability
9438         issue.
9439         * tests/test-getcwd-lgpl.c (main): Relax test.
9440         Reported by Matthias Bolte.
9441
9442 2011-05-11  Eric Blake  <eblake@redhat.com>
9443
9444         test-fflush: silence compiler warning
9445         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
9446
9447 2011-05-11  Bruno Haible  <bruno@clisp.org>
9448
9449         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
9450         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
9451         * modules/canonicalize (Depends-on): Add 'nocrash'.
9452         * modules/canonicalize-lgpl (Depends-on): Likewise.
9453         * doc/posix-functions/realpath.texi: Update platforms list.
9454         Reported by Ryan Schmidt <ryandesign@macports.org>.
9455
9456 2011-05-11  Bruno Haible  <bruno@clisp.org>
9457
9458         group-member: Declare function in <unistd.h>.
9459         * lib/unistd.in.h (group_member): New declaration.
9460         * lib/group-member.h: Remove file.
9461         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
9462         * tests/test-unistd-c++.cc: Check signature of group_member.
9463         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
9464         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
9465         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
9466         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
9467         HAVE_GROUP_MEMBER.
9468         * modules/group-member (Files): Remove lib/group-member.h.
9469         (Depends-on): Add unistd. Specify conditions.
9470         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
9471         (Include): Change to <unistd.h>.
9472         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
9473         HAVE_GROUP_MEMBER.
9474         * NEWS: Mention the change.
9475         * lib/euidaccess.c: Don't include group-member.h.
9476
9477 2011-05-11  Bruno Haible  <bruno@clisp.org>
9478
9479         group-member: Document module.
9480         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
9481         module.
9482
9483 2011-05-11  Bruno Haible  <bruno@clisp.org>
9484
9485         fclose: Fix mistake earlier today.
9486         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
9487
9488 2011-05-11  Eric Blake  <eblake@redhat.com>
9489
9490         fclose: preserve fflush errors
9491         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
9492         Reported by Jim Meyering.
9493
9494         bootstrap: support a prereq of 'rpcgen -' on RHEL5
9495         * build-aux/bootstrap (check_versions): When no specific version
9496         is required, merely check that the app produces an exit status
9497         that indicates its existence.
9498
9499         maint.mk: drop redundant check
9500         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
9501         the same but better.
9502
9503 2011-05-11  Bruno Haible  <bruno@clisp.org>
9504
9505         fclose: Fix possible link error.
9506         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
9507         unregister_shadow_fd. Improve comments.
9508         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
9509         Eric Blake.
9510
9511 2011-05-11  Jim Meyering  <meyering@redhat.com>
9512
9513         maint.mk: improve "can not" detection and generalize rule name
9514         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
9515         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
9516         Use the same technique as in sc_prohibit_doubled_word, so that
9517         we recognize "can not" also when the words are separated by a newline.
9518         Suggested by Eric Blake.
9519         (perl_filename_lineno_text_): Define.  Factored out of...
9520         (prohibit_doubled_word_): ...here.  Use the new definition.
9521         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
9522         (prohibit_undesirable_word_seq_RE_): New overridable variable.
9523         (ignore_undesirable_word_sequence_RE_): New overridable variable.
9524
9525 2011-05-10  Eric Blake  <eblake@redhat.com>
9526
9527         fclose: avoid double close race when possible
9528         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
9529         all but WINDOWS_SOCKETS.
9530
9531 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
9532
9533         openat: correct new comment
9534         * lib/openat-proc.c (openat_proc_name): Correct the comment.
9535
9536 2011-05-10  Jim Meyering  <meyering@redhat.com>
9537
9538         openat: add comments
9539         * lib/openat-proc.c (openat_proc_name): Add comments,
9540         mostly from Eric Blake.
9541
9542 2011-05-09  Eric Blake  <eblake@redhat.com>
9543
9544         openat: reduce syscalls in first probe of /proc
9545         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
9546         be a directory.  Simplify the probe for .. bugs.
9547         * modules/openat (Depends-on): Drop same-inode.
9548         Reported by Bastien ROUCARIES.
9549
9550 2011-05-09  Jim Meyering  <meyering@redhat.com>
9551
9552         maint.mk: change semantics/name of tight_scope variables
9553         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
9554         Rename variables to align with semantics that make them more useful.
9555
9556         maint.mk: tweak new rule's name not to impinge
9557         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
9558         (sc_tight_scope): Use new rule name rather than $@-0.
9559
9560         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
9561         * top/maint.mk (sc_tight_scope): New rule.
9562         (sc_tight_scope-0): New rule, ifdef'd out.
9563         (_gl_TS_dir): Default.
9564         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
9565         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
9566
9567 2011-05-09  Simon Josefsson  <simon@josefsson.org>
9568
9569         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
9570         Haible <bruno@clisp.org>.
9571
9572 2011-05-08  Bruno Haible  <bruno@clisp.org>
9573
9574         Comments.
9575         * m4/isnanf.m4: Add comment.
9576         * m4/isnanl.m4: Likewise.
9577
9578 2011-05-08  Bruno Haible  <bruno@clisp.org>
9579
9580         glob: Remove obsolete macro.
9581         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
9582
9583 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
9584
9585         intprops: Sun C 5.11 supports __typeof__
9586         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
9587         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
9588         which is new.
9589         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
9590
9591         intprops: switch to usual gnulib indenting and naming
9592         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
9593         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
9594
9595         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
9596
9597 2011-05-08  Jim Meyering  <meyering@redhat.com>
9598
9599         maint.mk: suppress "Entering/Leaving directory" diag in announcement
9600         * top/maint.mk (release-prep): Use make's --no-print-directory
9601         option when generating the announcement.  This eliminates the
9602         pesky "make[2]: Entering/Leaving directory" diagnostics in the
9603         generated announcement template.
9604
9605 2011-05-08  Bruno Haible  <bruno@clisp.org>
9606
9607         tzset: Fix gettimeofday wrapper on Solaris 2.6.
9608         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
9609         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
9610
9611 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
9612
9613         ignore-value, verify: Omit include files from lib_SOURCES.
9614         * modules/ignore-value, modules/verify (Makefile.am):
9615         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
9616         that leads Automake to duplicate use of am__objects_... variables
9617         in Makefile.in.  See
9618         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
9619
9620 2011-05-07  Bruno Haible  <bruno@clisp.org>
9621
9622         fclose: Simplify autoconf macro.
9623         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
9624         defined.
9625
9626 2011-05-07  Bruno Haible  <bruno@clisp.org>
9627
9628         canonicalize-lgpl: Fix autoconf macro ordering bug.
9629         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
9630         gl_STDLIB_H_DEFAULTS.
9631
9632 2011-05-06  Eric Blake  <eblake@redhat.com>
9633
9634         maintainer-makefile: make sc_po_check easier to tune
9635         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
9636         to probe for strings, such as an alternate location for gnulib.
9637
9638         fclose: guarantee behavior on seekable stdin
9639         * modules/fclose (Depends-on): Add fflush.
9640         * doc/posix-functions/fclose.texi (fclose): Document this.
9641         * tests/test-fclose.c (main): Make test for this unconditional.
9642
9643 2011-05-06  Bruno Haible  <bruno@clisp.org>
9644
9645         fflush, fpurge: Relicense under LGPLv2+.
9646         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
9647         * modules/fpurge (License): Likewise.
9648         With permission from Eric Blake and Jim Meyering.
9649         Suggested by Eric Blake.
9650
9651 2011-05-06  Karl Berry  <karl@gnu.org>
9652
9653         * MODULES.html.sh (func_all_modules): remove exit.
9654
9655 2011-05-06  Jim Meyering  <meyering@redhat.com>
9656
9657         maint.mk: use info-gnu@ as the default only for a stable release
9658         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
9659         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
9660         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
9661         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
9662
9663 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
9664
9665         assert-h: new module, which supports C1X-style static_assert
9666         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
9667         * lib/verify.h: Revamp so that this can be copied into assert.h,
9668         while retaining the ability to use it standalone as before.
9669         Rename private identifiers so as not to encroach on the
9670         standard C namespace, since this is now used by assert.h.
9671         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
9672         the old verify_true.
9673         (_GL_VERIFY_TRUE): New macro, with much of the contents of
9674         the old verify_true.  Use _GL_VERIFY_TYPE.
9675         (_GL_VERIFY): New macro, with much of the contents of the old verify.
9676         (static_assert): New macro, if _GL_STATIC_ASSERT_H
9677         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
9678         defined when this file is copied into the replacement assert.h.
9679         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
9680         and _Static_assert is not built in.
9681         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
9682         defined, and use the new macros mentioned above.
9683         * doc/posix-headers/assert.texi: Document this.
9684
9685 2011-05-05  Bruno Haible  <bruno@clisp.org>
9686
9687         fclose, fflush: Respect rules for use of AC_LIBOBJ.
9688         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
9689         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
9690         gl_REPLACE_FCLOSE here.
9691         * modules/fflush (Depends-on): Remove fclose.
9692         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
9693         combination with module 'fclose'.
9694
9695 2011-05-05  Bruno Haible  <bruno@clisp.org>
9696
9697         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
9698         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
9699         gl_FUNC_FFLUSH.
9700         (gl_FUNC_FFLUSH): Use it.
9701         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
9702         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
9703         gl_REPLACE_FSEEKO here.
9704
9705 2011-05-05  Bruno Haible  <bruno@clisp.org>
9706
9707         tzset: Relicense under LGPL.
9708         * modules/tzset (License): Change to LGPL.
9709         No agreement needed; it's a no-op.
9710
9711         strtoimax, strtoumax: Relicense under LGPL.
9712         * modules/strtoimax (License): Change to LGPL.
9713         * modules/strtoumax (License): Likewise.
9714         With permission from Jim Meyering, Paul Eggert:
9715         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
9716         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
9717
9718         getgroups: Relicense under LGPL.
9719         * modules/getgroups (License): Change to LGPL.
9720         With permission from Jim Meyering, Paul Eggert, Eric Blake:
9721         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
9722         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
9723         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
9724
9725         nanosleep: Relicense under LGPL.
9726         * modules/nanosleep (License): Change to LGPL.
9727         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
9728         Haible:
9729         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
9730         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
9731         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
9732         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
9733
9734         futimens: Relicense under LGPL.
9735         * modules/futimens (License): Change to LGPL.
9736         With permission from Eric Blake:
9737         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
9738
9739         fflush: Relicense under LGPL.
9740         * modules/fflush (License): Change to LGPL.
9741         With permission from Eric Blake, Bruno Haible, Jim Meyering:
9742         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
9743         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
9744         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
9745
9746         tmpfile: Relicense under LGPL.
9747         * modules/tmpfile (License): Change to LGPL.
9748         With permission from Ben Pfaff:
9749         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
9750
9751         isfinite: Relicense under LGPL.
9752         * modules/isfinite (License): Change to LGPL.
9753         With permission from Ben Pfaff, Bruno Haible:
9754         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
9755         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
9756
9757         acosl..tanl: Relicense under LGPL.
9758         * modules/acosl (License): Change to LGPL.
9759         * modules/asinl (License): Likewise.
9760         * modules/atanl (License): Likewise.
9761         * modules/cosl (License): Likewise.
9762         * modules/expl (License): Likewise.
9763         * modules/logl (License): Likewise.
9764         * modules/sinl (License): Likewise.
9765         * modules/sqrtl (License): Likewise.
9766         * modules/tanl (License): Likewise.
9767         Source code originally from glibc and Paolo Bonzini. Agreements:
9768         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
9769         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
9770
9771 2011-05-05  Bruno Haible  <bruno@clisp.org>
9772
9773         signal: Define sighandler_t.
9774         * lib/signal.in.h (sighandler_t): New type.
9775         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
9776         whether sighandler_t is defined.
9777         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
9778         * modules/signal (Depends-on): Add extensions.
9779         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
9780         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
9781         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
9782
9783 2011-05-05  Eric Blake  <eblake@redhat.com>
9784
9785         maint: remove useless REPLACE_*_H macros
9786         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
9787         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
9788         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
9789         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
9790         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
9791         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
9792         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
9793         * m4/btowc.m4: Update callers.
9794         * m4/dirfd.m4: Likewise.
9795         * m4/duplocale.m4: Likewise.
9796         * m4/fchdir.m4: Likewise.
9797         * m4/fdopendir.m4: Likewise.
9798         * m4/inet_ntop.m4: Likewise.
9799         * m4/inet_pton.m4: Likewise.
9800         * m4/ioctl.m4: Likewise.
9801         * m4/mbrlen.m4: Likewise.
9802         * m4/mbrtowc.m4: Likewise.
9803         * m4/mbsinit.m4: Likewise.
9804         * m4/mbsnrtowcs.m4: Likewise.
9805         * m4/mbsrtowcs.m4: Likewise.
9806         * m4/poll.m4: Likewise.
9807         * m4/setlocale.m4: Likewise.
9808         * m4/wcrtomb.m4: Likewise.
9809         * m4/wcsnrtombs.m4: Likewise.
9810         * m4/wcsrtombs.m4: Likewise.
9811         * m4/wctob.m4: Likewise.
9812         * m4/wcwidth.m4: Likewise.
9813         * modules/posix_spawn: Likewise.
9814         * modules/posix_spawn_file_actions_addclose: Likewise.
9815         * modules/posix_spawn_file_actions_adddup2: Likewise.
9816         * modules/posix_spawn_file_actions_addopen: Likewise.
9817         * modules/posix_spawn_file_actions_destroy: Likewise.
9818         * modules/posix_spawn_file_actions_init: Likewise.
9819         * modules/posix_spawnattr_destroy: Likewise.
9820         * modules/posix_spawnattr_getflags: Likewise.
9821         * modules/posix_spawnattr_getpgroup: Likewise.
9822         * modules/posix_spawnattr_getschedparam: Likewise.
9823         * modules/posix_spawnattr_getschedpolicy: Likewise.
9824         * modules/posix_spawnattr_getsigdefault: Likewise.
9825         * modules/posix_spawnattr_getsigmask: Likewise.
9826         * modules/posix_spawnattr_init: Likewise.
9827         * modules/posix_spawnattr_setflags: Likewise.
9828         * modules/posix_spawnattr_setpgroup: Likewise.
9829         * modules/posix_spawnattr_setschedparam: Likewise.
9830         * modules/posix_spawnattr_setschedpolicy: Likewise.
9831         * modules/posix_spawnattr_setsigdefault: Likewise.
9832         * modules/posix_spawnattr_setsigmask: Likewise.
9833         * modules/posix_spawnp: Likewise.
9834
9835 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
9836
9837         Add option to do-release-commit-and-tag to specify branch.
9838         * build-aux/do-release-commit-and-tag: Add --branch.
9839
9840 2011-05-03  Bruno Haible  <bruno@clisp.org>
9841
9842         Avoid unnecessary compilation units, through conditional dependencies.
9843         * modules/accept (Depends-on): Add conditions to the dependencies.
9844         * modules/acosl (Depends-on): Likewise.
9845         * modules/argz (Depends-on): Likewise.
9846         * modules/asinl (Depends-on): Likewise.
9847         * modules/atanl (Depends-on): Likewise.
9848         * modules/atoll (Depends-on): Likewise.
9849         * modules/bind (Depends-on): Likewise.
9850         * modules/btowc (Depends-on): Likewise.
9851         * modules/canonicalize-lgpl (Depends-on): Likewise.
9852         * modules/ceil (Depends-on): Likewise.
9853         * modules/ceilf (Depends-on): Likewise.
9854         * modules/ceill (Depends-on): Likewise.
9855         * modules/chdir-long (Depends-on): Likewise.
9856         * modules/chown (Depends-on): Likewise.
9857         * modules/close (Depends-on): Likewise.
9858         * modules/connect (Depends-on): Likewise.
9859         * modules/cosl (Depends-on): Likewise.
9860         * modules/dirfd (Depends-on): Likewise.
9861         * modules/dprintf (Depends-on): Likewise.
9862         * modules/dprintf-posix (Depends-on): Likewise.
9863         * modules/error (Depends-on): Likewise.
9864         * modules/euidaccess (Depends-on): Likewise.
9865         * modules/expl (Depends-on): Likewise.
9866         * modules/faccessat (Depends-on): Likewise.
9867         * modules/fchdir (Depends-on): Likewise.
9868         * modules/fclose (Depends-on): Likewise.
9869         * modules/fcntl (Depends-on): Likewise.
9870         * modules/fdopendir (Depends-on): Likewise.
9871         * modules/fflush (Depends-on): Likewise.
9872         * modules/floor (Depends-on): Likewise.
9873         * modules/floorf (Depends-on): Likewise.
9874         * modules/floorl (Depends-on): Likewise.
9875         * modules/fnmatch (Depends-on): Likewise.
9876         * modules/fopen (Depends-on): Likewise.
9877         * modules/fprintf-posix (Depends-on): Likewise.
9878         * modules/frexp (Depends-on): Likewise.
9879         * modules/frexp-nolibm (Depends-on): Likewise.
9880         * modules/frexpl (Depends-on): Likewise.
9881         * modules/frexpl-nolibm (Depends-on): Likewise.
9882         * modules/fseek (Depends-on): Likewise.
9883         * modules/fsusage (Depends-on): Likewise.
9884         * modules/ftell (Depends-on): Likewise.
9885         * modules/ftello (Depends-on): Likewise.
9886         * modules/futimens (Depends-on): Likewise.
9887         * modules/getcwd (Depends-on): Likewise.
9888         * modules/getcwd-lgpl (Depends-on): Likewise.
9889         * modules/getdelim (Depends-on): Likewise.
9890         * modules/getdomainname (Depends-on): Likewise.
9891         * modules/getgroups (Depends-on): Likewise.
9892         * modules/gethostname (Depends-on): Likewise.
9893         * modules/getline (Depends-on): Likewise.
9894         * modules/getlogin_r (Depends-on): Likewise.
9895         * modules/getopt-posix (Depends-on): Likewise.
9896         * modules/getpeername (Depends-on): Likewise.
9897         * modules/getsockname (Depends-on): Likewise.
9898         * modules/getsockopt (Depends-on): Likewise.
9899         * modules/getsubopt (Depends-on): Likewise.
9900         * modules/getusershell (Depends-on): Likewise.
9901         * modules/glob (Depends-on): Likewise.
9902         * modules/grantpt (Depends-on): Likewise.
9903         * modules/iconv_open (Depends-on): Likewise.
9904         * modules/iconv_open-utf (Depends-on): Likewise.
9905         * modules/inet_ntop (Depends-on): Likewise.
9906         * modules/inet_pton (Depends-on): Likewise.
9907         * modules/ioctl (Depends-on): Likewise.
9908         * modules/isapipe (Depends-on): Likewise.
9909         * modules/isfinite (Depends-on): Likewise.
9910         * modules/isinf (Depends-on): Likewise.
9911         * modules/lchown (Depends-on): Likewise.
9912         * modules/ldexpl (Depends-on): Likewise.
9913         * modules/link (Depends-on): Likewise.
9914         * modules/linkat (Depends-on): Likewise.
9915         * modules/listen (Depends-on): Likewise.
9916         * modules/logl (Depends-on): Likewise.
9917         * modules/lstat (Depends-on): Likewise.
9918         * modules/mbrlen (Depends-on): Likewise.
9919         * modules/mbrtowc (Depends-on): Likewise.
9920         * modules/mbsinit (Depends-on): Likewise.
9921         * modules/mbsnrtowcs (Depends-on): Likewise.
9922         * modules/mbsrtowcs (Depends-on): Likewise.
9923         * modules/mbtowc (Depends-on): Likewise.
9924         * modules/memcmp (Depends-on): Likewise.
9925         * modules/mkdir (Depends-on): Likewise.
9926         * modules/mkdtemp (Depends-on): Likewise.
9927         * modules/mkfifo (Depends-on): Likewise.
9928         * modules/mkfifoat (Depends-on): Likewise.
9929         * modules/mknod (Depends-on): Likewise.
9930         * modules/mkostemp (Depends-on): Likewise.
9931         * modules/mkostemps (Depends-on): Likewise.
9932         * modules/mkstemp (Depends-on): Likewise.
9933         * modules/mkstemps (Depends-on): Likewise.
9934         * modules/mktime (Depends-on): Likewise.
9935         * modules/nanosleep (Depends-on): Likewise.
9936         * modules/open (Depends-on): Likewise.
9937         * modules/openat (Depends-on): Likewise.
9938         * modules/perror (Depends-on): Likewise.
9939         * modules/poll (Depends-on): Likewise.
9940         * modules/popen (Depends-on): Likewise.
9941         * modules/posix_spawn (Depends-on): Likewise.
9942         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
9943         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
9944         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
9945         * modules/posix_spawnp (Depends-on): Likewise.
9946         * modules/pread (Depends-on): Likewise.
9947         * modules/printf-posix (Depends-on): Likewise.
9948         * modules/ptsname (Depends-on): Likewise.
9949         * modules/putenv (Depends-on): Likewise.
9950         * modules/pwrite (Depends-on): Likewise.
9951         * modules/readline (Depends-on): Likewise.
9952         * modules/readlink (Depends-on): Likewise.
9953         * modules/readlinkat (Depends-on): Likewise.
9954         * modules/recv (Depends-on): Likewise.
9955         * modules/recvfrom (Depends-on): Likewise.
9956         * modules/regex (Depends-on): Likewise.
9957         * modules/remove (Depends-on): Likewise.
9958         * modules/rename (Depends-on): Likewise.
9959         * modules/renameat (Depends-on): Likewise.
9960         * modules/rmdir (Depends-on): Likewise.
9961         * modules/round (Depends-on): Likewise.
9962         * modules/roundf (Depends-on): Likewise.
9963         * modules/roundl (Depends-on): Likewise.
9964         * modules/rpmatch (Depends-on): Likewise.
9965         * modules/select (Depends-on): Likewise.
9966         * modules/send (Depends-on): Likewise.
9967         * modules/sendto (Depends-on): Likewise.
9968         * modules/setenv (Depends-on): Likewise.
9969         * modules/setlocale (Depends-on): Likewise.
9970         * modules/setsockopt (Depends-on): Likewise.
9971         * modules/shutdown (Depends-on): Likewise.
9972         * modules/sigaction (Depends-on): Likewise.
9973         * modules/signbit (Depends-on): Likewise.
9974         * modules/sigprocmask (Depends-on): Likewise.
9975         * modules/sinl (Depends-on): Likewise.
9976         * modules/sleep (Depends-on): Likewise.
9977         * modules/snprintf (Depends-on): Likewise.
9978         * modules/snprintf-posix (Depends-on): Likewise.
9979         * modules/socket (Depends-on): Likewise.
9980         * modules/sprintf-posix (Depends-on): Likewise.
9981         * modules/sqrtl (Depends-on): Likewise.
9982         * modules/stat (Depends-on): Likewise.
9983         * modules/strchrnul (Depends-on): Likewise.
9984         * modules/strdup-posix (Depends-on): Likewise.
9985         * modules/strerror (Depends-on): Likewise.
9986         * modules/strerror_r-posix (Depends-on): Likewise.
9987         * modules/strndup (Depends-on): Likewise.
9988         * modules/strnlen (Depends-on): Likewise.
9989         * modules/strptime (Depends-on): Likewise.
9990         * modules/strsep (Depends-on): Likewise.
9991         * modules/strsignal (Depends-on): Likewise.
9992         * modules/strstr-simple (Depends-on): Likewise.
9993         * modules/strtod (Depends-on): Likewise.
9994         * modules/strtoimax (Depends-on): Likewise.
9995         * modules/strtok_r (Depends-on): Likewise.
9996         * modules/strtoumax (Depends-on): Likewise.
9997         * modules/symlink (Depends-on): Likewise.
9998         * modules/symlinkat (Depends-on): Likewise.
9999         * modules/tanl (Depends-on): Likewise.
10000         * modules/tcgetsid (Depends-on): Likewise.
10001         * modules/tmpfile (Depends-on): Likewise.
10002         * modules/trunc (Depends-on): Likewise.
10003         * modules/truncf (Depends-on): Likewise.
10004         * modules/truncl (Depends-on): Likewise.
10005         * modules/uname (Depends-on): Likewise.
10006         * modules/unlink (Depends-on): Likewise.
10007         * modules/unlockpt (Depends-on): Likewise.
10008         * modules/unsetenv (Depends-on): Likewise.
10009         * modules/usleep (Depends-on): Likewise.
10010         * modules/utimensat (Depends-on): Likewise.
10011         * modules/vasprintf (Depends-on): Likewise.
10012         * modules/vdprintf (Depends-on): Likewise.
10013         * modules/vdprintf-posix (Depends-on): Likewise.
10014         * modules/vfprintf-posix (Depends-on): Likewise.
10015         * modules/vprintf-posix (Depends-on): Likewise.
10016         * modules/vsnprintf (Depends-on): Likewise.
10017         * modules/vsnprintf-posix (Depends-on): Likewise.
10018         * modules/vsprintf-posix (Depends-on): Likewise.
10019         * modules/wcrtomb (Depends-on): Likewise.
10020         * modules/wcscasecmp (Depends-on): Likewise.
10021         * modules/wcscspn (Depends-on): Likewise.
10022         * modules/wcsdup (Depends-on): Likewise.
10023         * modules/wcsncasecmp (Depends-on): Likewise.
10024         * modules/wcsnrtombs (Depends-on): Likewise.
10025         * modules/wcspbrk (Depends-on): Likewise.
10026         * modules/wcsrtombs (Depends-on): Likewise.
10027         * modules/wcsspn (Depends-on): Likewise.
10028         * modules/wcsstr (Depends-on): Likewise.
10029         * modules/wcstok (Depends-on): Likewise.
10030         * modules/wcswidth (Depends-on): Likewise.
10031         * modules/wctob (Depends-on): Likewise.
10032         * modules/wctomb (Depends-on): Likewise.
10033         * modules/wctype (Depends-on): Likewise.
10034         * modules/wcwidth (Depends-on): Likewise.
10035         * modules/write (Depends-on): Likewise.
10036
10037 2011-05-03  Bruno Haible  <bruno@clisp.org>
10038
10039         Support for conditional dependencies.
10040         * doc/gnulib.texi (Module description): Document the syntax of
10041         conditional dependencies.
10042         * gnulib-tool: New option --conditional-dependencies.
10043         (func_usage): Document it.
10044         (cond_dependencies): New variable.
10045         (func_get_automake_snippet_conditional,
10046         func_get_automake_snippet_unconditional): New functions, extracted from
10047         func_get_automake_snippet.
10048         (func_get_automake_snippet): Use them.
10049         (sed_first_32_chars): New variable.
10050         (func_module_shellfunc_name): New function.
10051         (func_module_shellvar_name): New function.
10052         (func_module_conditional_name): New function.
10053         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
10054         func_cond_module_condition): New functions.
10055         (func_modules_transitive_closure): Add support for conditional
10056         dependencies.
10057         (func_emit_lib_Makefile_am): For a conditional module, enclose the
10058         conditional automake snippet in an automake conditional.
10059         (func_emit_autoconf_snippets): Emit shell functions that contain the
10060         code for conditional modules.
10061         (func_import, func_create_testdir): Update specification.
10062
10063 2011-05-03  Eric Blake  <eblake@redhat.com>
10064
10065         test-getaddrinfo: report error information
10066         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
10067
10068 2011-05-03  Jim Meyering  <meyering@redhat.com>
10069
10070         bootstrap: avoid build failure when $GZIP is set
10071         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
10072         program name.  If defined at all, it is supposed to list gzip options.
10073         Reported by Alan Curry in http://debbugs.gnu.org/8609
10074
10075 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
10076
10077         readme-release: new module with release instructions
10078         * modules/readme-release: New module.
10079         * top/README-release: New file, from coreutils, grep, diffutils.
10080         * MODULES.html.sh (Support for maintaining and releasing): Add it.
10081
10082 2011-05-02  Eric Blake  <eblake@redhat.com>
10083
10084         fflush: also replace fclose when fixing fflush
10085         * modules/fflush (Depends-on): Add fclose.
10086         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
10087         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
10088         memstreams with no backing fd.
10089         * doc/posix-functions/fclose.texi (fclose): Document the use of
10090         fflush module to fix the bug.
10091         * tests/test-fclose.c (main): Relax test when fclose is used in
10092         isolation.
10093
10094         fclose: add some tests
10095         * modules/fclose-tests: New test module.
10096         * tests/test-fclose.c: New file.
10097         * doc/posix-functions/fclose.texi (fclose): Document the bug.
10098
10099         fclose: reduced dependencies
10100         * modules/fclose (Depends-on): Switch from fflush/fseeko to
10101         simpler lseek.
10102         * lib/fclose.c (rpl_fclose): Likewise.
10103         Reported by Simon Josefsson.
10104
10105         exit: drop remaining clients
10106         * modules/argmatch (Depends-on): Replace exit with stdlib.
10107         * modules/copy-file (Depends-on): Likewise.
10108         * modules/execute (Depends-on): Likewise.
10109         * modules/exitfail (Depends-on): Likewise.
10110         * modules/obstack (Depends-on): Likewise.
10111         * modules/pagealign_alloc (Depends-on): Likewise.
10112         * modules/pipe-filter-gi (Depends-on): Likewise.
10113         * modules/pipe-filter-ii (Depends-on): Likewise.
10114         * modules/savewd (Depends-on): Likewise.
10115         * modules/spawn-pipe (Depends-on): Likewise.
10116         * modules/wait-process (Depends-on): Likewise.
10117         * modules/xsetenv (Depends-on): Likewise.
10118         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
10119         * modules/git-merge-changelog (Depends-on): Likewise.
10120         * modules/long-options (Depends-on): Likewise.
10121         * modules/pt_chown (Depends-on): Likewise.
10122         * modules/sysexits (Depends-on): Likewise.
10123
10124         freading: relax license from LGPLv3+ to LGPLv2+
10125         * modules/freading (License): Relax LGPL version.
10126
10127 2011-05-02  Bruno Haible  <bruno@clisp.org>
10128
10129         fchdir: Remove unused dependencies.
10130         * modules/fchdir (Depends-on): Remove include_next.
10131
10132 2011-05-02  Bruno Haible  <bruno@clisp.org>
10133
10134         gnulib-tool: Refactor.
10135         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
10136         from func_emit_autoconf_snippets.
10137         (func_emit_autoconf_snippets): Use it.
10138
10139 2011-05-02  Simon Josefsson  <simon@josefsson.org>
10140
10141         * NEWS: Document removal of 'exit'.
10142         * modules/exit: Remove file.
10143
10144 2011-05-01  Bruno Haible  <bruno@clisp.org>
10145
10146         Update DEPENDENCIES.
10147         * DEPENDENCIES (gettext): Recommend the newest release.
10148         Reported by Simon Josefsson.
10149
10150 2011-05-01  Bruno Haible  <bruno@clisp.org>
10151
10152         gnulib-tool: Reduce code duplication.
10153         * gnulib-tool (func_emit_autoconf_snippets): New function.
10154         (func_import, func_create_testdir): Use it.
10155
10156 2011-04-30  Eric Blake  <eblake@redhat.com>
10157
10158         fclose: don't fail on non-seekable input stream
10159         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
10160         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
10161         since fflush is allowed to fail in that case.
10162
10163 2011-04-30  Bruno Haible  <bruno@clisp.org>
10164
10165         dup3: cleanup
10166         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
10167
10168 2011-04-30  Bruno Haible  <bruno@clisp.org>
10169
10170         netdb: Make it work in C++ mode.
10171         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
10172         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
10173         module.
10174         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
10175         gl_MODULE_INDICATOR_FOR_TESTS.
10176         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
10177         * modules/netdb-c++-tests: New file.
10178         * tests/test-netdb-c++.cc: New file.
10179
10180 2011-04-30  Bruno Haible  <bruno@clisp.org>
10181
10182         New modules 'vfscanf', 'vscanf'.
10183         * modules/vfscanf: New file.
10184         * modules/vscanf: New file.
10185         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
10186         here.
10187         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
10188         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
10189
10190 2011-04-30  Bruno Haible  <bruno@clisp.org>
10191
10192         passfd: Add comments.
10193         * lib/passfd.c: Add comments about platforms.
10194
10195 2011-04-30  Bruno Haible  <bruno@clisp.org>
10196
10197         sys_uio: Make <sys/uio.h> self-contained.
10198         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
10199         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
10200
10201 2011-04-30  Bruno Haible  <bruno@clisp.org>
10202
10203         sys_socket: Ensure 'struct iovec' definition.
10204         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
10205         <sys/socket.h>.
10206         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
10207
10208 2011-04-30  Bruno Haible  <bruno@clisp.org>
10209
10210         sys_uio: Protect definition of 'struct iovec'.
10211         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
10212         it as a C struct.
10213
10214 2011-04-30  Bruno Haible  <bruno@clisp.org>
10215
10216         manywarnings: fix indentation
10217         * m4/manywarnings.m4: Indent by 2 spaces consistently.
10218
10219 2011-04-30  Pádraig Brady <P@draigBrady.com>
10220
10221         manywarnings: add -Wno-missing-field-initializers if needed.
10222         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
10223         option if it's needed to allow initialization with { 0, }
10224
10225 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
10226
10227         announce-gen: cosmetic improvement
10228         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
10229
10230 2011-04-29  Jim Meyering  <meyering@redhat.com>
10231
10232         vc-list-files: indent with spaces, not TABs
10233         * build-aux/vc-list-files: Convert leading TABs to spaces,
10234         to match the style of most other files in gnulib.
10235
10236         announce-gen: indent with spaces, not TABs
10237         * build-aux/announce-gen: Convert all TABs to spaces, to match
10238         the style of most other files in gnulib.
10239
10240 2011-04-29  Eric Blake  <eblake@redhat.com>
10241
10242         quotearg: avoid uninitialized variable use
10243         * lib/quotearg.c (quoting_options_from_style): Initialize
10244         remaining fields, and ensure that custom styles are only used via
10245         quoting_options rather than quoting_style.
10246
10247 2011-04-29  Jim Meyering  <meyering@redhat.com>
10248
10249         maint.mk: remove unused VC-tag variable
10250         * top/maint.mk (VC-tag): Remove unused variable.
10251
10252 2011-04-29  Bruno Haible  <bruno@clisp.org>
10253
10254         netdb: fix gai_strerror replacements
10255         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
10256         * modules/netdb: Substitute it.
10257
10258 2011-04-29  Jim Meyering  <meyering@redhat.com>
10259
10260         test-getcwd.c: avoid new set-but-not-used warning
10261         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
10262         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
10263         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
10264         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
10265
10266         test-hash.c: avoid a new shadowing warning
10267         * tests/test-hash.c (main): Don't shadow "dup".
10268
10269 2011-04-28  Eric Blake  <eblake@redhat.com>
10270
10271         getaddrinfo: fix gai_strerror signature
10272         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
10273         and work around mingw with UNICODE defined.
10274         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
10275         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
10276         * modules/netdb (Makefile.am): Substitute it.
10277         * lib/netdb.in.h (gai_strerror): Declare replacement.
10278         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
10279         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
10280         the fix.
10281
10282         getsockopt: avoid compiler warning
10283         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
10284         Reported by Matthias Bolte.
10285
10286         tests: drop unused link dependency
10287         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
10288         * modules/dirent-safer-tests (Makefile.am): Likewise.
10289         * modules/fdopendir-tests (Makefile.am): Likewise.
10290         * modules/mkfifoat-tests (Makefile.am): Likewise.
10291         * modules/openat-safer-tests (Makefile.am): Likewise.
10292         * modules/openat-tests (Makefile.am): Likewise.
10293         * modules/readlinkat-tests (Makefile.am): Likewise.
10294         * modules/symlinkat-tests (Makefile.am): Likewise.
10295         * modules/linkat-tests (Makefile.am): Likewise.
10296         (Depends-on): Switch to filenamecat-lgpl.
10297         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
10298         LIBINTL.
10299         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
10300         * tests/test-linkat.c (main): Don't require xalloc.
10301
10302         hash, mgetgroups: drop xalloc dependency
10303         * lib/hash.c (includes): Adjust includes.
10304         * lib/mgetgroups.c (includes): Likewise.
10305         (xgetgroups): Move...
10306         * lib/xgetgroups.c: ...to new file.
10307         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
10308         * modules/xgetgroups: New file, split from...
10309         * modules/mgetgroups: ...here.
10310         (Depends-on): Add xalloc-oversized.
10311         * modules/hash (Depends-on): Likewise.
10312         * modules/hash-tests (Depends-on): Drop xalloc.
10313         (test_hash_LDADD): Drop unused library.
10314         * tests/test-hash.c (main): Break xalloc dependency.
10315         (includes): Drop unused include.
10316
10317         xalloc-oversized: new module
10318         * modules/xalloc-oversized: New module.
10319         * modules/xalloc (Depends-on): Add it.
10320         * lib/xalloc.h (xalloc_oversized): Move...
10321         * lib/xalloc-oversized.h: ...into new file.
10322
10323         utimecmp: drop dependency on xmalloc
10324         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
10325         due to memory pressure.
10326         * modules/utimecmp (Depends-on): Drop xalloc.
10327
10328 2011-04-27  Eric Blake  <eblake@redhat.com>
10329
10330         getcwd: fix mingw bugs
10331         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
10332         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
10333         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
10334
10335 2011-04-27  Bruno Haible  <bruno@clisp.org>
10336
10337         mkstemps: Ensure declaration on MacOS X 10.5.
10338         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
10339         * doc/glibc-functions/mkstemps.texi: Document header file problem on
10340         MacOS X.
10341
10342 2011-04-27  Bruno Haible  <bruno@clisp.org>
10343
10344         mkstemp: More documentation.
10345         * doc/posix-functions/mkstemp.texi: Document header file problem on
10346         MacOS X.
10347
10348 2011-04-27  Bruno Haible  <bruno@clisp.org>
10349
10350         mkstemp: Tweak configure message when cross-compiling.
10351         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
10352         result as a guess.
10353
10354 2011-04-27  Bruno Haible  <bruno@clisp.org>
10355
10356         clean-temp: Clarify what it does.
10357         * lib/clean-temp.h: Add more comments.
10358         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
10359         module.
10360         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
10361         * doc/glibc-functions/mkstemps.texi: Likewise.
10362         * doc/glibc-functions/mkostemps.texi: Likewise.
10363
10364 2011-04-27  Eric Blake  <eblake@redhat.com>
10365
10366         fchdir: avoid extra chdir and fix test
10367         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
10368         getcwd-lgpl.
10369         * lib/fchdir.c (get_name): Any absolute name will do; it does not
10370         have to be canonical.
10371         (canonicalize_file_name): Drop unused macro.
10372         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
10373
10374         filenamecat-lgpl: fix licence
10375         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
10376         when it was first created.
10377
10378         linkat, renameat: add missing dependency
10379         * modules/linkat (Depends-on): Require getcwd-lgpl.
10380         * modules/renameat (Depends-on): Likewise.
10381
10382         tests: reduce dependencies
10383         * tests/test-linkat.c (main): Use lighter-weight getcwd.
10384         * tests/test-renameat.c (main): Likewise.
10385         * modules/linkat-tests (Depends-on): Relax dependency.
10386         * modules/renameat-tests (Depends-on): Likewise.
10387         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
10388         dependency explicit.
10389
10390         save-cwd: reduce default dependency
10391         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
10392         * lib/save-cwd.c: Update comments.
10393         * NEWS: Document the semantic change.
10394
10395         getcwd: enhance tests
10396         * tests/test-getcwd-lgpl.c: New file, taken from...
10397         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
10398         repeat long path stress tests from m4 probe.
10399         * modules/getcwd-lgpl-tests: New module.
10400         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
10401         * m4/getcwd-abort-bug.m4: Update comment.
10402         * m4/getcwd-path-max.m4: Likewise.
10403
10404         getcwd-lgpl: new module
10405         * modules/getcwd-lgpl: New module.
10406         * lib/getcwd-lgpl.c: New file.
10407         * doc/posix-functions/getcwd.texi (getcwd): Document it.
10408         * MODULES.html.sh (lacking POSIX:2008): Likewise.
10409         * modules/getcwd (configure.ac): Set C witness.
10410         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
10411
10412         getcwd: tweak comments
10413         * m4/getcwd-abort-bug.m4: Fix comments.
10414         * m4/getcwd-path-max.m4: Likewise.
10415         * m4/getcwd.m4: Likewise.
10416
10417 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
10418         and Eric Blake  <eblake@redhat.com>
10419
10420         mkstemp: replace if system version uses wrong permissions
10421         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
10422         read/write mode bits set in file created by mkstemp.
10423         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
10424
10425 2011-04-27  Eric Blake  <eblake@redhat.com>
10426
10427         passfd: avoid compiler warning
10428         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
10429         Reported by Laine Stump.
10430
10431 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
10432
10433         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
10434         required by the NetBSD (and perhaps other 4.4BSD derived) join.
10435
10436 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
10437         and Eric Blake  <eblake@redhat.com>
10438
10439         mkstemp: mention clean-temp module
10440         * lib/mkstemp.c: Add comment.
10441         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
10442
10443 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
10444
10445         inttypes: also provide default values for 32-bit tests
10446         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
10447         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
10448
10449 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
10450
10451         strtoumax: remove dependency on strtoimax
10452         This is like the strtoull change of yesterday.
10453         * modules/strtoumax (Files): Add lib/strtoimax.c.
10454         (Depends-on): Remove strtoimax and add verify.
10455
10456         inttypes-incomplete: new module
10457         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
10458         all but the PRI* and SCN* parts of gl_INTTYPES_H.
10459         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
10460         of gl_INTTYPES_H.
10461         (gl_INTTYPES_H): Rewrite in terms of these new macros.
10462         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
10463         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
10464         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
10465         * modules/strtoumax, modules/xstrtol (Depends-on):
10466         Depend on inttypes-incomplete, not inttypes.
10467         * modules/inttypes-incomplete: New module, containing the contents
10468         of the old modules/inttypes module, except that the Files: section
10469         omits m4/inttypes-pri.m4, and the configure.ac section invokes
10470         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
10471         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
10472         (Depends-on): Depend only on inttypes-incomplete.
10473         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
10474
10475         inttypes: omit now-redundant strtoimax and strtoumax work
10476         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
10477         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
10478
10479         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
10480         This supports apps that need pointers to strtoimax and strtoumax,
10481         and ports to HP-UX 11.00 64.bit, which has macros that expand to
10482         nonexistent functions.  See
10483         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
10484         et seq.
10485         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
10486         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
10487         a macro.
10488         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
10489
10490 2011-04-25  Simon Josefsson  <simon@josefsson.org>
10491
10492         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
10493
10494 2011-04-25  Bruno Haible  <bruno@clisp.org>
10495
10496         strtol, strtoul: Mark modules as obsolete.
10497         * modules/strtol (Status, Notice): New sections.
10498         * modules/strtoul (Status, Notice): New sections.
10499
10500 2011-04-25  Bruno Haible  <bruno@clisp.org>
10501
10502         strtod: Remove check for strtod, unless supporting old platforms.
10503         * modules/strtod-obsolete: New file.
10504         * m4/strtod-obsolete.m4: New file.
10505         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
10506         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
10507         * modules/strtod (Depends-on): Add strtod-obsolete.
10508         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
10509
10510 2011-04-25  Bruno Haible  <bruno@clisp.org>
10511
10512         strcase: Make module obsolete.
10513         * modules/strcase (Status, Notice): New sections.
10514
10515 2011-04-25  Bruno Haible  <bruno@clisp.org>
10516
10517         dup2: Remove check for dup2, unless supporting old obsolete platforms.
10518         * modules/dup2-obsolete: New file.
10519         * m4/dup2-obsolete.m4: New file.
10520         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
10521         gl_FUNC_DUP2_OBSOLETE is not also defined.
10522         * modules/dup2 (Depends-on): Add dup2-obsolete.
10523         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
10524
10525 2011-04-25  Bruno Haible  <bruno@clisp.org>
10526
10527         strnlen: Avoid memchr related link error on old obsolete platforms.
10528         * modules/memchr-obsolete: New file.
10529         * m4/memchr-obsolete.m4: New file.
10530         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
10531         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
10532         * modules/memchr (Depends-on): Add memchr-obsolete.
10533         * modules/strnlen (Depends-on): Likewise.
10534         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
10535
10536 2011-04-25  Jim Meyering  <meyering@redhat.com>
10537
10538         maint.mk: makefile_at_at_check extend and clean up
10539         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
10540         in addition to */Makefile.am.
10541         Exempt legitimate uses of @VAR@ notation, e.g.,
10542         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
10543         Remove obsolete coreutils-specific comment.
10544         Prompted by discussion here:
10545         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
10546
10547 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
10548
10549         strtoul: remove dependency on strtol
10550         This is so that 'configure' need not check for strtol merely because
10551         the application needs strtoul.
10552         * modules/strtoul (Files): Add lib/strtol.c.
10553         (Depends-on): Remove strtol.
10554
10555         strtoull: remove dependency on strtoul
10556         This is like the strtoll change.
10557         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
10558         (Depends-on): Remove strtoul.
10559
10560         strtoll: remove dependency on strtol
10561         This is so that 'configure' need not check for strtol merely because
10562         the application needs strtoll.
10563         * modules/strtoll (Files): Add lib/strtol.c.
10564         (Depends-on): Remove strtol.
10565
10566 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
10567
10568         inttypes: Move some configure check to module 'imaxdiv'.
10569         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
10570         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
10571         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
10572
10573 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
10574
10575         inttypes: Move some configure check to module 'imaxabs'.
10576         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
10577         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
10578         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
10579
10580 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
10581
10582         inttypes: Remove configure tests that are not needed since 2009-12-31.
10583         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
10584         gl_cv_header_working_inttypes_h.
10585
10586 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
10587
10588         * modules/strnlen (Depends-on): Remove memchr.
10589         The strnlen implementation doesn't need the memchr module's fixes; see
10590         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
10591
10592         strtol: remove dependency on wchar
10593         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
10594         * modules/strtol (Depends-on): Remove wchar.
10595
10596 2011-04-21  Eric Blake  <eblake@redhat.com>
10597
10598         passfd: fix test regression on Linux
10599         * modules/passfd-tests (configure.ac): Correct socketpair check.
10600
10601         passfd: speed up configure and drop unused code
10602         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
10603         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
10604         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
10605         Instead of probing at configure for unix_scm_rights_bsd44_way,
10606         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
10607         check to a struct member probe.
10608         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
10609         (sendfd, recvfd): Update preprocessor checks.
10610         * modules/passfd (Files): Reflect rename, and drop unused file.
10611         (Depends-on): Drop unused dependency.
10612
10613         passfd: allow compilation on mingw
10614         * modules/sys_socket (Depends-on): Add sys_uio.
10615         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
10616         iovec and a minimal struct msghdr.
10617         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
10618         * tests/test-sys_socket.c (main): Enhance test.
10619         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
10620         guaranteed to provide what we need.
10621         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
10622         * modules/passfd-tests (Depends-on): Add sys_wait.
10623         * tests/test-passfd.c (main): Skip test on mingw, for now.
10624         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
10625         partial 'struct msghdr' implementation.
10626
10627         sys_uio: new module
10628         * modules/sys_uio: New module.
10629         * modules/sys_uio-tests: Likewise.
10630         * lib/sys_uio.in.h: New file.
10631         * m4/sys_uio_h.m4: Likewise.
10632         * tests/test-sys_uio.c: Likewise.
10633         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
10634         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
10635
10636 2011-04-20  Jim Meyering  <meyering@redhat.com>
10637
10638         useless-if-before-free: avoid false-positive
10639         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
10640         disjunct so that it too requires a terminating ";".  Without that,
10641         this script would identify as useless one statement from gcc that
10642         was not:
10643           if (aligned_ptr)
10644             free (((void **) aligned_ptr) [-1]);
10645
10646 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
10647
10648         doc: update users.txt.
10649         * users.txt: Add barcode.
10650
10651 2011-04-19  Bruno Haible  <bruno@clisp.org>
10652
10653         ioctl: Remove link dependency on native Windows.
10654         * lib/fd-hook.h: Renamed from lib/close-hook.h.
10655         (gl_close_fn, gl_ioctl_fn): New types.
10656         (struct fd_hook): Renamed from struct close_hook. Change type of
10657         private_close_fn field. Add private_ioctl_fn field.
10658         (close_hook_fn): Add parameter for primary close method.
10659         (execute_close_hooks, execute_all_close_hooks): Likewise.
10660         (ioctl_hook_fn): New type.
10661         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
10662         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
10663         argument.
10664         (unregister_fd_hook): Renamed from unregister_close_hook.
10665         * lib/fd-hook.c: Renamed from lib/close-hook.c.
10666         Don't include <unistd.h>.
10667         (close): Remove undef.
10668         (anchor): Update.
10669         (execute_close_hooks): Add argument for primary close method.
10670         (execute_all_close_hooks): Likewise.
10671         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
10672         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
10673         argument. Allow each argument to be NULL.
10674         (unregister_fd_hook): Renamed from unregister_close_hook.
10675         * lib/close.c (rpl_close): Pass 'close' function pointer to
10676         execute_all_close_hooks.
10677         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
10678         (primary_ioctl): New function.
10679         (ioctl): Don't call ioctlsocket here. Instead, call
10680         execute_all_ioctl_hooks.
10681         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
10682         close method.
10683         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
10684         (fd_sockets_hook): Renamed from close_sockets_hook.
10685         (gl_sockets_startup, gl_sockets_cleanup): Update.
10686         * modules/fd-hook: Renamed from modules/close-hook. Update.
10687         * modules/close (Depends-on): Add fd-hook, remove close-hook.
10688         * modules/sockets (Depends-on): Likewise.
10689         * modules/ioctl (Depends-on): Add fd-hook.
10690         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
10691         GNULIB_SOCKET.
10692
10693 2011-04-19  Bruno Haible  <bruno@clisp.org>
10694
10695         Move the support of O_NONBLOCK in open() to the 'open' module.
10696         * modules/nonblocking (Depends-on): Remove 'open'.
10697         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
10698         gl_cv_have_open_O_NONBLOCK.
10699         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
10700         O_NONBLOCK support.
10701         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
10702
10703 2011-04-17  Bruno Haible  <bruno@clisp.org>
10704
10705         pipe2: Simplify code.
10706         * lib/pipe2.c (pipe2): Reduce code duplication.
10707
10708 2011-04-17  Bruno Haible  <bruno@clisp.org>
10709
10710         nonblocking: Add comment.
10711         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
10712
10713 2011-04-17  Bruno Haible  <bruno@clisp.org>
10714
10715         nonblocking: Add tests for sockets.
10716         * tests/test-nonblocking-socket.sh: New file.
10717         * tests/test-nonblocking-socket-main.c: New file.
10718         * tests/test-nonblocking-socket-child.c: New file.
10719         * tests/test-nonblocking-socket.h: New file.
10720         * tests/socket-server.h: New file.
10721         * tests/socket-client.h: New file.
10722         * modules/nonblocking-socket-tests: New file.
10723         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
10724
10725 2011-04-17  Bruno Haible  <bruno@clisp.org>
10726
10727         nonblocking: Add tests for pipes.
10728         * tests/test-nonblocking-pipe.sh: New file.
10729         * tests/test-nonblocking-pipe-main.c: New file.
10730         * tests/test-nonblocking-pipe-child.c: New file.
10731         * tests/test-nonblocking-pipe.h: New file.
10732         * tests/test-nonblocking-writer.h: New file.
10733         * tests/test-nonblocking-reader.h: New file.
10734         * tests/test-nonblocking-misc.h: New file.
10735         * modules/nonblocking-pipe-tests: New file.
10736         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
10737
10738 2011-04-16  Bruno Haible  <bruno@clisp.org>
10739
10740         gettext: Clarify the needed programmer actions.
10741         * modules/gettext (Notice): New field.
10742         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
10743
10744 2011-04-16  Bruno Haible  <bruno@clisp.org>
10745
10746         strchrnul: Tweak last commit.
10747         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
10748         bug.
10749         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
10750         as in _GL_FUNCDECL_SYS.
10751         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
10752         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
10753
10754 2011-04-15  Eric Blake  <eblake@redhat.com>
10755
10756         strchrnul: work around cygwin bug
10757         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
10758         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
10759         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
10760         * modules/string (Makefile.am): Substitute it.
10761         * lib/string.in.h (strchrnul): Use it.
10762
10763 2011-04-15  Bruno Haible  <bruno@clisp.org>
10764
10765         Don't require lib/stdio-write.c when only module 'stdio' is used.
10766         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
10767         invocation.
10768         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
10769
10770 2011-04-14  Bruno Haible  <bruno@clisp.org>
10771
10772         Support non-blocking pipe I/O in read() on native Windows.
10773         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
10774         (read): New declaration.
10775         * lib/read.c: New file.
10776         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
10777         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
10778         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
10779         vscanf): New declarations.
10780         * lib/stdio-read.c: New file.
10781         * m4/read.m4: New file.
10782         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
10783         REPLACE_READ.
10784         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
10785         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
10786         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
10787         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
10788         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
10789         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
10790         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
10791         * modules/read: New file.
10792         * modules/nonblocking (Files): Add lib/stdio-read.c.
10793         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
10794         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
10795         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
10796         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
10797         * modules/pread (Depends-on): Add read.
10798         * modules/safe-read (Depends-on): Likewise.
10799         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
10800         gets, scanf, vfscanf, vscanf): Verify signatures.
10801         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
10802         problem with non-blocking pipes.
10803         * doc/posix-functions/fgetc.texi: Likewise.
10804         * doc/posix-functions/fgets.texi: Likewise.
10805         * doc/posix-functions/fread.texi: Likewise.
10806         * doc/posix-functions/fscanf.texi: Likewise.
10807         * doc/posix-functions/getc.texi: Likewise.
10808         * doc/posix-functions/getchar.texi: Likewise.
10809         * doc/posix-functions/gets.texi: Likewise.
10810         * doc/posix-functions/scanf.texi: Likewise.
10811         * doc/posix-functions/vfscanf.texi: Likewise.
10812         * doc/posix-functions/vscanf.texi: Likewise.
10813
10814 2011-04-14  Bruno Haible  <bruno@clisp.org>
10815
10816         Support non-blocking pipe I/O in write() on native Windows.
10817         * lib/write.c (rpl_write): Split a write request that failed merely
10818         because the byte count was larger than the pipe buffer's size.
10819         * doc/posix-functions/write.texi: Mention the problem with large byte
10820         counts.
10821
10822 2011-04-14  Bruno Haible  <bruno@clisp.org>
10823
10824         wchar: Ensure that wchar_t gets defined on uClibc.
10825         * lib/wchar.in.h: On uClibc, include <stddef.h>.
10826         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
10827
10828 2011-04-13  Bruno Haible  <bruno@clisp.org>
10829
10830         safe-write, full-read: Avoid unnecessary compilation units.
10831         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
10832         (Depends-on): Remove safe-read. Add ssize_t.
10833         * modules/full-read (Files): Add lib/full-write.c.
10834         (Depends-on): Add full-write.
10835
10836 2011-04-13  Bruno Haible  <bruno@clisp.org>
10837
10838         Support non-blocking pipe I/O and SIGPIPE in pwrite().
10839         * modules/pwrite (Depends-on): Add 'write'.
10840
10841 2011-04-13  Bruno Haible  <bruno@clisp.org>
10842
10843         Support non-blocking pipe I/O in write() on native Windows.
10844         * lib/unistd.in.h (write): Enable replacement also if
10845         GNULIB_UNISTD_H_NONBLOCKING is 1.
10846         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
10847         (rpl_write): When failing to write on a non-blocking pipe, change
10848         errno from ENOSPC to EAGAIN.
10849         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
10850         putchar, puts, vfprintf, vprintf): Enable replacement also if
10851         GNULIB_STDIO_H_NONBLOCKING is 1.
10852         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
10853         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
10854         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
10855         CALL_WITH_SIGPIPE_EMULATION.
10856         (CALL_WITH_SIGPIPE_EMULATION): Use them.
10857         * m4/nonblocking.m4: New file.
10858         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
10859         for non-blocking I/O support.
10860         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10861         GNULIB_UNISTD_H_NONBLOCKING.
10862         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
10863         required for non-blocking I/O support.
10864         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
10865         * modules/nonblocking (Files): Add m4/nonblocking.m4,
10866         lib/stdio-write.c, m4/asm-underscore.m4.
10867         (Depends-on): Add stdio, unistd.
10868         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
10869         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
10870         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
10871         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
10872         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
10873         problem with non-blocking pipes.
10874         * doc/posix-functions/fputc.texi: Likewise.
10875         * doc/posix-functions/fputs.texi: Likewise.
10876         * doc/posix-functions/fwrite.texi: Likewise.
10877         * doc/posix-functions/printf.texi: Likewise.
10878         * doc/posix-functions/putc.texi: Likewise.
10879         * doc/posix-functions/putchar.texi: Likewise.
10880         * doc/posix-functions/puts.texi: Likewise.
10881         * doc/posix-functions/vfprintf.texi: Likewise.
10882         * doc/posix-functions/vprintf.texi: Likewise.
10883         * doc/posix-functions/write.texi: Likewise.
10884
10885 2011-04-10  Jim Meyering  <meyering@redhat.com>
10886
10887         maint.mk: prohibit doubled words
10888         Detect them also when they're separated by a newline.
10889         There are 3 ways to customize it:
10890           - disable the test on a per file basis, as usual with rules using
10891             $(VC_LIST_EXCEPT)
10892           - replace the default doubled-word-selecting regexp (affects all files)
10893           - ignore a particular file-vs-doubled-word match
10894         I nearly used that last one to ignore the "is is" match in
10895         coreutils' NEWS file, since the text was "ls -is is ..."
10896         To do that, I would have added this line to cfg.mk:
10897           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
10898         but it would have ignored any "is is" match in NEWS.
10899         Low probability, but still...
10900         Instead, I changed the text, slightly:
10901           -  ls -is is now consistent with ls -lis in ignoring values returned
10902           +  "ls -is" is now consistent with ls -lis in ignoring values returned
10903         * top/maint.mk (prohibit_double_word_RE_): Provide default.
10904         (prohibit_doubled_word_): Define.
10905         (sc_prohibit_doubled_word): New rule.
10906         (sc_prohibit_the_the): Remove.  Subsumed by the above.
10907
10908 2011-04-10  Jim Meyering  <meyering@redhat.com>
10909
10910         maint: fix doubled-word typo in comment
10911         * m4/gethostname.m4: s/is is/it is/
10912         * m4/getdomainname.m4: Likewise.
10913
10914 2011-04-10  Jim Meyering  <meyering@redhat.com>
10915
10916         maint: remove doubled word: s/it it/it/
10917         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
10918
10919 2011-04-10  Jim Meyering  <meyering@redhat.com>
10920
10921         maint.mk: remove useless semicolon and backslash
10922         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
10923         semicolon and backslash.
10924
10925 2011-04-10  Bruno Haible  <bruno@clisp.org>
10926
10927         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
10928         * modules/stdint-tests (Depends-on): Add wchar.
10929
10930 2011-04-10  Jim Meyering  <meyering@redhat.com>
10931
10932         maint: remove doubled words in comments, e.g., s/a a/a/
10933         * lib/strptime.c (day_of_the_week): s/the the/the/
10934         * tests/test-chown.h (test_chown): s/a a/a/
10935
10936         test-chown.h: correct a cast
10937         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
10938         when the destination is a stat.st_gid.
10939
10940 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
10941
10942         getaddrinfo: Fix test for sa_len member.
10943         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
10944         include <sys/types.h> before <sys/socket.h>.
10945
10946 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
10947
10948         maint: change "can not" to "cannot"
10949         * doc/posix-functions/iconv.texi (iconv): This one crossed line
10950         boundaries.
10951
10952 2011-04-09  Jim Meyering  <meyering@redhat.com>
10953
10954         maint: change "a a" to "a"
10955         * tests/test-lchown.h (test_lchown): s/a a/a/
10956
10957         maint.mk: prohibit \<the the\>
10958         * top/maint.mk (sc_prohibit_the_the): New rule.
10959
10960         maint: fix "the the" in comment
10961         * lib/count-one-bits.h: s/the the/the/
10962
10963         maint: change "can not" to "cannot"
10964         But do not change the occurrences in maintain.texi or in
10965         build-aux/po/Makefile.in.in, which I presume comes from gettext.
10966         * doc/gnulib-tool.texi: s/can not/cannot/
10967         * doc/posix-functions/accept.texi (accept): Likewise.
10968         * doc/posix-functions/socket.texi (socket): Likewise.
10969         * lib/mbrtowc.c: Likewise.
10970
10971         maint.mk: prohibit use of "can not"
10972         * top/maint.mk (sc_prohibit_can_not): New rule.
10973         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
10974
10975 2011-04-09  Bruno Haible  <bruno@clisp.org>
10976
10977         careadlinkat: Guard against misuse of careadlinkatcwd.
10978         * lib/careadlinkat.c: Include <stdlib.h>.
10979         (careadlinkatcwd): Check that the fd argument is as expected.
10980
10981 2011-04-09  Bruno Haible  <bruno@clisp.org>
10982
10983         careadlinkat: Use common coding style.
10984         * lib/careadlinkat.c: Move gnulib includes after system includes.
10985
10986 2011-04-09  Bruno Haible  <bruno@clisp.org>
10987
10988         careadlinkat: Clarify specification.
10989         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
10990         (careadlinkatcwd): Add comment.
10991         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
10992
10993 2011-04-09  Bruno Haible  <bruno@clisp.org>
10994
10995         areadlinkat: Avoid link error on many platforms.
10996         * modules/areadlinkat (Depends-on): Add areadlink.
10997
10998 2011-04-09  Bruno Haible  <bruno@clisp.org>
10999
11000         allocator, careadlinkat: Fix double-inclusion guard.
11001         * lib/allocator.h: Fix double-inclusion guard.
11002         * lib/careadlinkat.h: Likewise.
11003
11004 2011-04-09  Bruno Haible  <bruno@clisp.org>
11005
11006         relocatable-prog-wrapper: Update after module 'areadlink' changed.
11007         * lib/relocwrapper.c: Update dependencies hierarchy.
11008         * build-aux/install-reloc: Update list of files to be compiled.
11009         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
11010         lib/allocator.[hc].
11011
11012 2011-04-08  Eric Blake  <eblake@redhat.com>
11013
11014         strftime: silence gnulib-tool warning
11015         * modules/strftime-tests (Depends-on): Drop automatic dependency.
11016
11017 2011-04-08  Bruno Haible  <bruno@clisp.org>
11018
11019         verify: Fix syntax error with GCC 4.6 in C++ mode.
11020         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
11021         (HAVE_STATIC_ASSERT): New macro.
11022         (verify_true, verify): Use 'static_assert' if it is supported and
11023         '_Static_assert' is not supported.
11024
11025 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
11026
11027         allocator: New module.
11028         * modules/allocator, lib/allocator.c: New files.
11029         * lib/allocator.h (stdlib_allocator): New decl.
11030         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
11031         Remove.  Do not include <stdlib.h>.
11032         (careadlinkat): Use stdlib_allocator instead of rolling our own.
11033         * modules/careadlinkat (Files): Remove lib/allocator.h.
11034         (Depends-on): Add allocator.
11035
11036         stdlib: let modules use system malloc, realloc
11037         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
11038         if !_GL_USE_STDLIB_ALLOC.
11039         (malloc, realloc): Limit this change to a smaller scope.
11040
11041         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
11042         (malloc, realloc): Don't #undef; no longer needed.
11043         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
11044         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
11045         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
11046         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
11047         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
11048         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
11049         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
11050         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
11051
11052         careadlinkat: rename members to avoid problem
11053         * lib/allocator.h (struct allocator): Rename members from
11054         malloc/realloc to allocate/reallocate, to avoid problems if malloc
11055         and realloc are #define'd.  Reported by Eric Blake in
11056         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
11057         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
11058
11059 2011-04-08  Eric Blake  <eblake@redhat.com>
11060
11061         nonblocking: reduce dependency
11062         * tests/test-nonblocking.c: Only test sockets when in use.
11063         * modules/nonblocking-tests (Depends-on): Drop socket.
11064         (Makefile.am): Link even if sockets are not present.
11065         * modules/pipe2-tests (Makefile.am): Likewise.
11066         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
11067
11068         pipe2: fix O_NONBLOCK support on mingw
11069         * modules/pipe2 (Depends-on): Add nonblocking.
11070         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
11071         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
11072         * tests/test-nonblocking.c (main): Likewise.
11073         * modules/pipe2-tests (Makefile.am): Avoid link failure.
11074
11075         fcntl-h: fix O_ACCMODE on cygwin
11076         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
11077         * lib/fcntl.in.h (O_ACCMODE): Fix it.
11078
11079         pipe-filter: drop O_NONBLOCK workarounds
11080         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
11081         * modules/pipe-filter-ii (Depends-on): Likewise.
11082         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
11083
11084         nonblocking: provide O_NONBLOCK for mingw
11085         * modules/nonblocking (Depends-on): Add open.
11086         (configure.ac): Set new witness macro.
11087         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
11088         * modules/fcntl-h (Makefile.am): Substitute it.
11089         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
11090         nonblocking module is in use.
11091         * lib/nonblocking.c: Adjust portability test.
11092         * lib/open.c (open): Don't let native open see gnulib flag.
11093         * tests/test-fcntl-h.c (main): Enhance test.
11094         * tests/test-open.h (test_open): Likewise.
11095         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
11096
11097         careadlinkat: fix compilation error on mingw
11098         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
11099         within struct allocator.
11100
11101 2011-04-06  Eric Blake  <eblake@redhat.com>
11102
11103         binary-io: relicense under LGPLv2+
11104         * modules/binary-io (License): Relax to LGPLv2+.
11105         Requested for libvirt, and required by pipe2.
11106
11107 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
11108
11109         verify: use _Static_assert if available
11110         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
11111         (verify_true, verify): Use it if available.  This generates better
11112         diagnostics with GCC 4.6.0 and later.
11113
11114 2011-04-05  Bruno Haible  <bruno@clisp.org>
11115
11116         Remove leftover generated .h files after config.status changed.
11117
11118         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
11119         GL_GENERATE_ALLOCA_H.
11120         * modules/alloca-opt (Makefile.am): Remove alloca.h if
11121         GL_GENERATE_ALLOCA_H evaluates to false.
11122
11123         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
11124         GL_GENERATE_ARGZ_H.
11125         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
11126         evaluates to false.
11127
11128         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
11129         GL_GENERATE_BYTESWAP_H.
11130         * modules/byteswap (Makefile.am): Remove byteswap.h if
11131         GL_GENERATE_BYTESWAP_H evaluates to false.
11132
11133         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
11134         GL_GENERATE_ERRNO_H.
11135         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
11136         evaluates to false.
11137
11138         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
11139         GL_GENERATE_FLOAT_H.
11140         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
11141         evaluates to false.
11142
11143         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
11144         GL_GENERATE_FNMATCH_H.
11145         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
11146         GL_GENERATE_FNMATCH_H evaluates to false.
11147
11148         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
11149         GL_GENERATE_GLOB_H.
11150         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
11151         evaluates to false.
11152
11153         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
11154         automake conditional GL_GENERATE_ICONV_H.
11155         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
11156         evaluates to false.
11157
11158         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
11159         GL_GENERATE_NETINET_IN_H.
11160         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
11161         GL_GENERATE_NETINET_IN_H evaluates to false.
11162
11163         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
11164         conditional GL_GENERATE_PTHREAD_H.
11165         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
11166         * modules/pthread (Makefile.am): Remove pthread.h if
11167         GL_GENERATE_PTHREAD_H evaluates to false.
11168
11169         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
11170         GL_GENERATE_SCHED_H.
11171         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
11172         evaluates to false.
11173
11174         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
11175         conditional GL_GENERATE_SELINUX_CONTEXT_H.
11176         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
11177         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
11178
11179         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
11180         GL_GENERATE_STDARG_H.
11181         * modules/stdarg (Makefile.am): Remove stdarg.h if
11182         GL_GENERATE_STDARG_H evaluates to false.
11183
11184         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
11185         GL_GENERATE_STDBOOL_H.
11186         * modules/stdbool (Makefile.am): Remove stdbool.h if
11187         GL_GENERATE_STDBOOL_H evaluates to false.
11188
11189         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
11190         conditional GL_GENERATE_STDDEF_H.
11191         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
11192         * modules/stddef (Makefile.am): Remove stddef.h if
11193         GL_GENERATE_STDDEF_H evaluates to false.
11194
11195         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
11196         GL_GENERATE_STDINT_H.
11197         * modules/stdint (Makefile.am): Remove stdint.h if
11198         GL_GENERATE_STDINT_H evaluates to false.
11199
11200         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
11201         GL_GENERATE_SYSEXITS_H.
11202         * modules/sysexits (Makefile.am): Remove sysexits.h if
11203         GL_GENERATE_SYSEXITS_H evaluates to false.
11204
11205         Reported by Karl Berry and Ralf Wildenhues.
11206
11207 2011-04-05  Bruno Haible  <bruno@clisp.org>
11208
11209         Ensure to rebuild generated .h files when config.status has changed.
11210         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
11211         config.status.
11212         * modules/ctype (Makefile.am): Likewise.
11213         * modules/dirent (Makefile.am): Likewise.
11214         * modules/errno (Makefile.am): Likewise.
11215         * modules/fcntl-h (Makefile.am): Likewise.
11216         * modules/float (Makefile.am): Likewise.
11217         * modules/getopt-posix (Makefile.am): Likewise.
11218         * modules/glob (Makefile.am): Likewise.
11219         * modules/iconv-h (Makefile.am): Likewise.
11220         * modules/inttypes (Makefile.am): Likewise.
11221         * modules/langinfo (Makefile.am): Likewise.
11222         * modules/locale (Makefile.am): Likewise.
11223         * modules/math (Makefile.am): Likewise.
11224         * modules/netdb (Makefile.am): Likewise.
11225         * modules/netinet_in (Makefile.am): Likewise.
11226         * modules/poll-h (Makefile.am): Likewise.
11227         * modules/pthread (Makefile.am): Likewise.
11228         * modules/pty (Makefile.am): Likewise.
11229         * modules/sched (Makefile.am): Likewise.
11230         * modules/search (Makefile.am): Likewise.
11231         * modules/selinux-h (Makefile.am): Likewise.
11232         * modules/signal (Makefile.am): Likewise.
11233         * modules/spawn (Makefile.am): Likewise.
11234         * modules/stdarg (Makefile.am): Likewise.
11235         * modules/stdbool (Makefile.am): Likewise.
11236         * modules/stddef (Makefile.am): Likewise.
11237         * modules/stdint (Makefile.am): Likewise.
11238         * modules/stdio (Makefile.am): Likewise.
11239         * modules/stdlib (Makefile.am): Likewise.
11240         * modules/string (Makefile.am): Likewise.
11241         * modules/strings (Makefile.am): Likewise.
11242         * modules/sys_file (Makefile.am): Likewise.
11243         * modules/sys_ioctl (Makefile.am): Likewise.
11244         * modules/sys_select (Makefile.am): Likewise.
11245         * modules/sys_socket (Makefile.am): Likewise.
11246         * modules/sys_stat (Makefile.am): Likewise.
11247         * modules/sys_time (Makefile.am): Likewise.
11248         * modules/sys_times (Makefile.am): Likewise.
11249         * modules/sys_utsname (Makefile.am): Likewise.
11250         * modules/sys_wait (Makefile.am): Likewise.
11251         * modules/sysexits (Makefile.am): Likewise.
11252         * modules/termios (Makefile.am): Likewise.
11253         * modules/time (Makefile.am): Likewise.
11254         * modules/unistd (Makefile.am): Likewise.
11255         * modules/wchar (Makefile.am): Likewise.
11256         * modules/wctype-h (Makefile.am): Likewise.
11257         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
11258
11259 2011-04-05  Bruno Haible  <bruno@clisp.org>
11260
11261         pipe2: Relicense under LGPLv2+.
11262         * modules/pipe2 (License): Change to LGPLv2+.
11263         Requested by Eric Blake, for libvirt.
11264
11265 2011-04-05  Bruce Korb  <bkorb@gnu.org>
11266
11267         bootstrap: compute gnulib_extra_files after updating build_aux
11268         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
11269         change build_aux or also supply gnulib_extra_files.  Handle correctly.
11270
11271 2011-04-05  Eric Blake  <eblake@redhat.com>
11272
11273         bootstrap: preserve git whitelist item sorting
11274         * build-aux/bootstrap (sort_patterns): New function.
11275         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
11276
11277 2011-04-05  Simon Josefsson  <simon@josefsson.org>
11278
11279         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
11280         sc_space_tab check.
11281
11282 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
11283
11284         areadlink, areadlinkat: rewrite in terms of careadlinkat
11285         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
11286         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
11287         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
11288         (malloc, realloc): Remove #undefs.
11289         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
11290         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
11291         readlink, ssize_t, stdint, unistd.
11292         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
11293         areadlink, stdint.
11294
11295         careadlinkat: new module
11296         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
11297         * modules/careadlinkat: New files, written by me with
11298         a review and feedback from Ben Pfaff in
11299         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
11300
11301 2011-04-01  Bruno Haible  <bruno@clisp.org>
11302
11303         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
11304         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
11305         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
11306         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
11307         Reported by Bruce Korb <bruce.korb@gmail.com>.
11308
11309 2011-04-01  Bruno Haible  <bruno@clisp.org>
11310
11311         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
11312         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
11313         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
11314         * modules/wcpcpy (Depends-on): Add extensions.
11315         * modules/wcpncpy (Depends-on): Likewise.
11316         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
11317         systems.
11318         * doc/posix-functions/wcpncpy.texi: Likewise.
11319         * doc/posix-functions/wcwidth.texi: Likewise.
11320
11321 2011-03-31  Eric Blake  <eblake@redhat.com>
11322
11323         nonblocking: fix mingw test failures
11324         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
11325         non-blocking flag on regular file.
11326         (get_nonblocking_flag): Set errno on invalid fd.
11327         * tests/test-nonblocking.c (main): Avoid test failure on
11328         directories if fchdir is not active.
11329         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
11330
11331 2011-03-31  Bruno Haible  <bruno@clisp.org>
11332
11333         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
11334         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
11335         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
11336         Reported by Simon Josefsson <simon@josefsson.org>.
11337
11338 2011-03-31  Bruno Haible  <bruno@clisp.org>
11339         and Eric Blake  <eblake@redhat.com>
11340
11341         nonblocking: new module
11342         * modules/nonblocking: New module.
11343         * modules/nonblocking-tests: Likewise.
11344         * lib/nonblocking.h: New file.
11345         * lib/nonblocking.c: Likewise.
11346         * tests/test-nonblocking.c: New test.
11347         * lib/ioctl.c (ioctl) [mingw]: Update comment.
11348
11349 2011-03-30  Bruno Haible  <bruno@clisp.org>
11350
11351         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
11352         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
11353         instead of 'printf' format for GCC >= 4.4.
11354         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
11355         (fprintf, printf, vfprintf, vprintf): Declare with
11356         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
11357         the system's vfprintf() function.
11358         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
11359
11360 2011-03-30  Eric Blake  <eblake@redhat.com>
11361
11362         passfd: fix scoping bug
11363         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
11364         before sendmsg/recvmsg.
11365
11366         passfd: standardize coding conventions
11367         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
11368         can be learned at compile time.
11369         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
11370         ifdefs.
11371         (sendfd, recvfd): Follow gnulib code conventions.
11372
11373         passfd: fix incorrect sendmsg arguments
11374         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
11375         incorrect msg_controllen value.
11376         * modules/passfd-tests (Depends-on): Check for alarm.
11377         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
11378         Reported by Bastien ROUCARIES.
11379
11380 2011-03-30  Bruno Haible  <bruno@clisp.org>
11381
11382         c-strcasestr: Relicense under LGPLv2+.
11383         * modules/c-strcasestr (License): Change to LGPLv2+.
11384         Requested by Eric Blake, for libvirt.
11385
11386 2011-03-30  Simon Josefsson  <simon@josefsson.org>
11387
11388         * users.txt: Add libidn2.  Fix libtasn1 link.
11389
11390 2011-03-30  Jim Meyering  <meyering@redhat.com>
11391
11392         tests: readlink* ("",... fails with EINVAL on newer kernels
11393         readlink and readlinkat have typically failed with ENOENT for
11394         the invalid, empty file name,  "".  However, with the advent
11395         of linux-2.6.39, they fail with EINVAL.
11396         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
11397         when operating on the empty file name.
11398         * tests/test-readlink.h (test_readlink): Likewise.
11399
11400 2011-03-29  Bruno Haible  <bruno@clisp.org>
11401
11402         Relicense some modules under LGPLv2+, for libidn2.
11403         * modules/array-mergesort (License): Change to LGPLv2+.
11404         * modules/c-strcaseeq (License): Likewise.
11405         * modules/striconveh (License): Likewise.
11406         * modules/striconveha (License): Likewise.
11407         * modules/uniconv/base (License): Likewise.
11408         * modules/uniconv/u8-conv-from-enc (License): Likewise.
11409         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
11410         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
11411         * modules/unictype/base (License): Likewise.
11412         * modules/unictype/bidiclass-of (License): Likewise.
11413         * modules/unictype/category-M (License): Likewise.
11414         * modules/unictype/category-none (License): Likewise.
11415         * modules/unictype/category-of (License): Likewise.
11416         * modules/unictype/category-test (License): Likewise.
11417         * modules/unictype/category-test-withtable (License): Likewise.
11418         * modules/unictype/combining-class (License): Likewise.
11419         * modules/unictype/joiningtype-of (License): Likewise.
11420         * modules/unictype/scripts (License): Likewise.
11421         * modules/uninorm/base (License): Likewise.
11422         * modules/uninorm/canonical-decomposition (License): Likewise.
11423         * modules/uninorm/composition (License): Likewise.
11424         * modules/uninorm/decompose-internal (License): Likewise.
11425         * modules/uninorm/decomposition-table (License): Likewise.
11426         * modules/uninorm/nfc (License): Likewise.
11427         * modules/uninorm/nfd (License): Likewise.
11428         * modules/uninorm/u32-normalize (License): Likewise.
11429         * modules/unistr/base (License): Likewise.
11430         * modules/unistr/u32-cpy (License): Likewise.
11431         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
11432         * modules/unistr/u32-to-u8 (License): Likewise.
11433         * modules/unistr/u32-uctomb (License): Likewise.
11434         * modules/unistr/u8-check (License): Likewise.
11435         * modules/unistr/u8-mblen (License): Likewise.
11436         * modules/unistr/u8-mbtouc (License): Likewise.
11437         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
11438         * modules/unistr/u8-mbtoucr (License): Likewise.
11439         * modules/unistr/u8-prev (License): Likewise.
11440         * modules/unistr/u8-strlen (License): Likewise.
11441         * modules/unistr/u8-to-u32 (License): Likewise.
11442         * modules/unistr/u8-uctomb (License): Likewise.
11443         * modules/unitypes (License): Likewise.
11444         Requested by Simon Josefsson.
11445
11446 2011-03-29  Simon Josefsson  <simon@josefsson.org>
11447
11448         lib-symbol-visibility: Add a notice.
11449         * modules/lib-symbol-visibility (Notice): New field.
11450
11451 2011-03-29  Bruno Haible  <bruno@clisp.org>
11452
11453         getaddrinfo: Doc fix.
11454         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
11455         section "fixed in Gnulib".
11456
11457 2011-03-28  Simon Josefsson  <simon@josefsson.org>
11458
11459         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
11460         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
11461
11462 2011-03-26  Bruno Haible  <bruno@clisp.org>
11463
11464         unictype/property-byname: Reduce the number of load-time relocations.
11465         * lib/unictype/pr_byname.c: Include <stdlib.h>.
11466         (UC_PROPERTY_INDEX_*): New enumeration values.
11467         (uc_property_byname): Convert an index from the lookup table to an
11468         uc_property_t.
11469         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
11470         values.
11471
11472 2011-03-26  Bruno Haible  <bruno@clisp.org>
11473
11474         unictype/property-byname: Allow omitted word separators and aliases.
11475         * lib/unictype/pr_byname.gperf: Add property names without word
11476         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
11477         for 'space'.
11478
11479 2011-03-26  Bruno Haible  <bruno@clisp.org>
11480
11481         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
11482         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
11483         also hyphens to space.
11484         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
11485         without spaces.
11486         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
11487
11488 2011-03-26  Bruno Haible  <bruno@clisp.org>
11489
11490         unictype/joiningtype-byname: Recognize long names as well.
11491         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
11492         a long name.
11493         * lib/unictype/joiningtype_byname.c: Include <string.h>,
11494         unictype/joiningtype_byname.h.
11495         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
11496         * lib/unictype/joiningtype_byname.gperf: New file.
11497         * modules/unictype/joiningtype-byname (Files): Add
11498         lib/unictype/joiningtype_byname.gperf.
11499         (Depends-on): Add gperf.
11500         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
11501         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
11502         long names.
11503
11504         Tests for module 'unictype/joiningtype-longname'.
11505         * modules/unictype/joiningtype-longname-tests: New file.
11506         * tests/unictype/test-joiningtype_longname.c: New file.
11507
11508         New module 'unictype/joiningtype-longname'.
11509         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
11510         * lib/unictype/joiningtype_longname.c: New file.
11511         * modules/unictype/joiningtype-longname: New file.
11512         * modules/unictype/joiningtype-all (Depends-on): Add
11513         unictype/joiningtype-longname.
11514
11515 2011-03-26  Bruno Haible  <bruno@clisp.org>
11516
11517         unictype/bidiclass-byname: Recognize long names as well.
11518         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
11519         name.
11520         * lib/unictype/bidi_byname.c: Include <string.h>,
11521         unictype/bidi_byname.h.
11522         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
11523         * lib/unictype/bidi_byname.gperf: New file.
11524         * modules/unictype/bidiclass-byname (Files): Add
11525         lib/unictype/bidi_byname.gperf.
11526         (Depends-on): Add gperf.
11527         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
11528         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
11529         long names.
11530
11531         Tests for module 'unictype/bidiclass-longname'.
11532         * modules/unictype/bidiclass-longname-tests: New file.
11533         * tests/unictype/test-bidi_longname.c: New file.
11534
11535         New module 'unictype/bidiclass-longname'.
11536         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
11537         * lib/unictype/bidi_longname.c: New file.
11538         * modules/unictype/bidiclass-longname: New file.
11539         * modules/unictype/bidiclass-all (Depends-on): Add
11540         unictype/bidiclass-longname.
11541
11542 2011-03-26  Bruno Haible  <bruno@clisp.org>
11543
11544         unictype/bidi*: Rename modules.
11545         * modules/unictype/bidiclass-all: Renamed from
11546         modules/unictype/bidicategory-all.
11547         * modules/unictype/bidiclass-name: Renamed from
11548         modules/unictype/bidiclass-name.
11549         (Description): Update.
11550         * modules/unictype/bidiclass-name-tests: Renamed from
11551         modules/unictype/bidicategory-name-tests.
11552         * modules/unictype/bidiclass-byname: Renamed from
11553         modules/unictype/bidicategory-byname.
11554         (Description): Update.
11555         * modules/unictype/bidiclass-byname-tests: Renamed from
11556         modules/unictype/bidicategory-byname-tests.
11557         * modules/unictype/bidiclass-of: Renamed from
11558         modules/unictype/bidicategory-of.
11559         (Description): Update.
11560         * modules/unictype/bidiclass-of-tests: Renamed from
11561         modules/unictype/bidicategory-of-tests.
11562         * modules/unictype/bidiclass-test: Renamed from
11563         modules/unictype/bidicategory-test.
11564         (Description): Update.
11565         * modules/unictype/bidiclass-test-tests: Renamed from
11566         modules/unictype/bidicategory-test-tests.
11567         * modules/unictype/bidicategory-all: New file, a simple redirection.
11568         * modules/unictype/bidicategory-name: Likewise.
11569         * modules/unictype/bidicategory-byname: Likewise.
11570         * modules/unictype/bidicategory-of: Likewise.
11571         * modules/unictype/bidicategory-test: Likewise.
11572         * modules/unictype/property-bidi-* (Dependencies): Update.
11573         * lib/unictype/bidi_*.c: Update comment.
11574
11575 2011-03-26  Bruno Haible  <bruno@clisp.org>
11576
11577         unictype/bidi*: Rename functions, part 2.
11578         * modules/unictype/bidicategory-name (configure.ac): Update required
11579         libunistring version.
11580         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
11581
11582 2011-03-25  Bruno Haible  <bruno@clisp.org>
11583
11584         New module 'unictype/combining-class-all'.
11585         * modules/unictype/combining-class-all: New file.
11586
11587         Tests for module 'unictype/combining-class-byname'.
11588         * modules/unictype/combining-class-byname-tests: New file.
11589         * tests/unictype/test-combiningclass_byname.c: New file.
11590
11591         New module 'unictype/combining-class-byname'.
11592         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
11593         * lib/unictype/combiningclass_byname.c: New file.
11594         * lib/unictype/combiningclass_byname.gperf: New file.
11595         * modules/unictype/combining-class-byname: New file.
11596
11597         Tests for module 'unictype/combining-class-longname'.
11598         * modules/unictype/combining-class-longname-tests: New file.
11599         * tests/unictype/test-combiningclass_longname.c: New file.
11600
11601         New module 'unictype/combining-class-longname'.
11602         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
11603         * lib/unictype/combiningclass_longname.c: New file.
11604         * modules/unictype/combining-class-longname: New file.
11605
11606         Tests for module 'unictype/combining-class-name'.
11607         * modules/unictype/combining-class-name-tests: New file.
11608         * tests/unictype/test-combiningclass_name.c: New file.
11609
11610         New module 'unictype/combining-class-name'.
11611         * lib/unictype.in.h (uc_combining_class_name): New declaration.
11612         * lib/unictype/combiningclass_name.c: New file.
11613         * modules/unictype/combining-class-name: New file.
11614
11615 2011-03-25  Bruno Haible  <bruno@clisp.org>
11616
11617         unictype/combining-class: Rename source files.
11618         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
11619         of unictype/combining.h.
11620         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
11621         Update.
11622         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
11623         * modules/unictype/combining-class (Description): Fix.
11624         (Files, Makefile.am): Update.
11625         * tests/unictype/test-combiningclass.c: Renamed from
11626         tests/unictype/test-combining.c.
11627         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
11628
11629 2011-03-25  Bruno Haible  <bruno@clisp.org>
11630
11631         unictype: Update list of canonical combining classes.
11632         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
11633
11634 2011-03-25  Bruno Haible  <bruno@clisp.org>
11635
11636         unictype/category-byname: Recognize long names as well.
11637         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
11638         a long name.
11639         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
11640         unictype/categ_byname.h.
11641         (UC_CATEGORY_INDEX_*): New enumeration values.
11642         (uc_general_category_byname): Use uc_general_category_lookup and
11643         convert from index to value.
11644         * lib/unictype/categ_byname.gperf: New file.
11645         * modules/unictype/category-byname (Files): Add
11646         lib/unictype/categ_byname.gperf.
11647         (Depends-on): Add gperf.
11648         (Makefile.am): Add rule for generating unictype/categ_byname.h.
11649         * tests/unictype/test-categ_byname.c (main): Test the recognition of
11650         long names.
11651
11652         Tests for module 'unictype/category-longname'.
11653         * modules/unictype/category-longname-tests: New file.
11654         * tests/unictype/test-categ_longname.c: New file.
11655
11656         New module 'unictype/category-longname'.
11657         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
11658         * lib/unictype/categ_longname.c: New file.
11659         * modules/unictype/category-longname: New file.
11660         * modules/unictype/category-all (Depends-on): Add it.
11661
11662 2011-03-25  Bruno Haible  <bruno@clisp.org>
11663
11664         Tests for module 'unictype/category-LC'.
11665         * modules/unictype/category-LC-tests: New file.
11666         * tests/unictype/test-categ_LC.c: New file, automatically generated.
11667
11668         New module 'unictype/category-LC'.
11669         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
11670         (UC_CATEGORY_LC): New declaration.
11671         (UC_CASED_LETTER): New macro.
11672         * lib/gen-uni-tables.c (is_category_LC): New function.
11673         (output_categories): Also handle category LC.
11674         (UC_CATEGORY_MASK_LC): New enumeration value.
11675         (general_category_byname): Also handle category LC.
11676         * lib/unictype/categ_LC.c: New file.
11677         * lib/unictype/categ_LC.h: New file, automatically generated.
11678         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
11679         category LC.
11680         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
11681         * modules/unictype/category-LC: New file.
11682         * modules/unictype/category-byname (Depends-on): Add
11683         unictype/category-LC.
11684         * modules/unictype/category-all (Depends-on): Likewise.
11685
11686 2011-03-25  Eric Blake  <eblake@redhat.com>
11687
11688         xmalloc: revert yesterday's regression
11689         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
11690         realloc's underlying behavior (allowing allocation of zero-size
11691         objects, especially if malloc-gnu is also in use).
11692
11693 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
11694
11695         maint.mk: add missing version to VC-tag
11696         * top/maint.mk: git tag was missing actual tag name; add it.
11697
11698         valgrind: do leak checking, and exit with code 1 on error (not 0)
11699         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
11700         to VALGRIND.
11701
11702 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
11703
11704         posix-modules: say what it does.
11705         * posix-modules: Add a line to the --help output saying what it does.
11706
11707 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
11708
11709         xmalloc: Do not leak if underlying realloc is C99 compatible.
11710         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
11711         This avoids a leak on C99-based systems.  See
11712         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
11713
11714 2011-03-24  Eric Blake  <eblake@redhat.com>
11715
11716         realloc: document portability problem
11717         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
11718         passing 0 size to realloc.
11719
11720 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
11721
11722         doc: update users.txt
11723         * users.txt: Add cvsps, tmpwatch
11724
11725 2011-03-23  Matt Rice  <ratmice@gmail.com>
11726
11727         doc: update users.txt
11728         * users.txt: Add gdb.
11729
11730 2011-03-23  Jim Meyering  <meyering@redhat.com>
11731
11732         doc: update users.txt
11733         Looking through matches up to the following URL (there are still
11734         several more pages), I found several projects that use gnulib:
11735         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
11736         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
11737         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
11738
11739 2011-03-22  Bruno Haible  <bruno@clisp.org>
11740
11741         unictype/bidi*: Rename functions.
11742         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
11743         uc_bidi_class, uc_is_bidi_class): New declarations.
11744         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
11745         uc_bidi_category_byname.
11746         (uc_bidi_category_byname): New function.
11747         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
11748         u_bidi_category_name.
11749         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
11750         (uc_bidi_category_name): New function.
11751         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
11752         uc_bidi_category.
11753         (uc_bidi_category): New function.
11754         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
11755         uc_is_bidi_category. Invoke uc_bidi_class.
11756         (uc_is_bidi_category): New function.
11757         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
11758         instead of uc_bidi_category_byname.
11759         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
11760         instead of uc_bidi_category_name.
11761         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
11762         uc_bidi_category.
11763         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
11764         instead of uc_is_bidi_category.
11765
11766 2011-03-21  Bruno Haible  <bruno@clisp.org>
11767
11768         New module 'unictype/joininggroup-all'.
11769         * modules/unictype/joininggroup-all: New file.
11770
11771         Tests for module 'unictype/joininggroup-of'.
11772         * modules/unictype/joininggroup-of-tests: New file.
11773         * tests/unictype/test-joininggroup_of.c: New file.
11774         * tests/unictype/test-joininggroup_of.h: New file, automatically
11775         generated by gen-uni-tables.
11776
11777         New module 'unictype/joininggroup-of'.
11778         * modules/unictype/joininggroup-of: New file.
11779         * lib/unictype/joininggroup_of.c: New file.
11780         * lib/unictype/joininggroup_of.h: New file, automatically generated by
11781         gen-uni-tables.
11782
11783         Tests for module 'unictype/joininggroup-byname'.
11784         * modules/unictype/joininggroup-byname-tests: New file.
11785         * tests/unictype/test-joininggroup_byname.c: New file.
11786
11787         New module 'unictype/joininggroup-byname'.
11788         * modules/unictype/joininggroup-byname: New file.
11789         * lib/unictype/joininggroup_byname.c: New file.
11790         * lib/unictype/joininggroup_byname.gperf: New file.
11791
11792         Tests for module 'unictype/joininggroup-name'.
11793         * modules/unictype/joininggroup-name-tests: New file.
11794         * tests/unictype/test-joininggroup_name.c: New file.
11795
11796         New module 'unictype/joininggroup-name'.
11797         * modules/unictype/joininggroup-name: New file.
11798         * lib/unictype/joininggroup_name.c: New file.
11799         * lib/unictype/joininggroup_name.h: New file.
11800
11801         New module 'unictype/joiningtype-all'.
11802         * modules/unictype/joiningtype-all: New file.
11803
11804         Tests for module 'unictype/joiningtype-of'.
11805         * modules/unictype/joiningtype-of-tests: New file.
11806         * tests/unictype/test-joiningtype_of.c: New file.
11807         * tests/unictype/test-joiningtype_of.h: New file, automatically
11808         generated by gen-uni-tables.
11809
11810         New module 'unictype/joiningtype-of'.
11811         * modules/unictype/joiningtype-of: New file.
11812         * lib/unictype/joiningtype_of.c: New file.
11813         * lib/unictype/joiningtype_of.h: New file, automatically generated by
11814         gen-uni-tables.
11815
11816         Tests for module 'unictype/joiningtype-byname'.
11817         * modules/unictype/joiningtype-byname-tests: New file.
11818         * tests/unictype/test-joiningtype_byname.c: New file.
11819
11820         New module 'unictype/joiningtype-byname'.
11821         * modules/unictype/joiningtype-byname: New file.
11822         * lib/unictype/joiningtype_byname.c: New file.
11823
11824         Tests for module 'unictype/joiningtype-name'.
11825         * modules/unictype/joiningtype-name-tests: New file.
11826         * tests/unictype/test-joiningtype_name.c: New file.
11827
11828         New module 'unictype/joiningtype-name'.
11829         * modules/unictype/joiningtype-name: New file.
11830         * lib/unictype/joiningtype_name.c: New file.
11831
11832         unictype: Add support for Arabic shaping properties.
11833         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
11834         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
11835         declarations.
11836         (UC_JOINING_GROUP_*): New enumeration values.
11837         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
11838         declarations.
11839         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
11840         (unicode_joining_type): New variable.
11841         (UC_JOINING_GROUP_*): New enumeration values.
11842         (unicode_joining_group): New variable.
11843         (fill_arabicshaping, joining_type_as_c_identifier,
11844         output_joining_type_test, output_joining_type,
11845         joining_group_as_c_identifier, output_joining_group_test,
11846         output_joining_group): New functions.
11847         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
11848         fill_arabicshaping and output_joining_type_test, output_joining_type,
11849         output_joining_group_test, output_joining_group.
11850         Reported by Simon Josefsson.
11851
11852 2011-03-21  Jim Meyering  <meyering@redhat.com>
11853
11854         strftime: fix a bug in yesterday's change
11855         * lib/strftime.c (add): Accommodate width's initial value of -1.
11856         Otherwise, nstrftime would copy uninitialized data into
11857         the result buffer.
11858
11859 2011-03-21  Jim Meyering  <meyering@redhat.com>
11860
11861         tests: add strftime-tests module
11862         * tests/test-strftime.c: New file.
11863         * modules/strftime-tests: New module.
11864
11865 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
11866
11867         strftime: don't assume a byte count fits in 'int'
11868         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
11869         found this problem by static analysis, using gcc -Wstrict-overflow
11870         (GCC 4.5.2, x86-64).  This reported an optimization that depended
11871         on an integer overflow having undefined behavior, but it turns out
11872         that the argument is a size, which might not fit in 'int' anyway,
11873
11874 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
11875
11876         stdio: don't require ignore_value around fwrite
11877
11878         This patch works around libc bug 11959
11879         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
11880         Without this patch, applications must often write
11881         ignore_value (fwrite (...)) even though the ignore_value is
11882         not helpful here.  It's common to write many objects, using
11883         fwrite/printf/etc., and then use ferror to detect output error.
11884
11885         I considered making this patch optional, but decided against it,
11886         because libc is obviously being inconsistent here: there is no
11887         reason libc should insist that user code must inspect fwrite
11888         return's value without also insisting that it inspect printf's,
11889         putchar's, etc.  If user code wants to have a strict style where
11890         all these functions' values are checked (so that ferror need not
11891         be checked), we could add support for that style in a new gnulib
11892         module, but in the meantime it's better to be consistent and to
11893         support common usage.
11894
11895         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
11896         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
11897         that we are compiling in checking mode, and if not C++, and
11898         if not already wrapping fwrite for some other reason.
11899         (fwrite): #define to rpl_fwrite if the latter is defined.
11900
11901 2011-03-20  Bruno Haible  <bruno@clisp.org>
11902
11903         verror: Fix compilation error introduced on 2011-02-13.
11904         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
11905         instead of __attribute__.
11906         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11907
11908 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
11909             Bruno Haible  <bruno@clisp.org>
11910
11911         socklen: do not depend on sys_socket
11912         While trying to modify Emacs to use gnulib's socklen module,
11913         I discovered a circular dependency: socklen depends on sys_socket
11914         and vice versa.  Emacs can use socklen, but it does not need
11915         sys_socket because it has its own substitute for sys/socket.h.
11916         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
11917         gl_TYPE_SOCKLEN_T.
11918         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
11919         gl_PREREQ_SYS_H_SOCKET.
11920         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
11921         gl_PREREQ_SYS_H_SOCKET.
11922         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
11923         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
11924         * modules/socklen (Depends-on): Do not depend on sys_socket.
11925         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
11926
11927 2011-03-20  Jim Meyering  <meyering@redhat.com>
11928
11929         maint.mk: sort file names *after* new transformation
11930         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
11931         prefix would have led to an unwarranted failure in GNU parted.
11932         Sort after that transformation.
11933
11934 2011-03-19  Jim Meyering  <meyering@redhat.com>
11935
11936         maint.mk: fix po-file syntax-check rule
11937         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
11938         Patch by Bruno Haible.
11939
11940 2011-03-19  Bruno Haible  <bruno@clisp.org>
11941
11942         socklen: Update comment.
11943         * m4/socklen.m4: Update comment about platforms.
11944
11945 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
11946             Bruno Haible  <bruno@clisp.org>
11947
11948         inet_ntop, inet_pton: Simplify.
11949         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
11950         documented to provide socklen_t and we already depend on sys_socket.
11951         * modules/inet_pton (Depends-on): Likewise.
11952         * lib/arpa_inet.in.h: Adjust comment.
11953
11954 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
11955             Bruno Haible  <bruno@clisp.org>
11956
11957         netdb: Simplify.
11958         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
11959         documented to provide socklen_t and we already depend on sys_socket.
11960         * lib/netdb.in.h: Adjust comment.
11961
11962 2011-03-19  Bruno Haible  <bruno@clisp.org>
11963
11964         sys_socket, netdb: Document problem with socklen_t.
11965         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
11966         platforms.
11967         * doc/posix-headers/netdb.texi: Likewise.
11968
11969 2011-03-18  Eric Blake  <eblake@redhat.com>
11970
11971         maint.mk: let po check work in VPATH build
11972         * top/maint.mk (po_file): Allow cfg.mk override.
11973         (sc_po_check): Allow VPATH use.
11974         Reported by Jiri Denemark.
11975
11976 2011-03-16  Jim Meyering  <meyering@redhat.com>
11977
11978         maint.mk: allow fine-grained syntax-check exclusion via Make variables
11979         Before, you would have had to create one .x-sc_ file per rule in order
11980         to exempt offending files.  Now, you may instead use a Make variable --
11981         usually defined in cfg.mk -- whose name identifies the affected rule.
11982         * top/maint.mk (_sc_excl): Define.
11983         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
11984         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
11985
11986 2011-03-13  Bruno Haible  <bruno@clisp.org>
11987
11988         ignore-value tests: Avoid warnings.
11989         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
11990         empty for gcc < 3.4.
11991
11992 2011-03-13  Bruno Haible  <bruno@clisp.org>
11993
11994         passfd: Fix link error on Solaris.
11995         * modules/passfd (Description): Correct.
11996         (Depends-on): Add socketlib.
11997         (Link): New section.
11998         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
11999
12000 2011-03-13  Bruno Haible  <bruno@clisp.org>
12001
12002         passfd: Fix link error on AIX 5.2.
12003         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
12004
12005 2011-03-13  Bruno Haible  <bruno@clisp.org>
12006
12007         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
12008         * lib/sys_socket.in.h: Include <stddef.h>.
12009         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
12010         CMSG_FIRSTHDR. Remove unused variable.
12011
12012 2011-03-13  Bruno Haible  <bruno@clisp.org>
12013
12014         passfd: Fix compilation error on OpenBSD.
12015         * lib/passfd.c: Include <sys/uio.h>.
12016
12017 2011-03-13  Bruno Haible  <bruno@clisp.org>
12018
12019         passfd test: Fix warnings.
12020         * tests/test-passfd.c: Include <sys/wait.h>.
12021         (main): Fix typo.
12022
12023 2011-03-13  Bruno Haible  <bruno@clisp.org>
12024
12025         passfd module, part 4, tweaks.
12026         * tests/test-passfd.c: Reorder includes.
12027         (main): Fix perror and printf calls.
12028
12029 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
12030
12031         passfd module, part 4.
12032         * modules/passfd-tests: New file.
12033         * tests/test-passfd.c: New file.
12034
12035 2011-03-13  Jim Meyering  <meyering@redhat.com>
12036
12037         Makefile: rely on GNU make; derive syntax-check rule names
12038         Rather than requiring that each sc_ rule be listed as a dependent
12039         of "check", use features of GNU make to derive the list.
12040         * Makefile (syntax-check-rules): Define.
12041         (check): Depend on the new variable, not the hard-coded list.
12042
12043 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
12044             Bruno Haible  <bruno@clisp.org>
12045
12046         passfd module, part 3.
12047         * lib/passfd.h (recvfd): Add a flags argument.
12048         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
12049         (recvfd): Add a flags argument.
12050         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
12051         exists.
12052         * modules/passfd (Depends-on): Add cloexec.
12053         Suggested by Eric Blake.
12054
12055 2011-03-13  Bruno Haible  <bruno@clisp.org>
12056
12057         passfd module, part 2, tweaks.
12058         * modules/passfd (Files): Reorder.
12059         (Depends-on): Remove errno.
12060         (Include): Remove <sys/socket.h>, <sys/un.h>.
12061         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
12062         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
12063         specification header. Include <sys/socket.h> always. Don't include
12064         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
12065         (sendfd): Clarify that it sets errno when it fails.
12066         (recvfd): Fix specification.
12067
12068 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
12069
12070         passfd module, part 2.
12071         * modules/passfd: New file.
12072         * lib/passfd.h: New file.
12073         * lib/passfd.c: New file.
12074
12075 2011-03-12  Bruno Haible  <bruno@clisp.org>
12076
12077         wcswidth, mbswidth: Avoid integer overflow.
12078         * lib/wcswidth.c: Include <limits.h>.
12079         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
12080         * lib/mbswidth.c: Include <limits.h>.
12081         (mbsnwidth): Avoid 'int' overflow.
12082         Reported by Jim Meyering.
12083
12084 2011-03-12  Bruno Haible  <bruno@clisp.org>
12085
12086         futimens, utimensat: Avoid endless recursion on Solaris 10.
12087         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
12088         Solaris.
12089         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
12090         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
12091
12092 2011-03-11  Jim Meyering  <meyering@redhat.com>
12093
12094         maint.mk: relax a regexp to accommodate other formatting styles
12095         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
12096         between "ngettext" and the following "(".
12097
12098 2011-03-11  Pádraig Brady <P@draigBrady.com>
12099
12100         maint.mk: suppress a false positive warning
12101         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
12102         diagnostics are marked with ngettext.
12103
12104 2011-03-10  Eric Blake  <eblake@redhat.com>
12105
12106         wchar: add explicit dependencies, for Tru64
12107         * modules/mbmemcasecoll (Depends-on): Add wchar.
12108         * modules/mbtowc (Depends-on): Likewise.
12109         * modules/vasnprintf (Depends-on): Likewise.
12110         * modules/unistdio/u-printf-args (Depends-on): Likewise.
12111         * modules/wctomb (Depends-on): Likewise.
12112         Reported by Peter O'Gorman.
12113
12114 2011-03-08  Bruno Haible  <bruno@clisp.org>
12115
12116         passfd module, part 1, tweaks.
12117         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
12118         Improve indentation. Improve AC_MSG_CHECKING messages.
12119         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
12120         gl_SOCKET_FAMILIES.
12121
12122 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
12123
12124         passfd module, part 1.
12125         * m4/afunix.m4: New file.
12126         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
12127         sockets.
12128
12129 2011-03-08  Bruno Haible  <bruno@clisp.org>
12130
12131         regex-quote: New API.
12132         * lib/regex-quote.h: Include <stdbool.h>.
12133         (struct regex_quote_spec): New type.
12134         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
12135         New declarations.
12136         (regex_quote_length, regex_quote_copy, regex_quote): Take a
12137         'const struct regex_quote_spec *' argument.
12138         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
12139         (pcre_special): New constant.
12140         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
12141         New functions.
12142         (regex_quote_length, regex_quote_copy, regex_quote): Take a
12143         'const struct regex_quote_spec *' argument.
12144         * modules/regex-quote (Depends-on): Add stdbool.
12145         * tests/test-regex-quote.c (check): Update for new API. Add test for
12146         anchored results.
12147         * NEWS: Mention the API change.
12148         Reported by Reuben Thomas and Eric Blake.
12149
12150 2011-03-06  Bruno Haible  <bruno@clisp.org>
12151
12152         regex-quote: Fix creation of POSIX extended regular expressions.
12153         * lib/regex-quote.c (ere_special): Add grouping and alternation
12154         operators.
12155
12156 2011-03-05  Bruno Haible  <bruno@clisp.org>
12157
12158         doc: Improve doc regarding autopoint vs. gnulib.
12159         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
12160         disable autopoint while running autoreconf.
12161         Suggested by Ralf Wildenhues.
12162
12163 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12164
12165         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
12166         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
12167
12168 2011-03-03  Bruce Korb  <bkorb@gnu.org>
12169
12170         parse-duration: remove xalloc.h dependency
12171         * lib/parse-duration.c (parse_period): handle NULL return from
12172         strdup instead of calling xstrdup().
12173         * modules/parse-duration: remove "xalloc" dependency
12174
12175 2011-03-03  Matthew Booth  <mbooth@redhat.com>
12176
12177         bootstrap: honor m4_base when running aclocal
12178         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
12179
12180 2011-03-02  Jim Meyering  <meyering@redhat.com>
12181
12182         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
12183         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
12184         on request from Matt Booth.
12185
12186 2011-03-01  Eric Blake  <eblake@redhat.com>
12187
12188         test-link: work on Hurd
12189         * tests/test-link.h (test_link): Hurd rejects linking directories
12190         with EISDIR instead of the POSIX-mandated EPERM.
12191
12192 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
12193
12194         stdio: simplify by moving files to printf-posix, sigpipe
12195         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
12196         since this symbol is needed only if printf is replaced.
12197         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
12198         Require gl_ASM_SYMBOL_PREFIX.
12199         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
12200         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
12201         (Depends-on): Add 'raise'.
12202         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
12203         * modules/stdio (Files): Remove lib/stdio-write.c,
12204         m4/asm-underscore.m4.
12205         (Depends-on): Remove 'raise'.
12206
12207         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
12208         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
12209         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
12210         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
12211
12212 2011-02-28  Bruno Haible  <bruno@clisp.org>
12213
12214         localcharset: Assume ANSI C behaviour of free().
12215         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
12216         calling free().
12217         Suggested by Simon Josefsson <simon@josefsson.org>.
12218
12219 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
12220             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
12221             Bruno Haible  <bruno@clisp.org>  (tiny change)
12222
12223         On Cygwin, use /proc file system instead of win32 API.
12224         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
12225         Win32 file names.
12226         (DllMain): Simplify by removing Cygwin specific code.
12227         (find_shared_library_fullname): Use Linux specific implementation also
12228         for Cygwin.
12229         (get_shared_library_fullname): Update accordingly.
12230         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
12231         Win32 file names.
12232         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
12233         Cygwin specific code.
12234
12235 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
12236             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
12237
12238         Fix OpenMP flag detection for various Fortran compilers.
12239         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
12240         OpenMP-conditional compilation construct, to force compile
12241         failure with missing OpenMP flag.
12242         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
12243
12244 2011-02-25  Eric Blake  <eblake@redhat.com>
12245
12246         strstr: expand test coverage
12247         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
12248         compilation.
12249         * tests/test-memmem.c (main): Duplicate tests.
12250         * tests/test-strcasestr.c (main): Likewise.
12251         * tests/test-c-strcasestr.c (main): Likewise.
12252
12253 2011-02-25  Jim Meyering  <meyering@redhat.com>
12254
12255         maint.mk: detect missing-NL-at-EOF, too
12256         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
12257         it also detects when a file lacks a newline at EOF.
12258         (require_exactly_one_NL_at_EOF_): Renamed from
12259         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
12260         since people may well have .x-sc_... file names tied to the
12261         existing name.  Suggested by Eric Blake.
12262
12263 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
12264
12265         dirname: move m4/dos.m4 functionality into lib/dosname.h
12266
12267         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
12268         extracts symbols from it, puts them into config.h; but it's much
12269         easier to use the symbols directly.  filename.h already does this,
12270         but it disagrees with dos.m4 in some respects.  This patch
12271         introduces a different include file dosname.h that packages up
12272         dos.m4, and then later we can work on merging filename.h and
12273         dosname.h.  Applications that need only the easy-to-configure
12274         symbols should consider including dosname.h rather than dirname.h.
12275         * NEWS: Mention incompatible changes.
12276         * m4/dos.m4: Remove.
12277         * lib/dosname.h, modules/dosname: New files.
12278         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
12279         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
12280         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
12281         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
12282         Include dosname.h, not dirname.h.
12283         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
12284         Include dosname.h, for definitions of symbols like ISSLASH
12285         that used to be in config.h.
12286         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
12287         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
12288         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
12289         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
12290         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
12291         * modules/rmdir (Files): Likewise.
12292         * modules/stat (Files): Likewise.
12293         * modules/unlink (Files): Likewise.
12294         * modules/dirname-lgpl (Depends-on): Add dosname.
12295         * modules/lstat (Depends-on): Likewise.
12296         * modules/openat (Depends-on): Likewise.
12297         * modules/rmdir (Depends-on): Likewise.
12298         * modules/savewd (Depends-on): Likewise.
12299         * modules/stat (Depends-on): Likewise.
12300         * modules/unlink (Depends-on): Likewise.
12301         * modules/openat (Depends-on): Remove dirname-lgpl.
12302         * modules/savewd (Depends-on): Likewise.
12303         * tests/test-dirname.c: Do not use removed symbols like
12304         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
12305         the remaining symbols, e.g., ISSLASH ('\\').
12306
12307 2011-02-25  Eric Blake  <eblake@redhat.com>
12308
12309         strstr: revert patches that introduced bug and pessimization
12310         * lib/str-two-way.h: Add another reference.
12311         (two_way_short_needle, two_way_long_needle): Revert changes from
12312         2011-02-24; they pessimize search speed.
12313         (critical_factorization): Partially revert changes from
12314         2010-06-22; they violate the requirement that the left half of the
12315         needle be smaller than the period of the needle.
12316
12317 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
12318
12319         filenamecat: remove unnecessary dependency on dirname-lgpl
12320         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
12321         is no direct dependency, just an indirect one via filenamecat-lgpl.
12322
12323         remove: remove unnecessary use of m4/dos.m4
12324         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
12325         * modules/remove (FILES): Remove m4/dos.m4.
12326
12327         * lib/openat-proc.c: Don't include dirname.h; not needed.
12328
12329         backupfile: remove unnecessary use of m4/dos.m4
12330         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
12331         of its symbols are used by the backupfile code.  backupfile.c does
12332         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
12333         for the rare case of programs that want all their backup file
12334         names to live within 8+3 limits, and dos.m4 doesn't address that.
12335         * modules/backupfile (Files): Remove m4/dos.m4.
12336
12337 2011-02-24  Jim Meyering  <meyering@redhat.com>
12338
12339         strstr: fix a bug whereby strstr would mistakenly return NULL
12340         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
12341         in period calculation.
12342         (two_way_long_needle): Likewise.
12343         The original problem was reported by Mike Stump in
12344         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
12345         Ralf Wildenhues provided the short needle and haystack.
12346         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
12347         Add a more involved test to trigger the bug in two_way_long_needle.
12348
12349 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
12350
12351         gnulib-tool: remove use of bold display in help screen
12352         * gnulib-tool (func_usage): Do not use bold display anymore in the
12353         help screen.  That was just meant to be a temporary emphasis for a
12354         backward-incompatible change.
12355
12356 2011-02-23  Bruno Haible  <bruno@clisp.org>
12357
12358         Fix misindentation of preprocessor directives.
12359         * lib/argp-namefrob.h: Reindent preprocessor directives.
12360         * lib/getopt_int.h (struct _getopt_data): Likewise.
12361         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
12362         * lib/vasnprintf.c (decode_long_double): Likewise.
12363         * tests/test-argmatch.c: Insert blank lines, for clarity.
12364         * tests/test-exclude.c: Likewise.
12365
12366 2011-02-22  Bruno Haible  <bruno@clisp.org>
12367
12368         ioctl: Fix for MacOS X in 64-bit mode.
12369         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
12370         value.
12371         Suggested by Eric Blake.
12372         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
12373
12374 2011-02-22  Jim Meyering  <meyering@redhat.com>
12375
12376         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
12377         * Makefile (sc_cpp_indent_check): Don't limit the check to files
12378         in lib/.
12379
12380 2011-02-22  Eric Blake  <eblake@redhat.com>
12381
12382         maint: avoid any CDPATH issue
12383         * Makefile (sc_cpp_indent_check): Anchor cd argument.
12384
12385         maint: adjust cpp indentation for my modules, as well
12386         * Makefile (sc_cpp_indent_check): Add my name.
12387         * lib/fbufmode.c: Filter through cppi.
12388         * lib/fpurge.c: Likewise.
12389         * lib/freadable.c: Likewise.
12390         * lib/freading.c: Likewise.
12391         * lib/fwritable.c: Likewise.
12392         * lib/fwriting.c: Likewise.
12393         * lib/sigaction.c: Likewise.
12394
12395 2011-02-22  Jim Meyering  <meyering@redhat.com>
12396
12397         maint: adjust cpp indentation to reflect nesting depth
12398         I.e., in a block of code that begins with an unnested "#if",
12399         put one space between the "#" in column 1 and following token.
12400         For example,
12401         -#include <sys/vfs.h>
12402         +# include <sys/vfs.h>
12403         Do this only in .c files that are part of a module I maintain.
12404         * lib/linkat.c: Filter through cppi.
12405         * lib/nanosleep.c: Likewise.
12406         * lib/openat.c: Likewise.
12407         * lib/openat-die.c: Likewise.
12408         * lib/dup3.c: Likewise.
12409         * lib/fchownat.c: Likewise.
12410         * lib/flock.c: Likewise.
12411         * lib/fsync.c: Likewise.
12412         * lib/fts.c: Likewise.
12413         * lib/getpass.c: Likewise.
12414         * lib/gettimeofday.c: Likewise.
12415         * lib/userspec.c: Likewise.
12416         * Makefile (sc_cpp_indent_check): New rule, to check this.
12417
12418 2011-02-22  Bruno Haible  <bruno@clisp.org>
12419
12420         New module 'wctomb'.
12421         * lib/stdlib.in.h (wctomb): New declaration.
12422         * lib/wctomb.c: New file.
12423         * lib/wctomb-impl.h: New file.
12424         * m4/wctomb.m4: New file.
12425         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
12426         REPLACE_WCTOMB.
12427         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
12428         REPLACE_WCTOMB.
12429         * modules/wctomb: New file.
12430         * tests/test-stdlib-c++.cc: Test signature of wctomb.
12431         * doc/posix-functions/wctomb.texi: Mention the new module.
12432         * modules/wctob (Depends-on): Add wctomb.
12433
12434 2011-02-22  Bruno Haible  <bruno@clisp.org>
12435
12436         New module 'mbtowc'.
12437         * lib/stdlib.in.h (mbtowc): New declaration.
12438         * lib/mbtowc.c: New file.
12439         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
12440         * m4/mbtowc.m4: New file.
12441         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
12442         REPLACE_MBTOWC.
12443         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
12444         REPLACE_MBTOWC.
12445         * modules/mbtowc: New file.
12446         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
12447         * doc/posix-functions/mbtowc.texi: Mention the new module.
12448         * modules/btowc (Depends-on): Add mbtowc.
12449
12450 2011-02-22  Bruno Haible  <bruno@clisp.org>
12451
12452         wcrtomb: Add more tests for native Windows platforms.
12453         * tests/test-wcrtomb-w32-1.sh: New file.
12454         * tests/test-wcrtomb-w32-2.sh: New file.
12455         * tests/test-wcrtomb-w32-3.sh: New file.
12456         * tests/test-wcrtomb-w32-4.sh: New file.
12457         * tests/test-wcrtomb-w32-5.sh: New file.
12458         * tests/test-wcrtomb-w32.c: New file.
12459         * modules/wcrtomb-tests (Files): Add them.
12460         (Makefile.am): Arrange to run these tests.
12461         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
12462         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
12463
12464 2011-02-20  Bruno Haible  <bruno@clisp.org>
12465
12466         wcrtomb: Enhance test.
12467         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
12468
12469 2011-02-20  Bruno Haible  <bruno@clisp.org>
12470
12471         mbrtowc: Tiny optimization.
12472         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
12473
12474 2011-02-20  Jim Meyering  <meyering@redhat.com>
12475
12476         test-exclude.c: remove unmatched #endif
12477         * tests/test-exclude.c: Remove stray #endif, left over from
12478         the change of a week ago.
12479
12480 2011-02-19  Jim Meyering  <meyering@redhat.com>
12481
12482         git-version-gen: skip "-dirty" check when appropriate
12483         * build-aux/git-version-gen: Don't run any git commands when the
12484         version string comes from .tarball-version.  Prior to this, we
12485         would run git update-index --refresh even from a just-unpacked
12486         tarball directory, and that could affect a .git/ directory in a
12487         parent of the build directory.  Reported by Mike Frysinger.
12488
12489 2011-02-19  Bruno Haible  <bruno@clisp.org>
12490
12491         unictype/property-byname: Reduce the size of the 'data' segment.
12492         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
12493
12494 2011-02-19  Bruno Haible  <bruno@clisp.org>
12495
12496         unictype/scripts: Reduce the size of the 'data' segment.
12497         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
12498         '%pic'.
12499         * lib/unictype/scripts_byname.gperf: Regenerated.
12500
12501 2011-02-19  Bruno Haible  <bruno@clisp.org>
12502
12503         stdint: Update documentation.
12504         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
12505
12506 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
12507
12508         stdint: omit redundant check for wchar.h
12509         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
12510         always tests whether wchar.h exists, so remove the now-redundant test.
12511
12512 2011-02-18  Bruno Haible  <bruno@clisp.org>
12513
12514         stdint: Cut dependency to module 'wchar'.
12515         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
12516         include the necessary prerequisites.
12517         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
12518         * modules/stdint (Depends-on): Remove wchar.
12519         (Makefile.am): Substitute HAVE_WCHAR_H.
12520         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
12521
12522 2011-02-18  Eric Blake  <eblake@redhat.com>
12523
12524         longlong: skip, rather than fail, on cross-compilation
12525         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
12526         when cross-compiling; regression from 2011-02-16.
12527
12528 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
12529
12530         * NEWS: Mention 2011-02-08 change to stdlib.
12531
12532 2011-02-17  Bruno Haible  <bruno@clisp.org>
12533
12534         getloadavg: Add comments about platforms.
12535         * m4/getloadavg.m4: Add comment.
12536         * lib/getloadavg.c: Likewise.
12537
12538 2011-02-17  Bruno Haible  <bruno@clisp.org>
12539
12540         getloadavg: Fix link error on Solaris 2.6.
12541         * modules/getloadavg (Link): New section.
12542         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
12543         linking test-getloadavg.
12544         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
12545         getloadavg.
12546
12547 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
12548
12549         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
12550         It was 'int', but this doesn't match the IRIX 6.5 manual.
12551         Suggested by Bruno Haible in
12552         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
12553
12554 2011-02-17  Bruno Haible  <bruno@clisp.org>
12555
12556         havelib: Fix comments.
12557         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
12558         change.
12559
12560 2011-02-17  Bruno Haible  <bruno@clisp.org>
12561
12562         havelib: Update config.rpath.
12563         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
12564
12565 2011-02-17  Bruno Haible  <bruno@clisp.org>
12566
12567         getloadavg test: Add some plausibility checks.
12568         * tests/test-getloadavg.c (check_avg): Print a warning when the value
12569         is improbable.
12570
12571 2011-02-16  Eric Blake  <eblake@redhat.com>
12572
12573         maintainer-makefile: make syntax-check a no-op from tarballs
12574         * top/maint.mk (no-vc-detected): New rule.
12575         (local-checks-available): Use it to avoid hanging if someone tries
12576         'make syntax-check' from a tarball.  Also append to any non-syntax
12577         checks already defined in cfg.mk.
12578
12579 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
12580
12581         longlong: tune, particularly for common case of c99
12582
12583         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
12584         or running anything if c99, or if unsigned long long int does not
12585         work.  In either case, we know the answer without further tests.
12586         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
12587         it at most once, and use its results for both long long int and
12588         unsigned long long int.  This is more likely to be efficient in
12589         the common case where the program wants to check for both long
12590         long int and unsigned long long int.
12591         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
12592         since the answer is already known.
12593
12594 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
12595
12596         getloadavg: set errno
12597         * lib/getloadavg.c: Set errno when returning -1.  If no other
12598         error number looks appropriate, set it to ENOSYS if the getloadavg
12599         looks like it can't possibly ever work, ENOTSUP otherwise.
12600         Suggested by Bruno Haible in
12601         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
12602
12603         getloadavg: trim unused parts and speed up 'configure'
12604         * NEWS: Document this.
12605         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
12606         always compiled if getloadavg is absent.
12607         Move test code to ...
12608         * tests/test-getloadavg.c: New file, containing previous
12609         contents of test from lib/getloadavg.c.  It also contains
12610         suggestions by Bruno Haible in
12611         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
12612         * modules/getloadavg-tests: New file.
12613         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
12614         Do tests in the same order as they're needed for getloadavg.c.
12615         Omit setgid-related tests that generate symbols KMEM_GROUP,
12616         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
12617         Do only the tests that are needed to see whether the system has
12618         getloadavg, moving the other tests into ...
12619         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
12620         NLIST_NAME_UNION; nobody should be using it.  Do not define
12621         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
12622         relevant, as the user of this module shouldn't care how getloadavg
12623         is implemented.
12624
12625         getloadavg: omit unused var
12626         * lib/getloadavg.c (getloadavg): Omit unused local variable.
12627
12628 2011-02-15  Jim Meyering  <meyering@redhat.com>
12629
12630         doc: update users.txt
12631         * users.txt: Update iwhd's URL.
12632
12633 2011-02-13  Bruno Haible  <bruno@clisp.org>
12634
12635         Consistent macro naming for macros that use GCC __attribute__.
12636         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
12637         _ATTRIBUTE_NONNULL_.
12638         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
12639         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
12640         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
12641         ATTRIBUTE_DEPRECATED.
12642         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
12643         ATTRIBUTE_NORETURN.
12644         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
12645         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
12646         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
12647         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
12648         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
12649         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
12650         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
12651         ATTRIBUTE_SENTINEL.
12652         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
12653         ATTRIBUTE_RETURN_CHECK.
12654         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
12655         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
12656         ATTRIBUTE_NORETURN.
12657         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
12658         Reported by Paul Eggert.
12659
12660 2011-02-13  Bruno Haible  <bruno@clisp.org>
12661
12662         Don't interfere with a program's definition of __attribute__.
12663         * lib/argp.h (__attribute__): Remove definition.
12664         (_GL_ATTRIBUTE_FORMAT): New macro.
12665         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
12666         * lib/argp-fmtstream.h (__attribute__): Remove definition.
12667         (_GL_ATTRIBUTE_FORMAT): New macro.
12668         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
12669         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
12670         GCC 3 or newer.
12671         * lib/error.h (__attribute__): Remove definition.
12672         (_GL_ATTRIBUTE_FORMAT): New macro.
12673         (error, error_at_line): Use it.
12674         * lib/hash.h (__attribute__): Remove definition.
12675         (ATTRIBUTE_WUR): Update definition. Define always.
12676         * lib/openat.h (__attribute__): Remove definition.
12677         (ATTRIBUTE_NORETURN): Update definition. Define always.
12678         * lib/sigpipe-die.h (__attribute__): Remove definition.
12679         (ATTRIBUTE_NORETURN): Update definition. Define always.
12680         * lib/vasnprintf.h (__attribute__): Remove definition.
12681         (_GL_ATTRIBUTE_FORMAT): New macro.
12682         (asnprintf, vasnprintf): Use it.
12683         * lib/xalloc.h (__attribute__): Remove definition.
12684         (ATTRIBUTE_NORETURN): Update definition. Define always.
12685         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
12686         * lib/xmemdup0.h (__attribute__): Remove definition.
12687         (ATTRIBUTE_NORETURN): Update definition. Define always.
12688         * lib/xprintf.h (__attribute__): Remove definition.
12689         (_GL_ATTRIBUTE_FORMAT): New macro.
12690         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
12691         * lib/xstrtol.h (__attribute__): Remove definition.
12692         (ATTRIBUTE_NORETURN): Update definition. Define always.
12693         * lib/xvasprintf.h (__attribute__): Remove definition.
12694         (_GL_ATTRIBUTE_FORMAT): New macro.
12695         (xasprintf, xvasprintf): Use it.
12696         * tests/test-argmatch.c (__attribute__): Remove definition.
12697         (ATTRIBUTE_NORETURN): Update definition. Define always.
12698         * tests/test-exclude.c (__attribute__): Remove definition.
12699         (ATTRIBUTE_NORETURN): Update definition. Define always.
12700         Reported by Paul Eggert.
12701
12702 2011-02-13  Bruno Haible  <bruno@clisp.org>
12703
12704         mbrtowc: Add more tests for native Windows platforms.
12705         * tests/test-mbrtowc-w32-1.sh: New file.
12706         * tests/test-mbrtowc-w32-2.sh: New file.
12707         * tests/test-mbrtowc-w32-3.sh: New file.
12708         * tests/test-mbrtowc-w32-4.sh: New file.
12709         * tests/test-mbrtowc-w32-5.sh: New file.
12710         * tests/test-mbrtowc-w32.c: New file.
12711         * modules/mbrtowc-tests (Files): Add them.
12712         (Makefile.am): Arrange to run these tests.
12713         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
12714         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
12715
12716 2011-02-13  Bruno Haible  <bruno@clisp.org>
12717
12718         mbrtowc: Work around native Windows bug.
12719         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
12720         guess when no suitable locale for testing was found.
12721         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
12722
12723 2011-02-13  Bruno Haible  <bruno@clisp.org>
12724
12725         mbsinit: Work around mingw bug.
12726         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
12727         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
12728         Windows.
12729         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
12730
12731 2011-02-13  Bruno Haible  <bruno@clisp.org>
12732
12733         mbsinit: Don't crash for a NULL argument.
12734         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
12735         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
12736
12737 2011-02-13  Bruno Haible  <bruno@clisp.org>
12738
12739         Don't interfere with a program's definition of __attribute__.
12740         * lib/stdio.in.h (__attribute__): Remove definition.
12741         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
12742         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
12743         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
12744         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
12745         * lib/string.in.h (__attribute__): Remove definition.
12746         Reported by Paul Eggert.
12747
12748 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
12749
12750         stdlib: don't get in the way of non-GCC __attribute__
12751         See thread starting at
12752         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
12753         Revert previous stdlib change, installing the following instead:
12754         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
12755         to get in the way of a non-GCC compiler that supports __attribute__.
12756         (_GL_ATTRIBUTE_RETURN): New macro.
12757         (_Exit): Use it instead of __attribute__.
12758
12759 2011-02-12  Bruno Haible  <bruno@clisp.org>
12760
12761         quotearg test: Avoid test failure on mingw.
12762         * tests/test-quotearg.sh: Convert the locale identifier from native
12763         Windows syntax to Unix syntax.
12764
12765 2011-02-12  Bruno Haible  <bruno@clisp.org>
12766
12767         setlocale: Prefer gnulib's override over libintl's override.
12768         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
12769         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
12770         GNULIB_defined_setlocale is set.
12771
12772 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
12773
12774         stdlib: support non-GCC __attribute__
12775
12776         Fix a serious and tricky problem encountered when attempting to
12777         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
12778         5.5, but it crashed due to memory corruption on Solaris 10 with
12779         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
12780         bits that are otherwise zero.  This tagging is optional inside
12781         Emacs but is preferred and is used when __attribute__ ((__aligned
12782         (8))) works, as it does with both recent-enough GCC and with Sun C
12783         5.11.  However, Sun C 5.11 is not GCC and does not #define
12784         __GNUC__ and __GNUC_MINOR__.
12785
12786         When I added the getloadavg module to Emacs, it brought in
12787         stdlib.in.h, which contained this fragment:
12788
12789            #ifndef __attribute__
12790            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
12791            #  define __attribute__(Spec)   /* empty */
12792            # endif
12793            #endif
12794
12795         When files that include <stdlib.h> were compiled with Sun C 5.11,
12796         the above code disabled __attribute__ ((__aligned (8))), which
12797         caused variables to not be properly aligned, which eventually led
12798         to the pointer corruption mentioned above.  (This was a bit hard
12799         to diagnose, unfortunately.)
12800
12801         Several "#define __attribute__(X) /* empty */" code snippets need
12802         to be eradicated from Gnulib to work with non-GCC compilers that
12803         support __attribute__.  The Autoconf way to do this is to test for
12804         each kind of attribute that we want support for, and selectively
12805         enable that in source code.
12806
12807         Fix this problem just for stdlib.h, by adding a test for the
12808         __noreturn__ attribute, and change stdlib.in.h to use that test
12809         when needed.  This technique can be easily generalized to the
12810         other *.in.h files and attributes, and a similar technique can be
12811         used for *.h and *.c files.  This patch is enough to solve the
12812         problem for Emacs + getloadavg, and I thought I'd publish it for
12813         feedback before undertaking further, similar fixes in other
12814         modules.
12815
12816         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
12817         because it's not needed for stdlib.h.  It merely substitutes the
12818         value directly into stdlib.h.  We may well need to #define it, or
12819         similar symbols, for other modules, but it's nice to also have an
12820         option to not #define it for applications like Emacs that do not
12821         need it.
12822
12823         * lib/stdlib.in.h (__attribute__): Do not #define.
12824         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
12825         be defined only if the _Exit module is also used.
12826         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
12827         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
12828         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
12829         platforms.
12830         * modules/_Exit (Files): Add m4/attribute.m4.
12831         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
12832         * m4/attribute.m4: New file.
12833
12834 2011-02-12  Bruno Haible  <bruno@clisp.org>
12835
12836         wcsrtombs: Work around bug on native Windows.
12837         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
12838         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
12839         instead of len.
12840         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
12841
12842 2011-02-12  Bruno Haible  <bruno@clisp.org>
12843
12844         mbsrtowcs: Work around bug on native Windows.
12845         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
12846         against mingw bug.
12847         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
12848
12849 2011-02-12  Bruno Haible  <bruno@clisp.org>
12850
12851         Avoid setlocale bugs in tests.
12852         * modules/btowc (Dependencies): Add setlocale.
12853         * modules/c-strcase (Dependencies): Likewise.
12854         * modules/mbmemcasecmp (Dependencies): Likewise.
12855         * modules/mbmemcasecoll (Dependencies): Likewise.
12856         * modules/mbrtowc (Dependencies): Likewise.
12857         * modules/mbscasecmp (Dependencies): Likewise.
12858         * modules/mbscasestr (Dependencies): Likewise.
12859         * modules/mbschr (Dependencies): Likewise.
12860         * modules/mbscspn (Dependencies): Likewise.
12861         * modules/mbsinit (Dependencies): Likewise.
12862         * modules/mbsncasecmp (Dependencies): Likewise.
12863         * modules/mbsnrtowcs (Dependencies): Likewise.
12864         * modules/mbspbrk (Dependencies): Likewise.
12865         * modules/mbspcasecmp (Dependencies): Likewise.
12866         * modules/mbsrchr (Dependencies): Likewise.
12867         * modules/mbsrtowcs (Dependencies): Likewise.
12868         * modules/mbsspn (Dependencies): Likewise.
12869         * modules/mbsstr (Dependencies): Likewise.
12870         * modules/nl_langinfo (Dependencies): Likewise.
12871         * modules/quotearg (Dependencies): Likewise.
12872         * modules/unicase/locale-language (Dependencies): Likewise.
12873         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
12874         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
12875         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
12876         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
12877         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
12878         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
12879         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
12880         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
12881         * modules/vasnprintf-posix (Dependencies): Likewise.
12882         * modules/wcrtomb (Dependencies): Likewise.
12883         * modules/wcsnrtombs (Dependencies): Likewise.
12884         * modules/wcsrtombs (Dependencies): Likewise.
12885
12886 2011-02-12  Bruno Haible  <bruno@clisp.org>
12887
12888         setlocale: Workaround native Windows bug.
12889         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
12890         succeeds but sets LC_CTYPE to "C", report a failure.
12891         * tests/test-setlocale2.sh: New file.
12892         * tests/test-setlocale2.c: New file.
12893         * modules/setlocale-tests (Files): Add the new files.
12894         (Makefile.am): Enable test-setlocale2.sh test.
12895         * doc/posix-functions/setlocale.texi: Mention workaround.
12896
12897 2011-02-11  Bruno Haible  <bruno@clisp.org>
12898
12899         Tests for module 'setlocale'.
12900         * modules/setlocale-tests: New file.
12901         * tests/test-setlocale1.sh: New file.
12902         * tests/test-setlocale1.c: New file.
12903
12904         New module 'setlocale'.
12905         * lib/locale.in.h (setlocale): New declaration.
12906         * lib/setlocale.c: New file, based on
12907         gettext/gettext-runtime/intl/setlocale.c.
12908         * m4/setlocale.m4: New file.
12909         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
12910         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
12911         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
12912         REPLACE_SETLOCALE.
12913         * modules/setlocale: New file.
12914         * tests/test-locale-c++.cc: Test the declaration of setlocale.
12915         * doc/posix-functions/setlocale.texi: Mention the new module.
12916
12917 2011-02-11  Bruno Haible  <bruno@clisp.org>
12918
12919         Prepare for locale dependent tests on mingw.
12920         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
12921         because it has the wrong locale encoding.
12922         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
12923         French_France.1252 instead of "fr".
12924         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
12925         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
12926         because it has the wrong locale encoding.
12927         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
12928         native Windows, try Turkish_Turkey.65001.
12929         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
12930         Chinese_China.54936.
12931
12932         Prepare for locale dependent tests on mingw.
12933         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
12934         differently.
12935         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
12936         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
12937         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
12938         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
12939
12940 2011-02-11  Eric Blake  <eblake@redhat.com>
12941
12942         strptime: avoid compiler warnings
12943         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
12944         compiler warnings about dead code.
12945         Reported by Daniel P. Berrange.
12946
12947 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
12948
12949         doc: update users.txt
12950         * users.txt: Add rcs.
12951
12952 2011-02-10  John W. Eaton  <jwe@gnu.org>
12953
12954         doc: update users.txt
12955         * users.txt: Add octave.
12956
12957 2011-02-10  Jim Meyering  <meyering@redhat.com>
12958
12959         doc: update users.txt
12960         * users.txt: Add iwhd.
12961
12962 2011-02-09  Bruno Haible  <bruno@clisp.org>
12963
12964         gnulib-tool: Make copyright notice adjustment more robust.
12965         * gnulib-tool (func_import): In sed_transform_main_lib_file,
12966         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
12967         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
12968         License".
12969         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
12970
12971 2011-02-06  Bruno Haible  <bruno@clisp.org>
12972
12973         New module 'towctrans'.
12974         * modules/towctrans: New file.
12975         * lib/wctype.in.h (towctrans): New declaration.
12976         * lib/towctrans.c: New file.
12977         * lib/towctrans-impl.h: New file.
12978         * m4/towctrans.m4: New file.
12979         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
12980         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
12981         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
12982         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
12983         * doc/posix-functions/towctrans.texi: Mention the new module.
12984
12985 2011-02-06  Bruno Haible  <bruno@clisp.org>
12986
12987         New module 'wctrans'.
12988         * modules/wctrans: New file.
12989         * lib/wctype.in.h (wctrans): New declaration.
12990         * lib/wctrans.c: New file.
12991         * lib/wctrans-impl.h: New file.
12992         * m4/wctrans.m4: New file.
12993         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
12994         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
12995         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
12996         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
12997         * doc/posix-functions/wctrans.texi: Mention the new module.
12998
12999 2011-02-06  Bruno Haible  <bruno@clisp.org>
13000
13001         New module 'iswctype'.
13002         * modules/iswctype: New file.
13003         * lib/wctype.in.h (iswctype): New declaration.
13004         * lib/iswctype.c: New file.
13005         * lib/iswctype-impl.h: New file.
13006         * m4/iswctype.m4: New file.
13007         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
13008         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
13009         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
13010         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
13011         * doc/posix-functions/iswctype.texi: Mention the new module and the
13012         HP-UX 11.00 problem.
13013
13014 2011-02-06  Bruno Haible  <bruno@clisp.org>
13015
13016         New module 'wctype'.
13017         * modules/wctype: Change to represent the wctype() substitute.
13018         * lib/wctype.in.h (wctype): New declaration.
13019         * lib/wctype.c: New file.
13020         * lib/wctype-impl.h: New file.
13021         * m4/wctype.m4: New file.
13022         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
13023         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
13024         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
13025         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
13026         * doc/posix-functions/wctype.texi: Mention the new module and the
13027         HP-UX 11.00 problem.
13028
13029 2011-02-06  Bruno Haible  <bruno@clisp.org>
13030
13031         wctype-h: Ensure wctype_t and wctrans_t are defined.
13032         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
13033         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
13034         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
13035         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
13036         HAVE_WCTRANS_T.
13037         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
13038
13039 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
13040
13041         flock: fix license typo
13042
13043         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
13044         omitted.
13045
13046 2011-02-08  Bruno Haible  <bruno@clisp.org>
13047
13048         Split large sed scripts, for HP-UX sed.
13049         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
13050         to avoid HP-UX limit of 99 commands, in the near future.
13051         * modules/stdlib (Makefile.am): Likewise.
13052         * modules/unistd (Makefile.am): Likewise.
13053         * modules/wchar (Makefile.am): Likewise.
13054         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
13055         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
13056         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
13057
13058 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
13059             Bruno Haible  <bruno@clisp.org>
13060
13061         stdlib: improve random_r modularization
13062         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
13063         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
13064         you also need the random_r module to get this material right.
13065         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
13066         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
13067         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
13068
13069 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
13070
13071         stdlib: don't depend on stdint
13072         * lib/stdlib.in.h: Don't include <stdint.h> merely because
13073         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
13074         be independent of whether stdint.h is needed.
13075         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
13076         here, instead of ...
13077         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
13078         struct random_data should be using the random_r module, not just
13079         the stdlib module (which wouldn't make sense: what package needs
13080         just struct random_data without also needing random_r?).
13081         * modules/stdlib (Depends-on): Remove stdint.
13082
13083         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
13084         See the thread rooted at
13085         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
13086         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
13087         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
13088         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
13089         __VMS)); previously it was always included (via fcntl--.h).
13090         (getloadavg): Do not use c_strtod.  Instead, approximate it by
13091         hand; this is good enough for load averages.  Also, do not use
13092         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
13093         flags directly if available and don't bother otherwise.  (Packages
13094         that need the extra reliability should use the modules that define
13095         these flags on older platforms that lack them.)
13096         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
13097         fcntl-safer.
13098
13099 2011-02-08  Jim Meyering  <meyering@redhat.com>
13100
13101         di-set.h, ino-map.h: add multiple-inclusion guard
13102         Technically, the guard is required only for ino-map.h, due to its
13103         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
13104         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
13105         * lib/ino-map.h: Likewise.
13106
13107 2011-02-06  Bruno Haible  <bruno@clisp.org>
13108
13109         iswblank: Ensure declaration on glibc systems.
13110         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
13111         * modules/iswblank (Dependencies): Add 'extensions'.
13112         * doc/posix-functions/iswblank.texi: Document the glibc problem.
13113
13114 2011-02-06  Bruno Haible  <bruno@clisp.org>
13115
13116         New module 'iswblank'.
13117         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
13118         * modules/iswblank: New file.
13119         * modules/wctype-h (Files): Remove lib/iswblank.c.
13120         (Makefile.am): Substitute GNULIB_ISWBLANK.
13121         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
13122         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
13123         (gl_WCTYPE_H_DEFAULTS): New macro.
13124         (gl_WCTYPE_H): Require it. Remove iswblank related code.
13125         * modules/iswblank-tests: New file.
13126         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
13127         * tests/test-wctype-h.c (main): Remove iswblank tests.
13128         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
13129         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
13130         of 'wctype-h'.
13131         * NEWS: Mention the change.
13132         * modules/mbchar (Depends-on): Add iswblank.
13133
13134 2011-02-08  Bruno Haible  <bruno@clisp.org>
13135
13136         di-set tests: Refactor.
13137         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
13138         unnecessary includes.
13139         (ASSERT): Remove macro.
13140         (main): Make C90 compliant by avoiding variable declaration after
13141         statement.
13142         * modules/di-set-tests (Files): Add tests/macros.h.
13143
13144 2011-02-08  Bruno Haible  <bruno@clisp.org>
13145
13146         ino-map tests: Refactor.
13147         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
13148         unnecessary includes.
13149         (ASSERT): Remove macro.
13150         (main): Make C90 compliant by avoiding variable declaration after
13151         statement.
13152         * modules/ino-map-tests (Files): Add tests/macros.h.
13153
13154 2011-02-08  Jim Meyering  <meyering@redhat.com>
13155
13156         di-set: add "const" to a cast
13157         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
13158         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
13159
13160 2011-02-06  Bruno Haible  <bruno@clisp.org>
13161
13162         Rename module 'wctype' to 'wctype-h'.
13163         * modules/wctype-h: Renamed from modules/wctype.
13164         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
13165         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
13166         (Files, Depends-on, Makefile.am): Update.
13167         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
13168         (Files, Makefile.am): Update.
13169         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
13170         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
13171         * doc/posix-headers/wctype.texi: Update.
13172         * doc/posix-functions/iswalnum.texi: Update.
13173         * doc/posix-functions/iswalpha.texi: Update.
13174         * doc/posix-functions/iswblank.texi: Update.
13175         * doc/posix-functions/iswcntrl.texi: Update.
13176         * doc/posix-functions/iswdigit.texi: Update.
13177         * doc/posix-functions/iswgraph.texi: Update.
13178         * doc/posix-functions/iswlower.texi: Update.
13179         * doc/posix-functions/iswprint.texi: Update.
13180         * doc/posix-functions/iswpunct.texi: Update.
13181         * doc/posix-functions/iswspace.texi: Update.
13182         * doc/posix-functions/iswupper.texi: Update.
13183         * doc/posix-functions/iswxdigit.texi: Update.
13184         * doc/posix-functions/towlower.texi: Update.
13185         * doc/posix-functions/towupper.texi: Update.
13186         * NEWS: Mention the change.
13187         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
13188         * modules/mbchar (Dependencies): Likewise.
13189         * modules/mbswidth (Dependencies): Likewise.
13190         * modules/quotearg (Dependencies): Likewise.
13191         * modules/regex (Dependencies): Likewise.
13192         * modules/wcscasecmp (Dependencies): Likewise.
13193         * modules/wcsncasecmp (Dependencies): Likewise.
13194         * modules/wcwidth (Dependencies): Likewise.
13195
13196 2011-02-06  Bruno Haible  <bruno@clisp.org>
13197
13198         New module 'wcswidth'.
13199         * modules/wcswidth: New file.
13200         * lib/wchar.in.h (wcswidth): New declaration.
13201         * lib/wcswidth.c: New file.
13202         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
13203         * m4/wcswidth.m4: New file.
13204         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
13205         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
13206         REPLACE_WCSWIDTH.
13207         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
13208         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
13209         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
13210         * doc/posix-functions/wcswidth.texi: Mention the new module.
13211
13212 2011-02-06  Bruno Haible  <bruno@clisp.org>
13213
13214         New module 'wcstok'.
13215         * modules/wcstok: New file.
13216         * lib/wchar.in.h (wcstok): New declaration.
13217         * lib/wcstok.c: New file.
13218         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
13219         * m4/wcstok.m4: New file.
13220         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
13221         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
13222         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
13223         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
13224         * doc/posix-functions/wcstok.texi: Mention the new module.
13225
13226 2011-02-06  Bruno Haible  <bruno@clisp.org>
13227
13228         New module 'wcsstr'.
13229         * modules/wcsstr: New file.
13230         * lib/wchar.in.h (wcsstr): New declaration.
13231         * lib/wcsstr.c: New file.
13232         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
13233         * m4/wcsstr.m4: New file.
13234         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
13235         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
13236         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
13237         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
13238         * doc/posix-functions/wcsstr.texi: Mention the new module.
13239
13240 2011-02-06  Bruno Haible  <bruno@clisp.org>
13241
13242         New module 'wcspbrk'.
13243         * modules/wcspbrk: New file.
13244         * lib/wchar.in.h (wcspbrk): New declaration.
13245         * lib/wcspbrk.c: New file.
13246         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
13247         * m4/wcspbrk.m4: New file.
13248         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
13249         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
13250         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
13251         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
13252         * doc/posix-functions/wcspbrk.texi: Mention the new module.
13253
13254 2011-02-06  Bruno Haible  <bruno@clisp.org>
13255
13256         New module 'wcsspn'.
13257         * modules/wcsspn: New file.
13258         * lib/wchar.in.h (wcsspn): New declaration.
13259         * lib/wcsspn.c: New file.
13260         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
13261         * m4/wcsspn.m4: New file.
13262         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
13263         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
13264         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
13265         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
13266         * doc/posix-functions/wcsspn.texi: Mention the new module.
13267
13268 2011-02-06  Bruno Haible  <bruno@clisp.org>
13269
13270         New module 'wcscspn'.
13271         * modules/wcscspn: New file.
13272         * lib/wchar.in.h (wcscspn): New declaration.
13273         * lib/wcscspn.c: New file.
13274         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
13275         * m4/wcscspn.m4: New file.
13276         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
13277         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
13278         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
13279         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
13280         * doc/posix-functions/wcscspn.texi: Mention the new module.
13281
13282 2011-02-06  Bruno Haible  <bruno@clisp.org>
13283
13284         New module 'wcsrchr'.
13285         * modules/wcsrchr: New file.
13286         * lib/wchar.in.h (wcsrchr): New declaration.
13287         * lib/wcsrchr.c: New file.
13288         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
13289         * m4/wcsrchr.m4: New file.
13290         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
13291         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
13292         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
13293         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
13294         * doc/posix-functions/wcsrchr.texi: Mention the new module.
13295
13296 2011-02-06  Bruno Haible  <bruno@clisp.org>
13297
13298         New module 'wcschr'.
13299         * modules/wcschr: New file.
13300         * lib/wchar.in.h (wcschr): New declaration.
13301         * lib/wcschr.c: New file.
13302         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
13303         * m4/wcschr.m4: New file.
13304         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
13305         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
13306         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
13307         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
13308         * doc/posix-functions/wcschr.texi: Mention the new module.
13309
13310 2011-02-06  Bruno Haible  <bruno@clisp.org>
13311
13312         New module 'wcsdup'.
13313         * modules/wcsdup: New file.
13314         * lib/wchar.in.h (wcsdup): New declaration.
13315         * lib/wcsdup.c: New file.
13316         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
13317         * m4/wcsdup.m4: New file.
13318         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
13319         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
13320         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
13321         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
13322         * doc/posix-functions/wcsdup.texi: Mention the new module.
13323
13324 2011-02-06  Bruno Haible  <bruno@clisp.org>
13325
13326         New module 'wcsxfrm'.
13327         * modules/wcsxfrm: New file.
13328         * lib/wchar.in.h (wcsxfrm): New declaration.
13329         * lib/wcsxfrm.c: New file.
13330         * lib/wcsxfrm-impl.h: New file.
13331         * m4/wcsxfrm.m4: New file.
13332         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
13333         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
13334         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
13335         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
13336         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
13337
13338 2011-02-06  Bruno Haible  <bruno@clisp.org>
13339
13340         New module 'wcscoll'.
13341         * modules/wcscoll: New file.
13342         * lib/wchar.in.h (wcscoll): New declaration.
13343         * lib/wcscoll.c: New file.
13344         * lib/wcscoll-impl.h: New file.
13345         * m4/wcscoll.m4: New file.
13346         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
13347         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
13348         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
13349         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
13350         * doc/posix-functions/wcscoll.texi: Mention the new module.
13351
13352 2011-02-06  Bruno Haible  <bruno@clisp.org>
13353
13354         New module 'wcsncasecmp'.
13355         * modules/wcsncasecmp: New file.
13356         * lib/wchar.in.h (wcsncasecmp): New declaration.
13357         * lib/wcsncasecmp.c: New file.
13358         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
13359         * m4/wcsncasecmp.m4: New file.
13360         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
13361         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
13362         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
13363         HAVE_WCSNCASECMP.
13364         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
13365         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
13366
13367 2011-02-06  Bruno Haible  <bruno@clisp.org>
13368
13369         New module 'wcscasecmp'.
13370         * modules/wcscasecmp: New file.
13371         * lib/wchar.in.h (wcscasecmp): New declaration.
13372         * lib/wcscasecmp.c: New file.
13373         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
13374         * m4/wcscasecmp.m4: New file.
13375         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
13376         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
13377         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
13378         HAVE_WCSCASECMP.
13379         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
13380         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
13381
13382 2011-02-05  Bruno Haible  <bruno@clisp.org>
13383
13384         New module 'wcsncmp'.
13385         * modules/wcsncmp: New file.
13386         * lib/wchar.in.h (wcsncmp): New declaration.
13387         * lib/wcsncmp.c: New file.
13388         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
13389         * m4/wcsncmp.m4: New file.
13390         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
13391         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
13392         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
13393         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
13394         * doc/posix-functions/wcsncmp.texi: Mention the new module.
13395
13396 2011-02-05  Bruno Haible  <bruno@clisp.org>
13397
13398         New module 'wcscmp'.
13399         * modules/wcscmp: New file.
13400         * lib/wchar.in.h (wcscmp): New declaration.
13401         * lib/wcscmp.c: New file.
13402         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
13403         * m4/wcscmp.m4: New file.
13404         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
13405         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
13406         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
13407         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
13408         * doc/posix-functions/wcscmp.texi: Mention the new module.
13409
13410 2011-02-05  Bruno Haible  <bruno@clisp.org>
13411
13412         New module 'wcsncat'.
13413         * modules/wcsncat: New file.
13414         * lib/wchar.in.h (wcsncat): New declaration.
13415         * lib/wcsncat.c: New file.
13416         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
13417         * m4/wcsncat.m4: New file.
13418         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
13419         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
13420         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
13421         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
13422         * doc/posix-functions/wcsncat.texi: Mention the new module.
13423
13424 2011-02-05  Bruno Haible  <bruno@clisp.org>
13425
13426         New module 'wcscat'.
13427         * modules/wcscat: New file.
13428         * lib/wchar.in.h (wcscat): New declaration.
13429         * lib/wcscat.c: New file.
13430         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
13431         * m4/wcscat.m4: New file.
13432         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
13433         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
13434         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
13435         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
13436         * doc/posix-functions/wcscat.texi: Mention the new module.
13437
13438 2011-02-05  Bruno Haible  <bruno@clisp.org>
13439
13440         New module 'wcpncpy'.
13441         * modules/wcpncpy: New file.
13442         * lib/wchar.in.h (wcpncpy): New declaration.
13443         * lib/wcpncpy.c: New file.
13444         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
13445         * m4/wcpncpy.m4: New file.
13446         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
13447         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
13448         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
13449         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
13450         * doc/posix-functions/wcpncpy.texi: Mention the new module.
13451
13452 2011-02-05  Bruno Haible  <bruno@clisp.org>
13453
13454         New module 'wcsncpy'.
13455         * modules/wcsncpy: New file.
13456         * lib/wchar.in.h (wcsncpy): New declaration.
13457         * lib/wcsncpy.c: New file.
13458         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
13459         * m4/wcsncpy.m4: New file.
13460         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
13461         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
13462         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
13463         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
13464         * doc/posix-functions/wcsncpy.texi: Mention the new module.
13465
13466 2011-02-05  Bruno Haible  <bruno@clisp.org>
13467
13468         New module 'wcpcpy'.
13469         * modules/wcpcpy: New file.
13470         * lib/wchar.in.h (wcpcpy): New declaration.
13471         * lib/wcpcpy.c: New file.
13472         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
13473         * m4/wcpcpy.m4: New file.
13474         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
13475         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
13476         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
13477         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
13478         * doc/posix-functions/wcpcpy.texi: Mention the new module.
13479
13480 2011-02-05  Bruno Haible  <bruno@clisp.org>
13481
13482         New module 'wcscpy'.
13483         * modules/wcscpy: New file.
13484         * lib/wchar.in.h (wcscpy): New declaration.
13485         * lib/wcscpy.c: New file.
13486         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
13487         * m4/wcscpy.m4: New file.
13488         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
13489         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
13490         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
13491         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
13492         * doc/posix-functions/wcscpy.texi: Mention the new module.
13493
13494 2011-02-05  Bruno Haible  <bruno@clisp.org>
13495
13496         New module 'wcsnlen'.
13497         * modules/wcsnlen: New file.
13498         * lib/wchar.in.h (wcsnlen): New declaration.
13499         * lib/wcsnlen.c: New file.
13500         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
13501         * m4/wcsnlen.m4: New file.
13502         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
13503         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
13504         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
13505         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
13506         * doc/posix-functions/wcsnlen.texi: Mention the new module.
13507
13508 2011-02-05  Bruno Haible  <bruno@clisp.org>
13509
13510         New module 'wcslen'.
13511         * modules/wcslen: New file.
13512         * lib/wchar.in.h (wcslen): New declaration.
13513         * lib/wcslen.c: New file.
13514         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
13515         * m4/wcslen.m4: New file.
13516         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
13517         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
13518         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
13519         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
13520         * doc/posix-functions/wcslen.texi: Mention the new module.
13521
13522 2011-02-05  Bruno Haible  <bruno@clisp.org>
13523
13524         New module 'wmemset'.
13525         * modules/wmemset: New file.
13526         * lib/wchar.in.h (wmemset): New declaration.
13527         * lib/wmemset.c: New file.
13528         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
13529         * m4/wmemset.m4: New file.
13530         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
13531         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
13532         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
13533         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
13534         * doc/posix-functions/wmemset.texi: Mention the new module.
13535
13536 2011-02-05  Bruno Haible  <bruno@clisp.org>
13537
13538         New module 'wmemmove'.
13539         * modules/wmemmove: New file.
13540         * lib/wchar.in.h (wmemmove): New declaration.
13541         * lib/wmemmove.c: New file.
13542         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
13543         * m4/wmemmove.m4: New file.
13544         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
13545         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
13546         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
13547         HAVE_WMEMMOVE.
13548         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
13549         * doc/posix-functions/wmemmove.texi: Mention the new module.
13550
13551 2011-02-05  Bruno Haible  <bruno@clisp.org>
13552
13553         New module 'wmemcpy'.
13554         * modules/wmemcpy: New file.
13555         * lib/wchar.in.h (wmemcpy): New declaration.
13556         * lib/wmemcpy.c: New file.
13557         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
13558         * m4/wmemcpy.m4: New file.
13559         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
13560         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
13561         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
13562         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
13563         * doc/posix-functions/wmemcpy.texi: Mention the new module.
13564
13565 2011-02-05  Bruno Haible  <bruno@clisp.org>
13566
13567         New module 'wmemcmp'.
13568         * modules/wmemcmp: New file.
13569         * lib/wchar.in.h (wmemcmp): New declaration.
13570         * lib/wmemcmp.c: New file.
13571         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
13572         * m4/wmemcmp.m4: New file.
13573         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
13574         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
13575         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
13576         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
13577         * doc/posix-functions/wmemcmp.texi: Mention the new module.
13578
13579 2011-02-07  Jim Meyering  <meyering@redhat.com>
13580
13581         di-set, ino-map: new modules, from coreutils
13582         * lib/di-set.c: New file.
13583         * lib/di-set.h: Likewise.
13584         * lib/ino-map.c: Likewise.
13585         * lib/ino-map.h: Likewise.
13586         * modules/di-set: Likewise.
13587         * modules/di-set-tests: Likewise.
13588         * modules/ino-map: Likewise.
13589         * modules/ino-map-tests: Likewise.
13590         * tests/test-di-set.c: Likewise.
13591         * tests/test-ino-map.c: Likewise.
13592
13593 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
13594
13595         getloadavg: merge minor changes from Emacs
13596
13597         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
13598         (getloadavg): Use memset, not bzero.
13599
13600         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
13601         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
13602         clash (bug#86).
13603
13604 2010-11-14  Bruno Haible  <bruno@clisp.org>
13605
13606         Allow multiple gnulib generated replacements to coexist.
13607         * lib/getopt.in.h (struct option): Avoid identical redefinition.
13608         * lib/inttypes.in.h (imaxdiv_t): Likewise.
13609         * lib/langinfo.in.h (nl_item): Likewise.
13610         * lib/math.in.h (_NaN, NAN): Likewise.
13611         * lib/netdb.in.h (struct addrinfo): Likewise.
13612         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
13613         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
13614         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
13615         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
13616         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
13617         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
13618         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
13619         pthread_mutexattr_init, pthread_mutexattr_settype,
13620         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
13621         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
13622         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
13623         pthread_spin_trylock, pthread_spin_unlock): Likewise.
13624         * lib/sched.in.h (struct sched_param): Likewise.
13625         * lib/se-selinux.in.h (security_class_t, security_context_t,
13626         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
13627         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
13628         lsetfilecon, fsetfilecon, security_check_context,
13629         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
13630         Likewise.
13631         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
13632         Likewise.
13633         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
13634         _gl_function_taking_int_returning_void_t, union sigval,
13635         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
13636         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
13637         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
13638         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
13639         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
13640         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
13641         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
13642         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
13643         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
13644         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
13645         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
13646         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
13647         socklen_t, rpl_fd_isset): Likewise.
13648         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
13649         * lib/sys_time.in.h (struct timeval): Likewise.
13650         * lib/sys_times.in.h (struct tms): Likewise.
13651         * lib/sys_utsname.in.h (struct utsname):
13652         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
13653         * lib/unistd.in.h (getpagesize): Likewise.
13654         * lib/wchar.in.h (mbstate_t): Likewise.
13655         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
13656         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
13657         towlower, towupper): Likewise.
13658         Reported by Sam Steingold <sds@gnu.org>.
13659
13660 2011-02-05  Eric Blake  <eblake@redhat.com>
13661
13662         unsetenv: work around Haiku issues
13663         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
13664         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
13665
13666 2010-12-30  Bruce Korb  <bkorb@gnu.org>
13667
13668         libposix: avoid calling error() within libposix
13669         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
13670         is defined.
13671
13672 2011-02-05  Eric Blake  <eblake@redhat.com>
13673
13674         strerror_r-posix: port to cygwin
13675         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
13676         implementation.
13677         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
13678         * tests/test-strerror_r.c (main): Fix test.
13679         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
13680         issue.
13681
13682 2011-02-05  Bruno Haible  <bruno@clisp.org>
13683
13684         New module 'wmemchr'.
13685         * modules/wmemchr: New file.
13686         * lib/wchar.in.h (wmemchr): New declaration.
13687         * lib/wmemchr.c: New file.
13688         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
13689         * m4/wmemchr.m4: New file.
13690         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
13691         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
13692         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
13693         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
13694         * doc/posix-functions/wmemchr.texi: Mention the new module.
13695
13696 2011-02-04  Eric Blake  <eblake@redhat.com>
13697
13698         fdopendir: detect FreeBSD bug
13699         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
13700         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
13701
13702 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
13703
13704         stdbool: do not define HAVE_STDBOOL_H
13705         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
13706         AC_HEADER_STDBOOL.  All uses changed.  Do not define
13707         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
13708         imported from the latest Autoconf git.  It was motivated by Emacs,
13709         which uses gnulib but does not need HAVE_STDBOOL_H.
13710
13711 2011-02-04  Bruno Haible  <bruno@clisp.org>
13712
13713         wcsnrtombs: Prepare for new module wwcsnrtombs.
13714         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
13715         * lib/wcsnrtombs.c: Include it.
13716         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
13717
13718         wcsrtombs: Prepare for new module wwcsrtombs.
13719         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
13720         * lib/wcsrtombs.c: Include it.
13721         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
13722
13723         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
13724         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
13725         * lib/mbsnrtowcs.c: Include it.
13726         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
13727
13728         mbsrtowcs: Prepare for new module mbsrtowwcs.
13729         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
13730         * lib/mbsrtowcs.c: Include it.
13731         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
13732
13733 2011-02-04  Bruno Haible  <bruno@clisp.org>
13734
13735         vasnprintf: Reduce use of malloc for small format strings.
13736         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
13737         (arguments): Add room for the first 7 arguments.
13738         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
13739         (char_directives, u8_directives, u16_directives, u32_directives): Add
13740         room for the first 7 directives.
13741         * lib/printf-parse.c: Include <string.h>.
13742         (PRINTF_PARSE): Change memory handling code so that it uses the first
13743         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
13744         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
13745         Reported by Pádraig Brady <P@draigbrady.com>.
13746
13747 2011-01-31  Eric Blake  <eblake@redhat.com>
13748
13749         dup2: work around Haiku bug
13750         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
13751         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
13752         * doc/posix-functions/dup2.texi (dup2): Document the bug.
13753         * tests/test-dup2.c (main): Enhance test.
13754
13755 2011-01-31  Simon Josefsson  <simon@josefsson.org>
13756
13757         doc: off_t is not available in eglibc 2.11.2 stdio.h.
13758         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
13759         declared by eglibc 2.11.2.
13760         * lib/stdio.in.h: Likewise.
13761
13762 2011-01-31  Eric Blake  <eblake@redhat.com>
13763
13764         ignore-value: add missing test dependency
13765         * tests/test-ignore-value.c: Revert previous change; stdio.h
13766         provides off_t.
13767         * modules/ignore-value-tests (Depends-on): Add missing dependency.
13768
13769 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
13770
13771         mktime: clarify long_int width checking
13772         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
13773         the top level, to make it clearer that the assumption about
13774         long_int width is being checked.  See
13775         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
13776
13777 2011-01-30  Simon Josefsson  <simon@josefsson.org>
13778
13779         ignore-value: Fix self-test.
13780         * tests/test-ignore-value.c: Include sys/types.h for off_t.
13781
13782 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
13783
13784         TYPE_MAXIMUM: avoid theoretically undefined behavior
13785         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
13786         negative number, which the C Standard says has undefined behavior.
13787         In practice this is not a problem, but might as well do it by the book.
13788         Reported by Rich Felker and Eric Blake; see
13789         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
13790         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
13791         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
13792         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
13793         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
13794         * m4/stdint.m4 (gl_STDINT_H): Likewise.
13795         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
13796
13797         mktime: #undef mktime before #defining it
13798         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
13799
13800         mktime: systematically normalize tm_isdst comparisons
13801         * lib/mktime.c (isdst_differ): New function.
13802         (__mktime_internal): Use it systematically for all isdst comparisons.
13803         This completes the fix for libc BZ #6723, and removes the need for
13804         normalizing tm_isdst.  See
13805         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
13806         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
13807
13808         mktime: fix some integer overflow issues and sidestep the rest
13809
13810         This was prompted by a bug report by Benjamin Lindner for MinGW
13811         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
13812         His bug is due to signed integer overflow (0 - INT_MIN), and I
13813         I scanned through mktime.c looking for other integer overflow
13814         problems, fixing all the bugs I found.
13815
13816         Although the C Standard says the resulting code is still not safe
13817         in the presence of integer overflow, in practice it should be good
13818         enough for all real-world two's-complement implementations, except
13819         for debugging environments that deliberately trap on integer
13820         overflow (e.g., gcc -ftrapv).
13821
13822         * lib/mktime.c (WRAPV): New macro.
13823         (SHR): Also check that long_int and time_t shift right in the
13824         usual way, before using the fast-but-unportable method.
13825         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
13826         used.  The code already assumed two's complement, so there's
13827         no need to test for alternatives.  All uses removed.
13828         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
13829         the C standard.  Problem reported by Rich Felker in
13830         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
13831         (twos_complement_arithmetic): Also check long_int and time_t.
13832         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
13833         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
13834         (__mktime_internal): Avoid integer overflow with unary subtraction
13835         in two instances where -1 - X is an adequate replacement for -X,
13836         since the calculations are approximate.
13837
13838 2011-01-29  Eric Blake  <eblake@redhat.com>
13839
13840         mktime: avoid infinite loop
13841         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
13842         type; behavior is still undefined but portable to all known targets.
13843         Reported by Rich Felker.
13844
13845 2011-01-29  Simon Josefsson  <simon@josefsson.org>
13846
13847         rename, unlink, same-inode: Relicense.
13848         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
13849         * modules/unlink (License): Likewise.
13850         * modules/same-inode (License): Likewise.
13851
13852 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
13853
13854         mktime: avoid problems on NetBSD 5 / i386
13855         * lib/mktime.c (long_int): New type.  This works around a problem
13856         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
13857         but time_t is 64 bits, and where I expect the existing code is
13858         wrong in some cases.
13859         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
13860         (ydhms_diff): Bring back the compile-time check for wide-enough
13861         year and yday.
13862
13863         mktime: fix misspelling in comment
13864         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
13865         This merges all recent glibc changes of importance.
13866
13867 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13868
13869         move-if-change: cope with concurrent mv of identical file.
13870         * build-aux/move-if-change (CMPPROG): Accept environment
13871         variable as an override for `cmp'.
13872         (usage): Document CMPPROG.
13873         Adjust comparison to drop stdout.  Cope with failure of mv if
13874         the target file exists and is identical to the source, for
13875         parallel builds.
13876         Report from H.J. Lu against binutils in PR binutils/12283.
13877
13878 2011-01-28  Bruce Korb  <bkorb@gnu.org>
13879
13880         * users.txt: Mention sharutils.
13881
13882 2011-01-28  Simon Josefsson  <simon@josefsson.org>
13883
13884         * users.txt: Mention OATH Toolkit.
13885
13886 2011-01-27  Bruno Haible  <bruno@clisp.org>
13887
13888         Prepare for supporting FreeBSD 10.
13889         * build-aux/config.libpath: Remove handling of freebsd1*.
13890
13891 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
13892
13893         Prepare for supporting FreeBSD 10.
13894         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
13895         match FreeBSD 10.0.
13896
13897 2011-01-27  Bruno Haible  <bruno@clisp.org>
13898
13899         vma-iter, get-rusage-as: Add OpenBSD support.
13900         * modules/vma-iter (configure.ac): Test for mquery.
13901         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
13902         * lib/vma-iter.c: Include <sys/mman.h>.
13903         (vma_iterate): Add an implementation based on mquery().
13904         * lib/resource-ext.h (get_rusage_as): Update comments.
13905         * lib/get-rusage-as.c: Likewise.
13906         * lib/get-rusage-data.c: Likewise.
13907
13908 2011-01-26  Karl Berry  <karl@gnu.org>
13909
13910         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
13911         variables to make it easier to override the makeinfo program used.
13912
13913 2011-01-26  Eric Blake  <eblake@redhat.com>
13914
13915         fcntl: work around Haiku F_DUPFD bugs
13916         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
13917         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
13918         cloexec bit on duplication.
13919         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
13920
13921 2011-01-26  Bruno Haible  <bruno@clisp.org>
13922
13923         Enable memory leak tests on AIX.
13924         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
13925         * tests/test-fprintf-posix3.c (main): Likewise.
13926
13927 2011-01-26  Bruno Haible  <bruno@clisp.org>
13928
13929         Tests for module 'get-rusage-data'.
13930         * modules/get-rusage-data-tests: New file.
13931         * tests/test-get-rusage-data.c: New file.
13932
13933         New module 'get-rusage-data'.
13934         * lib/resource-ext.h (get_rusage_data): New declaration.
13935         * lib/get-rusage-data.c: New file.
13936         * modules/get-rusage-data: New file.
13937
13938 2011-01-25  Bruno Haible  <bruno@clisp.org>
13939
13940         get-rusage-as: Allow for easier testing.
13941         * lib/resource-ext.h (get_rusage_as): Add comment.
13942         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
13943         (main): New function for interactive testing.
13944
13945 2011-01-25  Bruno Haible  <bruno@clisp.org>
13946
13947         vma-iter: Treat Haiku like BeOS.
13948         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
13949         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
13950
13951 2011-01-25  Eric Blake  <eblake@redhat.com>
13952
13953         c-stack: fix regression on cygwin when libsigsegv is present
13954         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
13955
13956 2011-01-24  Bruno Haible  <bruno@clisp.org>
13957
13958         vma-iter: Avoid empty intervals.
13959         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
13960         on an empty interval.
13961
13962 2011-01-24  Jim Meyering  <meyering@redhat.com>
13963
13964         u64: remove unnecessary #include
13965         * lib/u64.h: Don't include <stddef.h>.  It was not used.
13966
13967 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
13968
13969         Allow the user to avoid the HAVE_RAW_DECL_* macros.
13970         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
13971
13972 2011-01-23  Bruno Haible  <bruno@clisp.org>
13973
13974         New module 'vma-iter'.
13975         * lib/vma-iter.h: New file.
13976         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
13977         * modules/vma-iter: New file.
13978         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
13979         for get_rusage_as_via_iterator.
13980         (vma_iterate_callback): New function.
13981         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
13982         * modules/get-rusage-as (Depends-on): Add vma-iter.
13983
13984 2011-01-23  Bruno Haible  <bruno@clisp.org>
13985
13986         uninorm: Tweak includes.
13987         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
13988         Reported by Jim Meyering.
13989
13990 2011-01-23  Bruno Haible  <bruno@clisp.org>
13991
13992         get-rusage-as: Improve on NetBSD.
13993         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
13994         /proc, like on FreeBSD.
13995
13996 2011-01-23  Jim Meyering  <meyering@redhat.com>
13997
13998         xreadlink.h: remove unnecessary #include
13999         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
14000
14001         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
14002         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
14003
14004 2011-01-23  Bruno Haible  <bruno@clisp.org>
14005
14006         get-rusage-as: Fix bug.
14007         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
14008         original limit when aborting the first loop.
14009
14010 2011-01-23  Bruno Haible  <bruno@clisp.org>
14011
14012         wctype: Ensure valid C syntax.
14013         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
14014         unconditionally, instead of gl_NEXT_HEADERS conditionally.
14015
14016 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
14017
14018         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
14019         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
14020         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
14021         as they are needed only for configure's test case.
14022         This removes two unnecessary symbols from config.h.
14023
14024         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
14025         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
14026         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
14027         AC_CHECK_HEADERS_ONCE on a header that we also invoke
14028         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
14029         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
14030         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
14031         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
14032         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
14033         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
14034         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
14035         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
14036         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
14037         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
14038         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
14039         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
14040         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
14041         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
14042
14043 2011-01-21  Eric Blake  <eblake@redhat.com>
14044
14045         maintainer-makefile: work with older git for submodule check
14046         * top/maint.mk (public-submodule-commit): Rewrite to avoid
14047         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
14048         Reported by Matthias Bolte.
14049
14050         bootstrap: minor portability fixes
14051         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
14052         (usage): Omit leading capital and trailing . on help phrases, per
14053         GNU Coding Standards.
14054         (check_versions, top level): Prefix messages with script name.
14055
14056 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
14057
14058         bootstrap: support --no-git option
14059         * build-aux/bootstrap: Add --no-git option, to be used when
14060         --gnulib-srcdir points to the exact desired checkout.
14061
14062 2011-01-21  Eric Blake  <eblake@redhat.com>
14063
14064         strerror_r-posix: work with glibc 2.13
14065         * lib/strerror_r.c (strerror_r): Fix return type.
14066
14067 2011-01-21  Pádraig Brady  <P@draigBrady.com>
14068             Bruno Haible  <bruno@clisp.org>
14069
14070         uN_strstr: New unit tests.
14071         * modules/unistr/u8-strstr-tests: New file.
14072         * modules/unistr/u16-strstr-tests: New file.
14073         * modules/unistr/u32-strstr-tests: New file.
14074         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
14075         * tests/unistr/test-u8-strstr.c: New file.
14076         * tests/unistr/test-u16-strstr.c: New file.
14077         * tests/unistr/test-u32-strstr.c: New file.
14078
14079 2011-01-21  Pádraig Brady  <P@draigBrady.com>
14080             Bruno Haible  <bruno@clisp.org>
14081
14082         Make uN_strstr functions O(n) worst-case.
14083         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
14084         16-bit and 32-bit unit cases, use the unibyte algorithm from
14085         lib/mbsstr.c.
14086         * lib/unistr/u8-strstr.c: Include <string.h>.
14087         (UNIT_IS_UINT8_T): New macro.
14088         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
14089         (U_STRLEN, U_STRNLEN): New macros.
14090         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
14091         (U_STRLEN, U_STRNLEN): New macros.
14092         * modules/unistr/u8-strstr (Depends-on): Add strstr.
14093         (configure.ac): Update required libunistring version.
14094         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
14095         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
14096         malloca.
14097         (configure.ac): Update required libunistring version.
14098         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
14099         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
14100         malloca.
14101         (configure.ac): Update required libunistring version.
14102
14103 2011-01-21  Pádraig Brady  <P@draigBrady.com>
14104             Bruno Haible  <bruno@clisp.org>
14105
14106         Prepare for faster uN_strstr functions.
14107         * lib/str-kmp.h: Support definable UNITs.
14108         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
14109         needle_len argument.
14110         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
14111         * lib/mbscasestr.c (mbscasestr): Likewise.
14112
14113 2011-01-21  Pádraig Brady <P@draigBrady.com>
14114
14115         malloca-tests: make faster by unsetting MALLOC_PERTURB_
14116         * tests/test-malloca.c (main): Unset the environment variable
14117         to greatly speed up the test.
14118         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
14119         * modules/malloca-tests: Depend on unsetenv.
14120
14121 2011-01-21  Pádraig Brady <P@draigBrady.com>
14122
14123         ignore-value: remove stdint dependency
14124         * lib/ignore-value.h: Remove <stdint.h>
14125         * modules/ignore-value: Remove stdint dependency.
14126
14127 2011-01-21  Jim Meyering  <meyering@redhat.com>
14128
14129         maint.mk: adjust variable name to be consistent with other gl_ vars
14130         * top/maint.mk (gl_public_submodule_commit): Rename the variable
14131         to be lower case.
14132
14133 2011-01-20  Jim Meyering  <meyering@redhat.com>
14134
14135         maint.mk: make "check" depend on public-submodule-commit by default
14136         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
14137
14138 2011-01-20  Bruno Haible  <bruno@clisp.org>
14139
14140         mbfile, mbiter: Complete change from 2008-12-21.
14141         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
14142         * m4/mbiter.m4 (gl_MBITER): Likewise.
14143
14144 2011-01-20  Jim Meyering  <meyering@redhat.com>
14145
14146         init.sh: insert space between each function name and "()"
14147         * tests/init.sh: Make it a little easier to see that a function's
14148         name is "warn_", and not "warn" when looking at the first part of
14149         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
14150
14151 2011-01-20  Jim Meyering  <meyering@redhat.com>
14152
14153         mountlist: clean up code formatting
14154         * lib/mountlist.c (read_file_system_list): Split a long line,
14155         correct bracing style, use NULL in place of "(struct statfs *)0",
14156         don't parenthesize return value, add spaces around "=" and after
14157         ";-in-for-stmt".
14158
14159 2011-01-14  Markus Duft <mduft@gentoo.org>
14160
14161         mountlist: add support for Interix
14162         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
14163         Apply statvfs to all entries of /dev/fs.
14164         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
14165         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
14166
14167 2011-01-20  Jim Meyering  <meyering@redhat.com>
14168
14169         maint.mk: improve the public-submodule-commit rule
14170         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
14171         to suppress printing of its commands... unless V=1.
14172         Add git submodule's --quiet option to suppress printing of e.g.,
14173         "Entering gnulib" output.
14174         "cd" into $(srcdir) before running git submodule.
14175
14176 2011-01-20  Bruno Haible  <bruno@clisp.org>
14177
14178         include_next: Fix bug introduced on 2011-01-18.
14179         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
14180         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
14181         ac_cv_header_... variable if the second argument is not 'check'.
14182         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
14183         gl_NEXT_HEADERS_INTERNAL.
14184
14185 2011-01-20  Bruno Haible  <bruno@clisp.org>
14186
14187         Allow the user to avoid the GNULIB_TEST_* macros.
14188         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
14189         Suggested by Paul Eggert.
14190
14191 2011-01-14  Jim Meyering  <meyering@redhat.com>
14192
14193         bootstrap: avoid failure when there is no .gitmodules file
14194         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
14195         has been assigned to, even when its value is the empty string.
14196         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
14197         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
14198         Reported by John W. Eaton <jwe@gnu.org>.
14199
14200 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
14201
14202         assume <ctype.h>, ..., <time.h> exist
14203         For years gnulib has been assuming the existence of the headers
14204         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
14205         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
14206         them, since they don't appear to be needed.
14207         * README (Portability guidelines): Document this.
14208         * lib/flock.c: Assume <fcntl.h> exists.
14209         * lib/regex_internal.h: Assume <locale.h> exists.
14210         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
14211         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
14212         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
14213         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
14214         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
14215         * m4/regex.m4 (gl_REGEX): Likewise.
14216         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
14217         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
14218         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
14219         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
14220         * tests/test-argp.c: Likewise.
14221         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
14222
14223         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
14224         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
14225         AA_APPLE_UNIVERSAL_BUILD.  See
14226         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
14227         * NEWS: Document this.
14228
14229 2011-01-19  Eric Blake  <eblake@redhat.com>
14230
14231         c-stack: assume stack overflow if SA_SIGINFO unsupported
14232         * lib/c-stack.c (SIGACTION_WORKS): Rename...
14233         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
14234         sigaction will work.
14235         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
14236         behavior match Linux.
14237         * tests/test-c-stack.c (main): Prefer NULL for pointers.
14238
14239         stdbool-tests: accomodate Haiku
14240         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
14241
14242         binary-io: fix O_TEXT on Haiku
14243         * modules/binary-io (Depends-on): Add fcntl-h.
14244         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
14245         than blindly undefining O_TEXT.
14246         Reported by Scott McCreary.
14247
14248 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
14249
14250         include_next: do not check for standard headers like stddef.h
14251
14252         I found this problem when modifying Emacs to use gnulib.
14253         I noticed that it added HAVE_STDDEF_H to config.h, even though
14254         gnulib always assumes <stddef.h> exists as per README and this
14255         symbol is unnecessary.
14256         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
14257         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
14258         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
14259         faster for headers like stddef.h that are known to exist.
14260         (gl_CHECK_NEXT_HEADERS): Use it.
14261         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
14262         rather than gl_CHECK_NEXT_HEADERS.
14263         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
14264         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
14265
14266 2011-01-18  Eric Blake  <eblake@redhat.com>
14267
14268         ansi-c++-opt: skip C++ dependency style if C++ is unused
14269         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
14270         tests when we know C++ compilation is not desired.
14271         Reported by Scott McCreary.
14272
14273 2011-01-18  Bruno Haible  <bruno@clisp.org>
14274
14275         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
14276         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
14277         (main): Perform test also when getrlimit and setrlimit don't exist or
14278         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
14279         limiting the address space size using setrlimit, compare the address
14280         space size before and after the the test.
14281         * tests/test-dprintf-posix2.c: Likewise.
14282         * tests/test-fprintf-posix3.sh: Update skip messages.
14283         * tests/test-dprintf-posix2.sh: Likewise.
14284         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
14285         * modules/dprintf-posix-tests (Depends-on): Likewise.
14286         Reported by Bruce Korb <bkorb@gnu.org> and
14287         Gary V. Vaughan <gary@gnu.org>.
14288
14289 2011-01-18  Bruno Haible  <bruno@clisp.org>
14290
14291         get-rusage-as: Improvement for Cygwin.
14292         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
14293         areas that are merely reserved.
14294
14295 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
14296
14297         strftime: remove dependencies on multibyte modules
14298
14299         strftime depended on mbrlen, mbsinit, and wchar, but these modules
14300         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
14301         only if __osf__ is defined, and I suspect OSF doesn't need these
14302         other modules.  If my guess is wrong, we'll need to come up with a
14303         variant of strftime that doesn't need the multibyte modules.
14304
14305         I discovered this problem when attempting modify Emacs to use the
14306         strftime module.  With the previous gnulib, this caused Emacs to
14307         need 31 new files, ranging from lib/config.charset to
14308         m4/wint_t.m4.  This was overkill and I expect would be offputting
14309         to the Emacs maintainers.  After this change, only 6 new files are
14310         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
14311         stdbool.m4, and tm_gmtoff.m4.
14312
14313         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
14314         Suggested by Bruno Haible in
14315         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
14316         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
14317         and do not check for wchar.h.
14318         * modules/strftime (Files): Remove m4/mbstate_t.m4.
14319         (Depends-on): Remove mbrlen, mbsinit, wchar.
14320
14321 2011-01-18  Bruno Haible  <bruno@clisp.org>
14322
14323         Tests for module 'get-rusage-as'.
14324         * modules/get-rusage-as-tests: New file.
14325         * tests/test-get-rusage-as.c: New file.
14326
14327         New module 'get-rusage-as'.
14328         * modules/get-rusage-as: New file.
14329         * lib/resource-ext.h: New file.
14330         * lib/get-rusage-as.c: New file.
14331
14332 2011-01-17  Eric Blake  <eblake@redhat.com>
14333
14334         sigaction: relax license from LGPLv3+ to LGPLv2+
14335         * modules/sigaction (License): Relax to LGPLv2+.
14336
14337 2011-01-14  Bruno Haible  <bruno@clisp.org>
14338
14339         filemode: Make function declarations usable in C++ mode.
14340         * lib/filemode.h: Enclose function declarations in extern "C" block.
14341         Reported by John W. Eaton <jwe@gnu.org>.
14342
14343 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
14344
14345         save-cwd: no longer include "xgetcwd.h"
14346         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
14347         This avoids a compilation failure in projects that use save-cwd
14348         without also using the xgetcwd module.
14349
14350 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
14351
14352         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
14353         This is so that a program like Emacs, which needs only dtoastr,
14354         does not have to bother with distributing and compiling ftoastr
14355         and ldtoastr.
14356         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
14357         * modules/dtoastr, modules/ldtoastr: New files.
14358         * modules/ftoastr: Now works just for 'float'.
14359         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
14360         (Makefile.am): Remove ftoastr.h (not needed and no effect),
14361         dtoastr.c, ldtoastr.c.
14362
14363 2011-01-11  Jim Meyering  <meyering@redhat.com>
14364
14365         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
14366         There is no need to work around the lack of the fchdir function,
14367         since gnulib can now provide a replacement when required.
14368         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
14369         * modules/save-cwd (Depends-on): Add fchdir.
14370
14371 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
14372
14373         openat, save-cwd: avoid xmalloc
14374
14375         This removes a direct (but undocumented) dependency of openat on
14376         xalloc, along with an indirect dependency via save-cwd.  It also
14377         removes a dependency of save-cwd on xgetcwd, and thereby
14378         indirectly on xalloc.  This change causes the openat substitute
14379         to fall back on save_cwd when memory is tight, and for save_cwd to
14380         fail instead of dying when memory is tight, but that's good enough.
14381         Problem and initial idea for fix reported by Bastien Roucaries in
14382         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
14383
14384         * lib/openat-proc.c: Include stdlib.h (for malloc), not
14385         xalloc.h (for xmalloc).
14386         (openat_proc_name): Use malloc, not xmalloc.
14387         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
14388         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
14389
14390         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
14391         This avoids heap allocation for file names whose lengths are in
14392         the range 512..1023, with the upper bound increasing to at most
14393         4031 depending on the platform's PATH_MAX.  (We do not want
14394         pathmax.h here as it might supply a non-constant PATH_MAX.)
14395         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
14396         Perhaps they should be moved to malloca.h?
14397         (OPENAT_BUFFER_SIZE): Use them.
14398
14399 2011-01-10  Bruno Haible  <bruno@clisp.org>
14400
14401         doc: Update users.txt.
14402         * users.txt: Add recutils.
14403
14404 2011-01-09  Karl Berry  <karl@gnu.org>
14405
14406         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
14407
14408         * doc/configmake.texi: New file.
14409         * doc/gnulib.texi: Include it.
14410         * modules/configmake: Move documentation from here.
14411
14412 2011-01-09  Bruno Haible  <bruno@clisp.org>
14413
14414         Update to Unicode 6.0.0.
14415         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
14416         (get_lbp): Update for Unicode 6.0.0.
14417         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
14418         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
14419         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
14420         U+11001, U+11038..U+11046. Remove U+06DE.
14421         (uc_width): Fix bounds of planes.
14422         * tests/uniwidth/test-uc_width2.sh: Same updates as in
14423         lib/uniwidth/width.c.
14424         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
14425         trailing whitespace removed.
14426         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
14427         without comments, but with the original copyright notice.
14428         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
14429         * lib/unicase/ignorable.h: Likewise.
14430         * lib/unicase/tocasefold.h: Likewise.
14431         * lib/unicase/tolower.h: Likewise.
14432         * lib/unicase/totitle.h: Likewise.
14433         * lib/unicase/toupper.h: Likewise.
14434         * lib/unictype/bidi_of.h: Likewise.
14435         * lib/unictype/blocks.h: Likewise.
14436         * lib/unictype/categ_C.h: Likewise.
14437         * lib/unictype/categ_Cn.h: Likewise.
14438         * lib/unictype/categ_L.h: Likewise.
14439         * lib/unictype/categ_Ll.h: Likewise.
14440         * lib/unictype/categ_Lm.h: Likewise.
14441         * lib/unictype/categ_Lo.h: Likewise.
14442         * lib/unictype/categ_Lu.h: Likewise.
14443         * lib/unictype/categ_M.h: Likewise.
14444         * lib/unictype/categ_Mc.h: Likewise.
14445         * lib/unictype/categ_Me.h: Likewise.
14446         * lib/unictype/categ_Mn.h: Likewise.
14447         * lib/unictype/categ_N.h: Likewise.
14448         * lib/unictype/categ_Nd.h: Likewise.
14449         * lib/unictype/categ_No.h: Likewise.
14450         * lib/unictype/categ_P.h: Likewise.
14451         * lib/unictype/categ_Po.h: Likewise.
14452         * lib/unictype/categ_S.h: Likewise.
14453         * lib/unictype/categ_Sc.h: Likewise.
14454         * lib/unictype/categ_Sk.h: Likewise.
14455         * lib/unictype/categ_Sm.h: Likewise.
14456         * lib/unictype/categ_So.h: Likewise.
14457         * lib/unictype/categ_of.h: Likewise.
14458         * lib/unictype/combining.h: Likewise.
14459         * lib/unictype/ctype_alnum.h: Likewise.
14460         * lib/unictype/ctype_alpha.h: Likewise.
14461         * lib/unictype/ctype_graph.h: Likewise.
14462         * lib/unictype/ctype_lower.h: Likewise.
14463         * lib/unictype/ctype_print.h: Likewise.
14464         * lib/unictype/ctype_punct.h: Likewise.
14465         * lib/unictype/ctype_upper.h: Likewise.
14466         * lib/unictype/decdigit.h: Likewise.
14467         * lib/unictype/digit.h: Likewise.
14468         * lib/unictype/numeric.h: Likewise.
14469         * lib/unictype/pr_alphabetic.h: Likewise.
14470         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
14471         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
14472         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
14473         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
14474         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
14475         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
14476         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
14477         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
14478         * lib/unictype/pr_case_ignorable.h: Likewise.
14479         * lib/unictype/pr_cased.h: Likewise.
14480         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
14481         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
14482         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
14483         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
14484         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
14485         * lib/unictype/pr_combining.h: Likewise.
14486         * lib/unictype/pr_composite.h: Likewise.
14487         * lib/unictype/pr_currency_symbol.h: Likewise.
14488         * lib/unictype/pr_decimal_digit.h: Likewise.
14489         * lib/unictype/pr_deprecated.h: Likewise.
14490         * lib/unictype/pr_format_control.h: Likewise.
14491         * lib/unictype/pr_grapheme_base.h: Likewise.
14492         * lib/unictype/pr_grapheme_extend.h: Likewise.
14493         * lib/unictype/pr_grapheme_link.h: Likewise.
14494         * lib/unictype/pr_id_continue.h: Likewise.
14495         * lib/unictype/pr_id_start.h: Likewise.
14496         * lib/unictype/pr_ideographic.h: Likewise.
14497         * lib/unictype/pr_lowercase.h: Likewise.
14498         * lib/unictype/pr_math.h: Likewise.
14499         * lib/unictype/pr_numeric.h: Likewise.
14500         * lib/unictype/pr_other_alphabetic.h: Likewise.
14501         * lib/unictype/pr_other_id_continue.h: Likewise.
14502         * lib/unictype/pr_other_math.h: Likewise.
14503         * lib/unictype/pr_punctuation.h: Likewise.
14504         * lib/unictype/pr_sentence_terminal.h: Likewise.
14505         * lib/unictype/pr_terminal_punctuation.h: Likewise.
14506         * lib/unictype/pr_unassigned_code_value.h: Likewise.
14507         * lib/unictype/pr_unified_ideograph.h: Likewise.
14508         * lib/unictype/pr_uppercase.h: Likewise.
14509         * lib/unictype/pr_xid_continue.h: Likewise.
14510         * lib/unictype/pr_xid_start.h: Likewise.
14511         * lib/unictype/scripts.h: Likewise.
14512         * lib/unictype/scripts_byname.gperf: Likewise.
14513         * lib/unictype/sy_java_ident.h: Likewise.
14514         * lib/unigbrk/gbrkprop.h: Likewise.
14515         * lib/unilbrk/lbrkprop1.h: Likewise.
14516         * lib/unilbrk/lbrkprop2.h: Likewise.
14517         * lib/uninorm/decomposition-table2.h: Likewise.
14518         * lib/uniwbrk/wbrkprop.h: Likewise.
14519         * tests/unicase/test-cased.c: Likewise.
14520         * tests/unicase/test-ignorable.c: Likewise.
14521         * tests/unicase/test-uc_tolower.c: Likewise.
14522         * tests/unicase/test-uc_totitle.c: Likewise.
14523         * tests/unicase/test-uc_toupper.c: Likewise.
14524         * tests/unictype/test-categ_C.c: Likewise.
14525         * tests/unictype/test-categ_Cn.c: Likewise.
14526         * tests/unictype/test-categ_L.c: Likewise.
14527         * tests/unictype/test-categ_Ll.c: Likewise.
14528         * tests/unictype/test-categ_Lm.c: Likewise.
14529         * tests/unictype/test-categ_Lo.c: Likewise.
14530         * tests/unictype/test-categ_Lu.c: Likewise.
14531         * tests/unictype/test-categ_M.c: Likewise.
14532         * tests/unictype/test-categ_Mc.c: Likewise.
14533         * tests/unictype/test-categ_Me.c: Likewise.
14534         * tests/unictype/test-categ_Mn.c: Likewise.
14535         * tests/unictype/test-categ_N.c: Likewise.
14536         * tests/unictype/test-categ_Nd.c: Likewise.
14537         * tests/unictype/test-categ_No.c: Likewise.
14538         * tests/unictype/test-categ_P.c: Likewise.
14539         * tests/unictype/test-categ_Po.c: Likewise.
14540         * tests/unictype/test-categ_S.c: Likewise.
14541         * tests/unictype/test-categ_Sc.c: Likewise.
14542         * tests/unictype/test-categ_Sk.c: Likewise.
14543         * tests/unictype/test-categ_Sm.c: Likewise.
14544         * tests/unictype/test-categ_So.c: Likewise.
14545         * tests/unictype/test-ctype_alnum.c: Likewise.
14546         * tests/unictype/test-ctype_alpha.c: Likewise.
14547         * tests/unictype/test-ctype_graph.c: Likewise.
14548         * tests/unictype/test-ctype_lower.c: Likewise.
14549         * tests/unictype/test-ctype_print.c: Likewise.
14550         * tests/unictype/test-ctype_punct.c: Likewise.
14551         * tests/unictype/test-ctype_upper.c: Likewise.
14552         * tests/unictype/test-decdigit.h: Likewise.
14553         * tests/unictype/test-digit.h: Likewise.
14554         * tests/unictype/test-numeric.h: Likewise.
14555         * tests/unictype/test-pr_alphabetic.c: Likewise.
14556         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
14557         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
14558         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
14559         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
14560         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
14561         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
14562         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
14563         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
14564         * tests/unictype/test-pr_case_ignorable.c: Likewise.
14565         * tests/unictype/test-pr_cased.c: Likewise.
14566         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
14567         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
14568         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
14569         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
14570         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
14571         * tests/unictype/test-pr_combining.c: Likewise.
14572         * tests/unictype/test-pr_composite.c: Likewise.
14573         * tests/unictype/test-pr_currency_symbol.c: Likewise.
14574         * tests/unictype/test-pr_decimal_digit.c: Likewise.
14575         * tests/unictype/test-pr_deprecated.c: Likewise.
14576         * tests/unictype/test-pr_format_control.c: Likewise.
14577         * tests/unictype/test-pr_grapheme_base.c: Likewise.
14578         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
14579         * tests/unictype/test-pr_grapheme_link.c: Likewise.
14580         * tests/unictype/test-pr_id_continue.c: Likewise.
14581         * tests/unictype/test-pr_id_start.c: Likewise.
14582         * tests/unictype/test-pr_ideographic.c: Likewise.
14583         * tests/unictype/test-pr_lowercase.c: Likewise.
14584         * tests/unictype/test-pr_math.c: Likewise.
14585         * tests/unictype/test-pr_numeric.c: Likewise.
14586         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
14587         * tests/unictype/test-pr_other_id_continue.c: Likewise.
14588         * tests/unictype/test-pr_other_math.c: Likewise.
14589         * tests/unictype/test-pr_punctuation.c: Likewise.
14590         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
14591         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
14592         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
14593         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
14594         * tests/unictype/test-pr_uppercase.c: Likewise.
14595         * tests/unictype/test-pr_xid_continue.c: Likewise.
14596         * tests/unictype/test-pr_xid_start.c: Likewise.
14597         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
14598         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
14599         changes.
14600         * lib/unictype/categ_Cc.h: Likewise.
14601         * lib/unictype/categ_Cf.h: Likewise.
14602         * lib/unictype/categ_Co.h: Likewise.
14603         * lib/unictype/categ_Cs.h: Likewise.
14604         * lib/unictype/categ_Lt.h: Likewise.
14605         * lib/unictype/categ_Nl.h: Likewise.
14606         * lib/unictype/categ_Pc.h: Likewise.
14607         * lib/unictype/categ_Pd.h: Likewise.
14608         * lib/unictype/categ_Pe.h: Likewise.
14609         * lib/unictype/categ_Pf.h: Likewise.
14610         * lib/unictype/categ_Pi.h: Likewise.
14611         * lib/unictype/categ_Ps.h: Likewise.
14612         * lib/unictype/categ_Z.h: Likewise.
14613         * lib/unictype/categ_Zl.h: Likewise.
14614         * lib/unictype/categ_Zp.h: Likewise.
14615         * lib/unictype/categ_Zs.h: Likewise.
14616         * lib/unictype/ctype_blank.h: Likewise.
14617         * lib/unictype/ctype_cntrl.h: Likewise.
14618         * lib/unictype/ctype_digit.h: Likewise.
14619         * lib/unictype/ctype_space.h: Likewise.
14620         * lib/unictype/ctype_xdigit.h: Likewise.
14621         * lib/unictype/mirror.h: Likewise.
14622         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
14623         * lib/unictype/pr_bidi_block_separator.h: Likewise.
14624         * lib/unictype/pr_bidi_common_separator.h: Likewise.
14625         * lib/unictype/pr_bidi_control.h: Likewise.
14626         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
14627         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
14628         * lib/unictype/pr_bidi_european_digit.h: Likewise.
14629         * lib/unictype/pr_bidi_pdf.h: Likewise.
14630         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
14631         * lib/unictype/pr_bidi_whitespace.h: Likewise.
14632         * lib/unictype/pr_dash.h: Likewise.
14633         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
14634         * lib/unictype/pr_diacritic.h: Likewise.
14635         * lib/unictype/pr_extender.h: Likewise.
14636         * lib/unictype/pr_hex_digit.h: Likewise.
14637         * lib/unictype/pr_hyphen.h: Likewise.
14638         * lib/unictype/pr_ids_binary_operator.h: Likewise.
14639         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
14640         * lib/unictype/pr_ignorable_control.h: Likewise.
14641         * lib/unictype/pr_iso_control.h: Likewise.
14642         * lib/unictype/pr_join_control.h: Likewise.
14643         * lib/unictype/pr_left_of_pair.h: Likewise.
14644         * lib/unictype/pr_line_separator.h: Likewise.
14645         * lib/unictype/pr_logical_order_exception.h: Likewise.
14646         * lib/unictype/pr_non_break.h: Likewise.
14647         * lib/unictype/pr_not_a_character.h: Likewise.
14648         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
14649         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
14650         * lib/unictype/pr_other_id_start.h: Likewise.
14651         * lib/unictype/pr_other_lowercase.h: Likewise.
14652         * lib/unictype/pr_other_uppercase.h: Likewise.
14653         * lib/unictype/pr_paired_punctuation.h: Likewise.
14654         * lib/unictype/pr_paragraph_separator.h: Likewise.
14655         * lib/unictype/pr_pattern_syntax.h: Likewise.
14656         * lib/unictype/pr_pattern_white_space.h: Likewise.
14657         * lib/unictype/pr_private_use.h: Likewise.
14658         * lib/unictype/pr_quotation_mark.h: Likewise.
14659         * lib/unictype/pr_radical.h: Likewise.
14660         * lib/unictype/pr_soft_dotted.h: Likewise.
14661         * lib/unictype/pr_space.h: Likewise.
14662         * lib/unictype/pr_titlecase.h: Likewise.
14663         * lib/unictype/pr_variation_selector.h: Likewise.
14664         * lib/unictype/pr_white_space.h: Likewise.
14665         * lib/unictype/pr_zero_width.h: Likewise.
14666         * lib/unictype/sy_c_ident.h: Likewise.
14667         * lib/unictype/sy_c_whitespace.h: Likewise.
14668         * lib/unictype/sy_java_whitespace.h: Likewise.
14669         * lib/uninorm/composition-table.gperf: Likewise.
14670         * lib/uninorm/decomposition-table1.h: Likewise.
14671         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
14672         LB8.
14673         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
14674         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
14675         * modules/unictype/*: Bump version number of expected libunistring
14676         version.
14677
14678 2011-01-09  Bruno Haible  <bruno@clisp.org>
14679
14680         Update to Unicode 5.2.0.
14681         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
14682         trailing whitespace removed.
14683
14684 2011-01-09  Bruno Haible  <bruno@clisp.org>
14685
14686         New Unicode character properties, from Unicode 5.2.0.
14687         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
14688         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
14689         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
14690         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
14691         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
14692         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
14693         uc_is_property_cased, uc_is_property_case_ignorable,
14694         uc_is_property_changes_when_lowercased,
14695         uc_is_property_changes_when_uppercased,
14696         uc_is_property_changes_when_titlecased,
14697         uc_is_property_changes_when_casefolded,
14698         uc_is_property_changes_when_casemapped): New declarations.
14699         * lib/unictype/pr_byname.gperf: Add the new properties.
14700         * modules/unictype/property-byname (Depends-on): Depend on the new
14701         properties modules.
14702         * modules/unictype/property-all (Depends-on): Likewise.
14703         * MODULES.html.sh (Unicode string functions): Add
14704         unictype/property-case-ignorable, unictype/property-cased,
14705         unictype/property-changes-when-casefolded,
14706         unictype/property-changes-when-casemapped,
14707         unictype/property-changes-when-lowercased,
14708         unictype/property-changes-when-titlecased,
14709         unictype/property-changes-when-uppercased.
14710
14711         New module 'unictype/property-changes-when-casemapped'.
14712         * modules/unictype/property-changes-when-casemapped: New file.
14713         * lib/unictype/pr_changes_when_casemapped.c: New file.
14714         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
14715         generated by gen-uni-tables.
14716         * modules/unictype/property-changes-when-casemapped-tests: New file.
14717         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
14718         automatically generated by gen-uni-tables.
14719
14720         New module 'unictype/property-changes-when-casefolded'.
14721         * modules/unictype/property-changes-when-casefolded: New file.
14722         * lib/unictype/pr_changes_when_casefolded.c: New file.
14723         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
14724         generated by gen-uni-tables.
14725         * modules/unictype/property-changes-when-casefolded-tests: New file.
14726         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
14727         automatically generated by gen-uni-tables.
14728
14729         New module 'unictype/property-changes-when-titlecased'.
14730         * modules/unictype/property-changes-when-titlecased: New file.
14731         * lib/unictype/pr_changes_when_titlecased.c: New file.
14732         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
14733         generated by gen-uni-tables.
14734         * modules/unictype/property-changes-when-titlecased-tests: New file.
14735         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
14736         automatically generated by gen-uni-tables.
14737
14738         New module 'unictype/property-changes-when-uppercased'.
14739         * modules/unictype/property-changes-when-uppercased: New file.
14740         * lib/unictype/pr_changes_when_uppercased.c: New file.
14741         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
14742         generated by gen-uni-tables.
14743         * modules/unictype/property-changes-when-uppercased-tests: New file.
14744         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
14745         automatically generated by gen-uni-tables.
14746
14747         New module 'unictype/property-changes-when-lowercased'.
14748         * modules/unictype/property-changes-when-lowercased: New file.
14749         * lib/unictype/pr_changes_when_lowercased.c: New file.
14750         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
14751         generated by gen-uni-tables.
14752         * modules/unictype/property-changes-when-lowercased-tests: New file.
14753         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
14754         automatically generated by gen-uni-tables.
14755
14756         New module 'unictype/property-case-ignorable'.
14757         * modules/unictype/property-case-ignorable: New file.
14758         * lib/unictype/pr_case_ignorable.c: New file.
14759         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
14760         by gen-uni-tables.
14761         * modules/unictype/property-case-ignorable-tests: New file.
14762         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
14763         generated by gen-uni-tables.
14764
14765         New module 'unictype/property-cased'.
14766         * modules/unictype/property-cased: New file.
14767         * lib/unictype/pr_cased.c: New file.
14768         * lib/unictype/pr_cased.h: New file, automatically generated by
14769         gen-uni-tables.
14770         * modules/unictype/property-cased-tests: New file.
14771         * tests/unictype/test-pr_cased.c: New file, automatically generated by
14772         gen-uni-tables.
14773
14774 2011-01-09  Bruno Haible  <bruno@clisp.org>
14775
14776         Update to Unicode 5.2.0.
14777         * lib/gen-uni-tables.c (output_predicate, output_category,
14778         output_combclass, output_bidi_category, output_decimal_digit_test,
14779         output_decimal_digit, output_digit_test, output_digit,
14780         output_numeric_test, output_numeric, output_mirror, output_scripts,
14781         output_scripts_byname, output_blocks, output_ident_category): Fix
14782         comment header.
14783         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
14784         get_wbp.
14785         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
14786         items.
14787         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
14788         Changes_When_Lowercased, Changes_When_Uppercased,
14789         Changes_When_Titlecased, Changes_When_Casefolded,
14790         Changes_When_Casemapped.
14791         (is_property_alphabetic, is_property_default_ignorable_code_point):
14792         Update for Unicode 5.2.0.
14793         (is_property_cased, is_property_case_ignorable,
14794         is_property_changes_when_lowercased,
14795         is_property_changes_when_uppercased,
14796         is_property_changes_when_titlecased,
14797         is_property_changes_when_casefolded,
14798         is_property_changes_when_casemapped): New functions.
14799         (output_properties): Output also the properties cased, case_ignorable,
14800         changes_when_lowercased, changes_when_uppercased,
14801         changes_when_titlecased, changes_when_casefolded,
14802         changes_when_casemapped.
14803         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
14804         Unicode TR#11 revision 17 -> 19.
14805         (LBP_CP): New enumeration value.
14806         (LBP_*): Adjust values accordingly.
14807         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
14808         TR#14 revision 22 -> 24.
14809         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
14810         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
14811         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
14812         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
14813         is_WBP_MIDLETTER.
14814         (output_composition_tables): Allow for 24 bits instead of 16 bits in
14815         the code1 and code2 of each composition rule.
14816         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
14817         * lib/unicase/ignorable.h: Likewise.
14818         * lib/unicase/tocasefold.h: Likewise.
14819         * lib/unicase/tolower.h: Likewise.
14820         * lib/unicase/totitle.h: Likewise.
14821         * lib/unicase/toupper.h: Likewise.
14822         * lib/unictype/bidi_of.h: Likewise.
14823         * lib/unictype/blocks.h: Likewise.
14824         * lib/unictype/categ_C.h: Likewise.
14825         * lib/unictype/categ_Cf.h: Likewise.
14826         * lib/unictype/categ_Cn.h: Likewise.
14827         * lib/unictype/categ_L.h: Likewise.
14828         * lib/unictype/categ_Ll.h: Likewise.
14829         * lib/unictype/categ_Lm.h: Likewise.
14830         * lib/unictype/categ_Lo.h: Likewise.
14831         * lib/unictype/categ_Lu.h: Likewise.
14832         * lib/unictype/categ_M.h: Likewise.
14833         * lib/unictype/categ_Mc.h: Likewise.
14834         * lib/unictype/categ_Mn.h: Likewise.
14835         * lib/unictype/categ_N.h: Likewise.
14836         * lib/unictype/categ_Nd.h: Likewise.
14837         * lib/unictype/categ_Nl.h: Likewise.
14838         * lib/unictype/categ_No.h: Likewise.
14839         * lib/unictype/categ_P.h: Likewise.
14840         * lib/unictype/categ_Pd.h: Likewise.
14841         * lib/unictype/categ_Po.h: Likewise.
14842         * lib/unictype/categ_S.h: Likewise.
14843         * lib/unictype/categ_Sc.h: Likewise.
14844         * lib/unictype/categ_So.h: Likewise.
14845         * lib/unictype/categ_of.h: Likewise.
14846         * lib/unictype/combining.h: Likewise.
14847         * lib/unictype/ctype_alnum.h: Likewise.
14848         * lib/unictype/ctype_alpha.h: Likewise.
14849         * lib/unictype/ctype_graph.h: Likewise.
14850         * lib/unictype/ctype_lower.h: Likewise.
14851         * lib/unictype/ctype_print.h: Likewise.
14852         * lib/unictype/ctype_punct.h: Likewise.
14853         * lib/unictype/ctype_upper.h: Likewise.
14854         * lib/unictype/decdigit.h: Likewise.
14855         * lib/unictype/digit.h: Likewise.
14856         * lib/unictype/numeric.h: Likewise.
14857         * lib/unictype/pr_alphabetic.h: Likewise.
14858         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
14859         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
14860         * lib/unictype/pr_bidi_european_digit.h: Likewise.
14861         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
14862         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
14863         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
14864         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
14865         * lib/unictype/pr_combining.h: Likewise.
14866         * lib/unictype/pr_composite.h: Likewise.
14867         * lib/unictype/pr_currency_symbol.h: Likewise.
14868         * lib/unictype/pr_dash.h: Likewise.
14869         * lib/unictype/pr_decimal_digit.h: Likewise.
14870         * lib/unictype/pr_deprecated.h: Likewise.
14871         * lib/unictype/pr_diacritic.h: Likewise.
14872         * lib/unictype/pr_extender.h: Likewise.
14873         * lib/unictype/pr_grapheme_base.h: Likewise.
14874         * lib/unictype/pr_grapheme_extend.h: Likewise.
14875         * lib/unictype/pr_grapheme_link.h: Likewise.
14876         * lib/unictype/pr_id_continue.h: Likewise.
14877         * lib/unictype/pr_id_start.h: Likewise.
14878         * lib/unictype/pr_ideographic.h: Likewise.
14879         * lib/unictype/pr_ignorable_control.h: Likewise.
14880         * lib/unictype/pr_logical_order_exception.h: Likewise.
14881         * lib/unictype/pr_lowercase.h: Likewise.
14882         * lib/unictype/pr_numeric.h: Likewise.
14883         * lib/unictype/pr_other_alphabetic.h: Likewise.
14884         * lib/unictype/pr_punctuation.h: Likewise.
14885         * lib/unictype/pr_sentence_terminal.h: Likewise.
14886         * lib/unictype/pr_terminal_punctuation.h: Likewise.
14887         * lib/unictype/pr_unassigned_code_value.h: Likewise.
14888         * lib/unictype/pr_unified_ideograph.h: Likewise.
14889         * lib/unictype/pr_uppercase.h: Likewise.
14890         * lib/unictype/pr_xid_continue.h: Likewise.
14891         * lib/unictype/pr_xid_start.h: Likewise.
14892         * lib/unictype/pr_zero_width.h: Likewise.
14893         * lib/unictype/scripts.h: Likewise.
14894         * lib/unictype/scripts_byname.gperf: Likewise.
14895         * lib/unictype/sy_java_ident.h: Likewise.
14896         * lib/unigbrk/gbrkprop.h: Likewise.
14897         * lib/unilbrk/lbrkprop1.h: Likewise.
14898         * lib/unilbrk/lbrkprop2.h: Likewise.
14899         * lib/unilbrk/lbrktables.h: Likewise.
14900         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
14901         LBP_CP. Implement rule LB30.
14902         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
14903         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
14904         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
14905         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
14906         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
14907         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
14908         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
14909         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
14910         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
14911         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
14912         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
14913         bits instead of 16 bits in the code1 and code2 of each composition
14914         rule.
14915         (uc_composition): Update for Unicode 5.2.0.
14916         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
14917         * lib/uninorm/decomposition-table2.h: Likewise.
14918         * lib/uniwbrk/wbrkprop.h: Likewise.
14919         * tests/unicase/test-cased.c: Likewise.
14920         * tests/unicase/test-ignorable.c: Likewise.
14921         * tests/unicase/test-uc_tolower.c: Likewise.
14922         * tests/unicase/test-uc_totitle.c: Likewise.
14923         * tests/unicase/test-uc_toupper.c: Likewise.
14924         * tests/unictype/test-categ_C.c: Likewise.
14925         * tests/unictype/test-categ_Cf.c: Likewise.
14926         * tests/unictype/test-categ_Cn.c: Likewise.
14927         * tests/unictype/test-categ_L.c: Likewise.
14928         * tests/unictype/test-categ_Ll.c: Likewise.
14929         * tests/unictype/test-categ_Lm.c: Likewise.
14930         * tests/unictype/test-categ_Lo.c: Likewise.
14931         * tests/unictype/test-categ_Lu.c: Likewise.
14932         * tests/unictype/test-categ_M.c: Likewise.
14933         * tests/unictype/test-categ_Mc.c: Likewise.
14934         * tests/unictype/test-categ_Mn.c: Likewise.
14935         * tests/unictype/test-categ_N.c: Likewise.
14936         * tests/unictype/test-categ_Nd.c: Likewise.
14937         * tests/unictype/test-categ_Nl.c: Likewise.
14938         * tests/unictype/test-categ_No.c: Likewise.
14939         * tests/unictype/test-categ_P.c: Likewise.
14940         * tests/unictype/test-categ_Pd.c: Likewise.
14941         * tests/unictype/test-categ_Po.c: Likewise.
14942         * tests/unictype/test-categ_S.c: Likewise.
14943         * tests/unictype/test-categ_Sc.c: Likewise.
14944         * tests/unictype/test-categ_So.c: Likewise.
14945         * tests/unictype/test-ctype_alnum.c: Likewise.
14946         * tests/unictype/test-ctype_alpha.c: Likewise.
14947         * tests/unictype/test-ctype_graph.c: Likewise.
14948         * tests/unictype/test-ctype_lower.c: Likewise.
14949         * tests/unictype/test-ctype_print.c: Likewise.
14950         * tests/unictype/test-ctype_punct.c: Likewise.
14951         * tests/unictype/test-ctype_upper.c: Likewise.
14952         * tests/unictype/test-decdigit.h: Likewise.
14953         * tests/unictype/test-digit.h: Likewise.
14954         * tests/unictype/test-numeric.h: Likewise.
14955         * tests/unictype/test-pr_alphabetic.c: Likewise.
14956         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
14957         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
14958         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
14959         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
14960         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
14961         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
14962         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
14963         * tests/unictype/test-pr_combining.c: Likewise.
14964         * tests/unictype/test-pr_composite.c: Likewise.
14965         * tests/unictype/test-pr_currency_symbol.c: Likewise.
14966         * tests/unictype/test-pr_dash.c: Likewise.
14967         * tests/unictype/test-pr_decimal_digit.c: Likewise.
14968         * tests/unictype/test-pr_deprecated.c: Likewise.
14969         * tests/unictype/test-pr_diacritic.c: Likewise.
14970         * tests/unictype/test-pr_extender.c: Likewise.
14971         * tests/unictype/test-pr_grapheme_base.c: Likewise.
14972         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
14973         * tests/unictype/test-pr_grapheme_link.c: Likewise.
14974         * tests/unictype/test-pr_id_continue.c: Likewise.
14975         * tests/unictype/test-pr_id_start.c: Likewise.
14976         * tests/unictype/test-pr_ideographic.c: Likewise.
14977         * tests/unictype/test-pr_ignorable_control.c: Likewise.
14978         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
14979         * tests/unictype/test-pr_lowercase.c: Likewise.
14980         * tests/unictype/test-pr_numeric.c: Likewise.
14981         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
14982         * tests/unictype/test-pr_punctuation.c: Likewise.
14983         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
14984         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
14985         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
14986         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
14987         * tests/unictype/test-pr_uppercase.c: Likewise.
14988         * tests/unictype/test-pr_xid_continue.c: Likewise.
14989         * tests/unictype/test-pr_xid_start.c: Likewise.
14990         * tests/unictype/test-pr_zero_width.c: Likewise.
14991         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
14992         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
14993         changed behaviour: line breaking is now disallowed between a letter
14994         or '=' and '('.
14995         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
14996         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
14997         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
14998         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
14999         * tests/uniwidth/test-uc_width2.sh: Same updates as in
15000         lib/uniwidth/width.c.
15001         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
15002         without comments, but with the original copyright notice.
15003         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
15004         changes.
15005         * lib/unictype/categ_Cc.h: Likewise.
15006         * lib/unictype/categ_Co.h: Likewise.
15007         * lib/unictype/categ_Cs.h: Likewise.
15008         * lib/unictype/categ_Lt.h: Likewise.
15009         * lib/unictype/categ_Me.h: Likewise.
15010         * lib/unictype/categ_Pc.h: Likewise.
15011         * lib/unictype/categ_Pe.h: Likewise.
15012         * lib/unictype/categ_Pf.h: Likewise.
15013         * lib/unictype/categ_Pi.h: Likewise.
15014         * lib/unictype/categ_Ps.h: Likewise.
15015         * lib/unictype/categ_Sk.h: Likewise.
15016         * lib/unictype/categ_Sm.h: Likewise.
15017         * lib/unictype/categ_Z.h: Likewise.
15018         * lib/unictype/categ_Zl.h: Likewise.
15019         * lib/unictype/categ_Zp.h: Likewise.
15020         * lib/unictype/categ_Zs.h: Likewise.
15021         * lib/unictype/ctype_blank.h: Likewise.
15022         * lib/unictype/ctype_cntrl.h: Likewise.
15023         * lib/unictype/ctype_digit.h: Likewise.
15024         * lib/unictype/ctype_space.h: Likewise.
15025         * lib/unictype/ctype_xdigit.h: Likewise.
15026         * lib/unictype/mirror.h: Likewise.
15027         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
15028         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
15029         * lib/unictype/pr_bidi_block_separator.h: Likewise.
15030         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
15031         * lib/unictype/pr_bidi_common_separator.h: Likewise.
15032         * lib/unictype/pr_bidi_control.h: Likewise.
15033         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
15034         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
15035         * lib/unictype/pr_bidi_pdf.h: Likewise.
15036         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
15037         * lib/unictype/pr_bidi_whitespace.h: Likewise.
15038         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
15039         * lib/unictype/pr_format_control.h: Likewise.
15040         * lib/unictype/pr_hex_digit.h: Likewise.
15041         * lib/unictype/pr_hyphen.h: Likewise.
15042         * lib/unictype/pr_ids_binary_operator.h: Likewise.
15043         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
15044         * lib/unictype/pr_iso_control.h: Likewise.
15045         * lib/unictype/pr_join_control.h: Likewise.
15046         * lib/unictype/pr_left_of_pair.h: Likewise.
15047         * lib/unictype/pr_line_separator.h: Likewise.
15048         * lib/unictype/pr_math.h: Likewise.
15049         * lib/unictype/pr_non_break.h: Likewise.
15050         * lib/unictype/pr_not_a_character.h: Likewise.
15051         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
15052         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
15053         * lib/unictype/pr_other_id_continue.h: Likewise.
15054         * lib/unictype/pr_other_id_start.h: Likewise.
15055         * lib/unictype/pr_other_lowercase.h: Likewise.
15056         * lib/unictype/pr_other_math.h: Likewise.
15057         * lib/unictype/pr_other_uppercase.h: Likewise.
15058         * lib/unictype/pr_paired_punctuation.h: Likewise.
15059         * lib/unictype/pr_paragraph_separator.h: Likewise.
15060         * lib/unictype/pr_pattern_syntax.h: Likewise.
15061         * lib/unictype/pr_pattern_white_space.h: Likewise.
15062         * lib/unictype/pr_private_use.h: Likewise.
15063         * lib/unictype/pr_quotation_mark.h: Likewise.
15064         * lib/unictype/pr_radical.h: Likewise.
15065         * lib/unictype/pr_soft_dotted.h: Likewise.
15066         * lib/unictype/pr_space.h: Likewise.
15067         * lib/unictype/pr_titlecase.h: Likewise.
15068         * lib/unictype/pr_variation_selector.h: Likewise.
15069         * lib/unictype/pr_white_space.h: Likewise.
15070         * lib/unictype/sy_c_ident.h: Likewise.
15071         * lib/unictype/sy_c_whitespace.h: Likewise.
15072         * lib/unictype/sy_java_whitespace.h: Likewise.
15073         * modules/uni*/*: Bump version number of expected libunistring version.
15074         Reported by Simon Josefsson.
15075
15076 2011-01-09  Karl Heuer  <kwzh@gnu.org>
15077
15078         useless-if-before-free: fix typo in --help and make the internal,
15079         automatic version date update process work once again.
15080         --help output contained a NUL character instead of the
15081         backslash-zero that was intended.  Also, the "must lie within
15082         the first 8 lines" line is on line 9, and hence not getting
15083         automatically updated.
15084         * build-aux/useless-if-before-free: Fix the former by adding a
15085         backslash, and the latter by condensing the three lines of what-it-does
15086         to a single line, leaving one line of slack for the future.
15087
15088 2011-01-09  Bruno Haible  <bruno@clisp.org>
15089
15090         uniwidth/width: Fix width of U+1D173..U+1D17A.
15091         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
15092         symbolic_width, output_width_property_test): New functions.
15093         (main): Invoke output_nonspacing_property, output_width_property_test.
15094         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
15095         U+1D173..U+1D17A.
15096         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
15097         1.
15098         * modules/uniwidth/*: Bump version number of expected libunistring
15099         version.
15100         * modules/unilbrk/*: Likewise.
15101
15102 2011-01-08  Bruno Haible  <bruno@clisp.org>
15103
15104         uninorm tests: Preserve copyright of Unicode data file.
15105         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
15106         Mention modifications.
15107
15108 2011-01-08  Bruno Haible  <bruno@clisp.org>
15109
15110         gen-uni-tables: Prepare for Unicode 5.2.0.
15111         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
15112         (debug_output_lbp, output_lbp): Update.
15113
15114 2011-01-08  Bruno Haible  <bruno@clisp.org>
15115
15116         unilbrk: Clarify gen-uni-tables.c code.
15117         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
15118         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
15119         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
15120
15121 2011-01-07  Bruno Haible  <bruno@clisp.org>
15122
15123         strtod: Restore errno when successfully parsing Infinity or NaN.
15124         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
15125         restore the original errno.
15126
15127 2011-01-07  Bruno Haible  <bruno@clisp.org>
15128
15129         remove test: Avoid failure on HP-UX 11.
15130         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
15131
15132 2011-01-07  Bruno Haible  <bruno@clisp.org>
15133
15134         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
15135         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
15136         error code.
15137
15138 2011-01-07  Pádraig Brady <P@draigBrady.com>
15139
15140         ignore-value: fixup comments, and add Eric Blake
15141         as an author since he rewrote the macros.
15142         * lib/ignore-value.h (ignore_value):  State that
15143         we now support aggregates.  Also specify exactly
15144         when the GCC warn_unused_result feature was added.
15145
15146 2011-01-06  Eric Blake  <eblake@redhat.com>
15147
15148         ignore-value: support aggregate types
15149         * lib/ignore-value.h (ignore_value): Provide separate gcc
15150         definition.
15151         * modules/ignore-value-tests: New test module.
15152         * tests/test-ignore-value.c: New test.
15153
15154         maint.mk: improve sc_prohibit_strcmp regex
15155         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
15156         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
15157         definition of STRNEQ.
15158
15159         signal: work around Haiku issue with SIGBUS
15160         * lib/siglist.h: Add comment.
15161         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
15162         strsignal's favoring of SIGSEGV.
15163         * tests/test-signal.c (main): Avoid test failure.
15164         * doc/posix-headers/signal.texi (signal.h): Document the issue.
15165         Reported by Scott McCreary.
15166
15167         maint.mk: add pre-release check to ensure submodule commits are public
15168         * top/maint.mk (public-submodule-commit): New rule.
15169         (submodule-checks): New variable.
15170         (alpha beta stable): Depend on the variable.
15171
15172 2011-01-05  Pádraig Brady <P@draigBrady.com>
15173         and Jim Meyering  <meyering@redhat.com>
15174
15175         ignore-value: make ignore_value more generic; deprecate ignore_ptr
15176         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
15177         (ATTRIBUTE_DEPRECATED): Define.
15178         (_ignore_case): New function.
15179         (ignore_value): New macro, to replace the old function.
15180         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
15181         * modules/ignore-value (Depends-on): Add stdint.
15182
15183 2011-01-04  Eric Blake  <eblake@redhat.com>
15184
15185         doc: regenerate INSTALL
15186         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
15187         @firstparagraphindent support, now that autoconf dropped it.
15188         (INSTALL_PRELUDE): Reinstate old macro.
15189         * doc/install.texi: Resync from autoconf.
15190         * doc/INSTALL: Reflect recent autoconf update.
15191         * doc/INSTALL.ISO: Likewise.
15192         * doc/INSTALL.UTF-8: Likewise.
15193         Reported by Karl Berry.
15194
15195 2011-01-04  Bruce Korb  <address@hidden>
15196
15197         git-version-gen: avoid a sub-shell
15198         * build-aux/git-version-gen: Redirect stderr in `...` via
15199         "exec 2>...", rather than via an added sub-shell.
15200
15201 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
15202
15203         git-version-gen: use (...) rather than sh -c '...'
15204         * build-aux/git-version-gen: Rather than hard-coding a shell's name
15205         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
15206
15207 2011-01-03  Jim Meyering  <meyering@redhat.com>
15208
15209         git-version-gen: convert leading TABs to spaces
15210         * build-aux/git-version-gen: Expand leading TABs.
15211
15212         git-version-gen: handle failed "git rev-list"
15213         * build-aux/git-version-gen: Rather than leaking a "fatal" error
15214         from git and proceeding as if it had succeeded but printed no SHA1
15215         checksums, suppress the diagnostic and handle the failure.
15216         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
15217
15218         git-version-gen: include command name in one more diagnostic
15219         * build-aux/git-version-gen: When the required .tarball-version file
15220         was missing or unreadable, you might see the diagnostic from "cat",
15221         but no trace of the name of the invoking script.  Now, you still see
15222         the diagnostic from cat, but also get one from "git-version-gen: ".
15223         Inspired by a patch from Bruce Korb.
15224
15225         update-copyright: adjust test to match changed code
15226         * tests/test-update-copyright.sh: Change test's expected output
15227         to match new actual output.
15228
15229 2011-01-02  Bruno Haible  <bruno@clisp.org>
15230
15231         getlogin_r: Avoid test failure on HP-UX 11.
15232         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
15233         ERANGE when the second argument is zero.
15234         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
15235         portability problem.
15236
15237 2011-01-02  Bruce Korb  <bkorb@gnu.org>
15238
15239         * build-aux/update-copyright: doc Simon's changes
15240
15241 2011-01-02  Simon Josefsson  <simon@josefsson.org>
15242
15243         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
15244         environment variable.
15245
15246 2011-01-02  Bruno Haible  <bruno@clisp.org>
15247
15248         unigbrk: Avoid gcc warnings.
15249         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
15250         unused variable.
15251         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
15252         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
15253         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
15254         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
15255         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
15256         Change type of first argument to 'const char *'.
15257         (main): Remove unused variable.
15258         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
15259         type of first argument to 'const char *'.
15260         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
15261         Likewise.
15262         (main): Change type of variable 's'.
15263         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
15264         to 'int'.
15265
15266 2011-01-02  Bruno Haible  <bruno@clisp.org>
15267
15268         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
15269         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
15270         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
15271         bug.
15272         * lib/pwrite.c: Undo 2010-12-31 patch.
15273         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
15274
15275 2011-01-02  Bruno Haible  <bruno@clisp.org>
15276
15277         pread: Fix test whether it works.
15278         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
15279
15280 2011-01-02  Bruno Haible  <bruno@clisp.org>
15281
15282         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
15283         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
15284         ends in "6". Don't require a specific month name. Try also the locale
15285         names found on HP-UX 11 and Solaris 7.
15286
15287 2011-01-02  Bruno Haible  <bruno@clisp.org>
15288
15289         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
15290         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
15291         C linkage.
15292         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
15293
15294 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
15295
15296         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
15297         for consistency, since the "cluster" term is not used elsewhere.
15298         * lib/unigbrk.in.h: Update name.
15299         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
15300         * lib/unigbrk/u16-grapheme-next.c: Update name.
15301         * lib/unigbrk/u16-grapheme-prev.c: Update name.
15302         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
15303         * lib/unigbrk/u32-grapheme-next.c: Update name.
15304         * lib/unigbrk/u32-grapheme-prev.c: Update name.
15305         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
15306         * lib/unigbrk/u8-grapheme-next.c: Update name.
15307         * lib/unigbrk/u8-grapheme-prev.c: Update name.
15308         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
15309         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
15310         Suggested by Bruno Haible.
15311
15312 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
15313
15314         Remove module 'u8-grapheme-len' as too redundant with
15315         'u8-grapheme-next'.
15316         * modules/unigbrk/u8-grapheme-len: Delete file.
15317         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
15318         * lib/unigbrk.in.h: Remove prototype for deleted function.
15319         * lib/unigbrk/u8-grapheme-len.c: Delete file.
15320         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
15321
15322         Remove module 'u16-grapheme-len' as too redundant with
15323         'u16-grapheme-next'.
15324         * modules/unigbrk/u16-grapheme-len: Delete file.
15325         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
15326         * lib/unigbrk.in.h: Remove prototype for deleted function.
15327         * lib/unigbrk/u16-grapheme-len.c: Delete file.
15328         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
15329
15330         Remove module 'u32-grapheme-len' as too redundant with
15331         'u32-grapheme-next'.
15332         * modules/unigbrk/u32-grapheme-len: Delete file.
15333         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
15334         * lib/unigbrk.in.h: Remove prototype for deleted function.
15335         * lib/unigbrk/u32-grapheme-len.c: Delete file.
15336         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
15337
15338         Suggested by Bruno Haible.
15339
15340 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
15341
15342         * unigbrk.in.h: Fix typo: "ben" => "been".
15343         Reported by Bruno Haible.
15344
15345 2011-01-01  Jim Meyering  <meyering@redhat.com>
15346
15347         maint: update almost all copyright ranges to include 2011
15348         Run the new "make update-copyright" rule.
15349
15350 2011-01-01  Jim Meyering  <meyering@redhat.com>
15351
15352         maint: update-copyright: exempt doc/INSTALL*
15353         * Makefile (update-copyright): Also exclude doc/INSTALL*,
15354         since they are generated.  Suggested by Bruno Haible.
15355
15356 2011-01-01  Jim Meyering  <meyering@redhat.com>
15357
15358         maint: refine the update-copyright rule
15359         * Makefile (update-copyright): Also exclude any file that includes
15360         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
15361         code that merely generates the comment.
15362
15363 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
15364
15365         New module 'u8-grapheme-len'.
15366         * modules/unigbrk/u8-grapheme-len: New file.
15367         * modules/unigbrk/u8-grapheme-len-tests: New file.
15368         * lib/unigbrk.in.h: Add prototype for new function.
15369         * lib/unigbrk/u8-grapheme-len.c: New file.
15370         * tests/unigbrk/test-u8-grapheme-len.c: New file.
15371
15372         New module 'u16-grapheme-len'.
15373         * modules/unigbrk/u16-grapheme-len: New file.
15374         * modules/unigbrk/u16-grapheme-len-tests: New file.
15375         * lib/unigbrk.in.h: Add prototype for new function.
15376         * lib/unigbrk/u16-grapheme-len.c: New file.
15377         * tests/unigbrk/test-u16-grapheme-len.c: New file.
15378
15379         New module 'u32-grapheme-len'.
15380         * modules/unigbrk/u32-grapheme-len: New file.
15381         * modules/unigbrk/u32-grapheme-len-tests: New file.
15382         * lib/unigbrk.in.h: Add prototype for new function.
15383         * lib/unigbrk/u32-grapheme-len.c: New file.
15384         * tests/unigbrk/test-u32-grapheme-len.c: New file.
15385
15386         New module 'u8-grapheme-next'.
15387         * modules/unigbrk/u8-grapheme-next: New file.
15388         * modules/unigbrk/u8-grapheme-next-tests: New file.
15389         * lib/unigbrk.in.h: Add prototype for new function.
15390         * lib/unigbrk/u8-grapheme-next.c: New file.
15391         * tests/unigbrk/test-u8-grapheme-next.c: New file.
15392
15393         New module 'u16-grapheme-next'.
15394         * modules/unigbrk/u16-grapheme-next: New file.
15395         * modules/unigbrk/u16-grapheme-next-tests: New file.
15396         * lib/unigbrk.in.h: Add prototype for new function.
15397         * lib/unigbrk/u16-grapheme-next.c: New file.
15398         * tests/unigbrk/test-u16-grapheme-next.c: New file.
15399
15400         New module 'u32-grapheme-next'.
15401         * modules/unigbrk/u32-grapheme-next: New file.
15402         * modules/unigbrk/u32-grapheme-next-tests: New file.
15403         * lib/unigbrk.in.h: Add prototype for new function.
15404         * lib/unigbrk/u32-grapheme-next.c: New file.
15405         * tests/unigbrk/test-u32-grapheme-next.c: New file.
15406
15407         New module 'u8-grapheme-prev'.
15408         * modules/unigbrk/u8-grapheme-prev: New file.
15409         * modules/unigbrk/u8-grapheme-prev-tests: New file.
15410         * lib/unigbrk.in.h: Add prototype for new function.
15411         * lib/unigbrk/u8-grapheme-prev.c: New file.
15412         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
15413
15414         New module 'u16-grapheme-prev'.
15415         * modules/unigbrk/u16-grapheme-prev: New file.
15416         * modules/unigbrk/u16-grapheme-prev-tests: New file.
15417         * lib/unigbrk.in.h: Add prototype for new function.
15418         * lib/unigbrk/u16-grapheme-prev.c: New file.
15419         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
15420
15421         New module 'u32-grapheme-prev'.
15422         * modules/unigbrk/u32-grapheme-prev: New file.
15423         * modules/unigbrk/u32-grapheme-prev-tests: New file.
15424         * lib/unigbrk.in.h: Add prototype for new function.
15425         * lib/unigbrk/u32-grapheme-prev.c: New file.
15426         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
15427
15428         New module 'u8-grapheme-breaks'.
15429         * modules/unigbrk/u8-grapheme-breaks: New file.
15430         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
15431         * lib/unigbrk.in.h: Add prototype for new function.
15432         * lib/unigbrk/u8-grapheme-breaks.c: New file.
15433         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
15434
15435         New module 'u16-grapheme-breaks'.
15436         * modules/unigbrk/u16-grapheme-breaks: New file.
15437         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
15438         * lib/unigbrk.in.h: Add prototype for new function.
15439         * lib/unigbrk/u16-grapheme-breaks.c: New file.
15440         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
15441
15442         New module 'u32-grapheme-breaks'.
15443         * modules/unigbrk/u32-grapheme-breaks: New file.
15444         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
15445         * lib/unigbrk.in.h: Add prototype for new function.
15446         * lib/unigbrk/u32-grapheme-breaks.c: New file.
15447         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
15448
15449         New module 'ulc-grapheme-breaks'.
15450         * modules/unigbrk/ulc-grapheme-breaks: New file.
15451         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
15452         * m4/locale-ar.m4: New file.
15453         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
15454         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
15455         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
15456
15457 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
15458
15459         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
15460         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
15461         modified how this file was generated before I initially submitted
15462         the module, but failed to regenerate it.  This meant that several
15463         of the level2 entries were wrong.
15464         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
15465         Remove the division-by-2 that is folded into the table now that
15466         gbrkprop.h has been regenerated properly.  Now -1 entries are
15467         handled correctly.
15468
15469         New module 'unigbrk/uc-gbrk-prop-tests'.
15470         * modules/unigbrk/uc-gbrk-prop-tests: New file.
15471         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
15472         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
15473         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
15474
15475 2011-01-01  Bruno Haible  <bruno@clisp.org>
15476
15477         Avoid use of hexadecimal escapes.
15478         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
15479         instead of hexadecimal escapes.
15480
15481 2011-01-01  Jim Meyering  <meyering@redhat.com>
15482
15483         maint: new rule to update copyright year ranges
15484         * Makefile (update-copyright): New rule.
15485
15486         maint: indent with TABs in Makefile
15487         * Makefile: Expand leading sequences of spaces to TABs
15488
15489         version-etc: update the copyright year it reports
15490         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
15491
15492 2010-12-31  Bruno Haible  <bruno@clisp.org>
15493
15494         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
15495         * lib/isfinite.c (zerof, zerod, zerol): New variables.
15496         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
15497         zero.
15498
15499 2010-12-31  Bruno Haible  <bruno@clisp.org>
15500
15501         pwrite: Work around HP-UX 11.11 bug.
15502         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
15503         works and set REPLACE_PWRITE if not.
15504         * lib/pwrite.c (pwrite): Add an implementation that uses the system
15505         function.
15506         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
15507
15508 2010-12-31  Bruno Haible  <bruno@clisp.org>
15509
15510         pread: Work around HP-UX 11 bugs.
15511         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
15512         and set REPLACE_PREAD if not.
15513         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
15514
15515 2010-12-31  Eric Blake  <eblake@redhat.com>
15516
15517         nl_langinfo: fix YESEXPR on Irix 6.5
15518         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
15519         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
15520         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
15521         it.
15522
15523 2010-12-31  Bruno Haible  <bruno@clisp.org>
15524
15525         iconv: Document HP-UX 11 bug.
15526         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
15527
15528 2010-12-31  Bruno Haible  <bruno@clisp.org>
15529
15530         ldexpl: Fix link error on HP-UX 11.
15531         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
15532         LDEXPL_LIBM, using $ISNANL_LIBM.
15533
15534 2010-12-31  Eric Blake  <eblake@redhat.com>
15535
15536         ftello: avoid compilation failure with SunStudio c89
15537         * lib/ftello.c (ftello): Use lseek, not llseek.
15538
15539         tests: avoid failing coreutils tests on cygwin
15540         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
15541         (create_exe_shims_): Return 0 when skipping.
15542
15543 2010-12-31  Bruno Haible  <bruno@clisp.org>
15544
15545         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
15546         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
15547
15548 2010-12-31  Bruno Haible  <bruno@clisp.org>
15549
15550         waitpid: Fix link error in C++ mode.
15551         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
15552
15553 2010-12-31  Bruno Haible  <bruno@clisp.org>
15554
15555         isnan: Use GCC built-ins when possible.
15556         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
15557         __builtin_isnan.
15558         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
15559         (isnan): Define using GCC built-ins for GCC >= 4.0.
15560
15561 2010-12-31  Bruno Haible  <bruno@clisp.org>
15562
15563         isnand: Fix mistake.
15564         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
15565         __builtin_isnand.
15566
15567 2010-12-31  Bruno Haible  <bruno@clisp.org>
15568
15569         open: Avoid C++ error on HP-UX 11.
15570         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
15571
15572 2010-12-31  Bruno Haible  <bruno@clisp.org>
15573
15574         time_r: Add missing declarations on HP-UX 11.
15575         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
15576         instead of HAVE_LOCALTIME_R.
15577         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
15578         HAVE_LOCALTIME_R always.
15579         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
15580         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
15581         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
15582         HAVE_LOCALTIME_R.
15583         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
15584         * doc/posix-functions/localtime_r.texi: Likewise.
15585
15586 2010-12-29  Eric Blake  <eblake@redhat.com>
15587
15588         mountlist: tweak previous commit
15589         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
15590         Reported by Paul Eggert.
15591
15592         mountlist: fix local drive detection on cygwin
15593         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
15594         that works for cygwin.
15595
15596 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
15597
15598         ftoastr, snprintf: ftoastr + snprintf module
15599         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
15600         since the snprintf module now should be good enough here.
15601         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
15602         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
15603         and gl_MODULE_INDICATOR([snprintf]), but the former enables
15604         GNULIB_SNPRINTF only for the test directory, and the latter
15605         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
15606         seems to suffice by itself.
15607
15608 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
15609
15610         alloca: one step towards thread-safety
15611         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
15612         need for a static variable.  All callers changed.  This does not
15613         make the alloca replacement thread-safe, but it's one step.
15614
15615         tests: minor indenting change
15616         * tests/init.sh: Sync from coreutils housekeeping patch
15617         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
15618         to keep lines within 80 columns.
15619
15620 2010-12-28  Jim Meyering  <meyering@redhat.com>
15621
15622         regex: don't infloop on persistent failing calloc
15623         * lib/regexec.c (build_trtable): Return failure indication upon
15624         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
15625         In glibc, this was fixed for version 2.13:
15626         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
15627
15628 2010-12-28  Bruno Haible  <bruno@clisp.org>
15629             Paul Eggert <eggert@cs.ucla.edu>
15630
15631         linkat: Make implementation robust against system behaviour variations.
15632         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
15633         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
15634         way, and to -2 if it needs a generic runtime test.
15635         * lib/linkat.c (solaris_optimized_link_immediate,
15636         solaris_optimized_link_follow): New functions.
15637         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
15638         (check_same_link): Use it.
15639
15640 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
15641
15642         New module 'unigbrk/base'.
15643         * modules/unigbrk/base: New file.
15644         * lib/unigbrk.in.h: New file.
15645
15646         New module 'unigbrk/uc-gbrk-prop'.
15647         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
15648         * modules/unigbrk/uc-gbrk-prop: New file.
15649         * lib/unigbrk/gbrkprop.h: New file.
15650         * lib/unigbrk/uc-gbrk-prop.c: New file.
15651
15652         New module 'unigbrk/uc-is-grapheme-break'.
15653         * modules/unigbrk/uc-is-grapheme-break: New file.
15654         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
15655         * lib/unigbrk/uc-is-grapheme-break.c: New file.
15656         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
15657         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
15658         * tests/unigbrk/GraphemeBreakTest.txt: New file.
15659
15660         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
15661
15662 2010-12-27  Bruno Haible  <bruno@clisp.org>
15663
15664         linkat test: Avoid failure on Solaris 11 2010-11.
15665         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
15666
15667 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
15668
15669         utimens: work around glibc rounding bug on more platforms
15670         * lib/utimens.c (fdutimens): Work around rounding bug even if
15671         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
15672         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
15673
15674 2010-12-27  Bruno Haible  <bruno@clisp.org>
15675
15676         select tests: Improve comments.
15677         * tests/test-select.c (do_select): Add comments.
15678
15679 2010-12-27  Bruno Haible  <bruno@clisp.org>
15680
15681         select tests: Safer way of handling timeout.
15682         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
15683         at every invocation.
15684
15685 2010-12-27  Bruno Haible  <bruno@clisp.org>
15686
15687         select tests: Use 'bool' where appropriate.
15688         * tests/test-select.c (connect_to_socket): Change argument type to
15689         'bool'.
15690
15691 2010-12-27  Bruno Haible  <bruno@clisp.org>
15692
15693         select tests: Use existing modules.
15694         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
15695         (configure.ac): Don't test for unistd.h.
15696         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
15697         declared in <unistd.h>.
15698
15699 2010-12-27  Bruno Haible  <bruno@clisp.org>
15700
15701         mbrtowc: Work around a Solaris 7 bug.
15702         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
15703         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
15704         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
15705         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
15706         MBRTOWC_NULL_ARG1_BUG.
15707         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
15708         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
15709         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
15710         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
15711
15712 2010-12-27  Jim Meyering  <meyering@redhat.com>
15713
15714         read-file.c: tweak syntax
15715         * lib/read-file.c (fread_file): Remove space after "*" in function
15716         definitions.
15717
15718 2010-12-27  Bruno Haible  <bruno@clisp.org>
15719
15720         times test: Avoid gcc warnings on OSF/1.
15721         * tests/test-times.c (main): Cast printf arguments from clock_t to
15722         'long int'.
15723
15724 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
15725
15726         utimens: work around glibc rounding bug on older Linux kernels
15727         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
15728         on Linux with a glibc whose utimes might not work, then work
15729         around a longstanding glibc bug involving rounding rather than
15730         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
15731         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
15732
15733 2010-12-26  Bruno Haible  <bruno@clisp.org>
15734
15735         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
15736         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
15737         _GL_CXXALIAS_SYS.
15738         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
15739
15740 2010-12-26  Bruno Haible  <bruno@clisp.org>
15741
15742         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
15743         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
15744         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
15745         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
15746         looking for the declaration.
15747         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
15748         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
15749         problem.
15750         * doc/posix-functions/inet_pton.texi: Likewise.
15751
15752 2010-12-26  Bruno Haible  <bruno@clisp.org>
15753
15754         arpa_inet: Use the common idioms with C++ support.
15755         * lib/arpa_inet.in.h: Include c++defs.h.
15756         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
15757         support.
15758         * modules/arpa_inet (Depends-on): Add c++defs.
15759         (Makefile.am): Substitute the contents of c++defs.h.
15760         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
15761         * modules/arpa_inet-c++-tests: New file.
15762         * tests/test-arpa_inet-c++.cc: New file.
15763
15764 2010-12-25  Bruno Haible  <bruno@clisp.org>
15765
15766         Fix more C++ link errors on Solaris 8.
15767         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
15768         $(LIB_EACCESS).
15769         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
15770         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
15771         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
15772         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
15773         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
15774
15775 2010-12-25  Bruno Haible  <bruno@clisp.org>
15776
15777         printf-posix: Fix link error when a non-GCC compiler is used.
15778         * lib/stdio.in.h (printf): When not using GCC, override printf
15779         correctly.
15780         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
15781
15782 2010-12-25  Bruno Haible  <bruno@clisp.org>
15783
15784         strerror_r-posix: Update doc.
15785         * doc/posix-functions/strerror_r.texi: Update doc about the return
15786         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
15787
15788 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
15789
15790         utimens: simplify the logic of the previous change
15791         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
15792         This should not affect whether the test succeeds or fails.
15793
15794         utimens: configure better on hosts with NFS clock skew
15795         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
15796         uses the clock of the local host.  It might use the clock of the
15797         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
15798         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
15799
15800 2010-12-25  Bruno Haible  <bruno@clisp.org>
15801
15802         ptsname test: Avoid failure on Solaris.
15803         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
15804         open a pseudo-terminal; don't use BSD-style ptys.
15805         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
15806
15807 2010-12-25  Bruno Haible  <bruno@clisp.org>
15808
15809         ptsname: Avoid ERANGE failure on some systems.
15810         * lib/ptsname.c (buffer): Increase size.
15811
15812 2010-12-25  Bruno Haible  <bruno@clisp.org>
15813
15814         rename, renameat: Avoid test failures at NFS mounted locations.
15815         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
15816         so that subsequent mkdir calls succeed.
15817
15818 2010-12-25  Bruno Haible  <bruno@clisp.org>
15819
15820         iswblank: Fix C++ link error on Solaris 8.
15821         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
15822         _GL_FUNCDECL_SYS.
15823
15824 2010-12-25  Bruno Haible  <bruno@clisp.org>
15825
15826         unistd: Fix C++ link error on Solaris 8.
15827         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
15828
15829 2010-12-25  Bruno Haible  <bruno@clisp.org>
15830
15831         readlink doc: Mention an old glibc bug.
15832         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
15833
15834 2010-12-25  Bruno Haible  <bruno@clisp.org>
15835
15836         fcntl-h: Fix for use of C++ on glibc systems.
15837         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
15838         also on glibc systems in C++ mode.
15839         Reported by Gary V. Vaughan <gary@gnu.org>.
15840
15841 2010-12-25  Bruno Haible  <bruno@clisp.org>
15842
15843         roundl-ieee: Make it work on OSF/1 5.1 with cc.
15844         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
15845
15846 2010-12-25  Bruno Haible  <bruno@clisp.org>
15847
15848         truncl-ieee: Make it work on OSF/1 5.1 with cc.
15849         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
15850         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
15851         test whether truncl works according to ISO C 99 with IEC 60559.
15852         * m4/truncl-ieee.m4: New file.
15853         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
15854         m4/signbit.m4.
15855         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
15856
15857 2010-12-25  Bruno Haible  <bruno@clisp.org>
15858
15859         ceill-ieee: Make it work on OSF/1 5.1 with cc.
15860         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
15861         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
15862         test whether ceill works according to ISO C 99 with IEC 60559.
15863         * m4/ceill-ieee.m4: New file.
15864         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
15865         m4/signbit.m4.
15866         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
15867
15868 2010-12-25  Bruno Haible  <bruno@clisp.org>
15869
15870         Ensure all prerequisites of <wchar.h> are included.
15871         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
15872         before <wchar.h>.
15873         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
15874         gl_MBRLEN_NUL_RETVAL): Likewise.
15875         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
15876         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
15877         AC_FUNC_MBRTOWC): Likewise.
15878         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
15879         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
15880         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
15881         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
15882         Likewise.
15883         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
15884         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
15885         (gl_WCHAR_H): Improve comments.
15886         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
15887
15888 2010-12-25  Bruno Haible  <bruno@clisp.org>
15889
15890         strtok_r: Fix C syntax error in autoconf macro.
15891         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
15892         characters in test program.
15893
15894 2010-12-24  Bruno Haible  <bruno@clisp.org>
15895
15896         ceil, trunc, round: Fix gcc warnings.
15897         * lib/ceil.c (MIN): Undefine before redefining.
15898         * lib/trunc.c (MIN): Likewise.
15899         * lib/round.c (MIN): Likewise.
15900         Include <math.h> first.
15901
15902 2010-12-24  Bruno Haible  <bruno@clisp.org>
15903
15904         select tests: Avoid failures on OSF/1 5.1.
15905         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
15906         failure of closing the last socket; it may fail with ECONNRESET.
15907
15908 2010-12-24  Eric Blake  <eblake@redhat.com>
15909
15910         stdint: avoid HP-UX 10.20 preprocessor bug
15911         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
15912         than #if.
15913         * tests/test-floor2.c (main): Likewise.
15914         Reported by Peter O'Gorman.
15915
15916         pipe: make obsoletion transition easier
15917         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
15918         * modules/pipe (Files): Include revived file.
15919         (Include): Drop reference, to mirror getdate's behavior.
15920
15921 2010-12-24  Bruno Haible  <bruno@clisp.org>
15922
15923         sys_socket: Hide mismatch of declarations on NonStop Kernel.
15924         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
15925         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
15926         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
15927
15928 2010-12-24  Bruno Haible  <bruno@clisp.org>
15929
15930         gethostname: Ensure declaration on NonStop Kernel.
15931         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
15932         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
15933
15934 2010-12-24  Bruno Haible  <bruno@clisp.org>
15935
15936         sys_select: Ensure all necessary types on NonStop Kernel.
15937         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
15938         include <sys/time.h>.
15939         * doc/posix-headers/sys_select.texi: Mention that it's missing on
15940         NonStop Kernel.
15941         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
15942
15943 2010-12-24  Bruno Haible  <bruno@clisp.org>
15944
15945         sys_select: Remove unneeded include.
15946         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
15947         have <sys/select.h>.
15948
15949 2010-12-24  Bruno Haible  <bruno@clisp.org>
15950
15951         gethostname: Provide a fallback for HOST_NAME_MAX.
15952         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
15953         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
15954         instead.
15955         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
15956
15957 2010-12-24  Bruno Haible  <bruno@clisp.org>
15958
15959         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
15960         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
15961         (SA_RESTART): Likewise.
15962         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
15963
15964 2010-12-24  Bruno Haible  <bruno@clisp.org>
15965
15966         signal: Define NSIG.
15967         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
15968         * tests/test-signal.c (nsig): New variable.
15969         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
15970
15971 2010-12-24  Bruno Haible  <bruno@clisp.org>
15972
15973         rename, renameat: Avoid test failures on OSF/1 5.1.
15974         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
15975         alternative error codes.
15976         * tests/test-renameat.c (main): Likewise.
15977
15978 2010-12-24  Bruno Haible  <bruno@clisp.org>
15979
15980         *printf: Detect large precisions bug on Solaris 10/SPARC.
15981         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
15982         by Paul Eggert.
15983         * tests/test-snprintf-posix.h (test_function): Add this test code here
15984         too.
15985         * tests/test-sprintf-posix.h (test_function): Likewise.
15986         * tests/test-vasnprintf-posix.c (test_function): Likewise.
15987         * tests/test-vasprintf-posix.c (test_function): Likewise.
15988         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
15989         around by gnulib.
15990         * doc/posix-functions/printf.texi: Likewise.
15991         * doc/posix-functions/snprintf.texi: Likewise.
15992         * doc/posix-functions/sprintf.texi: Likewise.
15993         * doc/posix-functions/vfprintf.texi: Likewise.
15994         * doc/posix-functions/vprintf.texi: Likewise.
15995         * doc/posix-functions/vsnprintf.texi: Likewise.
15996         * doc/posix-functions/vsprintf.texi: Likewise.
15997         * doc/posix-functions/dprintf.texi: Undo last commit.
15998         * doc/posix-functions/vdprintf.texi: Likewise.
15999
16000 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
16001
16002         tests: port test-fdutimensat.c to Solaris 8
16003         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
16004         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
16005         On Solaris 8, it fails with errno == ENOSYS, because there is no
16006         futimens (so it can't use the fd), and there is no lutimens (so it
16007         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
16008
16009         vsnprintf: make more consistent with snprintf; doc fixes
16010
16011         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
16012         the byte count return problem was promoted from the snprintf-posix
16013         to the snprintf module.
16014         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
16015         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
16016         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
16017         * tests/test-snprintf.c (main): Check the byte count returned.
16018         * tests/test-vsnprintf.c (main): Likewise.
16019
16020 2010-12-23  Eric Blake  <eblake@redhat.com>
16021
16022         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
16023         * modules/sigpipe (License): Relax license.
16024
16025 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
16026
16027         doc: document Solaris printf bug with large float precisions
16028         * doc/posix-functions/dprintf.texi (dprintf):
16029         * doc/posix-functions/fprintf.texi (fprintf):
16030         * doc/posix-functions/printf.texi (printf):
16031         * doc/posix-functions/snprintf.texi (snprintf):
16032         * doc/posix-functions/sprintf.texi (sprintf):
16033         * doc/posix-functions/vdprintf.texi (vdprintf):
16034         * doc/posix-functions/vfprintf.texi (vfprintf):
16035         * doc/posix-functions/vprintf.texi (vprintf):
16036         * doc/posix-functions/vsnprintf.texi (vsnprintf):
16037         * doc/posix-functions/vsprintf.texi (vsprintf):
16038         Mention that these functions mishandle large floating point
16039         precisions on Solaris 10.  The same bug is also present in Solaris
16040         8, and I assume earlier.  This causes "cd gnulib-tests; make
16041         check" to fail on Solaris 8 (and I assume, later) when building
16042         the latest coreutils, in test-vasprintf-posix's call to
16043         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
16044         the wide flavors (e.g., wprintf) so this patch just updates the
16045         documentation for the narrow ones.
16046
16047         test-posixtm.c: add two tests
16048         * tests/test-posixtm.c: Add two tests, to highlight the
16049         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
16050         around this bug; this is merely to document it.
16051
16052 2010-12-22  Bruno Haible  <bruno@clisp.org>
16053
16054         getlogin_r: Work around portability problem on OSF/1.
16055         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
16056         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
16057         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
16058         test for a truncated result.
16059         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
16060         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
16061         * modules/getlogin_r (Depends-on): Add memchr.
16062         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
16063
16064 2010-12-22  Bruno Haible  <bruno@clisp.org>
16065
16066         ptsname: Avoid test failure on OSF/1 5.1.
16067         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
16068         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
16069         (same_slave): New function.
16070         (main): Use it to compare ptsname's result with the expected file name.
16071
16072 2010-12-22  Bruno Haible  <bruno@clisp.org>
16073
16074         Port extended stdio modules to HP NonStop Kernel.
16075         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
16076         macros.
16077         * lib/fbufmode.c: Update comments.
16078         * lib/fflush.c: Likewise.
16079         * lib/fpurge.c: Likewise.
16080         * lib/freadable.c: Likewise.
16081         * lib/freadahead.c: Likewise.
16082         * lib/freading.c: Likewise.
16083         * lib/freadptr.c: Likewise.
16084         * lib/freadseek.c: Likewise.
16085         * lib/fseeko.c: Likewise.
16086         * lib/fseterr.c: Likewise.
16087         * lib/fwritable.c: Likewise.
16088         * lib/fwriting.c: Likewise.
16089         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16090
16091 2010-12-22  Bruno Haible  <bruno@clisp.org>
16092
16093         ttyname_r: Work around bug on OSF/1 5.1.
16094         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
16095         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
16096         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
16097         present.
16098         * lib/ttyname_r.c (ttyname_r): Update comments.
16099
16100 2010-12-22  Bruno Haible  <bruno@clisp.org>
16101
16102         round: Implement result sign according to IEEE 754.
16103         * lib/round.c (MIN, MINUS_ZERO): New macros.
16104         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
16105         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
16106         * tests/test-round-ieee.c (main): Likewise.
16107         * tests/test-roundl-ieee.c (main): Likewise.
16108
16109         trunc: Implement result sign according to IEEE 754.
16110         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
16111         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
16112         * tests/test-trunc2.c: Include minus-zero.h.
16113         (MINUS_ZERO): New macro.
16114         (trunc_reference): Keep in sync with lib/trunc.c.
16115         * tests/test-truncf2.c: Include minus-zero.h.
16116         (MINUS_ZERO): New macro.
16117         (truncf_reference): Keep in sync with lib/trunc.c.
16118         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
16119         * tests/test-trunc-ieee.c (main): Likewise.
16120         * tests/test-truncl-ieee.c (main): Likewise.
16121
16122         ceil: Implement result sign according to IEEE 754.
16123         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
16124         (FUNC): Return -0.0 for -1 < x < 0.
16125         * tests/test-ceil2.c: Include minus-zero.h.
16126         (MINUS_ZERO): New macro.
16127         (ceil_reference): Keep in sync with lib/ceil.c.
16128         * tests/test-ceilf2.c: Include minus-zero.h.
16129         (MINUS_ZERO): New macro.
16130         (ceilf_reference): Keep in sync with lib/ceil.c.
16131         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
16132         * tests/test-ceil-ieee.c (main): Likewise.
16133         * tests/test-ceill-ieee.c (main): Likewise.
16134
16135         floor: Implement result sign according to IEEE 754.
16136         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
16137         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
16138         * tests/test-floorf2.c (floorf_reference): Likewise.
16139         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
16140         * tests/test-floor-ieee.c (main): Likewise.
16141         * tests/test-floorl-ieee.c (main): Likewise.
16142
16143 2010-12-22  Bruno Haible  <bruno@clisp.org>
16144
16145         getaddrinfo: Update doc.
16146         * doc/posix-functions/gai_strerror.texi: Return type is also different
16147         on AIX and HP-UX.
16148
16149 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
16150
16151         getaddrinfo, inet_ntop: Update doc for Solaris.
16152         * doc/posix-functions/gai_strerror.texi: Return type is also an
16153         issue on Solaris 9 and earlier.
16154         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
16155         on Solaris 10 and earlier.
16156
16157 2010-12-21  Bruno Haible  <bruno@clisp.org>
16158
16159         New module 'roundl-ieee'.
16160         * modules/roundl-ieee: New file.
16161         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
16162         test whether roundl works according to ISO C 99 with IEC 60559.
16163         * m4/roundl-ieee.m4: New file.
16164         * modules/roundl-ieee-tests: New file.
16165         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
16166         * tests/test-roundl.c (main): Remove signbit tests.
16167         * modules/roundl-tests (Depends-on): Remove signbit.
16168         * doc/posix-functions/roundl.texi: Mention the new module.
16169
16170 2010-12-21  Bruno Haible  <bruno@clisp.org>
16171
16172         New module 'truncl-ieee'.
16173         * modules/truncl-ieee: New file.
16174         * modules/truncl-ieee-tests: New file.
16175         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
16176         * tests/test-truncl.c (main): Remove signbit tests.
16177         * modules/truncl-tests (Depends-on): Remove signbit.
16178         * doc/posix-functions/truncl.texi: Mention the new module.
16179
16180 2010-12-21  Bruno Haible  <bruno@clisp.org>
16181
16182         New module 'ceill-ieee'.
16183         * modules/ceill-ieee: New file.
16184         * modules/ceill-ieee-tests: New file.
16185         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
16186         * tests/test-ceill.c (main): Remove signbit tests.
16187         * modules/ceill-tests (Depends-on): Remove signbit.
16188         * doc/posix-functions/ceill.texi: Mention the new module.
16189
16190 2010-12-21  Bruno Haible  <bruno@clisp.org>
16191
16192         New module 'floorl-ieee'.
16193         * modules/floorl-ieee: New file.
16194         * modules/floorl-ieee-tests: New file.
16195         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
16196         * tests/test-floorl.c (main): Remove signbit tests.
16197         * modules/floorl-tests (Depends-on): Remove signbit.
16198         * doc/posix-functions/floorl.texi: Mention the new module.
16199
16200 2010-12-21  Bruno Haible  <bruno@clisp.org>
16201
16202         New module 'round-ieee'.
16203         * modules/round-ieee: New file.
16204         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
16205         whether round works according to ISO C 99 with IEC 60559.
16206         * m4/round-ieee.m4: New file.
16207         * modules/round-ieee-tests: New file.
16208         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
16209         * tests/test-round1.c (main): Remove signbit tests.
16210         * modules/round-tests (Depends-on): Remove 'signbit'.
16211         * doc/posix-functions/round.texi: Mention the new module.
16212
16213 2010-12-21  Bruno Haible  <bruno@clisp.org>
16214
16215         New module 'trunc-ieee'.
16216         * modules/trunc-ieee: New file.
16217         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
16218         whether trunc works according to ISO C 99 with IEC 60559.
16219         * m4/trunc-ieee.m4: New file.
16220         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
16221         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
16222         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
16223         * modules/trunc-ieee-tests: New file.
16224         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
16225         * tests/test-trunc1.c (main): Remove signbit tests.
16226         * modules/trunc-tests (Depends-on): Remove 'signbit'.
16227         * doc/posix-functions/trunc.texi: Mention the new module.
16228
16229 2010-12-21  Bruno Haible  <bruno@clisp.org>
16230
16231         New module 'ceil-ieee'.
16232         * modules/ceil-ieee: New file.
16233         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
16234         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
16235         ISO C 99 with IEC 60559.
16236         * m4/ceil-ieee.m4: New file.
16237         * modules/ceil (Files): Add lib/ceil.c.
16238         (Depends-on): Add 'float'.
16239         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
16240         * lib/math.in.h (ceil): New declaration.
16241         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
16242         REPLACE_CEIL.
16243         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
16244         * modules/ceil-ieee-tests: New file.
16245         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
16246         * tests/test-math-c++.cc: Check the signature of 'ceil'.
16247         * doc/posix-functions/ceil.texi: Mention the new module.
16248
16249 2010-12-21  Bruno Haible  <bruno@clisp.org>
16250
16251         New module 'floor-ieee'.
16252         * modules/floor-ieee: New file.
16253         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
16254         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
16255         ISO C 99 with IEC 60559.
16256         * m4/floor-ieee.m4: New file.
16257         * modules/floor (Files): Add lib/floor.c.
16258         (Depends-on): Add 'float'.
16259         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
16260         * lib/math.in.h (floor): New declaration.
16261         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
16262         REPLACE_FLOOR.
16263         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
16264         * modules/floor-ieee-tests: New file.
16265         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
16266         * tests/test-math-c++.cc: Check the signature of 'floor'.
16267         * doc/posix-functions/floor.texi: Mention the new module.
16268
16269 2010-12-21  Bruno Haible  <bruno@clisp.org>
16270
16271         New module 'roundf-ieee'.
16272         * modules/roundf-ieee: New file.
16273         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
16274         test whether roundf works according to ISO C 99 with IEC 60559.
16275         * m4/roundf-ieee.m4: New file.
16276         * modules/roundf-ieee-tests: New file.
16277         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
16278         * tests/test-roundf1.c (main): Remove signbit tests.
16279         * modules/roundf-tests (Depends-on): Remove 'signbit'.
16280         * doc/posix-functions/roundf.texi: Mention the new module.
16281
16282 2010-12-21  Bruno Haible  <bruno@clisp.org>
16283
16284         New module 'truncf-ieee'.
16285         * modules/truncf-ieee: New file.
16286         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
16287         test whether truncf works according to ISO C 99 with IEC 60559.
16288         * m4/truncf-ieee.m4: New file.
16289         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
16290         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
16291         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
16292         * modules/truncf-ieee-tests: New file.
16293         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
16294         * tests/test-truncf1.c (main): Remove signbit tests.
16295         * modules/truncf-tests (Depends-on): Remove 'signbit'.
16296         * doc/posix-functions/truncf.texi: Mention the new module.
16297
16298 2010-12-21  Bruno Haible  <bruno@clisp.org>
16299
16300         New module 'ceilf-ieee'.
16301         * modules/ceilf-ieee: New file.
16302         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
16303         test whether ceilf works according to ISO C 99 with IEC 60559.
16304         * m4/ceilf-ieee.m4: New file.
16305         * modules/ceilf-ieee-tests: New file.
16306         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
16307         * tests/test-ceilf1.c (main): Remove signbit tests.
16308         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
16309         * doc/posix-functions/ceilf.texi: Mention the new module.
16310
16311 2010-12-21  Bruno Haible  <bruno@clisp.org>
16312
16313         New module 'floorf-ieee'.
16314         * modules/floorf-ieee: New file.
16315         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
16316         test whether floorf works according to ISO C 99 with IEC 60559.
16317         * m4/floorf-ieee.m4: New file.
16318         * modules/floorf-ieee-tests: New file.
16319         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
16320         * tests/test-floorf1.c (main): Remove signbit tests.
16321         * modules/floorf-tests (Depends-on): Remove 'signbit'.
16322         * doc/posix-functions/floorf.texi: Mention the new module.
16323
16324 2010-12-21  Bruno Haible  <bruno@clisp.org>
16325
16326         Support for minus zero in autoconf macros.
16327         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
16328         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
16329         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
16330         * tests/minus-zero.h: Update comments.
16331
16332 2010-12-21  Bruno Haible  <bruno@clisp.org>
16333
16334         Tests for module 'ceil'.
16335         * modules/ceil-tests: New file.
16336         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
16337         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
16338
16339 2010-12-21  Bruno Haible  <bruno@clisp.org>
16340
16341         Tests for module 'floor'.
16342         * modules/floor-tests: New file.
16343         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
16344         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
16345
16346 2010-12-21  Bruno Haible  <bruno@clisp.org>
16347
16348         math: Fix indentation.
16349         * lib/math.in.h (floorf): Fix indentation.
16350
16351 2010-12-21  Bruno Haible  <bruno@clisp.org>
16352
16353         Fix cross-compilation guesses on Solaris.
16354         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
16355         not match "solaris2.10".
16356         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
16357         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
16358         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
16359
16360 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
16361
16362         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
16363         This fixes a problem observed with the latest coreutils snapshot
16364         that caused a test to fail on Solaris 8.  src/csplit.c's call
16365         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
16366         earlier, instead of returning the number of bytes that would have
16367         been generated; this causes csplit to incorrectly report memory
16368         exhaustion.
16369         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
16370         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
16371         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
16372         comments to match.
16373         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
16374         Fix typo in matching older versions of Solaris: "solaris2.10"
16375         is matched by the shell pattern "solaris2.[0-9]*".  This matters
16376         only for guessing while cross-compiling.
16377         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
16378
16379 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
16380
16381         ftoastr: fix comment again
16382         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
16383         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
16384         Also, simplify example a bit by using flags = 0.
16385
16386 2010-12-20  Bruno Haible  <bruno@clisp.org>
16387
16388         round*, trunc*: Update documentation regarding glibc.
16389         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
16390         * doc/posix-functions/round.texi: Likewise.
16391         * doc/posix-functions/roundl.texi: Likewise.
16392         * doc/posix-functions/truncf.texi: Likewise.
16393         * doc/posix-functions/trunc.texi: Likewise.
16394         * doc/posix-functions/truncl.texi: Likewise.
16395
16396 2010-12-20  Bruno Haible  <bruno@clisp.org>
16397
16398         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
16399         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
16400         * doc/posix-functions/round.texi: Likewise.
16401         * doc/posix-functions/roundl.texi: Likewise.
16402
16403 2010-12-20  Bruno Haible  <bruno@clisp.org>
16404
16405         ttyname_r: Add missing declaration on HP-UX 11.
16406         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
16407         HAVE_TTYNAME_R.
16408         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
16409         declared. Set HAVE_TTYNAME_R always.
16410         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
16411         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
16412         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
16413         HAVE_TTYNAME_R.
16414         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
16415
16416 2010-12-20  Bruno Haible  <bruno@clisp.org>
16417
16418         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
16419         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
16420         * doc/posix-functions/getlogin_r.texi: Likewise.
16421         * tests/test-getlogin.c: Include <errno.h>.
16422         (main): Avoid test failure on HP-UX 11.11.
16423         * tests/test-getlogin_r.c (main): Likewise.
16424
16425 2010-12-20  Bruno Haible  <bruno@clisp.org>
16426
16427         getlogin_r: Add missing declaration on HP-UX 11.
16428         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
16429         declared also when it exists as a function.
16430         * doc/posix-functions/getlogin_r.texi: Document this workaround.
16431
16432 2010-12-20  Bruno Haible  <bruno@clisp.org>
16433
16434         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
16435         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
16436         through wcrtomb.
16437
16438 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
16439
16440         ftoastr: fix comment
16441         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
16442         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
16443
16444 2010-12-19  Bruno Haible  <bruno@clisp.org>
16445
16446         isnan: Ensure it is a macro.
16447         * lib/math.in.h (isnan): Define as a macro if not already a macro.
16448         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
16449         Solaris.
16450
16451 2010-12-19  Bruno Haible  <bruno@clisp.org>
16452
16453         ldexpl test: Fix link error on OSF/1 5.1.
16454         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
16455
16456 2010-12-19  Bruno Haible  <bruno@clisp.org>
16457
16458         wctype: Make it work in C++ mode on OSF/1 5.1.
16459         * lib/wctype.in.h (iswblank): Declare but not define here.
16460         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
16461         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
16462         * modules/wctype (Files): Add lib/iswblank.c.
16463
16464 2010-12-19  Bruno Haible  <bruno@clisp.org>
16465
16466         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
16467         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
16468         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
16469
16470 2010-12-19  Bruno Haible  <bruno@clisp.org>
16471
16472         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
16473         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
16474         _POSIX_PII_SOCKET.
16475         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
16476         * doc/posix-functions/recvfrom.texi: Likewise.
16477         * doc/posix-functions/send.texi: Likewise.
16478         * doc/posix-functions/sendto.texi: Likewise.
16479
16480 2010-12-19  Bruno Haible  <bruno@clisp.org>
16481
16482         tcgetsid: Add missing declaration on OSF/1 5.1.
16483         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
16484         HAVE_TCGETSID.
16485         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
16486         Don't set HAVE_TCGETSID.
16487         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
16488         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
16489         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
16490         HAVE_TCGETSID.
16491         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
16492
16493 2010-12-19  Bruno Haible  <bruno@clisp.org>
16494
16495         stdio: Fix problem with popen() declaration on OSF/1 5.1.
16496         * lib/stdio.in.h: During the include_next statement, let recursive
16497         includes of this file include only the system header file.
16498
16499 2010-12-19  Bruno Haible  <bruno@clisp.org>
16500
16501         iconv_open: Fix regression from 2010-12-04.
16502         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
16503         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
16504
16505 2010-12-19  Bruno Haible  <bruno@clisp.org>
16506
16507         stdbool test: Avoid a gcc warning.
16508         * tests/test-stdbool.c (main): Fail if e1 is false.
16509         Reported by Jim Meyering.
16510
16511 2010-12-19  Jim Meyering  <meyering@redhat.com>
16512
16513         setenv: restore to working order
16514         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
16515         mistakenly removed.
16516         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
16517         HAVE_SETENV.
16518         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
16519         HAVE_SETENV.
16520
16521 2010-12-19  Bruno Haible  <bruno@clisp.org>
16522
16523         Document some different function declarations on OSF/1 5.1.
16524         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
16525         * doc/posix-functions/inet_ntop.texi: Likewise.
16526         * doc/posix-functions/gethostname.texi: Likewise.
16527         * lib/unistd.in.h (gethostname): Update comment.
16528
16529 2010-12-19  Bruno Haible  <bruno@clisp.org>
16530
16531         doc: Mention vasprintf-posix module.
16532         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
16533         the 'vasprintf-posix' module.
16534         * doc/glibc-functions/vasprintf.texi: Likewise.
16535
16536 2010-12-19  Bruno Haible  <bruno@clisp.org>
16537
16538         unsetenv: Add missing declaration on OSF/1 5.1.
16539         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
16540         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
16541         Don't set HAVE_UNSETENV. In the test program, set _BSD.
16542         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
16543         not HAVE_UNSETENV.
16544         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
16545         HAVE_UNSETENV.
16546         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
16547
16548 2010-12-19  Bruno Haible  <bruno@clisp.org>
16549
16550         setenv: Add missing declaration on OSF/1 5.1.
16551         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
16552         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
16553         declared. Don't set HAVE_SETENV.
16554         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
16555         not HAVE_SETENV.
16556         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
16557         HAVE_SETENV.
16558         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
16559
16560 2010-12-19  Bruno Haible  <bruno@clisp.org>
16561
16562         nl_langinfo tests: Avoid gcc warning.
16563         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
16564
16565 2010-12-19  Bruno Haible  <bruno@clisp.org>
16566
16567         mknod: Avoid error in C++ mode on OSF/1 with GCC.
16568         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
16569         _GL_CXXALIAS_SYS.
16570
16571 2010-12-19  Bruno Haible  <bruno@clisp.org>
16572
16573         stdbool: Relax test.
16574         * tests/test-stdbool.c (e): Don't require that casts from a variable's
16575         address to 'bool' work in static initializer, for compilers other than
16576         GCC.
16577
16578 2010-12-19  Bruno Haible  <bruno@clisp.org>
16579
16580         ftello: Add missing declaration on OSF/1 5.1.
16581         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
16582         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
16583         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
16584         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
16585         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
16586
16587 2010-12-19  Bruno Haible  <bruno@clisp.org>
16588
16589         fseeko: Add missing declaration on OSF/1 5.1.
16590         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
16591         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
16592         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
16593         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
16594         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
16595
16596 2010-12-19  Bruno Haible  <bruno@clisp.org>
16597
16598         fchdir: Add missing declaration on OSF/1 5.1.
16599         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
16600         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
16601         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
16602         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
16603         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
16604
16605 2010-12-19  Bruno Haible  <bruno@clisp.org>
16606
16607         relocatable-prog-wrapper: Separate from relocatable-prog.
16608         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
16609         uninstall-relocwrapper rule here.
16610         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
16611         Reported by Ian Beckwith <ianb@erislabs.net>.
16612
16613 2010-12-19  Bruno Haible  <bruno@clisp.org>
16614
16615         unistr/u8-mbsnlen: Add missing dependency.
16616         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
16617         Reported by Ian Beckwith <ianb@erislabs.net>.
16618
16619 2010-12-19  Bruno Haible  <bruno@clisp.org>
16620
16621         iconv: Make it possible again to use this module without 'iconv-h'.
16622         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
16623         if it is not defined.
16624         Reported by Ian Beckwith <ianb@erislabs.net>.
16625
16626 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
16627
16628         acl: port to Solaris 8 when copying from tmpfs to ufs
16629         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
16630         error number.  Problem observed on Solaris 8 with latest
16631         coreutils, with "mv A B", where A is on a tmpfs file system and B
16632         is on a ufs file system.  This caused coreutils' mv/part-symlink
16633         test to fail.
16634
16635         tests: set fail=0 at start
16636         * tests/init.sh (setup_): Move fail=0 initialization here ...
16637         (mktempd_): ... from here, so that tests can rely on fail being
16638         set to 0 initially.  This fixes a problem in coreutils; see:
16639         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
16640
16641 2010-12-18  Bruno Haible  <bruno@clisp.org>
16642
16643         memmem-simple: Stylistic changes.
16644         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
16645         Fix preprocessor directive indentation.
16646
16647 2010-12-15  Pádraig Brady <P@draigBrady.com>
16648
16649         memmem, memmem-simple: reorganize and expand empty needle check
16650         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
16651         functional checks to memmem-simple so that one has a fully functional
16652         memmem by using just this module.
16653         Restrict the performance only check to the memmem module.
16654         Also expand the empty needle check to ensure the correct
16655         pointer is returned, not just a non NULL pointer.
16656         * doc/glibc-functions/memmem.texi: Rearrange the portability
16657         documentation to correlate with the rearranged checks.
16658         Clarify exactly how the memmem and memmem-simple modules
16659         relate to each other.
16660
16661 2010-12-15  Pádraig Brady <P@draigBrady.com>
16662             Bruno Haible  <bruno@clisp.org>
16663
16664         Improve cross-compilation guesses for uClibc.
16665         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
16666         that uClibc does not have the glibc bug.
16667         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
16668         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
16669
16670 2010-12-14  Eric Blake  <eblake@redhat.com>
16671
16672         configmake: provide fallbacks for oldest supported autotools
16673         * m4/configmake.m4: New file.
16674         * modules/configmake (Files): Ship it.
16675         (configure.ac): Use it to guarantee fallbacks.
16676
16677 2010-12-13  Pádraig Brady <P@draigBrady.com>
16678
16679         read-file: Improve handling of large files
16680         * lib/read-file.c (fread_file): Minimize realloc()s
16681         for regular files, and better manage sizes around SIZE_MAX.
16682
16683 2010-12-13  Eric Blake  <eblake@redhat.com>
16684
16685         cloexec, fcntl: relax license
16686         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
16687         consent from all contributors.
16688         * modules/fcntl (License): Likewise.
16689
16690 2010-12-10  Bruno Haible  <bruno@clisp.org>
16691
16692         Tests for module 'pipe-posix'.
16693         * modules/pipe-posix-tests: New file.
16694         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
16695
16696 2010-12-10  Bruno Haible  <bruno@clisp.org>
16697
16698         pipe-posix: Make it work in C++ mode.
16699         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
16700         (pipe): Use common idiom, not a macro definition.
16701         * lib/pipe.c: New file.
16702         * m4/pipe.m4: New file.
16703         * modules/pipe-posix (Description): Enhance.
16704         (Files): Add lib/pipe.c, m4/pipe.m4.
16705         (configure.ac): Invoke gl_FUNC_PIPE.
16706         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
16707         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
16708         * tests/test-unistd-c++.cc: Check the signature of pipe.
16709
16710 2010-12-10  Bruno Haible  <bruno@clisp.org>
16711
16712         Rename module 'pipe' to 'spawn-pipe'.
16713         * modules/spawn-pipe: New file, renamed from modules/pipe.
16714         (Files, configure.ac, Makefile.am): Update.
16715         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
16716         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
16717         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
16718         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
16719         "spawn-pipe.h" instead of "pipe.h".
16720         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
16721         to gl_SPAWN_PIPE.
16722         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
16723         (Files, Makefile.am): Update.
16724         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
16725         Update.
16726         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
16727         Include "spawn-pipe.h" instead of "pipe.h".
16728         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
16729         * lib/javacomp.c: Likewise.
16730         * lib/javaversion.c: Likewise.
16731         * lib/pipe-filter-gi.c: Likewise.
16732         * lib/pipe-filter-ii.c: Likewise.
16733         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
16734         * modules/javacomp (Depends-on): Likewise.
16735         * modules/javaversion (Depends-on): Likewise.
16736         * modules/pipe-filter-gi (Depends-on): Likewise.
16737         * modules/pipe-filter-ii (Depends-on): Likewise.
16738         * MODULES.html.sh (Executing programs): Update.
16739         * NEWS: Mention the change.
16740
16741 2010-12-10  Eric Blake  <eblake@redhat.com>
16742
16743         pipe-posix: new module
16744         * modules/pipe-posix: New file.
16745         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
16746         (gl_UNISTD_H): Check for declaration.
16747         * modules/unistd (Makefile.am): Substitute it.
16748         * lib/unistd.in.h (pipe): Provide it for mingw.
16749         * doc/posix-functions/pipe.texi (pipe): Update documentation.
16750         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
16751
16752 2010-12-07  Bruno Haible  <bruno@clisp.org>
16753
16754         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
16755         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
16756         u8_strcmp_gnu.
16757         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
16758
16759 2010-12-06  Bruno Haible  <bruno@clisp.org>
16760
16761         Update internal documentation.
16762         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
16763
16764 2010-12-04  Bruno Haible  <bruno@clisp.org>
16765
16766         Put more information about failed tests into the test return codes.
16767         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
16768         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
16769         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
16770         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
16771         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
16772         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
16773         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
16774         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
16775         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
16776         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
16777         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
16778         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
16779         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
16780         * m4/stdint.m4 (gl_STDINT_H): Likewise.
16781         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
16782         returns a bit mask.
16783         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
16784         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
16785         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
16786         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
16787         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
16788         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
16789         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
16790         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
16791         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
16792         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
16793         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
16794         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
16795         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
16796         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
16797         * m4/link.m4 (gl_FUNC_LINK): Likewise.
16798         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
16799         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
16800         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
16801         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
16802         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
16803         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
16804         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
16805         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
16806         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
16807         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
16808         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
16809         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
16810         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
16811         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
16812         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
16813         gl_PRINTF_PRECISION): Likewise.
16814         * m4/regex.m4 (gl_REGEX): Likewise.
16815         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
16816         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
16817         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
16818         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
16819         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
16820         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
16821         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
16822         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
16823         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
16824         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
16825         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
16826         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
16827         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
16828         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
16829         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
16830         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
16831         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
16832         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
16833         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
16834         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
16835         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
16836         enumerated value.
16837         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
16838
16839 2010-12-04  Bruno Haible  <bruno@clisp.org>
16840
16841         Update for Solaris 11 2010-11.
16842         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
16843         Express, released in November 2010.
16844
16845 2010-12-04  Bruno Haible  <bruno@clisp.org>
16846
16847         nproc: Relax license.
16848         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
16849         and Paul Eggert.
16850         Requested by Ludovic Courtès <ludo@gnu.org>.
16851
16852 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
16853
16854         utimecmp: fine-grained src to nearby coarse-grained dest
16855
16856         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
16857         and the source is on a file system with higher-resolution time
16858         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
16859         not work, and the time stamps are close together, the algorithm to
16860         determine the exact resolution from the read-back mtime was buggy:
16861         it had a "!=" where it should have had an "==".  This bug has been
16862         in the code ever since it was introduced to gnulib.
16863         Problem reported by Dan Jacobson in
16864         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
16865
16866 2010-11-30  Bruno Haible  <bruno@clisp.org>
16867
16868         strerror_r-posix: Fix autoconf test.
16869         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
16870
16871 2010-11-28  Bruno Haible  <bruno@clisp.org>
16872             Paul Eggert  <eggert@cs.ucla.edu>
16873
16874         Tests for module 'getdomainname'.
16875         * modules/getdomainname-tests: New file.
16876         * tests/test-getdomainname.c: New file, based on
16877         tests/test-gethostname.c.
16878
16879 2010-11-28  Bruno Haible  <bruno@clisp.org>
16880             Paul Eggert  <eggert@cs.ucla.edu>
16881
16882         getdomainname: Use the system function when possible.
16883         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
16884         (getdomainname): Replace if needed. Provide the declaration if it is
16885         missing. Don't use _GL_CXXALIAS_SYS_CAST.
16886         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
16887         (getdomainname): When the system has getdomainname, call the system
16888         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
16889         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
16890         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
16891         found in libnsl. Look for the declaration also in <netdb.h>. Replace
16892         the function if its second argument is of type 'int' or if it is found
16893         in libnsl.
16894         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
16895         <sys/systeminfo.h> and sysinfo().
16896         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
16897         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
16898         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
16899         HAVE_GETDOMAINNAME.
16900         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
16901         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
16902         * doc/glibc-functions/getdomainname.texi: Document the problems with
16903         the getdomainname declaration.
16904
16905 2010-11-28  Bruno Haible  <bruno@clisp.org>
16906
16907         sys_socket: Ensure ss_family field on AIX.
16908         * lib/sys_socket.in.h (ss_family): New macro definition.
16909         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
16910         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
16911         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
16912         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
16913         * modules/sys_socket (Makefile.am): Substitute
16914         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
16915         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
16916
16917 2010-11-27  Bruno Haible  <bruno@clisp.org>
16918
16919         readline: Improve configure output.
16920         * m4/readline.m4 (gl_FUNC_READLINE): Make the
16921         "checking for readline..." result understandable.
16922
16923 2010-11-27  Bruno Haible  <bruno@clisp.org>
16924
16925         *printf-posix: Detect a bug on Solaris 10/x86.
16926         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
16927         for floating-point output.
16928         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
16929         directive.
16930         * tests/test-snprintf-posix.h (test_function): Likewise.
16931         * tests/test-sprintf-posix.h (test_function): Likewise.
16932         * tests/test-vasprintf-posix.c (test_function): Likewise.
16933         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
16934         * doc/posix-functions/printf.texi: Likewise.
16935         * doc/posix-functions/snprintf.texi: Likewise.
16936         * doc/posix-functions/sprintf.texi: Likewise.
16937         * doc/posix-functions/vfprintf.texi: Likewise.
16938         * doc/posix-functions/vprintf.texi: Likewise.
16939         * doc/posix-functions/vsnprintf.texi: Likewise.
16940         * doc/posix-functions/vsprintf.texi: Likewise.
16941         * doc/glibc-functions/obstack_printf.texi: Likewise.
16942         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
16943
16944 2010-11-27  Bruno Haible  <bruno@clisp.org>
16945
16946         Fix link error when module libunistring-optional is in use.
16947         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
16948         * modules/striconveha-tests (Makefile.am): Likewise.
16949
16950 2010-11-27  Bruno Haible  <bruno@clisp.org>
16951
16952         regex: Mention link dependencies.
16953         * modules/regex (Link): New section.
16954         * modules/rpmatch (Link): Likewise.
16955         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
16956
16957 2010-11-27  Bruno Haible  <bruno@clisp.org>
16958
16959         ftoastr: Fix compilation error on Solaris.
16960         * lib/ftoastr.c: Include <config.h>.
16961
16962 2010-11-27  Bruno Haible  <bruno@clisp.org>
16963
16964         getloadavg: Update documentation.
16965         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
16966
16967 2010-11-27  Bruno Haible  <bruno@clisp.org>
16968
16969         sys_socket: Fix test whether the functions are declared.
16970         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
16971         not <sys/select.h>.
16972
16973 2010-11-27  Bruno Haible  <bruno@clisp.org>
16974
16975         getpass: Make sure to get system declaration on some platforms.
16976         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
16977         gl_USE_SYSTEM_EXTENSIONS.
16978         * modules/getpass (Depends-on): Add extensions.
16979
16980 2010-11-26  Bruno Haible  <bruno@clisp.org>
16981
16982         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
16983         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
16984         'iconv' module is present.
16985         (ICONV_CONST): New macro.
16986         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
16987         ICONV_CONST.
16988         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
16989         set ICONV_CONST.
16990         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
16991         here.
16992         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
16993         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
16994         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
16995         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
16996         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
16997         present.
16998
16999 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
17000
17001         ftoastr: comment fix
17002         * lib/ftoastr.c: "little" -> "little or no" in comment
17003
17004 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
17005
17006         stdint: port to GCC 4.3 + OSX + Octave
17007         On this platform, stdint.h is buggy and defines int64_t to long
17008         long int.  The replacement defined it to long int, causing
17009         problems with C++ style name mangling.  Instead, trust the system
17010         definition if INT64_MAX is defined, and likewise for the unsigned
17011         variant.   Problem reported by Jarno Rajahalme in
17012         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
17013         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
17014         and don't mess with int64_t and INT64_MAX in this case.
17015         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
17016
17017 2010-11-24  Bruno Haible  <bruno@clisp.org>
17018
17019         doc: Corrections regarding MacOS X 10.4 and 10.5.
17020         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
17021         MacOS X.
17022         Reported by Simon Josefsson.
17023
17024 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
17025
17026         Uninstall ".bin" files installed by relocwrapper.
17027         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
17028         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
17029         unless it is already there.
17030
17031 2010-11-21  Bruno Haible  <bruno@clisp.org>
17032
17033         Update for NetBSD 5.0.
17034         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
17035         NetBSD; the test fails on NetBSD 5.0.
17036         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
17037         about NetBSD.
17038
17039 2010-11-21  Bruno Haible  <bruno@clisp.org>
17040
17041         Update for HP-UX 11.23 and HP-UX 11.31.
17042         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
17043         HP-UX.
17044
17045 2010-11-21  Bruno Haible  <bruno@clisp.org>
17046
17047         Update for MacOS X 10.5.
17048         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
17049         MacOS X; the test fails on MacOS X 10.5.8.
17050         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
17051         about MacOS X.
17052
17053 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
17054
17055         bootstrap: add bootstrap_sync option.
17056         See discussion at
17057         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
17058         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
17059         * build-aux/bootstrap: Accept --bootstrap-sync to update
17060         bootstrap if it is not identical to the local gnulib's
17061         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
17062         enable this by default.  Accept --no-bootstrap-sync to disable
17063         it.
17064
17065 2010-11-20  Bruno Haible  <bruno@clisp.org>
17066
17067         Ensure that <features.h> is included before __GLIBC__ is tested.
17068         * lib/printf-parse.h: Include <features.h>.
17069         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
17070         Reported by Mike Frysinger <vapier@gentoo.org>.
17071
17072         Ensure that <features.h> is included before __GLIBC__ is tested.
17073         * lib/wchar.in.h: Include <features.h>.
17074         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
17075         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
17076         Reported by Mike Frysinger <vapier@gentoo.org>.
17077
17078         Ensure that <features.h> is included before __GLIBC__ is tested.
17079         * lib/arpa_inet.in.h: Include <features.h>.
17080         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
17081         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
17082         Reported by Mike Frysinger <vapier@gentoo.org>.
17083
17084         Ensure that <features.h> is included before __GLIBC__ is tested.
17085         * build-aux/link-warning.h: Include <features.h>.
17086         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
17087         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
17088         Reported by Mike Frysinger <vapier@gentoo.org>.
17089
17090         Ensure that <features.h> is included before __GLIBC__ is tested.
17091         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
17092         Reported by Mike Frysinger <vapier@gentoo.org>.
17093
17094 2010-11-20  Bruno Haible  <bruno@clisp.org>
17095
17096         memmem: Fix autoconf test.
17097         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
17098
17099 2010-11-20  Bruno Haible  <bruno@clisp.org>
17100
17101         Port to uClibc.
17102         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
17103         * lib/fcntl.in.h: Likewise.
17104         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
17105         * lib/mbrtowc.c (mbrtowc): Likewise.
17106         * lib/relocatable.c (find_shared_library_fullname): Likewise.
17107         * lib/strerror_r.c: Likewise.
17108         * lib/unistr/u8-strnlen.c: Likewise.
17109         * lib/vasnprintf.c (decimal_point_char): Likewise.
17110         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
17111         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
17112         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
17113         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
17114         * tests/test-sigaction.c (handler, main): Likewise.
17115         * lib/freading.h: Treat uClibc like a non-glibc platform.
17116         * lib/freading.c: Likewise.
17117         * lib/gettext.h: Likewise.
17118         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
17119         Likewise.
17120         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
17121         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
17122         * lib/propername.c (proper_name_utf8): Likewise.
17123         * lib/spawn.in.h: Likewise.
17124         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
17125         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
17126         mem_cd_iconveh_internal): Likewise.
17127         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
17128         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
17129         strstr, strcasestr): Likewise.
17130         * lib/unicodeio.c (unicode_to_mb): Likewise.
17131         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
17132         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
17133         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
17134         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
17135         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
17136         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
17137         * lib/unistr/u8-stpncpy.c: Likewise.
17138         * lib/vasnprintf.c (VASNPRINTF): Likewise.
17139         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
17140         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
17141         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
17142         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
17143         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
17144         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
17145         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
17146         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
17147         Likewise.
17148         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
17149         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
17150         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
17151         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
17152         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
17153         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
17154         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
17155         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
17156         * tests/test-getopt.h (OPTIND_MIN): Likewise.
17157         * tests/test-striconveha.c (main): Likewise.
17158         * tests/test-vasnprintf-posix.c (test_function): Likewise.
17159         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
17160         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
17161         * doc/posix-functions/getline.texi: Likewise.
17162         Reported by Mike Frysinger <vapier@gentoo.org>.
17163
17164 2010-11-20  Bruno Haible  <bruno@clisp.org>
17165
17166         nproc: Fix condition.
17167         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
17168         HAVE_PTHREAD_AFFINITY_NP.
17169
17170 2010-11-20  Bruno Haible  <bruno@clisp.org>
17171
17172         Fix a comment.
17173         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
17174
17175 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
17176
17177         ftoastr: don't assume snprintf
17178         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
17179         Implement a subset of snprintf here, by using sprintf safely.
17180         * modules/ftoastr (Depends-on): Remove snprintf.
17181
17182 2010-11-19  Jim Meyering  <meyering@redhat.com>
17183
17184         test-rename.h: fix compilation failure
17185         * tests/test-rename.h (test_rename): Add omitted "}".
17186
17187 2010-11-17  Jim Meyering  <meyering@redhat.com>
17188
17189         maint.mk: add a URL discussing the no-@acronym policy
17190         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
17191
17192 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
17193
17194         ftoastr: depend on snprintf, improve comments
17195         * lib/ftoastr.c: Also mention Loitsch's draft.
17196         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
17197         needed in the current implementation, but it might simplify
17198         speeding up the code later.
17199         * modules/ftoastr: Depend on snprintf; this improves portability.
17200         Suggested by Bruno Haible in the same email.
17201
17202         ftoastr: port to hosts lacking strtof and strtold
17203         Problem reported by Bruno Haible in
17204         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
17205         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
17206         environment and strtold (and presumably strtof) are not available.
17207         * modules/ftoastr (Files): Add m4/c-strtod.m4.
17208         (configure.ac): Require gl_C99_STRTOLD.
17209
17210 2010-11-18  Bruno Haible  <bruno@clisp.org>
17211
17212         c-strtold: Avoid link error on AIX 7.
17213         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
17214         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
17215         (gl_C_STRTOLD): Test whether strtold_l exists.
17216         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
17217
17218 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
17219
17220         intprops: new macro INT_BITS_STRLEN_BOUND
17221         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
17222         ftoastr.h.  This exposes an internal of intprops.h that was formerly
17223         not exposed.  Also, it uses a slightly tighter bound than before;
17224         though this makes no practical difference, we might as well be as
17225         tight as we easily can.
17226
17227         ftoastr: new module, for lossless conversion of floats to short strings
17228         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
17229         * modules/ftoastr: New files.
17230
17231 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
17232
17233         bootstrap: port to Solaris sed
17234         * build-aux/bootstrap (get_version): Port to Solaris sed.
17235         See Ralf Wildenhues's note in
17236         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
17237
17238 2010-11-14  Jim Meyering  <meyering@redhat.com>
17239
17240         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
17241         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
17242         and move definition closer to sole use.
17243
17244 2010-11-13  Jim Meyering  <meyering@redhat.com>
17245
17246         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
17247         Now we require at least autoconf-2.59, which means the work-around
17248         is no longer needed.
17249         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
17250         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
17251         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
17252         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
17253         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
17254
17255 2010-11-13  Bruno Haible  <bruno@clisp.org>
17256
17257         rename, renameat: Avoid test failures at NFS mounted locations.
17258         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
17259         functions.
17260         (test_rename): Use assert_nonexistent.
17261         * tests/test-rename.c: Include <dirent.h>.
17262         * tests/test-renameat.c: Likewise.
17263         Reported by Gary V. Vaughan <gary@gnu.org>.
17264
17265         rename, renameat: Document Linux bug with NFS
17266         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
17267         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
17268         * doc/posix-functions/renameat.texi: Likewise.
17269         Suggested by Eric Blake.
17270
17271 2010-11-13  Bruno Haible  <bruno@clisp.org>
17272
17273         rename test: Add comments.
17274         * tests/test-rename.h (test_rename): Add structure and comments.
17275
17276 2010-11-13  Eric Blake  <eblake@redhat.com>
17277
17278         maintainer-makefile: cover a few more files
17279         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
17280         scripts generated within C files, for libvirt.
17281
17282 2010-11-13  Bruno Haible  <bruno@clisp.org>
17283
17284         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
17285         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
17286         character, return the number of bytes that belong together, not always
17287         1.
17288         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
17289         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
17290         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
17291         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
17292         number of bytes of an invalid character.
17293         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
17294         (main): Invoke it.
17295         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
17296         results.
17297         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
17298         malformed byte sequences.
17299         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
17300         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
17301         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
17302         Reported by Ben Pfaff and Paolo Bonzini.
17303
17304 2010-11-13  Bruno Haible  <bruno@clisp.org>
17305
17306         openat: Work around glibc bug with fchownat() and empty file names.
17307         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
17308         (gl_FUNC_FCHOWNAT): Invoke it.
17309         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
17310         * doc/posix-functions/fchownat.texi: Document the glibc bug.
17311         Reported by Gary V. Vaughan <gary@gnu.org>.
17312
17313 2010-11-13  Bruno Haible  <bruno@clisp.org>
17314
17315         openat: Ensure autoconf macro ordering.
17316         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
17317         gl_USE_SYSTEM_EXTENSIONS.
17318         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
17319
17320 2010-11-13  Bruno Haible  <bruno@clisp.org>
17321
17322         Update comments.
17323         * lib/unistr/u8-check.c: Update file name in comments.
17324         * lib/unistr/u8-mblen.c: Likewise.
17325         * lib/unistr/u8-prev.c: Likewise.
17326         * lib/unistr/u8-strmblen.c: Likewise.
17327         * lib/unistr/u8-strmbtouc.c: Likewise.
17328
17329 2010-11-13  Jim Meyering  <meyering@redhat.com>
17330
17331         tests: avoid test failure on Solaris 10 due to lack of PATH export
17332         * tests/test-update-copyright.sh: Don't forget to export PATH.
17333
17334         init.sh: ensure that IFS is defined, just in case...
17335         * tests/init.sh (setup_): Ensure that IFS is defined,
17336         so that saving and restoring it works as expected.  This
17337         appears to be useful at least for an old version of dash
17338         from a long time ago (RH 6).  See here for details:
17339         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
17340
17341         maint.mk: tighten "test a == b" check
17342         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
17343         test to files that contain something like #!/bin/sh.
17344         Without this, coreutils would get two false positives in
17345         the comments of C source files.
17346
17347 2010-11-12  Eric Blake  <eblake@redhat.com>
17348
17349         bootstrap: fix typo in previous attempt
17350         * build-aux/bootstrap (buildreq): Correct the grouping.
17351         Reported by Paul Eggert.
17352
17353         maintainer-makefile: prohibit test x == x
17354         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
17355         Based on a report by Matthias Bolte.
17356
17357         bootstrap: allow FreeBSD gzip
17358         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
17359         which has no '.' and goes to stderr.
17360         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
17361         Reported by Matthias Bolte.
17362
17363         maintainer-makefile: check for i18n setup
17364         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
17365         will likely work.
17366
17367 2010-11-12  Bruno Haible  <bruno@clisp.org>
17368
17369         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
17370         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
17371         * lib/nanosleep.c (nanosleep): Likewise.
17372
17373 2010-11-11  Bruno Haible  <bruno@clisp.org>
17374
17375         fcntl-h: Fix for use of C++ on glibc systems.
17376         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
17377         also on glibc systems in C++ mode.
17378         Reported by Gary V. Vaughan <gary@gnu.org>.
17379
17380 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
17381
17382         mknod: avoid false failure with dash
17383         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
17384
17385 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
17386
17387         unlink: Fix "is it should" typo in diagnostic.
17388         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
17389         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
17390
17391 2010-11-11  Bruno Haible  <bruno@clisp.org>
17392
17393         Tests for module 'strerror_r-posix'.
17394         * modules/strerror_r-posix-tests: New file.
17395         * tests/test-strerror_r.c: New file.
17396         * tests/test-string-c++.cc: Check the signature of strerror_r.
17397
17398         New module 'strerror_r-posix'.
17399         * lib/string.in.h (strerror_r): New declaration.
17400         * lib/strerror_r.c: New file.
17401         * m4/strerror_r.m4: New file.
17402         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
17403         of strerror_r.
17404         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
17405         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
17406         * modules/strerror_r-posix: New file.
17407         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
17408         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
17409         * doc/posix-functions/strerror_r.texi: Mention the new module and the
17410         portability problems.
17411
17412 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
17413
17414         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
17415         line is also considered for output. Quoted function name in shell
17416         command, so temporary files for functions like MyClass::operator()
17417         are removed correctly without errors.
17418
17419 2010-11-09  Bruno Haible  <bruno@clisp.org>
17420
17421         * doc/posix-functions/strerror.texi: List more failing platforms.
17422
17423         * doc/posix-functions/strerror.texi: Add a comment.
17424
17425 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
17426
17427         fdopendir: fix bug on MacOS X when low on file descriptors
17428
17429         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
17430         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
17431         All callers changed.
17432         (fdopendir): Invoke save_cwd at the top level, not after using
17433         multiple dup() calls to use up file descriptors.  Then retry
17434         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
17435         less than the maximum number of open file descriptors, because
17436         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
17437         on Mac OS X 10.6.4 for tar 1.24
17438         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
17439         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
17440         and for tar 1.25
17441         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
17442
17443 2010-11-07  Bruno Haible  <bruno@clisp.org>
17444
17445         vasnprintf: Support I flag on glibc systems.
17446         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
17447         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
17448         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
17449         snprintf function.
17450         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
17451         glibc systems.
17452         * tests/test-vasnprintf-posix3.c: New file.
17453         * modules/vasnprintf-posix-tests (Files): Add it.
17454         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
17455
17456 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
17457
17458         [html] Fix copy/paste bug: Use unique name for compiler warnings.
17459         * MODULES.html.sh: For compiler warnings, use name
17460         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
17461
17462 2010-11-05  Eric Blake  <eblake@redhat.com>
17463
17464         ceil, floor: avoid spurious failure with icc
17465         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
17466         [denormals-as-zero] when optimizing without -mieee-fp option.
17467         * tests/test-floorf2.c (floorf_reference): Likewise.
17468         * tests/test-ceilf1.c (dummy): New function.
17469         (main): Use it to outsmart icc's optimization.
17470         * tests/test-floorf1.c (dummy, main): Likewise.
17471
17472         tests: require working signbit
17473         * modules/ceilf-tests (Depends-on): Add signbit.
17474         * modules/ceill-tests (Depends-on): Likewise.
17475         * modules/floorf-tests (Depends-on): Likewise.
17476         * modules/floorl-tests (Depends-on): Likewise.
17477         * modules/round-tests (Depends-on): Likewise.
17478         * modules/roundf-tests (Depends-on): Likewise.
17479         * modules/roundl-tests (Depends-on): Likewise.
17480         * modules/trunc-tests (Depends-on): Likewise.
17481         * modules/truncf-tests (Depends-on): Likewise.
17482         * modules/truncl-tests (Depends-on): Likewise.
17483
17484         strtod: work around icc bug
17485         * lib/strtod.c (minus_zero): Define to working value.
17486         (strtod): Use it to avoid icc bug.
17487
17488         copysign: enhance tests
17489         * modules/copysign-tests (Files): Add minus-zero.h.
17490         * tests/test-copysign.c (main): Also test zeros.
17491
17492 2010-11-04  Eric Blake  <eblake@redhat.com>
17493
17494         ceil, floor, round, trunc: enhance tests of -0
17495         * tests/test-ceilf1.c (main): Ensure correct sign of result.
17496         * tests/test-ceill.c (main): Likewise.
17497         * tests/test-floorf1.c (main): Likewise.
17498         * tests/test-floorl.c (main): Likewise.
17499         * tests/test-round1.c (main): Likewise.
17500         * tests/test-roundf1.c (main): Likewise.
17501         * tests/test-roundl.c (main): Likewise.
17502         * tests/test-trunc1.c (main): Likewise.
17503         * tests/test-truncf1.c (main): Likewise.
17504         * tests/test-truncl.c (main): Likewise.
17505
17506 2010-11-04  Eric Blake  <eblake@redhat.com>
17507
17508         frexp, tests: work around ICC bug with -zero
17509         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
17510         works with more compilers.
17511         * tests/minus-zero.h: New file.
17512         * modules/ceilf-tests (Files): Include it.
17513         * modules/ceill-tests (Files): Likewise.
17514         * modules/floorf-tests (Files): Likewise.
17515         * modules/floorl-tests (Files): Likewise.
17516         * modules/frexp-nolibm-tests (Files): Likewise.
17517         * modules/frexp-tests (Files): Likewise.
17518         * modules/frexpl-nolibm-tests (Files): Likewise.
17519         * modules/frexpl-tests (Files): Likewise.
17520         * modules/isnan-tests (Files): Likewise.
17521         * modules/isnand-nolibm-tests (Files): Likewise.
17522         * modules/isnand-tests (Files): Likewise.
17523         * modules/isnanf-nolibm-tests (Files): Likewise.
17524         * modules/isnanf-tests (Files): Likewise.
17525         * modules/isnanl-nolibm-tests (Files): Likewise.
17526         * modules/isnanl-tests (Files): Likewise.
17527         * modules/round-tests (Files): Likewise.
17528         * modules/roundf-tests (Files): Likewise.
17529         * modules/roundl-tests (Files): Likewise.
17530         * modules/ldexpl-tests (Files): Likewise.
17531         * modules/signbit-tests (Files): Likewise.
17532         * modules/snprintf-posix-tests (Files): Likewise.
17533         * modules/sprintf-posix-tests (Files): Likewise.
17534         * modules/strtod-tests (Files): Likewise.
17535         * modules/trunc-tests (Files): Likewise.
17536         * modules/truncf-tests (Files): Likewise.
17537         * modules/truncl-tests (Files): Likewise.
17538         * modules/vsnprintf-posix-tests (Files): Likewise.
17539         * modules/vsprintf-posix-tests (Files): Likewise.
17540         * modules/vasnprintf-posix-tests (Files): Likewise.
17541         * modules/vasprintf-posix-tests (Files): Likewise.
17542         * tests/test-ceilf1.c (main): Use it.
17543         * tests/test-ceill.c (main): Likewise.
17544         * tests/test-floorf1.c (main): Likewise.
17545         * tests/test-floorl.c (main): Likewise.
17546         * tests/test-frexp.c (main): Likewise.
17547         * tests/test-frexpl.c (main): Likewise.
17548         * tests/test-isnan.c (main): Likewise.
17549         * tests/test-isnand.h (main): Likewise.
17550         * tests/test-isnanf.h (main): Likewise.
17551         * tests/test-isnanl.h (main): Likewise.
17552         * tests/test-ldexpl.c (main): Likewise.
17553         * tests/test-round.c (main): Likewise.
17554         * tests/test-roundf.c (main): Likewise.
17555         * tests/test-roundl.c (main): Likewise.
17556         * tests/test-signbit.c (test_signbitf, test_signbitd)
17557         (test_signbitl): Likewise.
17558         * tests/test-snprintf-posix.h (test_function): Likewise.
17559         * tests/test-sprintf-posix.h (test_function): Likewise.
17560         * tests/test-strtod.c (main): Likewise.
17561         * tests/test-trunc1.c (main): Likewise.
17562         * tests/test-truncf1.c (main): Likewise.
17563         * tests/test-truncl.c (main): Likewise.
17564
17565         isnanl: work around icc bug
17566         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
17567
17568 2010-11-03  Eric Blake  <eblake@redhat.com>
17569
17570         tests: fix compiler warnings
17571         * tests/test-getopt.h (test_getopt): Fix condition.
17572         * tests/test-getopt_long.h (test_getopt_long): Likewise.
17573         * tests/test-pipe2.c (main): Likewise.
17574         * tests/test-quotearg-simple.c (main): Avoid icc warning.
17575
17576         utimens: fix broken m4 test
17577         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
17578
17579 2010-10-28  Bruno Haible  <bruno@clisp.org>
17580
17581         posix_spawn*, getdtablesize: Relax license.
17582         * modules/posix_spawn (License): Change to LGPLv2+.
17583         * modules/posix_spawnp (License): Likewise.
17584         * modules/posix_spawn-internal (License): Likewise.
17585         * modules/posix_spawnattr_init (License): Likewise.
17586         * modules/posix_spawnattr_getflags (License): Likewise.
17587         * modules/posix_spawnattr_setflags (License): Likewise.
17588         * modules/posix_spawnattr_getpgroup (License): Likewise.
17589         * modules/posix_spawnattr_setpgroup (License): Likewise.
17590         * modules/posix_spawnattr_getschedparam (License): Likewise.
17591         * modules/posix_spawnattr_setschedparam (License): Likewise.
17592         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
17593         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
17594         * modules/posix_spawnattr_getsigdefault (License): Likewise.
17595         * modules/posix_spawnattr_setsigdefault (License): Likewise.
17596         * modules/posix_spawnattr_getsigmask (License): Likewise.
17597         * modules/posix_spawnattr_setsigmask (License): Likewise.
17598         * modules/posix_spawnattr_destroy (License): Likewise.
17599         * modules/posix_spawn_file_actions_init (License): Likewise.
17600         * modules/posix_spawn_file_actions_addclose (License): Likewise.
17601         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
17602         * modules/posix_spawn_file_actions_addopen (License): Likewise.
17603         * modules/posix_spawn_file_actions_destroy (License): Likewise.
17604         * modules/getdtablesize (License): Likewise.
17605         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
17606
17607 2010-10-26  Bruno Haible  <bruno@clisp.org>
17608
17609         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
17610         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
17611         Cygwin and mingw.
17612         Suggested by Eric Blake.
17613
17614 2010-10-26  Bruno Haible  <bruno@clisp.org>
17615
17616         stdio: Work around compilation error due to renameat() on Solaris 10.
17617         * lib/stdio.in.h: Include <unistd.h> on Solaris.
17618         * lib/renameat.c: Don't include <unistd.h> here.
17619         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
17620         Reported by Paul Eggert and Eric Blake.
17621
17622 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
17623
17624         renameat: port to Solaris 10, which declares renameat in unistd.h
17625
17626         * lib/renameat.c: Include unistd.h before stdio.h, because
17627         Solaris 10 declares renameat in unistd.h.  Problem encountered
17628         when building GNU tar 1.24 on Solaris 10.
17629
17630 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
17631
17632         fdopendir: fix C89 compilation
17633         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
17634         compilers.
17635
17636 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
17637
17638         inttostr: simplify by removing unnecessary redundancy
17639         * lib/anytostr.c: Don't include verify.h.
17640         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
17641         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
17642         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
17643         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
17644         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
17645         Likewise.
17646         * modules/inttostr (Depends-on): Remove 'verify'.
17647
17648 2010-10-23  Bruno Haible  <bruno@clisp.org>
17649
17650         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
17651         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
17652         Reported by Eric Blake.
17653
17654 2010-10-23  Bruno Haible  <bruno@clisp.org>
17655
17656         Tests: Fix LOCALE_JA on MirBSD 10.
17657         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
17658         to an UTF-8 locale.
17659         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
17660         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
17661         Reported by Eric Blake.
17662
17663 2010-10-21  Bruno Haible  <bruno@clisp.org>
17664
17665         nl_langinfo test: Avoid test failure on NetBSD 5.
17666         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
17667         Reported by Eric Blake.
17668
17669 2010-10-21  Eric Blake  <eblake@redhat.com>
17670
17671         c-stack: work around libsigsegv 2.8 bug
17672         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
17673         overflow on at least PowerPC64.
17674
17675 2010-10-17  Bruno Haible  <bruno@clisp.org>
17676
17677         userspec: Drop redundant file.
17678         * modules/userspec (Files): Remove lib/inttostr.h.
17679
17680 2010-10-17  Bruno Haible  <bruno@clisp.org>
17681
17682         nl_langinfo tests: Silence some warnings.
17683         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
17684         Reported by Jim Meyering.
17685
17686 2010-10-17  Bruno Haible  <bruno@clisp.org>
17687
17688         Make use of GCC's attribute __alloc_size__.
17689         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
17690         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
17691         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
17692         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
17693         __alloc_size__.
17694         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
17695         Suggested by Jim Meyering.
17696
17697 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
17698
17699         bootstrap: anchor .gitignore entries.
17700         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
17701         with...
17702         (insert_vc_ignore): ... this new function, which prepends `/' to
17703         all .gitignore entries before passing them to
17704         insert_sorted_if_absent.
17705
17706 2010-10-16  Bruno Haible  <bruno@clisp.org>
17707
17708         nextafter: Fix configure check.
17709         * modules/nextafter (configure.ac): Correct expected prototype.
17710
17711 2010-10-16  Bruno Haible  <bruno@clisp.org>
17712
17713         termios: Update documentation.
17714         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
17715
17716 2010-10-16  Bruno Haible  <bruno@clisp.org>
17717
17718         tests: Make them compile with TinyCC.
17719         * tests/test-strstr.c (main): Remove parentheses around array
17720         initializer.
17721
17722 2010-10-15  Eric Blake  <eblake@redhat.com>
17723
17724         ignore-value: make header idempotent
17725         * lib/ignore-value.h: Add double-inclusion guards.
17726         Reported by Stefan Berger.
17727
17728 2010-10-15  Jim Meyering  <meyering@redhat.com>
17729
17730         GNUmakefile: handle "stable" target, not "major"
17731         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
17732         lists in maint.mk and announce-gen.  Without this, "make stable"
17733         would fail to ensure that $(VERSION) is up to date.
17734
17735 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
17736
17737         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
17738         & co.
17739
17740 2010-10-14  Bruno Haible  <bruno@clisp.org>
17741
17742         vasnprintf: Don't set errno to 0.
17743         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
17744         block that sets it to 0.
17745         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
17746
17747 2010-10-14  Bruno Haible  <bruno@clisp.org>
17748
17749         socketlib: Fix.
17750         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
17751         gl_PREREQ_SYS_H_WINSOCK2.
17752         Reported by Ian Beckwith <ianb@erislabs.net>.
17753
17754 2010-10-13  Jim Meyering  <meyering@redhat.com>
17755
17756         test-select-stdin.c: avoid warn_unused_result warnings
17757         * tests/test-select-stdin.c: Include "macros.h".
17758         ASSERT that read and fflush succeed.
17759
17760 2010-10-13  Jim Meyering  <meyering@redhat.com>
17761
17762         git-version-gen: do require git-VC'd files in cwd
17763         * build-aux/git-version-gen: Reject a git version string
17764         if there are no commits associated with the current directory.
17765         This avoids an unlikely false-positive (unrelated dir whose parent
17766         repository also contains a tag matching v*), as pointed out
17767         by Giuseppe Scrivano in
17768         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
17769
17770 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
17771
17772         argv-iter: omit nonconforming declaration
17773         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
17774         enum arg_iter_err declaration, which doesn't conform to C99.
17775         Solaris 10 cc warns about this.
17776
17777 2010-10-13  Eric Blake  <eblake@redhat.com>
17778
17779         termios: fix compilation on mingw
17780         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
17781         (gl_TERMIOS_H): Adjust it on mingw.
17782         * modules/termios (Makefile.am): Substitute new key.
17783         * lib/termios.in.h (includes): Make include_next conditional.
17784         * doc/posix-headers/termios.texi (termios.h): Update
17785         documentation.
17786         Reported by Daniel P. Berrange.
17787
17788 2010-10-13  Jim Meyering  <meyering@redhat.com>
17789
17790         git-version-gen: don't require that .git/ be in the current dir
17791         * build-aux/git-version-gen: Adjust this script so that it works
17792         when run from any working directory beneath the top-level .git/-
17793         containing directory.  Inspired by a patch from Giuseppe Scrivano,
17794         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
17795
17796         test-select: avoid warn_unused_result warnings
17797         * tests/test-select.c: Include "macros.h".
17798         ASSERT that each call to read, write, and pipe succeeds.
17799         While not technically required, also check each "close".
17800         * modules/select-tests (Files): Add tests/macros.h.
17801
17802         test-symlinkat: remove declaration of unused local
17803         * tests/test-symlinkat.c (main): Remove unused local, "buf".
17804
17805         test-inttostr: avoid shadowing warnings
17806         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
17807         and use malloc rather than the stack for the same reason as
17808         mentioned in the comment justifying the other allocation.
17809
17810 2010-10-11  Bruno Haible  <bruno@clisp.org>
17811
17812         stdlib: Allow multiple gnulib generated replacements to coexist.
17813         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
17814         Reported by Sam Steingold <sds@gnu.org>.
17815
17816 2010-10-11  Jim Meyering  <meyering@redhat.com>
17817
17818         fix a documentation typo
17819         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
17820
17821 2010-10-11  Eric Blake  <eblake@redhat.com>
17822
17823         futimens: work around Solaris 11 bug
17824         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
17825         * tests/test-futimens.h (test_futimens): Enhance, rather than
17826         weaken test.
17827         * doc/posix-functions/futimens.texi (futimens): Document the bug.
17828
17829 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
17830
17831         Indentation.
17832         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
17833         higher-level operators more to the left.
17834
17835 2010-10-11  Jim Meyering  <meyering@redhat.com>
17836
17837         test-futimens: avoid unwarranted test failure on Solaris 5.11
17838         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
17839         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
17840         because it tries to dereference the NULL name argument.
17841
17842 2010-10-11  Bruno Haible  <bruno@clisp.org>
17843
17844         Indentation.
17845         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
17846         indentation.
17847
17848 2010-10-11  Jim Meyering  <meyering@redhat.com>
17849
17850         spawn.in.h: make indentation consistent with parentheses
17851         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
17852         Make indentation consistent with parentheses.
17853
17854 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
17855
17856         Fix mismatched parens in previous commit
17857         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
17858         parens.
17859
17860 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
17861
17862         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
17863
17864         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
17865         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
17866         * lib/malloca.c: Include "verify.h".
17867         (verify1): Remove, replacing with a verify call.
17868         * lib/relocwrapper.c (verify1): Likewise.
17869         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
17870         Likewise.
17871         * modules/malloca (Depends-on): Add 'verify'.
17872         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
17873         * modules/vasnprintf (Depends-on): Add 'verify'.
17874         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
17875         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
17876         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
17877         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
17878         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
17879         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
17880         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
17881
17882         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
17883
17884         Formerly the style was sometimes 2*X - 1, because the C standard
17885         was wrongly thought to disallow ?: in integral constant expressions.
17886         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
17887         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
17888         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
17889         * lib/stdint.in.h (_verify_intmax_size): Likewise.
17890         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
17891         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
17892         verify that time_t cannot be floating.
17893
17894 2010-10-08  Eric Blake  <eblake@redhat.com>
17895
17896         time: enforce recent POSIX ruling that time_t is integral
17897         * lib/time.in.h (__time_t_must_be_integral): Detect any
17898         problematic systems, allowing the rest of gnulib to assume POSIX.
17899
17900 2010-10-08  Jim Meyering  <meyering@redhat.com>
17901
17902         fdopendir: fix a bug on systems lacking openat and /proc support
17903         OpenBSD 4.7 is one such system.  The most noticeable effect was
17904         failure of any application making nontrivial use of fts: rm, du,
17905         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
17906           ./rm: traversal failed: `a': Bad file descriptor
17907         Debugging that, you see that even though FD 6 was closed just
17908         prior to the opendir call in fd_clone_opendir, its resulting
17909         dir->dd_fd was 8, rather than the expected value of 6:
17910
17911         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
17912         93                close (fd);
17913         (gdb) n
17914         94                dir = fd_clone_opendir (dupfd);
17915         (gdb) n
17916         95                saved_errno = errno;
17917         (gdb) p dir->dd_fd
17918         $11 = 8
17919
17920         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
17921         The problem is that on OpenBSD, fd_clone_opendir has to resort
17922         to using the old-style save/restore CWD mechanism, due to its
17923         lack of openat/proc support, and *that* would steal the FD (6)
17924         that opendir was supposed to use.
17925
17926         The fix is to squirrel away the desired FD so that save_cwd uses a
17927         different one, and then free the dest FD right before calling opendir.
17928         That guarantees opendir will use the required file descriptor.
17929
17930         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
17931
17932 2010-10-08  Bruno Haible  <bruno@clisp.org>
17933
17934         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
17935         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
17936
17937 2010-10-08  Bruno Haible  <bruno@clisp.org>
17938
17939         nanosleep: Make replacement POSIX compliant.
17940         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
17941         is out of range.
17942         Reported by Jim Meyering.
17943
17944 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
17945
17946         bootstrap: add hook for altering gnulib.mk, for Bison
17947         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
17948         the Bison bootstrapping process can rewrite file names and variables
17949         in this file before later parts of 'bootstrap' use the file.
17950         Bison wants to include lib/gnulib.mk from the top-level makefile,
17951         so it needs the file names in this file to be relative to the top
17952         level, not relative to lib; plus it needs variable names to be
17953         rewritten.
17954         (slurp): Use the new function.
17955
17956         bootstrap: reformat for readability
17957         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
17958
17959 2010-10-08  Eric Blake  <eblake@redhat.com>
17960
17961         docs: update cygwin progress
17962         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
17963         1.7.7.
17964         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
17965         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
17966         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
17967         * doc/posix-functions/carg.texi (carg): Likewise.
17968         * doc/posix-functions/cargf.texi (cargf): Likewise.
17969         * doc/posix-functions/casin.texi (casin): Likewise.
17970         * doc/posix-functions/casinf.texi (casinf): Likewise.
17971         * doc/posix-functions/casinh.texi (casinh): Likewise.
17972         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
17973         * doc/posix-functions/catan.texi (catan): Likewise.
17974         * doc/posix-functions/catanf.texi (catanf): Likewise.
17975         * doc/posix-functions/catanh.texi (catanh): Likewise.
17976         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
17977         * doc/posix-functions/ccos.texi (ccos): Likewise.
17978         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
17979         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
17980         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
17981         * doc/posix-functions/cexp.texi (cexp): Likewise.
17982         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
17983         * doc/posix-functions/cimag.texi (cimag): Likewise.
17984         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
17985         * doc/posix-functions/clog.texi (clog): Likewise.
17986         * doc/posix-functions/clogf.texi (clogf): Likewise.
17987         * doc/posix-functions/conj.texi (conj): Likewise.
17988         * doc/posix-functions/conjf.texi (conjf): Likewise.
17989         * doc/posix-functions/cpow.texi (cpow): Likewise.
17990         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
17991         * doc/posix-functions/cproj.texi (cproj): Likewise.
17992         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
17993         * doc/posix-functions/creal.texi (creal): Likewise.
17994         * doc/posix-functions/crealf.texi (crealf): Likewise.
17995         * doc/posix-functions/csin.texi (csin): Likewise.
17996         * doc/posix-functions/csinf.texi (csinf): Likewise.
17997         * doc/posix-functions/csinh.texi (csinh): Likewise.
17998         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
17999         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
18000         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
18001         * doc/posix-functions/ctan.texi (ctan): Likewise.
18002         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
18003         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
18004         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
18005         * doc/posix-headers/complex.texi (complex.h): Likewise.
18006
18007 2010-10-07  Jim Meyering  <meyering@redhat.com>
18008
18009         parse-datetime: avoid compilation failure on OpenBSD 4.7
18010         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
18011         This works around a compilation failure on OpenBSD 4.7:
18012         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
18013
18014 2010-10-07  Eric Blake  <eblake@redhat.com>
18015
18016         docs: update cygwin progress
18017         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
18018         1.7.6.
18019         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
18020         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
18021         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
18022         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
18023         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
18024         Likewise.
18025         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
18026         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
18027         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
18028         Likewise.
18029         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
18030         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
18031         Likewise.
18032         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
18033         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
18034         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
18035         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
18036         Likewise.
18037         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
18038         Likewise.
18039         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
18040
18041         docs: update parse-datetime history
18042         * doc/parse-datetime.texi (Authors of parse_datetime): Better
18043         documentation of this function's history and alternatives.
18044
18045         cygwin: use more robust version check
18046         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
18047         exclude an eventual cygwin 1.9.1.
18048         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
18049         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
18050         (gl_FUNC_STRCASESTR): Likewise.
18051         Reported by Bruno Haible.
18052
18053 2010-10-06  Bruno Haible  <bruno@clisp.org>
18054
18055         string, sys_select: Avoid #including large headers unless necessary.
18056         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
18057         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
18058         OSF/1, BeOS, Haiku.
18059         Reported by Jim Meyering.
18060
18061 2010-10-05  Eric Blake  <eblake@redhat.com>
18062
18063         memmem, strstr, strcasestr: fix bug with long periodic needle
18064         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
18065         periodic needle having false positive.
18066         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
18067         and cygwin 1.7.7.
18068         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
18069         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
18070         (gl_FUNC_STRCASESTR): Likewise.
18071         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
18072         * tests/test-memmem.c (main): Expose the bug.
18073         * tests/test-strcasestr.c (main): Likewise.
18074         * tests/test-strstr.c (main): Likewise.
18075         * tests/test-c-strcasestr.c (main): Likewise.
18076         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
18077         * doc/posix-functions/strstr.texi (strstr): Likewise.
18078         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
18079         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
18080
18081 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
18082
18083         parse-datetime: do some more renaming
18084         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
18085         parse_datetime, not get_date.  Mention the renaming.
18086         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
18087         in comments.
18088         * m4/bison.m4: Likewise.
18089
18090 2010-10-05  Eric Blake  <eblake@redhat.com>
18091
18092         parse-datetime: better name than get_date
18093         * NEWS: Reword the deprecation notice.
18094         * modules/get_date: Rename to modules/parse-datetime.
18095         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
18096         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
18097         * lib/get_date.y: Rename to lib/parse-datetime.y.
18098         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
18099         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
18100         * doc/getdate.texi: Provide fallback wrapper.
18101         * lib/getdate.h: Move guts, and wrap...
18102         * lib/parse-datetime.h: ...new file.
18103         * lib/parse-datetime.y (get_date): Rename...
18104         (parse_datetime): ...to this.
18105         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
18106         (gl_PARSE_DATETIME): ...to this.
18107         * doc/posix-functions/getdate.texi (get_date): Provide fallback
18108         documentation.
18109         * modules/getdate (Files): Provide fallback docs and header.
18110         (Notice, Depends-on): Update references.
18111         * tests/test-parse-datetime.c: Likewise.
18112         * DEPENDENCIES: Likewise.
18113         * MODULES.html.sh (Date and time <time.h>): Likewise.
18114         * doc/parse-datetime.texi (Date input formats)
18115         (Authors of parse_datetime): Likewise.
18116         * modules/parse-datetime (Files, configure.ac, Makefile.am)
18117         (Include): Likewise.
18118         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
18119         * gnulib-tool: Likewise.
18120         * m4/bison.m4 (gl_BISON): Likewise.
18121         Suggested by Bruno Haible.
18122
18123 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
18124
18125         more ports to Solaris tr, which needs [] around ranges
18126         * gnulib-tool: Solaris tr needs [] around ranges.
18127         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
18128         * tests/test-pipe-filter-gi1.c (main): Likewise.
18129         * tests/test-pipe-filter-ii1.c (main): Likewise.
18130
18131 2010-10-05  Eric Blake  <eblake@redhat.com>
18132
18133         bootstrap: fix Solaris regression
18134         * build-aux/bootstrap (check_versions): Solaris tr still needs []
18135         around ranges.
18136         Reported by Pádraig Brady.
18137
18138         bootstrap: work with pkg-config
18139         * build-aux/bootstrap (check_versions): Also transliterate - in
18140         prerequisite name.
18141         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
18142         prerequisites that were already found, to avoid confusion.
18143         Reported by Justin Clift.
18144
18145         faccessat: remove unused wrappers
18146         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
18147         presence of these wrappers dragged in -lgen on Solaris.
18148         Reported by Clemens Brogi; fix suggested by Paul Eggert.
18149
18150 2010-10-05  Jim Meyering  <meyering@redhat.com>
18151
18152         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
18153         * Makefile (sc_pragma_columns): New syntax-check rule.
18154
18155 2010-10-04  Bruno Haible  <bruno@clisp.org>
18156
18157         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
18158         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
18159         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
18160         Reported by Bruce Korb and Eric Blake.
18161
18162 2010-10-04  Bruno Haible  <bruno@clisp.org>
18163
18164         threadlib: Make option --with-libpth-prefix work.
18165         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
18166         use $LIBPTH, not just -lpth.
18167
18168 2010-10-04  Bruno Haible  <bruno@clisp.org>
18169
18170         Avoid line length limitation from HP NonStop system header files.
18171         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
18172         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
18173         * lib/ctype.in.h: Likewise.
18174         * lib/dirent.in.h: Likewise.
18175         * lib/errno.in.h: Likewise.
18176         * lib/fcntl.in.h: Likewise.
18177         * lib/float.in.h: Likewise.
18178         * lib/getopt.in.h: Likewise.
18179         * lib/iconv.in.h: Likewise.
18180         * lib/inttypes.in.h: Likewise.
18181         * lib/langinfo.in.h: Likewise.
18182         * lib/locale.in.h: Likewise.
18183         * lib/math.in.h: Likewise.
18184         * lib/netdb.in.h: Likewise.
18185         * lib/netinet_in.in.h: Likewise.
18186         * lib/poll.in.h: Likewise.
18187         * lib/pthread.in.h: Likewise.
18188         * lib/pty.in.h: Likewise.
18189         * lib/sched.in.h: Likewise.
18190         * lib/se-selinux.in.h: Likewise.
18191         * lib/search.in.h: Likewise.
18192         * lib/signal.in.h: Likewise.
18193         * lib/spawn.in.h: Likewise.
18194         * lib/stdarg.in.h: Likewise.
18195         * lib/stddef.in.h: Likewise.
18196         * lib/stdint.in.h: Likewise.
18197         * lib/stdio.in.h: Likewise.
18198         * lib/stdlib.in.h: Likewise.
18199         * lib/string.in.h: Likewise.
18200         * lib/strings.in.h: Likewise.
18201         * lib/sys_file.in.h: Likewise.
18202         * lib/sys_ioctl.in.h: Likewise.
18203         * lib/sys_select.in.h: Likewise.
18204         * lib/sys_socket.in.h: Likewise.
18205         * lib/sys_stat.in.h: Likewise.
18206         * lib/sys_time.in.h: Likewise.
18207         * lib/sys_times.in.h: Likewise.
18208         * lib/sys_utsname.in.h: Likewise.
18209         * lib/sys_wait.in.h: Likewise.
18210         * lib/sysexits.in.h: Likewise.
18211         * lib/termios.in.h: Likewise.
18212         * lib/time.in.h: Likewise.
18213         * lib/unistd.in.h: Likewise.
18214         * lib/wchar.in.h: Likewise.
18215         * lib/wctype.in.h: Likewise.
18216         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
18217         * modules/ctype (Makefile.am): Likewise.
18218         * modules/dirent (Makefile.am): Likewise.
18219         * modules/errno (Makefile.am): Likewise.
18220         * modules/fcntl-h (Makefile.am): Likewise.
18221         * modules/float (Makefile.am): Likewise.
18222         * modules/getopt-posix (Makefile.am): Likewise.
18223         * modules/iconv-h (Makefile.am): Likewise.
18224         * modules/inttypes (Makefile.am): Likewise.
18225         * modules/langinfo (Makefile.am): Likewise.
18226         * modules/locale (Makefile.am): Likewise.
18227         * modules/math (Makefile.am): Likewise.
18228         * modules/netdb (Makefile.am): Likewise.
18229         * modules/netinet_in (Makefile.am): Likewise.
18230         * modules/poll-h (Makefile.am): Likewise.
18231         * modules/pthread (Makefile.am): Likewise.
18232         * modules/pty (Makefile.am): Likewise.
18233         * modules/sched (Makefile.am): Likewise.
18234         * modules/search (Makefile.am): Likewise.
18235         * modules/selinux-h (Makefile.am): Likewise.
18236         * modules/signal (Makefile.am): Likewise.
18237         * modules/spawn (Makefile.am): Likewise.
18238         * modules/stdarg (Makefile.am): Likewise.
18239         * modules/stddef (Makefile.am): Likewise.
18240         * modules/stdint (Makefile.am): Likewise.
18241         * modules/stdio (Makefile.am): Likewise.
18242         * modules/stdlib (Makefile.am): Likewise.
18243         * modules/string (Makefile.am): Likewise.
18244         * modules/strings (Makefile.am): Likewise.
18245         * modules/sys_file (Makefile.am): Likewise.
18246         * modules/sys_ioctl (Makefile.am): Likewise.
18247         * modules/sys_select (Makefile.am): Likewise.
18248         * modules/sys_socket (Makefile.am): Likewise.
18249         * modules/sys_stat (Makefile.am): Likewise.
18250         * modules/sys_time (Makefile.am): Likewise.
18251         * modules/sys_times (Makefile.am): Likewise.
18252         * modules/sys_utsname (Makefile.am): Likewise.
18253         * modules/sys_wait (Makefile.am): Likewise.
18254         * modules/sysexits (Makefile.am): Likewise.
18255         * modules/termios (Makefile.am): Likewise.
18256         * modules/time (Makefile.am): Likewise.
18257         * modules/unistd (Makefile.am): Likewise.
18258         * modules/wchar (Makefile.am): Likewise.
18259         * modules/wctype (Makefile.am): Likewise.
18260
18261 2010-10-04  Bruno Haible  <bruno@clisp.org>
18262
18263         read-file tests: Avoid a test failure on NonStop Kernel.
18264         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
18265         a regular file.
18266         Reported by Joachim Schmitz <schmitz@hp.com>.
18267
18268 2010-10-03  Bruno Haible  <bruno@clisp.org>
18269
18270         gnulib-tool: Fixes for --create-testdir with --libtool.
18271         * gnulib-tool (func_get_automake_snippet): Don't augment
18272         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
18273         an executable.
18274         (func_create_testdir): Handle module 'alloca' like func_import.
18275         Reported by Bruce Korb <bruce.korb@gmail.com>.
18276
18277 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
18278
18279         Avoid some lines longer than 80 characters.
18280         * lib/stdint.in.h: Break long comment lines.
18281         * lib/math.in.h: Likewise.
18282         (_GL_NUM_UINT_WORDS): New macro, for readability.
18283         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
18284         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
18285         * lib/stdlib.in.h: Likewise.
18286         * lib/spawn.in.h: Likewise.
18287         * lib/sys_socket.in.h: Update an URL.
18288         * lib/sys_stat.in.h: Break long line.
18289
18290 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
18291
18292         Improve pmccabe2html.
18293         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
18294         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
18295         when the sources change. Remove the line in the HTML about "Used
18296         ranges" (which implied that there might be other unused ranges),
18297         rename "Resume" to "Summary" (easier to understand for more users).
18298         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
18299         styles, and some unnecessary blank lines.
18300
18301 2010-10-03  Bruno Haible  <bruno@clisp.org>
18302             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
18303
18304         acl: Add support for ACLs on NonStop Kernel.
18305         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
18306         Check whether the function aclsort() exists.
18307         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
18308         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
18309         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
18310         (acl_nontrivial [HAVE_ACLSORT]: New function.
18311         (file_has_acl): Implement for NonStop Kernel.
18312         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
18313         (qset_acl): Implement for NonStop Kernel.
18314         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
18315         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
18316         (main): Implement for NonStop Kernel.
18317         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
18318         Kernel. Handle this flavor.
18319         * tests/test-set-mode-acl.sh: Likewise.
18320         * tests/test-copy-acl.sh: Likewise.
18321         * tests/test-copy-file.sh: Likewise.
18322
18323 2010-10-03  Bruno Haible  <bruno@clisp.org>
18324
18325         Info about ACLs on NonStop Kernel.
18326         * doc/acl-resources.txt: Add info about NonStop Kernel.
18327         References by Joachim Schmitz <schmitz@hp.com>.
18328
18329 2010-10-02  Bruno Haible  <bruno@clisp.org>
18330
18331         Define missing EDQUOT on NonStop Kernel.
18332         * lib/errno.in.h (EDQUOT): Assign a value if missing.
18333         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
18334         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
18335         missing.
18336         * doc/posix-headers/errno.texi: Mention the NSK bug.
18337         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
18338         Reported by Joachim Schmitz <schmitz@hp.com>.
18339
18340 2010-10-02  Bruno Haible  <bruno@clisp.org>
18341
18342         Update doc for POSIX:2008.
18343         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
18344         Update URL of POSIX specification.
18345
18346 2010-10-02  Bruno Haible  <bruno@clisp.org>
18347
18348         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
18349         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
18350         from gnulib, not from Automake.
18351
18352 2010-10-02  Bruno Haible  <bruno@clisp.org>
18353
18354         New module 'system-posix'.
18355         * modules/system-posix: New file.
18356         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
18357         module is present.
18358         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
18359         GNULIB_SYSTEM_POSIX.
18360         * modules/stdlib (Depends-on): Remove sys_wait.
18361         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
18362         * doc/posix-functions/system.texi: Mention the new module.
18363         * doc/posix-headers/stdlib.texi: Likewise.
18364         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
18365         define test_sys_wait_macros to a no-op.
18366         Reported by Sam Steingold <sds@gnu.org>.
18367
18368 2010-09-30  Bruno Haible  <bruno@clisp.org>
18369
18370         More renaming from 'getdate' to 'get_date'.
18371         * doc/get_date.texi: Renamed from doc/getdate.texi.
18372         * modules/get_date (Files): Update.
18373         * MODULES.html.sh (Date and time <time.h>): Update.
18374         * DEPENDENCIES: Update.
18375         * gnulib-tool: Update comment.
18376         * m4/bison.m4 (gl_BISON): Likewise.
18377         * m4/get_date.m4 (gl_GET_DATE): Likewise.
18378
18379 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
18380
18381         bootstrap: support ACLOCAL_FLAGS during aclocal
18382         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
18383         can add additional -I dir for third-party .m4 files.
18384
18385 2010-09-30  Eric Blake  <eblake@redhat.com>
18386
18387         bootstrap: use glibtoolize on MacOS
18388         * build-aux/bootstrap (check_versions): Convert libtool into
18389         libtoolize.
18390         (tool search): Move libtool check earlier, and look for
18391         glibtoolize for MacOS.
18392         (gnulib_tool_options): Auto-add --libtool when appropriate.
18393         Reported by Justin Clift.
18394
18395         poll: fix typo that broke test on MacOS
18396         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
18397         Reported by Justin Clift.
18398
18399         getdate: rename to get_date
18400         Note: getdate.h is not renamed, to minimize client impact.
18401         * modules/getdate: Mark obsolete.  Move old contents...
18402         * modules/get_date: ...to new module name.
18403         * modules/getdate-tests: Move...
18404         * modules/get_date-tests: ...here.
18405         * m4/getdate.m4: Move...
18406         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
18407         * lib/getdate.y: Move...
18408         * lib/get_date.y: ...here.
18409         * tests/test-getdate.c: Move...
18410         * tests/test-get_date.c: ...here.
18411         * doc/posix-functions/getdate.texi (getdate): Update name.
18412         * NEWS: Mention the change.
18413
18414 2010-09-29  Bruno Haible  <bruno@clisp.org>
18415
18416         Separate the module 'waitpid' from the module 'sys_wait'.
18417         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
18418         present.
18419         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
18420         gl_MODULE_INDICATOR_FOR_TESTS.
18421         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
18422         * modules/sys_wait (Depends-on): Remove waitpid.
18423         (Makefile.am): Substitute GNULIB_WAITPID.
18424         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
18425         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
18426         signature only if the 'waitpid' module is present.
18427         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
18428         * NEWS: Mention the change.
18429         * modules/grantpt (Depends-on): Add waitpid.
18430         * modules/wait-process (Depends-on): Likewise.
18431
18432 2010-09-29  Bruno Haible  <bruno@clisp.org>
18433
18434         More tests for module 'sys_wait'.
18435         * modules/sys_wait-c++-tests: New file.
18436         * tests/test-sys_wait-c++.cc: New file.
18437         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
18438         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
18439
18440 2010-09-29  Bruno Haible  <bruno@clisp.org>
18441
18442         New module 'waitpid'.
18443         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
18444         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
18445         Don't include <process.h>.
18446         (waitpid): Declare only, using modern idiom.
18447         * m4/waitpid.m4: New file.
18448         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
18449         * modules/waitpid: New file.
18450         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
18451         (Makefile.am): Update.
18452         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
18453
18454 2010-09-28  Bruno Haible  <bruno@clisp.org>
18455
18456         poll: Assume ANSI C.
18457         * lib/poll.c (poll): Use an ANSI C declaration.
18458
18459 2010-09-28  Bruno Haible  <bruno@clisp.org>
18460
18461         poll-h: Create poll.h on all platforms.
18462         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
18463         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
18464         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
18465         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
18466         (gl_REPLACE_POLL_H): Don't set POLL_H.
18467         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
18468         * modules/poll-h (Depends-on): Add include_next.
18469         (Makefile.am): Create poll.h unconditionally. Substitute also
18470         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
18471
18472 2010-09-28  Bruno Haible  <bruno@clisp.org>
18473
18474         Tests for module 'poll-h'.
18475         * modules/poll-h-c++-tests: New file.
18476         * tests/test-poll-h-c++.cc: New file.
18477
18478         Tests for module 'poll-h'.
18479         * modules/poll-h-tests: New file.
18480         * tests/test-poll-h.c: New file.
18481
18482 2010-09-28  Bruno Haible  <bruno@clisp.org>
18483
18484         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
18485         * modules/poll-h (Depends-on): Add 'extensions'.
18486
18487 2010-09-28  Bruno Haible  <bruno@clisp.org>
18488
18489         New module 'poll-h'.
18490         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
18491         (poll): Use modern idiom.
18492         * modules/poll-h: New file.
18493         * modules/poll (Files): Remove lib/poll.in.h.
18494         (Depends-on): Add poll-h.
18495         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
18496         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
18497         * m4/poll_h.m4: New file.
18498         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
18499         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
18500         and invoke gl_REPLACE_POLL_H.
18501         * lib/poll.c: Use common idiom.
18502         * tests/test-poll.c: Likewise.
18503         * doc/posix-headers/poll.texi: Mention the poll-h module.
18504         Suggested by Eric Blake.
18505
18506 2010-09-26  Bruno Haible  <bruno@clisp.org>
18507
18508         sys_wait: Implement WSTOPSIG.
18509         * lib/sys_wait.in.h (WSTOPSIG): New macro.
18510         Reported by Simon Josefsson.
18511
18512 2010-09-26  Simon Josefsson  <simon@josefsson.org>
18513
18514         stdlib, sys_wait: Avoid compilation error on mingw.
18515         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
18516
18517 2010-09-26  Bruno Haible  <bruno@clisp.org>
18518
18519         stdlib tests: Avoid code duplication.
18520         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
18521         * modules/sys_wait-tests (Files): Likewise.
18522         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
18523         * tests/test-stdlib.c: Include test-sys_wait.h.
18524         (main): Invoke test_sys_wait_macros.
18525         * tests/test-sys_wait.c: Include test-sys_wait.h.
18526         (main): Invoke test_sys_wait_macros.
18527
18528 2010-09-25  Simon Josefsson  <simon@josefsson.org>
18529
18530         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
18531         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
18532         sure Windows sockets are working before calling getaddrinfo.
18533         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
18534         * doc/gnulib.texi (Windows sockets): Fix typo.
18535
18536 2010-09-25  Bruno Haible  <bruno@clisp.org>
18537
18538         Tests for module 'regex-quote'.
18539         * modules/regex-quote-tests: New file.
18540         * tests/test-regex-quote.c: New file.
18541
18542         New module 'regex-quote'.
18543         * lib/regex-quote.h: New file.
18544         * lib/regex-quote.c: New file.
18545         * modules/regex-quote: New file.
18546         Suggested by Reuben Thomas <rrt@sc3d.org>.
18547
18548 2010-09-24  Bruno Haible  <bruno@clisp.org>
18549
18550         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
18551         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
18552
18553 2010-09-23  Bruno Haible  <bruno@clisp.org>
18554
18555         setenv: Relax license.
18556         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
18557         Blake.
18558         Requested by Eric Blake.
18559
18560 2010-09-22  Bruno Haible  <bruno@clisp.org>
18561
18562         termios: Relax license.
18563         * modules/termios (License): Change to LGPLv2+.
18564         Requested by Eric Blake.
18565
18566 2010-09-22  Bruno Haible  <bruno@clisp.org>
18567
18568         threadlib: Allow the package to change the default to 'no'.
18569         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
18570         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
18571         Reported by Paul Eggert.
18572
18573 2010-09-22  Pádraig Brady  <P@draigbrady.com>
18574             Bruno Haible  <bruno@clisp.org>
18575
18576         Fix endless loop in mbmemcasecoll.
18577         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
18578         byte.
18579         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
18580
18581 2010-09-22  Bruno Haible  <bruno@clisp.org>
18582
18583         Tests for module 'memcoll'.
18584         * modules/memcoll-tests: New file.
18585         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
18586
18587         memcoll, xmemcoll: Clarify size vs. length.
18588         * modules/memcoll.c (memcoll0): Clarify specification.
18589         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
18590         passed to collate_error.
18591
18592 2010-09-22  Bruno Haible  <bruno@clisp.org>
18593
18594         Tests for module 'memcasecmp'.
18595         * modules/memcasecmp-tests: New file.
18596         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
18597
18598 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
18599
18600         * lib/pthread.in.h: Add split double-inclusion guard, and include
18601         system <pthread.h> if there is one.  Use @@-style as in other
18602         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
18603         pthread.h doesn't.
18604         (pthread_mutexattr_destroy, pthread_mutexattr_init):
18605         (pthread_mutexattr_settype, pthread_mutex_trylock):
18606         New static inline functions, if there's no system <pthread.h>.
18607         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
18608         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
18609         Approximate with mutexes if the system lacks spinlocks, as in
18610         MacOS.
18611         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
18612         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
18613         @@-style.  Check for spinlocks separately.
18614         (gl_PTHREAD_DEFAULTS): New macro.
18615         * modules/pthread: Redo to use a more typical style for in.h files.
18616
18617 2010-09-21  Eric Blake  <eblake@redhat.com>
18618
18619         net_if: enhance tests
18620         * tests/test-net_if.c (main): Move signature checks earlier.
18621         Print failures to stderr.
18622         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
18623         Document the bug that we do not yet fix.
18624
18625 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
18626
18627         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
18628         about gnulib, not GSS.
18629
18630 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
18631
18632         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
18633         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
18634         for Emacs.
18635         * build-aux/pmccabe2html: Make Makefile.am example code more
18636         cut-and-paste friendly.
18637
18638 2010-09-21  Simon Josefsson  <simon@josefsson.org>
18639
18640         * tests/test-net_if.c: New file.
18641         * modules/net_if-tests: New file.
18642
18643 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
18644
18645         pthread: add pthread_spin_destroy
18646         * lib/pthread.in.h (pthread_spin_destroy): New function.
18647
18648 2010-09-19  Bruno Haible  <bruno@clisp.org>
18649
18650         gnulib-tool: Fix --help output.
18651         * gnulib-tool (func_usage): Fix help message.
18652         Reported by Reuben Thomas <rrt@sc3d.org>.
18653
18654 2010-09-18  Jim Meyering  <meyering@redhat.com>
18655
18656         maint.mk: avoid unexpanded \n in two diagnostics
18657         * top/maint.mk (sc_prohibit_always_true_header_tests):
18658         Don't use a literal \n in a halt=... assignment.  It would not be
18659         expanded, and the two \n bytes would appear in the diagnostic output
18660         rather than the desired newline.  Use halt=$$(printf ... instead.
18661         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
18662
18663 2010-09-18  Bruno Haible  <bruno@clisp.org>
18664
18665         netinet_in: Doc tweak.
18666         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
18667         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
18668
18669 2010-09-18  Jim Meyering  <meyering@redhat.com>
18670
18671         init.sh: correct an outdated comment
18672         * tests/init.sh (create_exe_shims_):  s/function/alias/
18673
18674         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
18675         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
18676         a file named "*.exe" is removed between the glob expansion and the
18677         processing of that oddly named file.
18678
18679 2010-09-17  Eric Blake  <eblake@redhat.com>
18680
18681         mirbsd: add some more support
18682         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
18683         in BSD family.
18684         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
18685         devices as OpenBSD.
18686         * m4/host-os.m4 (mirbsd): Add MirBSD.
18687
18688         tests: fix unportable assumption on sys/wait.h
18689         * tests/test-sys_wait.c (main): Relax test.
18690         * tests/test-stdlib.c (main): Likewise.
18691
18692         init.sh: accomodate directory with no .exes
18693         * tests/init.sh: Accomodate directory containing only scripts.
18694
18695         tests: avoid compiler warning
18696         * tests/test-stdlib.c (main): Use the variable.
18697
18698         fdutimens, fdutimensat: update signature, again
18699         * lib/utimens.h (gl_futimens): Delete, and move signature...
18700         (fdutimens): ...here.
18701         (fdutimensat): Rearrange signature.
18702         (lutimensat): Rename variable for clarity.
18703         * lib/fdutimensat.c (fdutimensat): Update signature.
18704         * lib/utimens.c (fdutimens): Likewise.
18705         (gl_futimens): Delete.
18706         (utimens, lutimens): Update callers.
18707         * lib/futimens.c (futimens): Likewise.
18708         * tests/test-fdutimensat.c: Likewise.
18709         * tests/test-utimens.c: Likewise.
18710         * tests/test-futimens.h: Update comment.
18711         * NEWS: Mention this.
18712         Suggested by Paul Eggert.
18713
18714 2010-09-17  Bruno Haible  <bruno@clisp.org>
18715
18716         Take over the maintenance of some older macros from Autoconf.
18717         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
18718         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
18719         GNU Autoconf.
18720         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
18721         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
18722
18723 2010-09-17  Eric Blake  <eblake@redhat.com>
18724
18725         fdutimensat: drop atflag validation
18726         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
18727         with valid fd, to close a race scenario where futimens is
18728         unsupported and FILE was replaced by a symlink.
18729         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
18730         accordingly.
18731         Suggested by Paul Eggert.
18732
18733 2010-09-16  Bruno Haible  <bruno@clisp.org>
18734
18735         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
18736         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
18737
18738 2010-09-16  Bruno Haible  <bruno@clisp.org>
18739
18740         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
18741         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
18742         login_tty exists.
18743         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
18744
18745 2010-09-16  Bruno Haible  <bruno@clisp.org>
18746
18747         login_tty: Make the replacement code work on BSD systems.
18748         * lib/login_tty.c: Include <sys/ioctl.h>.
18749         (login_tty): Use ioctl TIOCSCTTY when available.
18750         * modules/login_tty (Depends-on): Add sys_ioctl.
18751         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
18752
18753 2010-09-16  Bruno Haible  <bruno@clisp.org>
18754
18755         login_tty: Stricter unit test.
18756         * modules/login_tty-tests (Depends-on): Add tcgetsid.
18757         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
18758         and tcgetsid() after login_tty.
18759         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
18760
18761 2010-09-16  Bruno Haible  <bruno@clisp.org>
18762
18763         New module 'tcgetsid'.
18764         * lib/tcgetsid.c: New file.
18765         * m4/tcgetsid.m4: New file.
18766         * modules/tcgetsid: New file.
18767         * modules/termios (Depends-on): Add c++defs, warn-on-use.
18768         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
18769         GNULIB_TCGETSID, HAVE_TCGETSID.
18770         * lib/termios.in.h: Include <sys/types.h>.
18771         (tcgetsid): New declaration.
18772         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
18773         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
18774         * doc/posix-functions/tcgetsid.texi: Mention the new module.
18775         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
18776
18777 2010-09-16  Bruno Haible  <bruno@clisp.org>
18778
18779         Tests for module 'termios'.
18780         * modules/termios-c++-tests: New file.
18781         * modules/termios-tests: New file.
18782         * tests/test-termios-c++.cc: New file.
18783         * tests/test-termios.c: New file.
18784
18785         New module 'termios'.
18786         * modules/termios: New file.
18787         * lib/termios.in.h: New file.
18788         * m4/termios_h.m4: New file.
18789         * doc/posix-headers/termios.texi: Mention the new module.
18790
18791 2010-09-16  Eric Blake  <eblake@redhat.com>
18792
18793         fdutimensat: add an atflag parameter
18794         * lib/fdutimensat.c (fdutimensat): Add new parameter.
18795         * lib/utimens.h (fdutimensat): Update prototype.
18796         * tests/test-fdutimensat.c: Adjust test to match.
18797         * NEWS: Document the change.
18798         Suggested by Paul Eggert.
18799
18800 2010-09-16  Bruno Haible  <bruno@clisp.org>
18801
18802         Fix typos in comments.
18803         * lib/striconveh.h: Fix typo in comment.
18804         * lib/login_tty.c (login_tty): Likewise.
18805
18806 2010-09-15  Bruno Haible  <bruno@clisp.org>
18807
18808         stdlib: clarify MirBSD WEXITSTATUS bug
18809         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
18810         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
18811
18812 2010-09-15  Eric Blake  <eblake@redhat.com>
18813
18814         stdlib: work around MirBSD WEXITSTATUS bug
18815         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
18816         * modules/stdlib (Depends-on): Add sys_wait.
18817         * tests/test-sys_wait.c (main): Enhance test.
18818         * tests/test-stdlib.c (main): Likewise.
18819         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
18820
18821         docs: mention MacOS issue with WEXITSTATUS(constant)
18822         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
18823         issue.
18824         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
18825
18826         strnlen: add tests
18827         * modules/strnlen-tests: New file.
18828         * tests/test-strnlen.c: Likewise.
18829
18830 2010-09-14  Bruno Haible  <bruno@clisp.org>
18831
18832         unistr/base: Avoid link errors when module 'libunistring' is also used.
18833         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
18834         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
18835         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
18836         Declare also when HAVE_LIBUNISTRING is set.
18837         Reported by Pádraig Brady <P@draigbrady.com>.
18838
18839 2010-09-14  Eric Blake  <eblake@redhat.com>
18840
18841         test-rawmemchr: make more robust
18842         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
18843         (Depends-on, configure.ac): Add needed prerequisites to use it.
18844         * modules/memchr-tests (Files, Depends-on, configure.ac):
18845         Likewise, to avoid implicit reliance on memchr module prereqs.
18846         * tests/test-memchr.c (main): Ensure proper masking.
18847         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
18848         reads.
18849
18850         memchr: detect glibc Alpha bug
18851         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
18852         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
18853         Alpha.
18854         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
18855         * tests/test-memchr.c (main): Enhance test.
18856         Reported by Nelson H. F. Beebe.
18857
18858 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
18859
18860         fts, getcwd, glob: audit for dirfd returning -1
18861         * lib/fts.c (opendir): Remove #define; no longer used.
18862         (opendirat): New arg PDIR_FD.  All callers changed.
18863         (fts_build, _opendir2): Use new opendirat to avoid the need for
18864         dirfd, or for checking whether dirfd returns a negative value.
18865         Don't use opendir; always use openat followed by fdopendir.
18866         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
18867         it.
18868         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
18869         returns -1 here.
18870         * modules/fts (Depends-on): Remove dirfd.
18871         * modules/getcwd (Depends-on): Likewise.
18872
18873 2010-09-13  Eric Blake  <eblake@redhat.com>
18874
18875         float: fix broken MirBSD header
18876         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
18877         * doc/posix-headers/float.texi (float.h): Document it.
18878
18879 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
18880
18881         fts: use O_NOFOLLOW to avoid race condition when opening a directory
18882         * lib/fts.c (opendirat): New arg extra_flags.
18883         (__opendir2): Use it to avoid following symlinks when opening
18884         a directory, if symlinks are not supposed to be followed.  See
18885         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
18886
18887         fdopendir: preserve argument fd before returning
18888         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
18889         (fdopendir_with_dup, fd_clone_opendir): New static functions.
18890         (fdopendir): Use them, arranging for FD to be open to the same
18891         directory that it was when it started.  (It might be temporarily
18892         closed while fdopendir is running, so this not thread- or
18893         signal-safe.)  Be careful to do the right thing even when file
18894         descriptors are scarce and dup fails with errno == EMFILE.  See
18895         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
18896
18897 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
18898
18899         regex: Pass the system regex if its only problem is 32-bit regoff_t.
18900         * NEWS: Document change.
18901         * m4/regex.m4: Disable test for regoff_t size.
18902
18903 2010-09-13  Jim Meyering  <meyering@redhat.com>
18904
18905         fts: don't operate on an invalid file descriptor after failed dup
18906         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
18907         negative file descriptor.
18908
18909 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
18910
18911         savedir: add streamsavedir, deprecate fdsavedir
18912         * NEWS: Mention deprecation of fdsavedir.
18913         * lib/savedir.c (streamsavedir): New extern function, whose name
18914         ends in "savedir" to be consistent with the others.  This differs
18915         from savedirstream in that it doesn't close its argument.  The
18916         next version of GNU tar will use this instead of fdsavedir, to
18917         avoid some race conditions and conserve file descriptors.
18918         (savedirstream): Reimplement as a wrapper around streamsavedir.
18919         (fdsavedir): Add a comment deprecating this function.  As far as
18920         I know, only GNU tar used it, and GNU tar doesn't need it any more.
18921         * lib/savedir.h (streamsavedir): New decl.
18922         (fdsavedir): Add a comment deprecating this.
18923
18924 2010-09-10  Bruno Haible  <bruno@clisp.org>
18925
18926         langinfo: Fix last commit.
18927         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
18928         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
18929         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18930
18931 2010-09-10  Bruno Haible  <bruno@clisp.org>
18932
18933         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
18934         * lib/progreloc.c (O_EXEC): Define fallback.
18935
18936 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
18937
18938         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
18939         * NEWS: Document recent changes to fcntl-h.
18940         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
18941         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
18942         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
18943         Similarly for O_SEARCH; this last was already true, but not documented.
18944         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
18945         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
18946         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
18947         Likewise.
18948         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
18949         is zero, not whether it is defined.
18950         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
18951         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
18952         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
18953
18954 2010-09-10  Bruno Haible  <bruno@clisp.org>
18955
18956         langinfo, nl_langinfo: Fix for IRIX 5.3.
18957         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
18958         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
18959         HAVE_LANGINFO_YESEXPR.
18960         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
18961         HAVE_LANGINFO_YESEXPR.
18962         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
18963         HAVE_LANGINFO_T_FMT_AMPM is 0.
18964         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
18965         HAVE_LANGINFO_YESEXPR is 0.
18966         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
18967         NOEXPR.
18968         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
18969         * doc/posix-functions/nl_langinfo.texi: Likewise.
18970         Reported by Eric Blake.
18971
18972 2010-09-10  Bruno Haible  <bruno@clisp.org>
18973
18974         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
18975         * doc/glibc-functions/login_tty.texi: Mention the include file problem
18976         on FreeBSD 8.0 and OpenBSD 4.6.
18977         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
18978         * m4/pty_h.m4 (gl_PTY_H): Likewise.
18979         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
18980         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
18981         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
18982         ac_includes_default.
18983         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
18984
18985 2010-09-09  Eric Blake  <eblake@redhat.com>
18986
18987         strsignal: work around NetBSD bug
18988         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
18989         * lib/string.in.h (includes): Likewise.
18990         * doc/posix-functions/strsignal.texi (strsignal): Document the
18991         bug.
18992         Reported by Nelson H. F. Beebe.
18993
18994         gnulib-tool: work with NetBSD /bin/sh
18995         * gnulib-tool (func_cache_var, func_cache_lookup_module)
18996         (func_get_description, func_get_comment, func_get_status)
18997         (func_get_notice, func_get_applicability, func_get_filelist)
18998         (func_get_dependencies, func_get_autoconf_early_snippet)
18999         (func_get_autoconf_snippet, func_get_automake_snippet)
19000         (func_get_include_directive, func_get_link_directive)
19001         (func_get_license, func_get_maintainer, func_import): Avoid
19002         shell syntax errors from parsing syntax extensions.
19003
19004 2010-09-09  Bruno Haible  <bruno@clisp.org>
19005
19006         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
19007         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
19008         a reliable way to determine whether the 'alias' command works.
19009
19010 2010-09-08  Jim Meyering  <meyering@redhat.com>
19011
19012         init.sh: penalize a set-x-impaired shell; don't disqualify it
19013         * tests/init.sh: Too many shells corrupt application stderr when
19014         you set -x, so we can't afford to disqualify them, since at least
19015         on Irix-6.5, that would disqualify all bourne shells.
19016         Instead, use a two-pass approach.
19017         On the first pass, try to find a shell that meets the stricter
19018         condition that set -x does not corrupt stderr.
19019         If no shell meets the stricter condition, retest each candidate
19020         shell, but without that extra condition.  Finally, when
19021         VERBOSE=yes is requested and set -x might cause trouble, simply
19022         issue a warning and refrain from enabling debug output.
19023
19024 2010-09-08  Eric Blake  <eblake@redhat.com>
19025
19026         unsetenv: fix OpenBSD bug
19027         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
19028         * doc/posix-functions/unsetenv.texi (unsetenv): Update
19029         documentation.
19030         Reported by Jim Meyering.
19031
19032         strtod: work around IRIX 6.5 bug
19033         * lib/strtod.c (strtod): Reparse number on shorter string if
19034         exponent parse was invalid.
19035         * tests/test-strtod.c (main): Add check for "0x1p 2".
19036         Reported by Tom G. Christensen.
19037
19038         getopt: optimize previous patch
19039         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
19040         empty variable.  Speed up awk script.
19041         Reported by Paolo Bonzini.
19042
19043 2010-09-08  Jim Meyering  <meyering@redhat.com>
19044
19045         test.sh: disqualify shells for which set -x corrupts stderr
19046         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
19047         and OpenBSD 4.7.  They make it so with "set -x", environment settings
19048         appear in stderr output.  For example, this command:
19049             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
19050         prints "P=1" on those two systems:
19051
19052 2010-09-08  Bruno Haible  <bruno@clisp.org>
19053
19054         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
19055         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
19056         commands, because some shells ignore redirections when there is an
19057         error in the command lookup.
19058         Reported by Eric Blake.
19059
19060 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
19061
19062         * lib/regex.h: Fix a mention of `regex_compile' (should be
19063         `re_compile_pattern').
19064         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
19065         (re_set_registers): Correct name of parameter in comment.
19066
19067         * doc/regex.texi: Add documentation for missing syntax flags.
19068         Remove commented-out documentation of defunct syntax option
19069         RE_NO_EMPTY_ALTS.
19070         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
19071         Add documentation of re_set_registers.
19072         Document trick to re-use a pattern buffer by setting fastmap manually.
19073         Update documentation of struct re_pattern_buffer per public members.
19074         Uncomment documentation of equivalence class operators and
19075         collating symbol operators, since they are now implemented,
19076         Explain leftmost-longest matching in relation to alternatives.
19077         Tidy documentation of substring matching.
19078         Remove POSIX documentation, which is done better in
19079         glibc, and refer the reader there. Keep BSD API documentation, as
19080         that is not readily available elsewhere.
19081
19082 2010-09-07  Eric Blake  <eblake@redhat.com>
19083
19084         getopt: handle POSIXLY_CORRECT set but not exported
19085         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
19086         export state of POSIXLY_CORRECT, due to bash set -o posix.
19087         Reported by Dustin J. Mitchell.
19088
19089 2010-09-05  Bruno Haible  <bruno@clisp.org>
19090
19091         gnulib-tool: Highlight the changed options.
19092         * gnulib-tool (func_usage): Display the --import, --add-import,
19093         --remove-import explanations in bold font.
19094
19095 2010-09-06  Karl Berry  <karl@gnu.org>
19096
19097         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
19098
19099 2010-09-05  Bruno Haible  <bruno@clisp.org>
19100
19101         uniwidth/width: Update comment.
19102         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
19103         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
19104
19105 2010-09-05  Bruno Haible  <bruno@clisp.org>
19106
19107         isinf, isnan: Relax license.
19108         * modules/isinf (License): Change from GPL to LGPL, with consent from
19109         Ben Pfaff.
19110         * modules/isnan (License): Likewise.
19111         Requested by Ludovic Courtès.
19112
19113 2010-09-04  Bruno Haible  <bruno@clisp.org>
19114
19115         gnulib-tool: Help migration from --import to --add-import or --update.
19116         * gnulib-tool: Emit a verbose error message when --import is used
19117         without any module name.
19118
19119 2010-09-04  Bruno Haible  <bruno@clisp.org>
19120
19121         Update doc about gnulib-tool.
19122         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
19123         'gnulib-tool --update' in more detail.
19124         Reported by Eric Blake.
19125
19126 2010-09-04  Bruno Haible  <bruno@clisp.org>
19127
19128         gnulib-tool: Change --import. New options --add/remove-import.
19129         * gnulib-tool: New options --add-import, --remove-import.
19130         (func_usage): Document them.
19131         (have_associative): Define always.
19132         (func_import): In import mode, don't merge the specified settings with
19133         the cached settings. Implement remove-import mode.
19134         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
19135         Explain when to use them versus --import.
19136         (Simple update): Use --add-import instead of --import.
19137         * NEWS: Mention the change.
19138
19139 2010-09-04  Bruno Haible  <bruno@clisp.org>
19140
19141         * doc/gnulib-tool.texi (Initial import): Update paragraph about
19142         separate gnulib.mk.
19143
19144 2010-09-04  Bruno Haible  <bruno@clisp.org>
19145
19146         gnulib-tool: Don't talk about CVS any more.
19147         * gnulib-tool (func_usage, func_import): Write "version control"
19148         instead of CVS.
19149
19150 2010-09-04  Jim Meyering  <meyering@redhat.com>
19151
19152         maint.mk: avoid obscure sc_copyright_check failure in coreutils
19153         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
19154         false positives (whose names may be ill-chosen) when searching
19155         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
19156         would cause a false-positive.
19157
19158         avoid coreutils "make distcheck" failure
19159         Coreutils tests with an absolute build directory name that contains
19160         a space.  Not quoting this directory name caused a failure.
19161         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
19162         * tests/test-vc-list-files-cvs.sh: Likewise.
19163
19164 2010-09-04  Bruno Haible  <bruno@clisp.org>
19165
19166         gnulib-tool: Avoid error when run in a package without Makefile.am.
19167         * gnulib-tool: When collecting the m4dirs in a package that does not
19168         have a Makefile.am, eliminate those directories that contain no
19169         gnulib-cache.m4. Fix expression that counts these directories.
19170
19171 2010-09-04  Bruno Haible  <bruno@clisp.org>
19172
19173         update-copyright test: Improve output when perl is missing or too old.
19174         * tests/test-update-copyright.sh: Move test of Perl version down after
19175         the test whether Perl exists. Provide an explanation relating Perl's
19176         error message to Automake's SKIP: message.
19177
19178 2010-09-04  Bruno Haible  <bruno@clisp.org>
19179
19180         Don't augment PATH in TESTS_ENVIRONMENT.
19181         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
19182         set abs_aux_dir instead of augmenting PATH.
19183         * modules/vc-list-files-tests (Makefile.am): Likewise.
19184         * tests/test-update-copyright.sh: Augment PATH here.
19185         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
19186         path_prepend_.
19187         * tests/test-vc-list-files-git.sh: Likewise.
19188
19189 2010-09-04  Jim Meyering  <meyering@redhat.com>
19190
19191         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
19192         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
19193
19194 2010-09-04  Bruno Haible  <bruno@clisp.org>
19195
19196         strdup: Fix compilation error in C++ mode.
19197         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
19198         the macro.
19199
19200 2010-09-04  Bruno Haible  <bruno@clisp.org>
19201
19202         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
19203         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
19204         macro into a function.
19205         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
19206
19207 2010-09-04  Bruno Haible  <bruno@clisp.org>
19208
19209         Set PATH_SEPARATOR the same way autoconf does.
19210         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
19211         the value of PATH_SEPARATOR the same way autoconf-generated configure
19212         scripts do.
19213         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
19214         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
19215
19216 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
19217
19218         Set PATH_SEPARATOR the same way autoconf does.
19219         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
19220         the same way autoconf-generated configure scripts do.
19221         * posix-modules: Likewise.
19222
19223 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
19224
19225         hash: fix safe_hasher const typo
19226         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
19227         const; otherwise, there is a type error later.
19228
19229 2010-09-02  Jim Meyering  <meyering@redhat.com>
19230
19231         test-update-copyright.sh: require perl 5.8.0
19232         * tests/test-update-copyright.sh: Require 5.8.0,
19233         which Tom G. Christensen has confirmed is adequate,
19234         while 5.6.1 is not.
19235
19236 2010-09-02  Eric Blake  <eblake@redhat.com>
19237
19238         tests: init.sh improvements for re-exec'ing with zsh
19239         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
19240         -vx through shell re-exec.
19241         Reported by Tom G. Christensen.
19242
19243         wctype: fix typo in previous commit
19244         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
19245         Reported by Ludovic Courtès.
19246
19247 2010-09-02  Jim Meyering  <meyering@redhat.com>
19248
19249         test-update-copyright.sh: skip test if Perl is too old
19250         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
19251         Reported by Tom G. Christensen.
19252
19253 2010-09-02  Bruno Haible  <bruno@clisp.org>
19254
19255         wctype: Avoid compilation error on IRIX 6.5.30.
19256         * lib/wctype.in.h (iswblank): Declare with a replacement if
19257         REPLACE_ISWBLANK is set.
19258         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
19259         declared. Set REPLACE_ISWBLANK.
19260         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
19261         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
19262         * doc/posix-headers/wctype.texi: Likewise.
19263         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19264
19265 2010-09-01  Bruno Haible  <bruno@clisp.org>
19266
19267         New module 'socketlib'.
19268         * modules/socketlib: New file.
19269         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
19270         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
19271         * modules/sockets (Depends-on): Add socketlib.
19272         Suggested by Sam Steingold <sds@gnu.org>.
19273
19274 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
19275
19276         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
19277
19278         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
19279         when one needs search access to a directory but not read access.
19280         On systems where it is available, it works in some cases where
19281         O_RDONLY does not, namely on directories that are searchable but
19282         not readable, and which need only to be searchable.  If O_SEARCH
19283         is not available, fall back to the traditional method of using
19284         O_RDONLY.
19285
19286         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
19287         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
19288         when opening a directory that needs only to be searchable.
19289         * lib/chdir-safer.c (chdir_no_follow): Likewise.
19290         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
19291         * lib/openat-proc.c (openat_proc_name): Likewise.
19292         * lib/openat.c (openat_needs_fchdir): Likewise.
19293         * lib/save-cwd.c (save_cwd): Likewise.
19294         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
19295
19296 2010-08-28  Bruno Haible  <bruno@clisp.org>
19297
19298         New module 'host-cpu-c-abi'.
19299         * modules/host-cpu-c-abi: New file.
19300         * m4/host-cpu-c-abi.m4: New file, based on part of
19301         clisp/src/m4/general.m4.
19302         Requested by Sam Steingold <sds@gnu.org>.
19303
19304 2010-08-31  Eric Blake  <eblake@redhat.com>
19305         and Jim Meyering  <meyering@redhat.com>
19306
19307         hash: factor, and guard against misbehaving hasher function
19308         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
19309         of table->hasher's return value.  Also protect against a hash value
19310         so large that adding it to table->bucket results in a NULL pointer.
19311         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
19312         Use it in place of open-coded check-and-abort.
19313
19314 2010-08-30  Bruno Haible  <bruno@clisp.org>
19315
19316         hash: silence spurious clang warning
19317         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
19318         Reported by Eric Blake.
19319
19320 2010-08-30  Eric Blake  <eblake@redhat.com>
19321
19322         strstr, memmem, strcasestr: avoid leaked shell message
19323         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
19324         FreeBSD.
19325         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
19326         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
19327
19328         tests: silence clang warning
19329         * tests/test-malloca.c (do_allocation): Avoid dead store.
19330
19331 2010-08-29  Bruno Haible  <bruno@clisp.org>
19332
19333         gettext: Fix recent mistake.
19334         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
19335
19336 2010-08-29  Bruno Haible  <bruno@clisp.org>
19337
19338         selinux-h: Offer a --without-selinux option.
19339         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
19340         --without-selinux was specified, skip all tests and define
19341         HAVE_SELINUX_SELINUX_H to 0.
19342         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
19343         set LIB_SELINUX to empty.
19344         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
19345         gl_LIBSELINUX. If --without-selinux was specified, replace
19346         selinux/context.h.
19347         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
19348
19349 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19350             Bruno Haible  <bruno@clisp.org>
19351
19352         Make the module 'realloc-gnu' work again on AIX and OSF/1.
19353         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
19354         of HAVE_REALLOC.
19355         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
19356         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
19357         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
19358         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
19359
19360 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19361             Bruno Haible  <bruno@clisp.org>
19362
19363         Make the module 'calloc-gnu' work again on AIX and OSF/1.
19364         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
19365         HAVE_CALLOC.
19366         * lib/xmalloc.c: Update accordingly.
19367         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
19368         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
19369         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
19370
19371 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19372             Bruno Haible  <bruno@clisp.org>
19373
19374         Make the module 'malloc-gnu' work again on AIX and OSF/1.
19375         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
19376         HAVE_MALLOC.
19377         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
19378         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
19379         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
19380
19381 2010-08-29  Bruno Haible  <bruno@clisp.org>
19382
19383         Update modules list.
19384         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
19385         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
19386         (String handling <string.h>): Add astrxfrm.
19387         (File system functions): Add readlinkat.
19388
19389 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19390
19391         Tests for module 'realloc-gnu'.
19392         * modules/realloc-gnu-tests: New file.
19393         * tests/test-realloc-gnu.c: New file.
19394
19395         Tests for module 'calloc-gnu'.
19396         * modules/calloc-gnu-tests: New file.
19397         * tests/test-calloc-gnu.c: New file.
19398
19399         Tests for module 'malloc-gnu'.
19400         * modules/malloc-gnu-tests: New file.
19401         * tests/test-malloc-gnu.c: New file.
19402
19403 2010-08-28  Bruno Haible  <bruno@clisp.org>
19404
19405         Rename module 'realloc' -> 'realloc-gnu'.
19406         * modules/realloc-gnu: New file, copied from modules/realloc.
19407         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
19408         obsolete.
19409         * modules/mgetgroups (Depends-on): Update.
19410         * doc/posix-functions/realloc.texi: Update.
19411         * NEWS: Mention the change.
19412
19413         Rename module 'calloc' -> 'calloc-gnu'.
19414         * modules/calloc-gnu: New file, copied from modules/calloc.
19415         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
19416         obsolete.
19417         * doc/posix-functions/calloc.texi: Update.
19418         * NEWS: Mention the change.
19419
19420         Rename module 'malloc' -> 'malloc-gnu'.
19421         * modules/malloc-gnu: New file, copied from modules/malloc.
19422         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
19423         obsolete.
19424         * modules/argp (Depends-on): Update.
19425         * modules/regex (Depends-on): Update.
19426         * doc/posix-functions/malloc.texi: Update.
19427         * NEWS: Mention the change.
19428
19429 2010-08-28  Eric Blake  <eblake@redhat.com>
19430
19431         pread, pwrite: add missing dependency
19432         * modules/pread (Depends-on): Add extensions.
19433         * modules/pwrite (Depends-on): Likewise.
19434
19435 2010-08-28  Bruno Haible  <bruno@clisp.org>
19436
19437         unistr/u*-strchr: Fix tests dependencies.
19438         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
19439         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
19440         Reported by Ian Beckwith <ianb@erislabs.net>.
19441
19442 2010-08-28  Bruno Haible  <bruno@clisp.org>
19443
19444         read-file: Don't occupy too much unused memory.
19445         * lib/read-file.c (fread_file): Shrink the buffer at the end.
19446
19447 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
19448             Eric Blake  <eblake@redhat.com>
19449             Bruno Haible  <bruno@clisp.org>
19450
19451         read-file: Avoid memory reallocations with regular files.
19452         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
19453         (fread_file): With regular files, use the remaining length as the
19454         initial buffer size.  Check against overflow.
19455         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
19456         sys_stat.
19457
19458 2010-08-28  Bruno Haible  <bruno@clisp.org>
19459
19460         ftello: Relax license.
19461         * modules/ftello (License): Relax to LGPLv2+.
19462         Reported by Eric Blake.
19463
19464 2010-08-28  Bruno Haible  <bruno@clisp.org>
19465
19466         Avoid relocwrapper link errors due to gnulib replacement functions.
19467         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
19468         function.
19469         Reported by Ben Pfaff <blp@cs.stanford.edu>.
19470
19471 2010-08-28  Bruno Haible  <bruno@clisp.org>
19472
19473         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
19474         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
19475         defined.
19476         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
19477         Suggested by Eric Blake.
19478
19479 2010-08-28  Bruno Haible  <bruno@clisp.org>
19480
19481         sys_socket, netdb: Ensure socklen_t gets defined.
19482         * modules/sys_socket (Depends-on): Add socklen.
19483         * modules/netdb (Depends-on): Likewise.
19484         * modules/getaddrinfo (Depends-on): Remove socklen.
19485         * modules/getsockopt (Depends-on): Likewise.
19486         * modules/setsockopt (Depends-on): Likewise.
19487         * tests/test-sys_socket.c: Check that socklen_t is defined.
19488         * tests/test-netdb.c: Likewise.
19489         * m4/socklen.m4: Update comments.
19490         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19491
19492 2010-08-27  Eric Blake  <eblake@redhat.com>
19493
19494         login_tty: add missing dependency
19495         * modules/login_tty (Depends-on): Add pty.
19496
19497 2010-08-26  Eric Blake  <eblake@redhat.com>
19498
19499         lib-symbol-versions: fix m4 quoting
19500         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
19501         format for AC_LINK_IFELSE.
19502
19503         glob: fix compile test
19504         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
19505
19506         btowc: fix missing file
19507         * modules/btowc (Files): Also ship locale-fr.m4.
19508
19509         lseek: fix link test
19510         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
19511         AC_LINK_IFELSE.
19512
19513         include_next: silence autoconf 2.68 warning
19514         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
19515         AC_COMPILE_IFELSE as special.
19516         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
19517         autoconf < 2.68.
19518
19519         acl: fix compilation test
19520         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
19521         AC_COMPILE_IFELSE.
19522
19523 2010-08-26  Bruno Haible  <bruno@clisp.org>
19524
19525         Modernize AC_TRY_RUN invocations.
19526         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
19527         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
19528         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
19529         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
19530         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
19531         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
19532         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
19533         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
19534         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
19535         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
19536         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
19537         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
19538         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
19539         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
19540         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
19541         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
19542         gl_MBRLEN_NUL_RETVAL): Likewise.
19543         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
19544         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
19545         Likewise.
19546         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
19547         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
19548         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
19549         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
19550         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
19551         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
19552         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
19553         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
19554         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
19555         Likewise.
19556         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
19557         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
19558         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
19559         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
19560         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
19561         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
19562         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
19563         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
19564         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
19565         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
19566
19567 2010-08-26  Bruno Haible  <bruno@clisp.org>
19568
19569         Modernize AC_TRY_LINK invocations.
19570         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
19571         AC_TRY_LINK.
19572         * m4/argp.m4 (gl_ARGP): Likewise.
19573         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
19574         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
19575         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
19576         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
19577         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
19578         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
19579         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
19580         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
19581         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
19582         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
19583         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
19584         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
19585         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
19586         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
19587         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
19588         * m4/hostent.m4 (gl_HOSTENT): Likewise.
19589         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
19590         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
19591         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
19592         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
19593         Likewise.
19594         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
19595         Likewise.
19596         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
19597         Likewise.
19598         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
19599         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
19600         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
19601         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
19602         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
19603         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
19604         * m4/servent.m4 (gl_SERVENT): Likewise.
19605         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
19606         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
19607         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
19608         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
19609         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
19610         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
19611         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
19612         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
19613         * modules/tsearch-tests (configure.ac): Likewise.
19614
19615 2010-08-26  Bruno Haible  <bruno@clisp.org>
19616
19617         Modernize AC_TRY_COMPILE invocations.
19618         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
19619         AC_TRY_COMPILE.
19620         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
19621         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
19622         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
19623         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
19624         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
19625         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
19626         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
19627         * m4/lock.m4 (gl_LOCK): Likewise.
19628         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
19629         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
19630         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
19631         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
19632         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
19633         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
19634         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
19635         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
19636         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
19637         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
19638         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
19639         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
19640         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
19641         extraneous semicolon.
19642
19643 2010-08-26  Jim Meyering  <meyering@redhat.com>
19644
19645         stat-time: relax license LGPL
19646         * modules/stat-time (License): Change from GPL to LGPL,
19647         with consent from all contributors, for use in libguile.
19648         Requested by Ludovic Courtès.
19649
19650 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
19651
19652         poll: return immediately on POLLHUP.
19653         * lib/poll.c (poll): Always set timeout before wait_timeout is
19654         computed.
19655
19656 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19657
19658         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
19659         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
19660         rmdir ("dir/.//"), unlinkat.
19661
19662 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
19663
19664         stdbool: avoid spurious failure with modern xlc
19665         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
19666
19667 2010-08-24  Bruno Haible  <bruno@clisp.org>
19668
19669         getloadavg: simplify code
19670         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
19671         gl_have_func. Update comments.
19672
19673 2010-08-24  Eric Blake  <eblake@redhat.com>
19674
19675         getloadavg: don't define SVR4 on cygwin
19676         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
19677         only define SVR4 when -lkvm is required.
19678         Reported by Yaakov Selkowitz.
19679
19680 2010-08-24  Bruno Haible  <bruno@clisp.org>
19681
19682         priv-set: fix comment
19683         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
19684
19685 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
19686
19687         priv-set: fix comments
19688         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
19689         to match code, as suggested by David Bartley in:
19690         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
19691
19692 2010-08-23  Eric Blake  <eblake@redhat.com>
19693
19694         stdbool: avoid rejecting clang
19695         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
19696         * tests/test-stdbool.c: Enable more tests if using the system
19697         <stdbool.h> instead of the gnulib replacement.
19698         (main): Move xlc bug test to a runtime test for all compilers.
19699         Reported by Anders Kaseorg.
19700
19701         argz: fix shell quoting issue
19702         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
19703         Reported by Charles Wilson.
19704
19705 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
19706             Erik Faye-Lund <kusmabite@gmail.com>
19707
19708         poll, select: handle ERROR_BROKEN_PIPE.
19709         * lib/poll.c (win32_compute_revents): Return POLLHUP when
19710         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
19711         * lib/select.c (win32_compute_revents): Do not mark a pipe
19712         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
19713
19714 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
19715
19716         fts: allow compilation with C++
19717         * lib/fts_.h: Specify extern "C" linkage with C++.
19718
19719 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19720
19721         Fix gnulib-tool sed script de-commentation for AIX sed.
19722         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
19723         sed.
19724
19725 2010-08-17  Eric Blake  <eblake@redhat.com>
19726
19727         test-stddef: test for (some) offsetof bugs
19728         * tests/test-stddef.c: Enhance test to ensure correct type of
19729         offsetof.
19730         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
19731         that we are not fixing at this time.
19732
19733 2010-08-15  Bruno Haible  <bruno@clisp.org>
19734
19735         stpncpy: Allow stpncpy to be defined as a macro.
19736         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
19737         if it's already correctly declared.
19738         * lib/string.in.h (stpncpy): Undefine before redefining.
19739         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
19740
19741 2010-08-14  Bruno Haible  <bruno@clisp.org>
19742
19743         Rename module 'memxfrm' to 'amemxfrm'.
19744         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
19745         (amemxfrm): Renamed from memxfrm.
19746         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
19747         (amemxfrm): Renamed from memxfrm.
19748         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
19749         * NEWS: Mention the change.
19750         * MODULES.html.sh (String handling <string.h>): Update.
19751         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
19752         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
19753         * lib/unicase/u16-casexfrm.c: Likewise.
19754         * lib/unicase/u32-casexfrm.c: Likewise.
19755         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
19756         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
19757         * lib/uninorm/u16-normxfrm.c: Likewise.
19758         * lib/uninorm/u32-normxfrm.c: Likewise.
19759         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
19760         memxfrm.
19761         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
19762         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
19763         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
19764         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
19765         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
19766         Suggested by Paul Eggert.
19767
19768 2010-08-14  Bruno Haible  <bruno@clisp.org>
19769
19770         Tests for module 'astrxfrm'.
19771         * modules/astrxfrm-tests: New file.
19772         * tests/test-astrxfrm.c: New file.
19773
19774         New module 'astrxfrm'.
19775         * lib/astrxfrm.h: New file.
19776         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
19777         * modules/astrxfrm: New file.
19778
19779 2010-08-14  Reuben Thomas <rrt@sc3d.org>
19780
19781         regex: Tweak doc.
19782         * doc/regex.texi (Overview): Don't mention regex.c.
19783         (GNU Regular Expression Compiling): Likewise.
19784         (Match-end-of-line Operator): Mention 'not_eol'.
19785
19786 2010-08-14  Brian Gough  <bjg@gnu.org>
19787             Bruno Haible  <bruno@clisp.org>
19788
19789         git-merge-changelog: add doc relating to use with bzr and hg.
19790         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
19791
19792 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
19793
19794         pthread: fix pthread.h creation for srcdir != builddir
19795         * modules/pthread (Makefile.am): Fix the rule to work also in a
19796         non-srcdir build.
19797
19798 2010-08-13  Karl Berry  <karl@gnu.org>
19799
19800         * doc/regex.texi (Predefined Syntaxes): @smallexample.
19801         * doc/posix-*/*: force line break before @url of POSIX
19802         specifications.
19803         Suggested by Werner Lemberg.
19804
19805 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
19806
19807         strtod: fix const diagnostic
19808         * lib/strtod.c (strtod): Don't assign const char * to char *,
19809         as this elicits a warning from GCC when warnings are enabled.
19810
19811 2010-08-10  Pádraig Brady <P@draigbrady.com>
19812         and Eric Blake  <eblake@redhat.com>
19813
19814         copy-acl: ignore ENOTSUP on HP-UX
19815         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
19816         so that it is available for HP-UX.
19817         * lib/copy-acl.c (qcopy_acl): Use it.
19818         Reported by Patrick M. Callahan.
19819
19820 2010-08-10  Eric Blake  <eblake@redhat.com>
19821
19822         open, chown: relax license
19823         * modules/open (License): Change to LGPLv2+, with consent by all
19824         authors, for use in augeas.
19825         * modules/chown (License): Likewise.
19826         * modules/lchown (Likewise): Likewise.
19827         Requested by Adam Stokes.
19828
19829 2010-08-09  Karl Berry  <karl@gnu.org>
19830
19831         * build-aux/ar-lib: new file, import from Automake.
19832         * config/srclist.txt: autocheck for updates.
19833
19834 2010-08-09  Eric Blake  <eblake@redhat.com>
19835
19836         readlinkat: adjust client modules
19837         * modules/areadlinkat (Depends-on): Use readlinkat, not
19838         symlinkat.
19839         * modules/areadlinkat-with-size (Depends-on): Likewise.
19840
19841         mknod: be more vocal about danger of running tests as root
19842         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
19843         root, since that is just asking for problems.
19844         Suggested by Bruno Haible, based on a report by Rainer Tammer.
19845
19846         readlinkat: split into its own module
19847         * modules/symlinkat: Split readlinkat...
19848         * modules/readlinkat: ...into separate module.
19849         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
19850         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
19851         * lib/symlinkat.c (readlinkat): Move...
19852         * lib/readlinkat.c: ...into new file.
19853         * modules/symlinkat-tests: Split readlinkat test...
19854         * modules/readlinkat-tests: ...into separate module.
19855         * tests/test-symlinkat.c: Split...
19856         * tests/test-readlinkat.c: ...into new file.
19857         * NEWS: Document the split.
19858         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
19859         * lib/unistd.in.h (readlinkat): Likewise.
19860         Suggested by Bruno Haible.
19861
19862 2010-08-08  Bruno Haible  <bruno@clisp.org>
19863
19864         memxfrm: Speed up.
19865         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
19866         that usually only one call to strxfrm is necessary for each string
19867         part.
19868         Reported by Paul Eggert <eggert@cs.ucla.edu>.
19869
19870 2010-08-07  Karl Berry  <karl@gnu.org>
19871
19872         * doc/posix-headers/limits.texi,
19873         * doc/posix-functions/malloc.texi,
19874         * doc/posix-functions/strsignal.texi: missing @item.
19875         * doc/ld-version-script.texi: spurious leading i.
19876         * doc/regex.texi (Interval Operators): no commas inside @var.
19877
19878 2010-08-01  Bruno Haible  <bruno@clisp.org>
19879
19880         Integrate the regex documentation.
19881         * doc/gnulib.texi: Define 'cn' index.
19882         (Regular expressions): New a chapter that includes regex.texi and
19883         regexprops-generic.texi.
19884         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
19885         syntax.
19886
19887         Whitespace cleanup.
19888         * doc/regex.texi: Remove trailing spaces.
19889
19890         Add regex documentation.
19891         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
19892         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
19893         Written by Kathy A. Hargreaves and Karl Berry.
19894
19895 2010-08-01  Bruno Haible  <bruno@clisp.org>
19896
19897         link: Update documentation.
19898         * doc/posix-functions/link.texi: Update regarding Solaris.
19899
19900 2010-07-31  Bruno Haible  <bruno@clisp.org>
19901
19902         Update modules list.
19903         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
19904         (String handling <string.h>): Add memcmp2, memxfrm.
19905         (Container data structures): Add xlist, xsublist, xoset.
19906         (Core language properties): Add alignof, unused-parameter.
19907         (Process control, Numeric conversion functions <stdlib.h>): Renamed
19908         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
19909         (Unibyte characters <ctype.h>): New section.
19910         (String handling <string.h>): New section.
19911         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
19912         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
19913         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
19914         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
19915         tan, tanh, tanl, y0, y1, yn.
19916         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
19917         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
19918         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
19919         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
19920         unlockpt, vdprintf, vdprintf-posix.
19921         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
19922         (File system functions): Add concat-filename, sys_file, sys_ioctl,
19923         xconcat-filename.
19924         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
19925         getdtablesize, pipe2, pipe2-safer.
19926         (Security): New section.
19927         (Networking functions): Add accept4.
19928         (Signal handling): Add sigpipe.
19929         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
19930         mbmemcasecoll.
19931         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
19932         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
19933         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
19934         pipe-filter-ii.
19935         (Misc): Add argp-version-etc, login_tty, parse-duration.
19936
19937 2010-07-31  Bruno Haible  <bruno@clisp.org>
19938
19939         Improve doc in MODULES.html.
19940         * modules/linkat (Description): Add the word "function".
19941         * modules/mkfifo (Description): Likewise.
19942         * modules/mknod (Description): Likewise.
19943         * modules/remove (Description): Likewise.
19944         * modules/renameat (Description): Likewise.
19945         * modules/stat (Description): Likewise.
19946         * modules/symlink (Description): Likewise.
19947         * modules/unlink (Description): Likewise.
19948
19949 2010-07-31  Bruno Haible  <bruno@clisp.org>
19950
19951         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
19952         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
19953         option --enable/disable-c++ instead of --enable/disable-cxx.
19954         * NEWS: Mention the change.
19955
19956 2010-07-31  Bruno Haible  <bruno@clisp.org>
19957
19958         readlink, areadlink: Relax test a bit.
19959         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
19960         alternative to ENOTDIR.
19961         * tests/test-areadlink.h (test_areadlink): Likewise.
19962         Reported by Rainer Tammer.
19963
19964 2010-07-31  Bruno Haible  <bruno@clisp.org>
19965
19966         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
19967         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
19968         character, perform the search using U_STRCHR.
19969         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
19970         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
19971         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
19972         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
19973         Suggested by Paolo Bonzini.
19974
19975 2010-07-31  Bruno Haible  <bruno@clisp.org>
19976
19977         unistr/u*-strstr: Fix dependencies.
19978         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
19979         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
19980         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
19981
19982 2010-07-31  Bruno Haible  <bruno@clisp.org>
19983
19984         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
19985         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
19986         the beginning of the loop.
19987         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
19988         cases in 'switch' statement.
19989
19990         unistr/u8-strchr: Fix several bugs.
19991         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
19992         the string. When not found, return NULL, not a pointer near the end.
19993
19994         More tests for unistr/u8-strchr.
19995         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
19996         that the function does not read past the first occurrence of the byte
19997         being searched.
19998         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
19999         * tests/unistr/test-u16-strchr.c (main): New function.
20000         * tests/unistr/test-u32-strchr.c (main): New function.
20001
20002 2010-07-31  Bruno Haible  <bruno@clisp.org>
20003
20004         posix-modules: Ignore backup files of documentation files.
20005         * posix-modules: grep only through files named *.texi.
20006
20007 2010-07-31  Bruno Haible  <bruno@clisp.org>
20008
20009         symlinkat: Fix documentation.
20010         * doc/posix-functions/readlinkat.texi: Fix module name.
20011
20012 2010-07-31  Bruno Haible  <bruno@clisp.org>
20013
20014         fchownat: Replace also when chown has the trailing slash bug.
20015         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
20016         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
20017         introduced on 2010-04-10.
20018         Reported by Rainer Tammer.
20019
20020 2010-07-31  Bruno Haible  <bruno@clisp.org>
20021
20022         linkat: Work around AIX 7.1 bug.
20023         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
20024         whether linkat handles trailing slash correctly. If not, replace linkat
20025         and define LINKAT_TRAILING_SLASH_BUG.
20026         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
20027         check whether (fd1,file1) points to a directory if file1 or file2 ends
20028         in a slash. Code taken from lib/link.c.
20029         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
20030         Reported by Rainer Tammer.
20031
20032 2010-07-31  Bruno Haible  <bruno@clisp.org>
20033
20034         Correctly determine whether pow is available in libc on AIX 7 with xlc.
20035         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
20036         This disables an xlc optimization that was causing wrong test results.
20037         Reported by Rainer Tammer.
20038
20039 2010-07-31  Bruno Haible  <bruno@clisp.org>
20040
20041         iconv: Work around AIX 6.1..7.1 bug.
20042         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
20043         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
20044         cross-compiling, guess no on all versions of AIX.
20045         Reported by Rainer Tammer.
20046
20047 2010-07-31  Bruno Haible  <bruno@clisp.org>
20048
20049         readlink: Relax test a bit.
20050         * tests/test-readlink.h (test_readlink): Allow different errno value
20051         when readlink is called with a file name that ends in / and refers to
20052         a file.
20053         Suggested by Eric Blake.
20054         Reported by Rainer Tammer.
20055
20056 2010-07-31  Bruno Haible  <bruno@clisp.org>
20057
20058         copysign: Does not require -lm on glibc systems.
20059         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
20060         gl_COMMON_DOUBLE_MATHFUNC.
20061         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
20062
20063 2010-07-31  Bruno Haible  <bruno@clisp.org>
20064
20065         duplocale: Work around AIX 7.1 bug.
20066         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
20067         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
20068         * lib/duplocale.c (rpl_duplocale): Update comment.
20069         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
20070         Reported by Rainer Tammer.
20071
20072 2010-07-30  Bruno Haible  <bruno@clisp.org>
20073
20074         dirfd: Avoid link error on AIX 7.1.
20075         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
20076         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
20077         exist, set REPLACE_DIRFD.
20078         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
20079         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
20080         * doc/posix-functions/dirfd.texi: Update.
20081         Reported by Rainer Tammer.
20082
20083 2010-07-30  Eric Blake  <eblake@redhat.com>
20084
20085         strtod: next round of AIX fixes
20086         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
20087         exponent.
20088         * tests/test-strtod.c (main): Enhance tests.
20089         * doc/posix-functions/strtod.texi (strtod): Document next bug.
20090         Reported by Rainer Tammer.
20091
20092         futimens: fix configure check
20093         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
20094         Reported by Bruno Haible.
20095
20096 2010-07-30  Bruno Haible  <bruno@clisp.org>
20097
20098         getline: Update regarding AIX.
20099         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
20100         Reported by Rainer Tammer.
20101
20102 2010-07-30  Bruno Haible  <bruno@clisp.org>
20103
20104         wcwidth: Drop replacement on AIX 7.
20105         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
20106         AIX 7.
20107         Reported by Rainer Tammer.
20108
20109 2010-07-30  Bruno Haible  <bruno@clisp.org>
20110
20111         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
20112         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
20113         a 'char *'.
20114         Reported by Rainer Tammer.
20115
20116 2010-07-30  Bruno Haible  <bruno@clisp.org>
20117
20118         unlink: Update regarding AIX.
20119         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
20120         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
20121         Reported by Rainer Tammer.
20122
20123 2010-07-30  Bruno Haible  <bruno@clisp.org>
20124
20125         symlink: Update regarding AIX.
20126         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
20127         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
20128         Reported by Rainer Tammer.
20129
20130 2010-07-30  Bruno Haible  <bruno@clisp.org>
20131
20132         strndup: Update regarding AIX.
20133         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
20134         AIX 7.
20135         Reported by Rainer Tammer.
20136
20137 2010-07-30  Bruno Haible  <bruno@clisp.org>
20138
20139         stat: Update regarding AIX.
20140         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
20141         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
20142         Reported by Rainer Tammer.
20143
20144 2010-07-30  Bruno Haible  <bruno@clisp.org>
20145
20146         truncl: Fix autoconf test.
20147         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
20148         whether truncl works.
20149         Reported by Rainer Tammer.
20150
20151 2010-07-30  Bruno Haible  <bruno@clisp.org>
20152
20153         round: Update regarding AIX.
20154         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
20155         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
20156         Reported by Rainer Tammer.
20157
20158 2010-07-30  Bruno Haible  <bruno@clisp.org>
20159
20160         rename: Update regarding AIX.
20161         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
20162         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
20163         Reported by Rainer Tammer.
20164
20165 2010-07-30  Bruno Haible  <bruno@clisp.org>
20166
20167         printf.m4: Update regarding AIX.
20168         * m4/printf.m4: Update comments regarding AIX.
20169         Reported by Rainer Tammer.
20170
20171 2010-07-30  Bruno Haible  <bruno@clisp.org>
20172
20173         iconv: Update regarding AIX.
20174         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
20175         AIX 7.
20176         Reported by Rainer Tammer.
20177
20178 2010-07-30  Bruno Haible  <bruno@clisp.org>
20179
20180         getopt: Update regarding AIX.
20181         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
20182         no on AIX.
20183         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
20184         Reported by Rainer Tammer.
20185
20186 2010-07-30  Bruno Haible  <bruno@clisp.org>
20187
20188         ldexpl; Update regarding AIX.
20189         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
20190         on AIX 7.
20191         Reported by Rainer Tammer.
20192
20193 2010-07-30  Bruno Haible  <bruno@clisp.org>
20194
20195         frexpl: Update regarding AIX.
20196         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
20197         on AIX 7.
20198         Reported by Rainer Tammer.
20199
20200 2010-07-30  Bruno Haible  <bruno@clisp.org>
20201
20202         open, fopen: Update regarding AIX.
20203         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
20204         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
20205         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
20206         * doc/posix-functions/fopen.texi: Likewise.
20207         Reported by Rainer Tammer.
20208
20209 2010-07-30  Bruno Haible  <bruno@clisp.org>
20210
20211         chown: Update doc regarding AIX.
20212         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
20213         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
20214         Reported by Rainer Tammer.
20215
20216 2010-07-30  Eric Blake  <eblake@redhat.com>
20217
20218         strtod: fix bug in replacement function on AIX
20219         * lib/strtod.c (strtod): Special case broken "0x" parse in
20220         underlying strtod.
20221         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
20222         * doc/posix-functions/strtod.texi (strtod): Likewise.
20223         Reported by Rainer Tammer.
20224
20225 2010-07-30  Bruno Haible  <bruno@clisp.org>
20226
20227         mbrlen: Fix cross-compilation guess for AIX.
20228         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
20229         guess. Leftover from 2008-12-22.
20230
20231 2010-07-30  Bruno Haible  <bruno@clisp.org>
20232
20233         mbrtowc: Fix cross-compilation guess for AIX.
20234         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
20235         guess. Leftover from 2008-12-21.
20236
20237 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
20238
20239         init.sh: work around trap limitation of some shells
20240         * tests/init.sh (setup_): Move exit trap outside of shell function.
20241
20242 2010-07-29  Eric Blake  <eblake@redhat.com>
20243
20244         strtod: aid debugging
20245         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
20246         understanding why strtod is rejected.
20247
20248 2010-07-28  Bruno Haible  <bruno@clisp.org>
20249
20250         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
20251         * lib/unistr/u8-chr.c: Include <string.h>.
20252         * tests/unistr/test-u8-chr.c: Likewise.
20253         * tests/unistr/test-u16-chr.c: Likewise.
20254         * tests/unistr/test-u32-chr.c: Likewise.
20255         * tests/unistr/test-u8-strchr.c: Likewise.
20256         * tests/unistr/test-u16-strchr.c: Likewise.
20257         * tests/unistr/test-u32-strchr.c: Likewise.
20258         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
20259         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
20260         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
20261         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
20262
20263 2010-07-28  Bruno Haible  <bruno@clisp.org>
20264
20265         Use spaces for indentation, not tabs.
20266         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
20267
20268 2010-07-27  Bruno Haible  <bruno@clisp.org>
20269
20270         mbspcasecmp: Fix function specification.
20271         * lib/string.in.h (mbspcasecmp): Fix specification comment.
20272         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
20273         Reported by Eric Blake <eblake@redhat.com>.
20274
20275 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
20276
20277         timespec: use cast and not conditional, as truncation isn't possible
20278         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
20279         instead of a conditional.  Comment about the situation in more detail.
20280         This undoes most of the 2009-10-29 patch.
20281
20282 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
20283
20284         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
20285         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
20286         * lib/unistr/u8-strchr.c: Likewise.
20287         * modules/unistr/u8-chr: Depend on memchr.
20288
20289         unistr/u*-strchr: add tests
20290         * modules/unistr/u8-strchr-tests: New file.
20291         * modules/unistr/u16-strchr-tests: New file.
20292         * modules/unistr/u32-strchr-tests: New file.
20293         * tests/unistr/test-strchr.h: New file.
20294         * tests/unistr/test-u8-strchr.c: New file.
20295         * tests/unistr/test-u16-strchr.c: New file.
20296         * tests/unistr/test-u32-strchr.c: New file.
20297
20298         unistr/u*-chr: test multibyte sequences more
20299         * tests/unistr/test-chr.h: Do complete testing of the characters in the
20300         test vector.
20301         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
20302         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
20303         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
20304
20305         unistr/u*-chr: test multibyte sequences
20306         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
20307
20308         unistr/u*-chr: prepare for multibyte tests
20309         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
20310         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
20311         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
20312         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
20313         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
20314         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
20315
20316 2010-07-18  Bruno Haible  <bruno@clisp.org>
20317
20318         unistr/u8-strchr: Optimize non-ASCII argument case.
20319         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
20320         because the first byte often matches anyway.
20321         Reported by Pádraig Brady <P@draigbrady.com>.
20322
20323 2010-07-15  Karl Berry  <karl@gnu.org>
20324
20325         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
20326
20327 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
20328
20329         getcwd: on Solaris, work better if ancestors are inaccessible
20330         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
20331         buffer and size, try again with a large buffer.  This works better
20332         on Solaris, since its getcwd succeeds even if the path to the root
20333         is inaccessible, and this is helpful in common cases such as .zfs
20334         hidden directories.  Problem reported by J Chapman Flack in
20335         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
20336         Use system getcwd if it's declared, not merely if it's partly
20337         working; use the partly-working test only to avoid needless effort
20338         if the system getcwd fails.
20339         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
20340         comment that was already obsolete and is now even more obsolete.
20341         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
20342         now might call strdup.
20343
20344 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
20345
20346         pthread: Add enough so that coreutils/src/sort.c compiles.
20347         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
20348         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
20349         gnulib. Include <sched.h> and <time.h>, as per POSIX.
20350         Include <sys/types.h>, in case it defines pthread_t.
20351         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
20352         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
20353         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
20354         (pthread_rwlockattr_t, pthread_spinlock_t):
20355         New typedefs, if HAVE_PTHREAD_T is not defined.
20356         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
20357         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
20358         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
20359         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
20360         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
20361         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
20362         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
20363         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
20364         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
20365         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
20366         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
20367         New macros.
20368         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
20369         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
20370         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
20371         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
20372         (pthread_spin_unlock): New dummy functions.
20373         (pthread_create): Return EAGAIN; don't set errno.
20374         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
20375         require AC_C_INLINE.
20376         * modules/pthread (Depends-on): Add sched, time.
20377         (pthread.h): Use AM_V_GEN.
20378
20379 2010-07-13  Bruno Haible  <bruno@clisp.org>
20380
20381         striconveh: Don't malloc memory if the result buffer is sufficient.
20382         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
20383         buffer if its size is sufficient.
20384         Reported by Ludovic Courtès <ludo@gnu.org>.
20385
20386 2010-07-13  Bruno Haible  <bruno@clisp.org>
20387
20388         strtod: Add safety check.
20389         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
20390
20391 2010-07-12  Bruno Haible  <bruno@clisp.org>
20392
20393         Unify tests that set gl_cv_func_ldexpl_no_libm.
20394         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
20395         gl_FUNC_LDEXPL.
20396         (gl_FUNC_LDEXPL): Invoke it.
20397         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
20398
20399 2010-07-12  Bruno Haible  <bruno@clisp.org>
20400
20401         Unify tests that set gl_cv_func_ldexp_no_libm.
20402         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
20403         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
20404         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
20405         (configure.ac): Simply invoke gl_FUNC_LDEXP.
20406         * modules/strtod (Files): Add m4/ldexp.m4.
20407
20408 2010-07-12  Bruno Haible  <bruno@clisp.org>
20409
20410         Unify tests that set gl_cv_func_frexpl_no_libm.
20411         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
20412         gl_FUNC_FREXPL_NO_LIBM.
20413         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
20414         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
20415
20416 2010-07-12  Bruno Haible  <bruno@clisp.org>
20417
20418         Unify tests that set gl_cv_func_frexp_no_libm.
20419         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
20420         gl_FUNC_FREXP_NO_LIBM.
20421         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
20422         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
20423
20424 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
20425
20426         memcoll: clarify sizes versus lengths, document better, and tweak perf
20427         * lib/memcoll.c (strcoll_loop, memcoll0):
20428         Improve quality of descriptive comments.  Name variables
20429         consistently as to whether they are lengths (which do not include
20430         terminating null) versus sizes (which do).
20431         * lib/xmemcoll.c (xmemcoll0): Likewise.
20432         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
20433         returned when s1size == 0; this is easier to compile and saves
20434         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
20435
20436 2010-07-12  Bruno Haible  <bruno@clisp.org>
20437
20438         Tests for module '_Exit'.
20439         * modules/_Exit-tests: New file.
20440         * tests/test-_Exit.sh: New file.
20441         * tests/test-_Exit.c: New file.
20442
20443         New module '_Exit'.
20444         * lib/stdlib.in.h (__attribute__): New macro.
20445         (_Exit): New declaration.
20446         * lib/_Exit.c: New file.
20447         * m4/_Exit.m4: New file.
20448         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
20449         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
20450         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
20451         * modules/_Exit: New file.
20452         * tests/test-stdlib-c++.cc (_Exit): Check signature.
20453         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
20454
20455 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
20456
20457         strtod: make it more-accurate typically, and don't require libm
20458         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
20459         Include limits.h.  Don't include string.h.
20460         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
20461         (locale_isspace): New function, so that no casts are needed to
20462         check whether *s is a space.
20463         (ldexp): Provide an unused dummy if not available.
20464         (scale_radix_exp, parse_number, underlying_strtod): New functions.
20465         (strtod): Use them.  This implementation prefers to use the
20466         underlying strtod if available, falling back on our own code
20467         only to fix known bugs.  This is more likely to produce an
20468         accurate result.  Also, it avoids the use of libm functions.
20469         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
20470         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
20471         was absent, but it caused a test failure with coreutils.
20472         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
20473         with libm.
20474         * modules/strtod (Makefile.am, Link): libm is no longer needed.
20475         * modules/strtod-tests (Makefile.am): Likewise.
20476
20477 2010-07-11  Pádraig Brady  <P@draigBrady.com>
20478             Bruno Haible  <bruno@clisp.org>
20479
20480         unistr/u8-strchr: Optimize ASCII argument case.
20481         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
20482
20483 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
20484
20485         (x)memcoll: minor tweaks
20486         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
20487         is after the type that it qualifies.
20488         (memcoll0): Likewise.
20489         * lib/memcoll.h (memcoll0): Likewise.
20490         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
20491         * lib/xmemcoll.h (xmemcoll0): Likewise.
20492         * lib/memcoll.c (memcoll0): Correct the comment.  This function
20493         differs from memcoll in that the NUL byte is part of the argument.
20494         Omit the abort-checks, as performance is a real issue here.  Plus,
20495         the checks were wrong anyway (an off-by-one error).  Omit local
20496         variable 'diff', as it's a bit clearer that way.
20497         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
20498         no longer needed.
20499
20500 2010-07-08  Chen Guo <chenguo4@yahoo.com>
20501
20502         (x)memcoll: speedup when input is known to be NUL delimited
20503         * lib/memcoll.c: Include stdlib.
20504         (memcoll0): New function.
20505         (strcoll_loop): New function, refactored for use in both memcoll
20506         and memcoll0.
20507         * lib/memcoll.h (memcoll0): Add prototype.
20508         * lib/xmemcoll.c (xmemcoll0): New function.
20509         (collate_error): New function, refactored for use in both xmemcoll
20510         and xmemcoll0.
20511         * lib/xmemcoll.h (xmemcoll0): Add prototype.
20512         * m4/memcoll.m4: add inline invocation.
20513
20514 2010-07-06  Pádraig Brady  <P@draigBrady.com>
20515
20516         * build-aux/bootstrap: Remove any local translations
20517         from the translation project synchronization directory,
20518         so that local only translations are not distributed.
20519
20520 2010-07-04  Bruno Haible  <bruno@clisp.org>
20521
20522         fsusage: Clarify which code applies to which platforms.
20523         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
20524         platform.
20525         * lib/fsusage.c (get_fs_usage): Likewise.
20526
20527 2010-07-04  Bruno Haible  <bruno@clisp.org>
20528
20529         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
20530         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
20531         Reported by Martin Lambers <marlam@marlam.de>.
20532
20533 2010-07-04  Jim Meyering  <meyering@redhat.com>
20534
20535         hash: once again explicitly disallow insertion of NULL
20536         * lib/hash.c (hash_insert0): Reinstate just-removed test:
20537         inserting a NULL pointer cannot work with these functions.
20538         Add a comment with details.
20539         This reverts part of the 2010-07-01 commit, 5bef1a35
20540         "hash: extend module to deal with non-pointer keys".
20541
20542 2010-07-01  Bruno Haible  <bruno@clisp.org>
20543
20544         stdbool: Update doc.
20545         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
20546         Info from Christian Weisgerber <naddy@mips.inka.de>.
20547
20548 2010-07-01  Jim Meyering  <meyering@redhat.com>
20549
20550         hash: extend module to deal with non-pointer keys
20551         * lib/hash.c (hash_insert0): New interface, much like hash_insert
20552         but that allows insertion of non-pointer entries.
20553         Do not disallow an ENTRY value of NULL.
20554         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
20555         * lib/hash.h (hash_insert0): Declare.
20556
20557 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
20558
20559         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
20560         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
20561         not present (i.e. with autoconf 2.59 and when using gettextize, not
20562         gnulib), require AC_GNU_SOURCE instead.
20563
20564 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
20565
20566         idpriv-drop: Fix tests.
20567         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
20568         not to the test-idpriv-droptemp program.
20569
20570 2010-06-29  Bruno Haible  <bruno@clisp.org>
20571
20572         string: Fix syntax error with g++ 2.96.
20573         * lib/string.in.h (__pure__): Remove definition.
20574         (_GL_ATTRIBUTE_PURE): New macro.
20575         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
20576         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
20577         Reported by Christian Weisgerber <naddy@mips.inka.de>.
20578
20579 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
20580
20581         unitypes: Fix bug introduced on 2010-05-18.
20582         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
20583
20584 2010-06-22  Eric Blake  <eblake@redhat.com>
20585
20586         memmem: slight optimization
20587         * lib/str-two-way.h (critical_factorization): Update comments.
20588         Reduce work during factorization phase.
20589         Reported by Carlos Bueno <carlos@bueno.org>.
20590
20591 2010-06-21  Bruno Haible  <bruno@clisp.org>
20592
20593         Fix HAVE_CALLOC_POSIX misnomer.
20594         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
20595         !HAVE_CALLOC_POSIX.
20596         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
20597         HAVE_CALLOC_POSIX.
20598         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
20599         instead of HAVE_CALLOC_POSIX.
20600         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
20601         HAVE_CALLOC_POSIX.
20602
20603         Use modern idiom for calloc() replacement.
20604         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
20605         AC_FUNC_CALLOC.
20606         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
20607         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
20608         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
20609         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
20610         (gl_REPLACE_CALLOC): New macro.
20611
20612 2010-06-21  Bruno Haible  <bruno@clisp.org>
20613
20614         Fix HAVE_REALLOC_POSIX misnomer.
20615         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
20616         !HAVE_REALLOC_POSIX.
20617         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
20618         HAVE_REALLOC_POSIX.
20619         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
20620         instead of HAVE_REALLOC_POSIX.
20621         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
20622         HAVE_REALLOC_POSIX.
20623
20624         Use modern idiom for realloc() replacement.
20625         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
20626         AC_FUNC_REALLOC.
20627         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
20628         Autoconf's AC_FUNC_REALLOC.
20629         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
20630         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
20631         (gl_REPLACE_REALLOC): New macro.
20632         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
20633
20634 2010-06-21  Bruno Haible  <bruno@clisp.org>
20635
20636         Fix HAVE_MALLOC_POSIX misnomer.
20637         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
20638         !HAVE_MALLOC_POSIX.
20639         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
20640         HAVE_MALLOC_POSIX.
20641         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
20642         instead of HAVE_MALLOC_POSIX.
20643         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
20644         HAVE_MALLOC_POSIX.
20645
20646         Use modern idiom for malloc() replacement.
20647         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
20648         AC_FUNC_MALLOC.
20649         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
20650         Autoconf's AC_FUNC_MALLOC.
20651         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
20652         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
20653         (gl_REPLACE_MALLOC): New macro.
20654         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
20655
20656 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
20657
20658         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
20659         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
20660         This macro takes 3 arguments, not 4.
20661
20662 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
20663
20664         ipv6: fix detection under mingw
20665         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
20666         in6_addr.
20667
20668 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
20669
20670         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
20671         that strtod() works when cross-compiling to a glibc version known
20672         to work.
20673
20674 2010-06-15  Bruno Haible  <bruno@clisp.org>
20675
20676         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
20677
20678 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
20679
20680         select: Correct timeout.
20681         * lib/select.c (rpl_select): Compute wait_timeout correctly.
20682
20683 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
20684
20685         git-version-gen: init shell var to avoid env var influence
20686         * build-aux/git-version-gen (v): Init shell var to empty.
20687
20688 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
20689
20690         priv-set: Don't assume that priv.h exists merely because getppriv does.
20691         See Jan Andersen's bug report about AIX 5L in
20692         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
20693         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
20694         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
20695         * lib/priv-set.h: Likewise.
20696         * tests/test-priv-set.c: Likewise.
20697
20698 2010-06-13  Bruno Haible  <bruno@clisp.org>
20699
20700         relocatable: Make it easier to test whether to install wrappers.
20701         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
20702         RELOCATABLE_VIA_WRAPPER.
20703
20704 2010-06-13  Bruno Haible  <bruno@clisp.org>
20705
20706         gnulib-tool: Display specified modules and dependencies differently.
20707         * gnulib-tool (func_show_module_list): New function.
20708         (func_import, func_create_testdir): Invoke it.
20709         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
20710
20711 2010-06-13  Bruno Haible  <bruno@clisp.org>
20712
20713         gnulib-tool: Align code of func_import and func_create_testdir.
20714         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
20715         specified_modules.
20716
20717 2010-06-12  Jim Meyering  <meyering@redhat.com>
20718
20719         test-inttostr: avoid spurious failure on Solaris 9
20720         * tests/test-inttostr.c (main): Skip the test when snprintf fails
20721         to accept "%ju".  Reported by Bruno Haible.
20722
20723 2010-06-11  Jim Meyering  <meyering@redhat.com>
20724
20725         test-sys_socket: mark variables as used more readably
20726         * tests/test-sys_socket.c (main): Mark otherwise unused variables
20727         as "used" explicitly via (void) statement casts.  This is more
20728         readable than using them in an artificial return expression.
20729         Suggestion from Bruno Haible.
20730
20731 2010-06-11  Bruno Haible  <bruno@clisp.org>
20732
20733         Avoid some more warnings from "gcc -Wwrite-strings".
20734         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
20735         to 'const char *'.
20736         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
20737         * tests/test-c-strcasestr.c (main): Likewise.
20738         * tests/test-mbscasestr1.c (main): Likewise.
20739         * tests/test-mbscasestr2.c (main): Likewise.
20740         * tests/test-memmem.c (main): Likewise.
20741         * tests/test-strstr.c (main): Likewise.
20742         * tests/test-strcasestr.c (main): Likewise.
20743
20744 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20745
20746         init.sh: change framework_failure_ to fail with status 99, not 1
20747         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
20748         automake's parallel-tests rule that this is an unexpected failure,
20749         even if the test is listed in XFAIL_TESTS.
20750
20751 2010-06-11  Jim Meyering  <meyering@redhat.com>
20752
20753         test-inttostr: avoid warnings about 4-6KB literal strings
20754         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
20755         Include "macros.h", for its definition of ASSERT.
20756         (CK): s/assert/ASSERT/
20757         * modules/inttostr-tests (Files): Add macros.h.
20758
20759         init.sh: don't use $ME_ or skip_ before they are defined
20760         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
20761         their first uses.  Also hoist their companions: warn_, fail_,
20762         framework_failure_, $stderr_fileno.  Prompted by a patch from
20763         Stefano Lattarini.
20764
20765         test-sys_socket: avoid set-but-not-used warnings from gcc
20766         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
20767         avoid warning about set-but-not-used variables.
20768
20769         test-xvasprintf: avoid 'const' discard warnings
20770         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
20771         "const" when assigning from literal strings.
20772         (test_xasprintf): Add "void" in function argument list to placate
20773         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
20774
20775         tests: avoid compilation warnings in argmatch and exclude tests...
20776         in packages that define ARGMATCH_DIE_DECL, like coreutils.
20777         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
20778         Since it always exits, declare with the "noreturn" attribute.
20779         * tests/test-argmatch.c: Likewise.
20780
20781         tests: avoid 'const' discard warnings in mbsstr tests
20782         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
20783         * tests/test-mbsstr2.c (main): Likewise.
20784
20785         test-verify: avoid warning from gcc's -Wmissing-declarations
20786         * tests/test-verify.c (function): Declare to be static.
20787
20788         test-inttostr.c: include <string.h> for use of strcmp
20789         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
20790
20791         test-linkat: avoid failed assertion on "other" architectures
20792         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
20793         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
20794         sparc: https://bugs.launchpad.net/bugs/591968
20795
20796 2010-06-11  Jim Meyering  <meyering@redhat.com>
20797
20798         printf.m4: avoid autoconf's "Expanded Before Required" warning
20799         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
20800         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
20801         autoconf warning.
20802
20803 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
20804
20805         Replacement header templates are now named with ".in", not "_".
20806         * doc/gnulib-intro.texi: Correct.
20807
20808 2010-06-10  Jim Meyering  <meyering@redhat.com>
20809
20810         inttostr-tests: depend on snprintf, not snprintf-posix
20811         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
20812         snprintf-posix, to avoid this aclocal failure:
20813           missing file gnulib-tests/vasnprintf.c
20814           configure.ac:45: error: expected source file, required through \
20815           AC_LIBSOURCES, not found
20816
20817 2010-06-10  Jim Meyering  <meyering@redhat.com>
20818
20819         inttostr: add a new function, inttostr, and tests
20820         The namesake function was not available.  The existence of the
20821         template file, inttostr.c makes its addition nontrivial.
20822         * lib/anytostr.c: Rename from inttostr.c.
20823         (anytostr): Rename from inttostr.
20824         * lib/inttostr.c: New file.
20825         * modules/inttostr (Files): Add anytostr.c.
20826         (Makefile.am): Set lib_SOURCES instead of ...
20827         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
20828         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
20829         * lib/offtostr.c: Likewise.
20830         * lib/uinttostr.c: Likewise.
20831         * lib/umaxtostr.c: Likewise.
20832         * modules/inttostr-tests: New file.
20833         * tests/test-inttostr.c: New file.  Test these functions.
20834
20835 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
20836             Bruno Haible  <bruno@clisp.org>
20837
20838         Add "Extending Gnulib" chapter to manual.
20839         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
20840         chapter.
20841         (Extending Gnulib): New chapter.
20842         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
20843         chapter.
20844
20845 2010-06-09  Bruno Haible  <bruno@clisp.org>
20846
20847         Avoid relocwrapper link errors due to gnulib replacement functions.
20848         * lib/areadlink.c: Use the system's malloc, realloc functions.
20849         (areadlink): Set errno to ENOMEM explicitly.
20850         * modules/areadlink (Depends-on): Remove malloc-posix.
20851         Reported by Ben Pfaff <blp@cs.stanford.edu>.
20852
20853 2010-06-09  Bruno Haible  <bruno@clisp.org>
20854
20855         Avoid relocwrapper link errors due to gnulib replacement functions.
20856         * lib/canonicalize-lgpl.c: Use the system's malloc function.
20857         * lib/malloca.c: Likewise.
20858         * lib/relocatable.c: Likewise.
20859         * lib/progreloc.c: Use the system's malloc, sprintf functions.
20860         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
20861         * lib/setenv.c: Use the system's malloc, realloc functions.
20862         * lib/strerror.c: Use the system's sprintf function.
20863         Reported by Ben Pfaff <blp@cs.stanford.edu>.
20864
20865 2010-06-04  Bruno Haible  <bruno@clisp.org>
20866
20867         Prefer documented low-level autoconf macro names.
20868         * m4/lib-link.m4: Use m4_translit instead of translit.
20869         * m4/environ.m4: Likewise.
20870         * m4/mathfunc.m4: Likewise.
20871         * m4/onceonly.m4: Likewise.
20872         * m4/stdint.m4: Likewise.
20873         Suggested by Eric Blake.
20874
20875 2010-06-04  Martin Lambers  <marlam@marlam.de>
20876             Bruno Haible  <bruno@clisp.org>
20877
20878         havelib: Allow library names with '+' characters.
20879         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
20880         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
20881
20882 2010-06-09  Bruno Haible  <bruno@clisp.org>
20883
20884         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
20885         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
20886         realloc failed.
20887
20888 2010-06-08  Peter Simons  <simons@cryp.to>
20889
20890         maint.mk: make the news-check rule more configurable
20891         * top/maint.mk (news-check-lines-spec): New variable.
20892         (news-check): Use "sed -n 1,10p" in place of "head".
20893
20894 2010-06-07  Jim Meyering  <meyering@redhat.com>
20895
20896         do-release-commit-and-tag: fix typo in --help
20897         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
20898
20899         regex: avoid new dead-code warning with gcc-4.6.0
20900         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
20901         if-block containing a while-loop.  It's been unused for at least
20902         5 years.
20903
20904 2010-06-05  Bruno Haible  <bruno@clisp.org>
20905
20906         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
20907         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
20908
20909 2010-06-04  Bruno Haible  <bruno@clisp.org>
20910
20911         Update to GNU gettext 0.18.1.
20912         * modules/gettext (configure.ac): Require gettext infrastructure from
20913         version 0.18.1.
20914
20915 2010-06-03  Bruno Haible  <bruno@clisp.org>
20916
20917         Don't use AC_LIBOBJ with file names in subdirectories.
20918         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
20919         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
20920         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
20921         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
20922         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
20923         gl_LIBUNISTRING_LIBSOURCE.
20924         (Makefile.am): Augment lib_SOURCES here, conditionally.
20925         * NEWS: Drop requirement for Automake option 'subdir-objects'.
20926
20927 2010-06-03  Bruno Haible  <bruno@clisp.org>
20928
20929         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
20930         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
20931         expansion does not end with a newline.
20932         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
20933         unnecessary newline.
20934
20935 2010-06-03  Bruno Haible  <bruno@clisp.org>
20936
20937         Reduce dependencies.
20938         * tests/test-quotearg.h: New file, extracted from
20939         tests/test-quotearg.c.
20940         * tests/test-quotearg-simple.c: New file, extracted from
20941         tests/test-quotearg.c.
20942         * tests/test-quotearg.c: Don't include <ctype.h>.
20943         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
20944         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
20945         use_quote_double_quotes, use_quotearg_colon): Moved to
20946         tests/test-quotearg.h.
20947         (results_g, flag_results, custom_quotes, custom_results): Moved
20948         to tests/test-quotearg-simple.c.
20949         (main): Moved the part that does not depend on gettext to
20950         tests/test-quotearg-simple.c. Return 77 if the test cannot be
20951         performed.
20952         * modules/quotearg-simple: New file.
20953         * modules/quotearg-simple-tests: New file.
20954         * modules/quotearg (Depends-on): Add quotearg-simple.
20955         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
20956         (Files): Add tests/test-quotearg.h.
20957         Reported by Paolo Bonzini.
20958
20959 2010-06-03  Bruno Haible  <bruno@clisp.org>
20960
20961         Reduce dependencies.
20962         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
20963
20964 2010-06-03  Bruno Haible  <bruno@clisp.org>
20965
20966         time: Undefine more broken macros.
20967         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
20968         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
20969         Reported by Eric Blake.
20970
20971 2010-06-03  Bruno Haible  <bruno@clisp.org>
20972
20973         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
20974         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
20975         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
20976         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
20977         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
20978         Reported by Ludovic Courtès <ludo@gnu.org>.
20979
20980 2010-06-02  Eric Blake  <eblake@redhat.com>
20981
20982         time: work with mingw + pthreads-win32 library
20983         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
20984         if timespec is defined only in pthread.h.
20985         * modules/time (Makefile.am): Substitute it.
20986         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
20987         <pthread.h>, when needed.
20988         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
20989         from the library.
20990
20991 2010-05-31  Bruno Haible  <bruno@clisp.org>
20992
20993         Avoid expanding two macros in the wrong order.
20994         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
20995         gl_LIBUNISTRING if it is defined.
20996         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
20997         autoconf >= 2.64.
20998         Reported by Ludovic Courtès <ludo@gnu.org>.
20999
21000 2010-05-27  Jim Meyering  <meyering@redhat.com>
21001
21002         maint.mk: also prohibit "#undef" of always-defined symbols
21003         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
21004         Allow more than one space before the symbol name.
21005         (sc_prohibit_always-defined_macros): Use grep's -E, now that
21006         the regexp uses alternation.
21007
21008 2010-05-26  Eric Blake  <eblake@redhat.com>
21009
21010         maint.mk: avoid echo -e
21011         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
21012         Convert all uses of echo -* to printf.
21013         Reported by Matthias Bolte.
21014
21015 2010-05-25  Bruno Haible  <bruno@clisp.org>
21016
21017         Update to GNU gettext 0.18, part 2.
21018         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
21019         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
21020
21021 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21022
21023         Add missing include in test-pwrite.c.
21024         * tests/test-pwrite.c: Include string.h, for strcmp.
21025
21026 2010-05-24  Bruno Haible  <bruno@clisp.org>
21027
21028         * NEWS: Mention requirement for Automake option 'subdir-objects'.
21029
21030 2010-05-24  Bruno Haible  <bruno@clisp.org>
21031
21032         Don't use conversion with transliteration in u{8,16,32}_strcoll.
21033         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
21034         iconveh_error argument.
21035         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
21036         U_STRCONV_TO_LOCALE.
21037         * lib/unistr/u16-strcoll.c: Likewise.
21038         * lib/unistr/u32-strcoll.c: Likewise.
21039         * modules/unistr/u8-strcoll (Depends-on): Add
21040         uniconv/u8-strconv-to-enc, localcharset. Remove
21041         uniconv/u8-strconv-to-locale.
21042         (configure.ac): Bump version number.
21043         * modules/unistr/u16-strcoll (Depends-on): Add
21044         uniconv/u16-strconv-to-enc, localcharset. Remove
21045         uniconv/u16-strconv-to-locale.
21046         (configure.ac): Bump version number.
21047         * modules/unistr/u32-strcoll (Depends-on): Add
21048         uniconv/u32-strconv-to-enc, localcharset. Remove
21049         uniconv/u32-strconv-to-locale.
21050         (configure.ac): Bump version number.
21051
21052 2010-05-24  Bruno Haible  <bruno@clisp.org>
21053
21054         Avoid a test failure on NetBSD 5.0.
21055         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
21056         an iconv() bug.
21057
21058 2010-05-24  Bruno Haible  <bruno@clisp.org>
21059
21060         Adjust #include directive style.
21061         * modules/regex (Includes): Recommend to write <regex.h>.
21062
21063 2010-05-24  Bruno Haible  <bruno@clisp.org>
21064
21065         regex: Don't require alloca.
21066         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
21067         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
21068         only inside if (0).
21069
21070 2010-05-23  Jim Meyering  <meyering@redhat.com>
21071
21072         test-renameat.c: include <sys/stat.h>
21073         * tests/test-renameat.c: Include <sys/stat.h>; required for
21074         definition of S_IS* macros.
21075
21076 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
21077
21078         Update maintainer documentation for 'relocatable-prog' module.
21079         * doc/relocatable-maint.texi: Update.
21080         Comments by Bruno Haible.
21081
21082 2010-05-23  Bruno Haible  <bruno@clisp.org>
21083
21084         git-merge-changelog: Enable --split-merged-entry by default.
21085         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
21086         (usage): Don't mention this option any more.
21087         Reported by Ralf Wildenhues.
21088
21089 2010-05-23  Jim Meyering  <meyering@redhat.com>
21090
21091         test-pwrite: do not leave behind a test file named "out"
21092         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
21093         The trivial-looking use of init.sh is really necessary.
21094         It ensures that the temporary file, "out", is created in
21095         a temporary directory, and removed upon termination.
21096         * tests/test-pwrite.sh: Re-add file.
21097         * modules/pwrite-tests: Reference it.
21098
21099 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21100
21101         Fix output redirection buglet in init.sh.
21102         * tests/init.sh: Fix redirection of stderr.
21103
21104 2010-05-20  Simon Josefsson  <simon@josefsson.org>
21105
21106         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
21107
21108 2010-05-17  Simon Josefsson  <simon@josefsson.org>
21109
21110         * modules/valgrind-tests: New file.
21111         * m4/valgrind-tests.m4: New file.
21112         * doc/valgrind-tests.texi: New file.
21113         * doc/gnulib.texi (Running self-tests under valgrind): New
21114         section.
21115
21116 2010-05-19  Bruno Haible  <bruno@clisp.org>
21117
21118         Clean up dead code in recent commit.
21119         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
21120         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
21121         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
21122         Suggested by Paolo Bonzini.
21123
21124 2010-05-19  Bruno Haible  <bruno@clisp.org>
21125
21126         Avoid valgrind error reports from libunistring.
21127         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
21128         * modules/libunistring (Files): Add it.
21129         * modules/libunistring-optional (Files): Likewise.
21130
21131 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
21132             Bruno Haible  <bruno@clisp.org>
21133
21134         New module 'libunistring-optional'.
21135         * modules/libunistring-optional: New file.
21136         * m4/libunistring-base.m4: New file.
21137         * m4/libunistring-optional.m4: New file.
21138         * lib/unicase.in.h: Renamed from lib/unicase.h.
21139         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
21140         * lib/unictype.in.h: Renamed from lib/unictype.h.
21141         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
21142         * lib/uniname.in.h: Renamed from lib/uniname.h.
21143         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
21144         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
21145         * lib/unistr.in.h: Renamed from lib/unistr.h.
21146         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
21147         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
21148         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
21149         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
21150         gl_LIBUNISTRING. If the library was found, determine the installed
21151         version and set LIBUNISTRING_VERSION.
21152         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
21153         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
21154         handle a configuration option --with-included-libunistring.
21155         * modules/libunistring (Files): Add m4/absolute-header.m4.
21156         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
21157         Add m4/libunistring-base.m4.
21158         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21159         (Makefile.am): Build unicase.h from unicase.in.h.
21160         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
21161         Add m4/libunistring-base.m4.
21162         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21163         (Makefile.am): Build uniconv.h from uniconv.in.h.
21164         * modules/unictype/base (Files): Use unictype.in.h instead of
21165         unictype.h. Add m4/libunistring-base.m4.
21166         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21167         (Makefile.am): Build unictype.h from unictype.in.h.
21168         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
21169         Add m4/libunistring-base.m4.
21170         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21171         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
21172         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
21173         Add m4/libunistring-base.m4.
21174         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21175         (Makefile.am): Build uniname.h from uniname.in.h.
21176         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
21177         Add m4/libunistring-base.m4.
21178         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21179         (Makefile.am): Build uninorm.h from uninorm.in.h.
21180         * modules/unistdio/base (Files): Use unistdio.in.h instead of
21181         unistdio.h. Add m4/libunistring-base.m4.
21182         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21183         (Makefile.am): Build unistdio.h from unistdio.in.h.
21184         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
21185         Add m4/libunistring-base.m4.
21186         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21187         (Makefile.am): Build unistr.h from unistr.in.h.
21188         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
21189         Add m4/libunistring-base.m4.
21190         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21191         (Makefile.am): Build unitypes.h from unitypes.in.h.
21192         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
21193         Add m4/libunistring-base.m4.
21194         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21195         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
21196         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
21197         uniwidth.h. Add m4/libunistring-base.m4.
21198         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
21199         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
21200         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
21201         instead of augmenting lib_SOURCES.
21202         * modules/unicase/empty-suffix-context: Likewise.
21203         * modules/unicase/locale-language: Likewise.
21204         * modules/unicase/tolower: Likewise.
21205         * modules/unicase/totitle: Likewise.
21206         * modules/unicase/toupper: Likewise.
21207         * modules/unicase/u8-casecmp: Likewise.
21208         * modules/unicase/u8-casecoll: Likewise.
21209         * modules/unicase/u8-casefold: Likewise.
21210         * modules/unicase/u8-casexfrm: Likewise.
21211         * modules/unicase/u8-ct-casefold: Likewise.
21212         * modules/unicase/u8-ct-tolower: Likewise.
21213         * modules/unicase/u8-ct-totitle: Likewise.
21214         * modules/unicase/u8-ct-toupper: Likewise.
21215         * modules/unicase/u8-is-cased: Likewise.
21216         * modules/unicase/u8-is-casefolded: Likewise.
21217         * modules/unicase/u8-is-lowercase: Likewise.
21218         * modules/unicase/u8-is-titlecase: Likewise.
21219         * modules/unicase/u8-is-uppercase: Likewise.
21220         * modules/unicase/u8-prefix-context: Likewise.
21221         * modules/unicase/u8-suffix-context: Likewise.
21222         * modules/unicase/u8-tolower: Likewise.
21223         * modules/unicase/u8-totitle: Likewise.
21224         * modules/unicase/u8-toupper: Likewise.
21225         * modules/unicase/u16-casecmp: Likewise.
21226         * modules/unicase/u16-casecoll: Likewise.
21227         * modules/unicase/u16-casefold: Likewise.
21228         * modules/unicase/u16-casexfrm: Likewise.
21229         * modules/unicase/u16-ct-casefold: Likewise.
21230         * modules/unicase/u16-ct-tolower: Likewise.
21231         * modules/unicase/u16-ct-totitle: Likewise.
21232         * modules/unicase/u16-ct-toupper: Likewise.
21233         * modules/unicase/u16-is-cased: Likewise.
21234         * modules/unicase/u16-is-casefolded: Likewise.
21235         * modules/unicase/u16-is-lowercase: Likewise.
21236         * modules/unicase/u16-is-titlecase: Likewise.
21237         * modules/unicase/u16-is-uppercase: Likewise.
21238         * modules/unicase/u16-prefix-context: Likewise.
21239         * modules/unicase/u16-suffix-context: Likewise.
21240         * modules/unicase/u16-tolower: Likewise.
21241         * modules/unicase/u16-totitle: Likewise.
21242         * modules/unicase/u16-toupper: Likewise.
21243         * modules/unicase/u32-casecmp: Likewise.
21244         * modules/unicase/u32-casecoll: Likewise.
21245         * modules/unicase/u32-casefold: Likewise.
21246         * modules/unicase/u32-casexfrm: Likewise.
21247         * modules/unicase/u32-ct-casefold: Likewise.
21248         * modules/unicase/u32-ct-tolower: Likewise.
21249         * modules/unicase/u32-ct-totitle: Likewise.
21250         * modules/unicase/u32-ct-toupper: Likewise.
21251         * modules/unicase/u32-is-cased: Likewise.
21252         * modules/unicase/u32-is-casefolded: Likewise.
21253         * modules/unicase/u32-is-lowercase: Likewise.
21254         * modules/unicase/u32-is-titlecase: Likewise.
21255         * modules/unicase/u32-is-uppercase: Likewise.
21256         * modules/unicase/u32-prefix-context: Likewise.
21257         * modules/unicase/u32-suffix-context: Likewise.
21258         * modules/unicase/u32-tolower: Likewise.
21259         * modules/unicase/u32-totitle: Likewise.
21260         * modules/unicase/u32-toupper: Likewise.
21261         * modules/unicase/ulc-casecmp: Likewise.
21262         * modules/unicase/ulc-casecoll: Likewise.
21263         * modules/unicase/ulc-casexfrm: Likewise.
21264         * modules/uniconv/u8-conv-from-enc: Likewise.
21265         * modules/uniconv/u8-conv-to-enc: Likewise.
21266         * modules/uniconv/u8-strconv-from-enc: Likewise.
21267         * modules/uniconv/u8-strconv-from-locale: Likewise.
21268         * modules/uniconv/u8-strconv-to-enc: Likewise.
21269         * modules/uniconv/u8-strconv-to-locale: Likewise.
21270         * modules/uniconv/u16-conv-from-enc: Likewise.
21271         * modules/uniconv/u16-conv-to-enc: Likewise.
21272         * modules/uniconv/u16-strconv-from-enc: Likewise.
21273         * modules/uniconv/u16-strconv-from-locale: Likewise.
21274         * modules/uniconv/u16-strconv-to-enc: Likewise.
21275         * modules/uniconv/u16-strconv-to-locale: Likewise.
21276         * modules/uniconv/u32-conv-from-enc: Likewise.
21277         * modules/uniconv/u32-conv-to-enc: Likewise.
21278         * modules/uniconv/u32-strconv-from-enc: Likewise.
21279         * modules/uniconv/u32-strconv-from-locale: Likewise.
21280         * modules/uniconv/u32-strconv-to-enc: Likewise.
21281         * modules/uniconv/u32-strconv-to-locale: Likewise.
21282         * modules/unictype/bidicategory-byname: Likewise.
21283         * modules/unictype/bidicategory-name: Likewise.
21284         * modules/unictype/bidicategory-of: Likewise.
21285         * modules/unictype/bidicategory-test: Likewise.
21286         * modules/unictype/block-list: Likewise.
21287         * modules/unictype/block-test: Likewise.
21288         * modules/unictype/category-C: Likewise.
21289         * modules/unictype/category-Cc: Likewise.
21290         * modules/unictype/category-Cf: Likewise.
21291         * modules/unictype/category-Cn: Likewise.
21292         * modules/unictype/category-Co: Likewise.
21293         * modules/unictype/category-Cs: Likewise.
21294         * modules/unictype/category-L: Likewise.
21295         * modules/unictype/category-Ll: Likewise.
21296         * modules/unictype/category-Lm: Likewise.
21297         * modules/unictype/category-Lo: Likewise.
21298         * modules/unictype/category-Lt: Likewise.
21299         * modules/unictype/category-Lu: Likewise.
21300         * modules/unictype/category-M: Likewise.
21301         * modules/unictype/category-Mc: Likewise.
21302         * modules/unictype/category-Me: Likewise.
21303         * modules/unictype/category-Mn: Likewise.
21304         * modules/unictype/category-N: Likewise.
21305         * modules/unictype/category-Nd: Likewise.
21306         * modules/unictype/category-Nl: Likewise.
21307         * modules/unictype/category-No: Likewise.
21308         * modules/unictype/category-P: Likewise.
21309         * modules/unictype/category-Pc: Likewise.
21310         * modules/unictype/category-Pd: Likewise.
21311         * modules/unictype/category-Pe: Likewise.
21312         * modules/unictype/category-Pf: Likewise.
21313         * modules/unictype/category-Pi: Likewise.
21314         * modules/unictype/category-Po: Likewise.
21315         * modules/unictype/category-Ps: Likewise.
21316         * modules/unictype/category-S: Likewise.
21317         * modules/unictype/category-Sc: Likewise.
21318         * modules/unictype/category-Sk: Likewise.
21319         * modules/unictype/category-Sm: Likewise.
21320         * modules/unictype/category-So: Likewise.
21321         * modules/unictype/category-Z: Likewise.
21322         * modules/unictype/category-Zl: Likewise.
21323         * modules/unictype/category-Zp: Likewise.
21324         * modules/unictype/category-Zs: Likewise.
21325         * modules/unictype/category-and: Likewise.
21326         * modules/unictype/category-and-not: Likewise.
21327         * modules/unictype/category-byname: Likewise.
21328         * modules/unictype/category-name: Likewise.
21329         * modules/unictype/category-none: Likewise.
21330         * modules/unictype/category-of: Likewise.
21331         * modules/unictype/category-or: Likewise.
21332         * modules/unictype/category-test: Likewise.
21333         * modules/unictype/combining-class: Likewise.
21334         * modules/unictype/ctype-alnum: Likewise.
21335         * modules/unictype/ctype-alpha: Likewise.
21336         * modules/unictype/ctype-blank: Likewise.
21337         * modules/unictype/ctype-cntrl: Likewise.
21338         * modules/unictype/ctype-digit: Likewise.
21339         * modules/unictype/ctype-graph: Likewise.
21340         * modules/unictype/ctype-lower: Likewise.
21341         * modules/unictype/ctype-print: Likewise.
21342         * modules/unictype/ctype-punct: Likewise.
21343         * modules/unictype/ctype-space: Likewise.
21344         * modules/unictype/ctype-upper: Likewise.
21345         * modules/unictype/ctype-xdigit: Likewise.
21346         * modules/unictype/decimal-digit: Likewise.
21347         * modules/unictype/digit: Likewise.
21348         * modules/unictype/mirror: Likewise.
21349         * modules/unictype/numeric: Likewise.
21350         * modules/unictype/property-alphabetic: Likewise.
21351         * modules/unictype/property-ascii-hex-digit: Likewise.
21352         * modules/unictype/property-bidi-arabic-digit: Likewise.
21353         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
21354         * modules/unictype/property-bidi-block-separator: Likewise.
21355         * modules/unictype/property-bidi-boundary-neutral: Likewise.
21356         * modules/unictype/property-bidi-common-separator: Likewise.
21357         * modules/unictype/property-bidi-control: Likewise.
21358         * modules/unictype/property-bidi-embedding-or-override: Likewise.
21359         * modules/unictype/property-bidi-eur-num-separator: Likewise.
21360         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
21361         * modules/unictype/property-bidi-european-digit: Likewise.
21362         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
21363         * modules/unictype/property-bidi-left-to-right: Likewise.
21364         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
21365         * modules/unictype/property-bidi-other-neutral: Likewise.
21366         * modules/unictype/property-bidi-pdf: Likewise.
21367         * modules/unictype/property-bidi-segment-separator: Likewise.
21368         * modules/unictype/property-bidi-whitespace: Likewise.
21369         * modules/unictype/property-byname: Likewise.
21370         * modules/unictype/property-combining: Likewise.
21371         * modules/unictype/property-composite: Likewise.
21372         * modules/unictype/property-currency-symbol: Likewise.
21373         * modules/unictype/property-dash: Likewise.
21374         * modules/unictype/property-decimal-digit: Likewise.
21375         * modules/unictype/property-default-ignorable-code-point: Likewise.
21376         * modules/unictype/property-deprecated: Likewise.
21377         * modules/unictype/property-diacritic: Likewise.
21378         * modules/unictype/property-extender: Likewise.
21379         * modules/unictype/property-format-control: Likewise.
21380         * modules/unictype/property-grapheme-base: Likewise.
21381         * modules/unictype/property-grapheme-extend: Likewise.
21382         * modules/unictype/property-grapheme-link: Likewise.
21383         * modules/unictype/property-hex-digit: Likewise.
21384         * modules/unictype/property-hyphen: Likewise.
21385         * modules/unictype/property-id-continue: Likewise.
21386         * modules/unictype/property-id-start: Likewise.
21387         * modules/unictype/property-ideographic: Likewise.
21388         * modules/unictype/property-ids-binary-operator: Likewise.
21389         * modules/unictype/property-ids-trinary-operator: Likewise.
21390         * modules/unictype/property-ignorable-control: Likewise.
21391         * modules/unictype/property-iso-control: Likewise.
21392         * modules/unictype/property-join-control: Likewise.
21393         * modules/unictype/property-left-of-pair: Likewise.
21394         * modules/unictype/property-line-separator: Likewise.
21395         * modules/unictype/property-logical-order-exception: Likewise.
21396         * modules/unictype/property-lowercase: Likewise.
21397         * modules/unictype/property-math: Likewise.
21398         * modules/unictype/property-non-break: Likewise.
21399         * modules/unictype/property-not-a-character: Likewise.
21400         * modules/unictype/property-numeric: Likewise.
21401         * modules/unictype/property-other-alphabetic: Likewise.
21402         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
21403         * modules/unictype/property-other-grapheme-extend: Likewise.
21404         * modules/unictype/property-other-id-continue: Likewise.
21405         * modules/unictype/property-other-id-start: Likewise.
21406         * modules/unictype/property-other-lowercase: Likewise.
21407         * modules/unictype/property-other-math: Likewise.
21408         * modules/unictype/property-other-uppercase: Likewise.
21409         * modules/unictype/property-paired-punctuation: Likewise.
21410         * modules/unictype/property-paragraph-separator: Likewise.
21411         * modules/unictype/property-pattern-syntax: Likewise.
21412         * modules/unictype/property-pattern-white-space: Likewise.
21413         * modules/unictype/property-private-use: Likewise.
21414         * modules/unictype/property-punctuation: Likewise.
21415         * modules/unictype/property-quotation-mark: Likewise.
21416         * modules/unictype/property-radical: Likewise.
21417         * modules/unictype/property-sentence-terminal: Likewise.
21418         * modules/unictype/property-soft-dotted: Likewise.
21419         * modules/unictype/property-space: Likewise.
21420         * modules/unictype/property-terminal-punctuation: Likewise.
21421         * modules/unictype/property-test: Likewise.
21422         * modules/unictype/property-titlecase: Likewise.
21423         * modules/unictype/property-unassigned-code-value: Likewise.
21424         * modules/unictype/property-unified-ideograph: Likewise.
21425         * modules/unictype/property-uppercase: Likewise.
21426         * modules/unictype/property-variation-selector: Likewise.
21427         * modules/unictype/property-white-space: Likewise.
21428         * modules/unictype/property-xid-continue: Likewise.
21429         * modules/unictype/property-xid-start: Likewise.
21430         * modules/unictype/property-zero-width: Likewise.
21431         * modules/unictype/scripts: Likewise.
21432         * modules/unictype/syntax-c-ident: Likewise.
21433         * modules/unictype/syntax-c-whitespace: Likewise.
21434         * modules/unictype/syntax-java-ident: Likewise.
21435         * modules/unictype/syntax-java-whitespace: Likewise.
21436         * modules/unilbrk/u8-possible-linebreaks: Likewise.
21437         * modules/unilbrk/u8-width-linebreaks: Likewise.
21438         * modules/unilbrk/u16-possible-linebreaks: Likewise.
21439         * modules/unilbrk/u16-width-linebreaks: Likewise.
21440         * modules/unilbrk/u32-possible-linebreaks: Likewise.
21441         * modules/unilbrk/u32-width-linebreaks: Likewise.
21442         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
21443         * modules/unilbrk/ulc-width-linebreaks: Likewise.
21444         * modules/uniname/uniname: Likewise.
21445         * modules/uninorm/canonical-decomposition: Likewise.
21446         * modules/uninorm/composition: Likewise.
21447         * modules/uninorm/decomposing-form: Likewise.
21448         * modules/uninorm/decomposition: Likewise.
21449         * modules/uninorm/filter: Likewise.
21450         * modules/uninorm/nfc: Likewise.
21451         * modules/uninorm/nfd: Likewise.
21452         * modules/uninorm/nfkc: Likewise.
21453         * modules/uninorm/nfkd: Likewise.
21454         * modules/uninorm/u8-normalize: Likewise.
21455         * modules/uninorm/u8-normcmp: Likewise.
21456         * modules/uninorm/u8-normcoll: Likewise.
21457         * modules/uninorm/u8-normxfrm: Likewise.
21458         * modules/uninorm/u16-normalize: Likewise.
21459         * modules/uninorm/u16-normcmp: Likewise.
21460         * modules/uninorm/u16-normcoll: Likewise.
21461         * modules/uninorm/u16-normxfrm: Likewise.
21462         * modules/uninorm/u32-normalize: Likewise.
21463         * modules/uninorm/u32-normcmp: Likewise.
21464         * modules/uninorm/u32-normcoll: Likewise.
21465         * modules/uninorm/u32-normxfrm: Likewise.
21466         * modules/unistdio/u8-asnprintf: Likewise.
21467         * modules/unistdio/u8-asprintf: Likewise.
21468         * modules/unistdio/u8-snprintf: Likewise.
21469         * modules/unistdio/u8-sprintf: Likewise.
21470         * modules/unistdio/u8-u8-asnprintf: Likewise.
21471         * modules/unistdio/u8-u8-asprintf: Likewise.
21472         * modules/unistdio/u8-u8-snprintf: Likewise.
21473         * modules/unistdio/u8-u8-sprintf: Likewise.
21474         * modules/unistdio/u8-u8-vasnprintf: Likewise.
21475         * modules/unistdio/u8-u8-vasprintf: Likewise.
21476         * modules/unistdio/u8-u8-vsnprintf: Likewise.
21477         * modules/unistdio/u8-u8-vsprintf: Likewise.
21478         * modules/unistdio/u8-vasnprintf: Likewise.
21479         * modules/unistdio/u8-vasprintf: Likewise.
21480         * modules/unistdio/u8-vsnprintf: Likewise.
21481         * modules/unistdio/u8-vsprintf: Likewise.
21482         * modules/unistdio/u16-asnprintf: Likewise.
21483         * modules/unistdio/u16-asprintf: Likewise.
21484         * modules/unistdio/u16-snprintf: Likewise.
21485         * modules/unistdio/u16-sprintf: Likewise.
21486         * modules/unistdio/u16-u16-asnprintf: Likewise.
21487         * modules/unistdio/u16-u16-asprintf: Likewise.
21488         * modules/unistdio/u16-u16-snprintf: Likewise.
21489         * modules/unistdio/u16-u16-sprintf: Likewise.
21490         * modules/unistdio/u16-u16-vasnprintf: Likewise.
21491         * modules/unistdio/u16-u16-vasprintf: Likewise.
21492         * modules/unistdio/u16-u16-vsnprintf: Likewise.
21493         * modules/unistdio/u16-u16-vsprintf: Likewise.
21494         * modules/unistdio/u16-vasnprintf: Likewise.
21495         * modules/unistdio/u16-vasprintf: Likewise.
21496         * modules/unistdio/u16-vsnprintf: Likewise.
21497         * modules/unistdio/u16-vsprintf: Likewise.
21498         * modules/unistdio/u32-asnprintf: Likewise.
21499         * modules/unistdio/u32-asprintf: Likewise.
21500         * modules/unistdio/u32-snprintf: Likewise.
21501         * modules/unistdio/u32-sprintf: Likewise.
21502         * modules/unistdio/u32-u32-asnprintf: Likewise.
21503         * modules/unistdio/u32-u32-asprintf: Likewise.
21504         * modules/unistdio/u32-u32-snprintf: Likewise.
21505         * modules/unistdio/u32-u32-sprintf: Likewise.
21506         * modules/unistdio/u32-u32-vasnprintf: Likewise.
21507         * modules/unistdio/u32-u32-vasprintf: Likewise.
21508         * modules/unistdio/u32-u32-vsnprintf: Likewise.
21509         * modules/unistdio/u32-u32-vsprintf: Likewise.
21510         * modules/unistdio/u32-vasnprintf: Likewise.
21511         * modules/unistdio/u32-vasprintf: Likewise.
21512         * modules/unistdio/u32-vsnprintf: Likewise.
21513         * modules/unistdio/u32-vsprintf: Likewise.
21514         * modules/unistdio/ulc-asnprintf: Likewise.
21515         * modules/unistdio/ulc-asprintf: Likewise.
21516         * modules/unistdio/ulc-fprintf: Likewise.
21517         * modules/unistdio/ulc-snprintf: Likewise.
21518         * modules/unistdio/ulc-sprintf: Likewise.
21519         * modules/unistdio/ulc-vasnprintf: Likewise.
21520         * modules/unistdio/ulc-vasprintf: Likewise.
21521         * modules/unistdio/ulc-vfprintf: Likewise.
21522         * modules/unistdio/ulc-vsnprintf: Likewise.
21523         * modules/unistdio/ulc-vsprintf: Likewise.
21524         * modules/unistr/u8-check: Likewise.
21525         * modules/unistr/u8-chr: Likewise.
21526         * modules/unistr/u8-cmp: Likewise.
21527         * modules/unistr/u8-cmp2: Likewise.
21528         * modules/unistr/u8-cpy: Likewise.
21529         * modules/unistr/u8-cpy-alloc: Likewise.
21530         * modules/unistr/u8-endswith: Likewise.
21531         * modules/unistr/u8-mblen: Likewise.
21532         * modules/unistr/u8-mbsnlen: Likewise.
21533         * modules/unistr/u8-mbtouc: Likewise.
21534         * modules/unistr/u8-mbtouc-unsafe: Likewise.
21535         * modules/unistr/u8-mbtoucr: Likewise.
21536         * modules/unistr/u8-move: Likewise.
21537         * modules/unistr/u8-next: Likewise.
21538         * modules/unistr/u8-prev: Likewise.
21539         * modules/unistr/u8-set: Likewise.
21540         * modules/unistr/u8-startswith: Likewise.
21541         * modules/unistr/u8-stpcpy: Likewise.
21542         * modules/unistr/u8-stpncpy: Likewise.
21543         * modules/unistr/u8-strcat: Likewise.
21544         * modules/unistr/u8-strchr: Likewise.
21545         * modules/unistr/u8-strcmp: Likewise.
21546         * modules/unistr/u8-strcoll: Likewise.
21547         * modules/unistr/u8-strcpy: Likewise.
21548         * modules/unistr/u8-strcspn: Likewise.
21549         * modules/unistr/u8-strdup: Likewise.
21550         * modules/unistr/u8-strlen: Likewise.
21551         * modules/unistr/u8-strmblen: Likewise.
21552         * modules/unistr/u8-strmbtouc: Likewise.
21553         * modules/unistr/u8-strncat: Likewise.
21554         * modules/unistr/u8-strncmp: Likewise.
21555         * modules/unistr/u8-strncpy: Likewise.
21556         * modules/unistr/u8-strnlen: Likewise.
21557         * modules/unistr/u8-strpbrk: Likewise.
21558         * modules/unistr/u8-strrchr: Likewise.
21559         * modules/unistr/u8-strspn: Likewise.
21560         * modules/unistr/u8-strstr: Likewise.
21561         * modules/unistr/u8-strtok: Likewise.
21562         * modules/unistr/u8-to-u16: Likewise.
21563         * modules/unistr/u8-to-u32: Likewise.
21564         * modules/unistr/u8-uctomb: Likewise.
21565         * modules/unistr/u16-check: Likewise.
21566         * modules/unistr/u16-chr: Likewise.
21567         * modules/unistr/u16-cmp: Likewise.
21568         * modules/unistr/u16-cmp2: Likewise.
21569         * modules/unistr/u16-cpy: Likewise.
21570         * modules/unistr/u16-cpy-alloc: Likewise.
21571         * modules/unistr/u16-endswith: Likewise.
21572         * modules/unistr/u16-mblen: Likewise.
21573         * modules/unistr/u16-mbsnlen: Likewise.
21574         * modules/unistr/u16-mbtouc: Likewise.
21575         * modules/unistr/u16-mbtouc-unsafe: Likewise.
21576         * modules/unistr/u16-mbtoucr: Likewise.
21577         * modules/unistr/u16-move: Likewise.
21578         * modules/unistr/u16-next: Likewise.
21579         * modules/unistr/u16-prev: Likewise.
21580         * modules/unistr/u16-set: Likewise.
21581         * modules/unistr/u16-startswith: Likewise.
21582         * modules/unistr/u16-stpcpy: Likewise.
21583         * modules/unistr/u16-stpncpy: Likewise.
21584         * modules/unistr/u16-strcat: Likewise.
21585         * modules/unistr/u16-strchr: Likewise.
21586         * modules/unistr/u16-strcmp: Likewise.
21587         * modules/unistr/u16-strcoll: Likewise.
21588         * modules/unistr/u16-strcpy: Likewise.
21589         * modules/unistr/u16-strcspn: Likewise.
21590         * modules/unistr/u16-strdup: Likewise.
21591         * modules/unistr/u16-strlen: Likewise.
21592         * modules/unistr/u16-strmblen: Likewise.
21593         * modules/unistr/u16-strmbtouc: Likewise.
21594         * modules/unistr/u16-strncat: Likewise.
21595         * modules/unistr/u16-strncmp: Likewise.
21596         * modules/unistr/u16-strncpy: Likewise.
21597         * modules/unistr/u16-strnlen: Likewise.
21598         * modules/unistr/u16-strpbrk: Likewise.
21599         * modules/unistr/u16-strrchr: Likewise.
21600         * modules/unistr/u16-strspn: Likewise.
21601         * modules/unistr/u16-strstr: Likewise.
21602         * modules/unistr/u16-strtok: Likewise.
21603         * modules/unistr/u16-to-u32: Likewise.
21604         * modules/unistr/u16-to-u8: Likewise.
21605         * modules/unistr/u16-uctomb: Likewise.
21606         * modules/unistr/u32-check: Likewise.
21607         * modules/unistr/u32-chr: Likewise.
21608         * modules/unistr/u32-cmp: Likewise.
21609         * modules/unistr/u32-cmp2: Likewise.
21610         * modules/unistr/u32-cpy: Likewise.
21611         * modules/unistr/u32-cpy-alloc: Likewise.
21612         * modules/unistr/u32-endswith: Likewise.
21613         * modules/unistr/u32-mblen: Likewise.
21614         * modules/unistr/u32-mbsnlen: Likewise.
21615         * modules/unistr/u32-mbtouc: Likewise.
21616         * modules/unistr/u32-mbtouc-unsafe: Likewise.
21617         * modules/unistr/u32-mbtoucr: Likewise.
21618         * modules/unistr/u32-move: Likewise.
21619         * modules/unistr/u32-next: Likewise.
21620         * modules/unistr/u32-prev: Likewise.
21621         * modules/unistr/u32-set: Likewise.
21622         * modules/unistr/u32-startswith: Likewise.
21623         * modules/unistr/u32-stpcpy: Likewise.
21624         * modules/unistr/u32-stpncpy: Likewise.
21625         * modules/unistr/u32-strcat: Likewise.
21626         * modules/unistr/u32-strchr: Likewise.
21627         * modules/unistr/u32-strcmp: Likewise.
21628         * modules/unistr/u32-strcoll: Likewise.
21629         * modules/unistr/u32-strcpy: Likewise.
21630         * modules/unistr/u32-strcspn: Likewise.
21631         * modules/unistr/u32-strdup: Likewise.
21632         * modules/unistr/u32-strlen: Likewise.
21633         * modules/unistr/u32-strmblen: Likewise.
21634         * modules/unistr/u32-strmbtouc: Likewise.
21635         * modules/unistr/u32-strncat: Likewise.
21636         * modules/unistr/u32-strncmp: Likewise.
21637         * modules/unistr/u32-strncpy: Likewise.
21638         * modules/unistr/u32-strnlen: Likewise.
21639         * modules/unistr/u32-strpbrk: Likewise.
21640         * modules/unistr/u32-strrchr: Likewise.
21641         * modules/unistr/u32-strspn: Likewise.
21642         * modules/unistr/u32-strstr: Likewise.
21643         * modules/unistr/u32-strtok: Likewise.
21644         * modules/unistr/u32-to-u16: Likewise.
21645         * modules/unistr/u32-to-u8: Likewise.
21646         * modules/unistr/u32-uctomb: Likewise.
21647         * modules/uniwbrk/u8-wordbreaks: Likewise.
21648         * modules/uniwbrk/u16-wordbreaks: Likewise.
21649         * modules/uniwbrk/u32-wordbreaks: Likewise.
21650         * modules/uniwbrk/ulc-wordbreaks: Likewise.
21651         * modules/uniwbrk/wordbreak-property: Likewise.
21652         * modules/uniwidth/u8-strwidth: Likewise.
21653         * modules/uniwidth/u8-width: Likewise.
21654         * modules/uniwidth/u16-strwidth: Likewise.
21655         * modules/uniwidth/u16-width: Likewise.
21656         * modules/uniwidth/u32-strwidth: Likewise.
21657         * modules/uniwidth/u32-width: Likewise.
21658         * modules/uniwidth/width: Likewise.
21659         * modules/unicase/cased-tests (Makefile.am): Link all test programs
21660         with $(LIBUNISTRING).
21661         * modules/unicase/ignorable-tests: Likewise.
21662         * modules/unicase/locale-language-tests: Likewise.
21663         * modules/unicase/tolower-tests: Likewise.
21664         * modules/unicase/totitle-tests: Likewise.
21665         * modules/unicase/toupper-tests: Likewise.
21666         * modules/unicase/u8-casecmp-tests: Likewise.
21667         * modules/unicase/u8-casecoll-tests: Likewise.
21668         * modules/unicase/u8-casefold-tests: Likewise.
21669         * modules/unicase/u8-is-cased-tests: Likewise.
21670         * modules/unicase/u8-is-casefolded-tests: Likewise.
21671         * modules/unicase/u8-is-lowercase-tests: Likewise.
21672         * modules/unicase/u8-is-titlecase-tests: Likewise.
21673         * modules/unicase/u8-is-uppercase-tests: Likewise.
21674         * modules/unicase/u8-tolower-tests: Likewise.
21675         * modules/unicase/u8-totitle-tests: Likewise.
21676         * modules/unicase/u8-toupper-tests: Likewise.
21677         * modules/unicase/u16-casecmp-tests: Likewise.
21678         * modules/unicase/u16-casecoll-tests: Likewise.
21679         * modules/unicase/u16-casefold-tests: Likewise.
21680         * modules/unicase/u16-is-cased-tests: Likewise.
21681         * modules/unicase/u16-is-casefolded-tests: Likewise.
21682         * modules/unicase/u16-is-lowercase-tests: Likewise.
21683         * modules/unicase/u16-is-titlecase-tests: Likewise.
21684         * modules/unicase/u16-is-uppercase-tests: Likewise.
21685         * modules/unicase/u16-tolower-tests: Likewise.
21686         * modules/unicase/u16-totitle-tests: Likewise.
21687         * modules/unicase/u16-toupper-tests: Likewise.
21688         * modules/unicase/u32-casecmp-tests: Likewise.
21689         * modules/unicase/u32-casecoll-tests: Likewise.
21690         * modules/unicase/u32-casefold-tests: Likewise.
21691         * modules/unicase/u32-is-cased-tests: Likewise.
21692         * modules/unicase/u32-is-casefolded-tests: Likewise.
21693         * modules/unicase/u32-is-lowercase-tests: Likewise.
21694         * modules/unicase/u32-is-titlecase-tests: Likewise.
21695         * modules/unicase/u32-is-uppercase-tests: Likewise.
21696         * modules/unicase/u32-tolower-tests: Likewise.
21697         * modules/unicase/u32-totitle-tests: Likewise.
21698         * modules/unicase/u32-toupper-tests: Likewise.
21699         * modules/unicase/ulc-casecmp-tests: Likewise.
21700         * modules/unicase/ulc-casecoll-tests: Likewise.
21701         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
21702         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
21703         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
21704         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
21705         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
21706         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
21707         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
21708         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
21709         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
21710         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
21711         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
21712         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
21713         * modules/unictype/bidicategory-byname-tests: Likewise.
21714         * modules/unictype/bidicategory-name-tests: Likewise.
21715         * modules/unictype/bidicategory-of-tests: Likewise.
21716         * modules/unictype/bidicategory-test-tests: Likewise.
21717         * modules/unictype/block-list-tests: Likewise.
21718         * modules/unictype/block-of-tests: Likewise.
21719         * modules/unictype/block-test-tests: Likewise.
21720         * modules/unictype/category-C-tests: Likewise.
21721         * modules/unictype/category-Cc-tests: Likewise.
21722         * modules/unictype/category-Cf-tests: Likewise.
21723         * modules/unictype/category-Cn-tests: Likewise.
21724         * modules/unictype/category-Co-tests: Likewise.
21725         * modules/unictype/category-Cs-tests: Likewise.
21726         * modules/unictype/category-L-tests: Likewise.
21727         * modules/unictype/category-Ll-tests: Likewise.
21728         * modules/unictype/category-Lm-tests: Likewise.
21729         * modules/unictype/category-Lo-tests: Likewise.
21730         * modules/unictype/category-Lt-tests: Likewise.
21731         * modules/unictype/category-Lu-tests: Likewise.
21732         * modules/unictype/category-M-tests: Likewise.
21733         * modules/unictype/category-Mc-tests: Likewise.
21734         * modules/unictype/category-Me-tests: Likewise.
21735         * modules/unictype/category-Mn-tests: Likewise.
21736         * modules/unictype/category-N-tests: Likewise.
21737         * modules/unictype/category-Nd-tests: Likewise.
21738         * modules/unictype/category-Nl-tests: Likewise.
21739         * modules/unictype/category-No-tests: Likewise.
21740         * modules/unictype/category-P-tests: Likewise.
21741         * modules/unictype/category-Pc-tests: Likewise.
21742         * modules/unictype/category-Pd-tests: Likewise.
21743         * modules/unictype/category-Pe-tests: Likewise.
21744         * modules/unictype/category-Pf-tests: Likewise.
21745         * modules/unictype/category-Pi-tests: Likewise.
21746         * modules/unictype/category-Po-tests: Likewise.
21747         * modules/unictype/category-Ps-tests: Likewise.
21748         * modules/unictype/category-S-tests: Likewise.
21749         * modules/unictype/category-Sc-tests: Likewise.
21750         * modules/unictype/category-Sk-tests: Likewise.
21751         * modules/unictype/category-Sm-tests: Likewise.
21752         * modules/unictype/category-So-tests: Likewise.
21753         * modules/unictype/category-Z-tests: Likewise.
21754         * modules/unictype/category-Zl-tests: Likewise.
21755         * modules/unictype/category-Zp-tests: Likewise.
21756         * modules/unictype/category-Zs-tests: Likewise.
21757         * modules/unictype/category-and-not-tests: Likewise.
21758         * modules/unictype/category-and-tests: Likewise.
21759         * modules/unictype/category-byname-tests: Likewise.
21760         * modules/unictype/category-name-tests: Likewise.
21761         * modules/unictype/category-none-tests: Likewise.
21762         * modules/unictype/category-of-tests: Likewise.
21763         * modules/unictype/category-or-tests: Likewise.
21764         * modules/unictype/category-test-withtable-tests: Likewise.
21765         * modules/unictype/combining-class-tests: Likewise.
21766         * modules/unictype/ctype-alnum-tests: Likewise.
21767         * modules/unictype/ctype-alpha-tests: Likewise.
21768         * modules/unictype/ctype-blank-tests: Likewise.
21769         * modules/unictype/ctype-cntrl-tests: Likewise.
21770         * modules/unictype/ctype-digit-tests: Likewise.
21771         * modules/unictype/ctype-graph-tests: Likewise.
21772         * modules/unictype/ctype-lower-tests: Likewise.
21773         * modules/unictype/ctype-print-tests: Likewise.
21774         * modules/unictype/ctype-punct-tests: Likewise.
21775         * modules/unictype/ctype-space-tests: Likewise.
21776         * modules/unictype/ctype-upper-tests: Likewise.
21777         * modules/unictype/ctype-xdigit-tests: Likewise.
21778         * modules/unictype/decimal-digit-tests: Likewise.
21779         * modules/unictype/digit-tests: Likewise.
21780         * modules/unictype/mirror-tests: Likewise.
21781         * modules/unictype/numeric-tests: Likewise.
21782         * modules/unictype/property-alphabetic-tests: Likewise.
21783         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
21784         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
21785         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
21786         * modules/unictype/property-bidi-block-separator-tests: Likewise.
21787         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
21788         * modules/unictype/property-bidi-common-separator-tests: Likewise.
21789         * modules/unictype/property-bidi-control-tests: Likewise.
21790         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
21791         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
21792         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
21793         * modules/unictype/property-bidi-european-digit-tests: Likewise.
21794         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
21795         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
21796         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
21797         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
21798         * modules/unictype/property-bidi-pdf-tests: Likewise.
21799         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
21800         * modules/unictype/property-bidi-whitespace-tests: Likewise.
21801         * modules/unictype/property-byname-tests: Likewise.
21802         * modules/unictype/property-combining-tests: Likewise.
21803         * modules/unictype/property-composite-tests: Likewise.
21804         * modules/unictype/property-currency-symbol-tests: Likewise.
21805         * modules/unictype/property-dash-tests: Likewise.
21806         * modules/unictype/property-decimal-digit-tests: Likewise.
21807         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
21808         * modules/unictype/property-deprecated-tests: Likewise.
21809         * modules/unictype/property-diacritic-tests: Likewise.
21810         * modules/unictype/property-extender-tests: Likewise.
21811         * modules/unictype/property-format-control-tests: Likewise.
21812         * modules/unictype/property-grapheme-base-tests: Likewise.
21813         * modules/unictype/property-grapheme-extend-tests: Likewise.
21814         * modules/unictype/property-grapheme-link-tests: Likewise.
21815         * modules/unictype/property-hex-digit-tests: Likewise.
21816         * modules/unictype/property-hyphen-tests: Likewise.
21817         * modules/unictype/property-id-continue-tests: Likewise.
21818         * modules/unictype/property-id-start-tests: Likewise.
21819         * modules/unictype/property-ideographic-tests: Likewise.
21820         * modules/unictype/property-ids-binary-operator-tests: Likewise.
21821         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
21822         * modules/unictype/property-ignorable-control-tests: Likewise.
21823         * modules/unictype/property-iso-control-tests: Likewise.
21824         * modules/unictype/property-join-control-tests: Likewise.
21825         * modules/unictype/property-left-of-pair-tests: Likewise.
21826         * modules/unictype/property-line-separator-tests: Likewise.
21827         * modules/unictype/property-logical-order-exception-tests: Likewise.
21828         * modules/unictype/property-lowercase-tests: Likewise.
21829         * modules/unictype/property-math-tests: Likewise.
21830         * modules/unictype/property-non-break-tests: Likewise.
21831         * modules/unictype/property-not-a-character-tests: Likewise.
21832         * modules/unictype/property-numeric-tests: Likewise.
21833         * modules/unictype/property-other-alphabetic-tests: Likewise.
21834         * modules/unictype/property-other-default-ignorable-code-point-tests:
21835         Likewise.
21836         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
21837         * modules/unictype/property-other-id-continue-tests: Likewise.
21838         * modules/unictype/property-other-id-start-tests: Likewise.
21839         * modules/unictype/property-other-lowercase-tests: Likewise.
21840         * modules/unictype/property-other-math-tests: Likewise.
21841         * modules/unictype/property-other-uppercase-tests: Likewise.
21842         * modules/unictype/property-paired-punctuation-tests: Likewise.
21843         * modules/unictype/property-paragraph-separator-tests: Likewise.
21844         * modules/unictype/property-pattern-syntax-tests: Likewise.
21845         * modules/unictype/property-pattern-white-space-tests: Likewise.
21846         * modules/unictype/property-private-use-tests: Likewise.
21847         * modules/unictype/property-punctuation-tests: Likewise.
21848         * modules/unictype/property-quotation-mark-tests: Likewise.
21849         * modules/unictype/property-radical-tests: Likewise.
21850         * modules/unictype/property-sentence-terminal-tests: Likewise.
21851         * modules/unictype/property-soft-dotted-tests: Likewise.
21852         * modules/unictype/property-space-tests: Likewise.
21853         * modules/unictype/property-terminal-punctuation-tests: Likewise.
21854         * modules/unictype/property-test-tests: Likewise.
21855         * modules/unictype/property-titlecase-tests: Likewise.
21856         * modules/unictype/property-unassigned-code-value-tests: Likewise.
21857         * modules/unictype/property-unified-ideograph-tests: Likewise.
21858         * modules/unictype/property-uppercase-tests: Likewise.
21859         * modules/unictype/property-variation-selector-tests: Likewise.
21860         * modules/unictype/property-white-space-tests: Likewise.
21861         * modules/unictype/property-xid-continue-tests: Likewise.
21862         * modules/unictype/property-xid-start-tests: Likewise.
21863         * modules/unictype/property-zero-width-tests: Likewise.
21864         * modules/unictype/scripts-tests: Likewise.
21865         * modules/unictype/syntax-c-ident-tests: Likewise.
21866         * modules/unictype/syntax-c-whitespace-tests: Likewise.
21867         * modules/unictype/syntax-java-ident-tests: Likewise.
21868         * modules/unictype/syntax-java-whitespace-tests: Likewise.
21869         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
21870         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
21871         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
21872         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
21873         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
21874         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
21875         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
21876         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
21877         * modules/uniname/uniname-tests: Likewise.
21878         * modules/uninorm/canonical-decomposition-tests: Likewise.
21879         * modules/uninorm/compat-decomposition-tests: Likewise.
21880         * modules/uninorm/composition-tests: Likewise.
21881         * modules/uninorm/decomposing-form-tests: Likewise.
21882         * modules/uninorm/decomposition-tests: Likewise.
21883         * modules/uninorm/filter-tests: Likewise.
21884         * modules/uninorm/nfc-tests: Likewise.
21885         * modules/uninorm/nfd-tests: Likewise.
21886         * modules/uninorm/nfkc-tests: Likewise.
21887         * modules/uninorm/nfkd-tests: Likewise.
21888         * modules/uninorm/u8-normcmp-tests: Likewise.
21889         * modules/uninorm/u8-normcoll-tests: Likewise.
21890         * modules/uninorm/u16-normcmp-tests: Likewise.
21891         * modules/uninorm/u16-normcoll-tests: Likewise.
21892         * modules/uninorm/u32-normcmp-tests: Likewise.
21893         * modules/uninorm/u32-normcoll-tests: Likewise.
21894         * modules/unistdio/u8-asnprintf-tests: Likewise.
21895         * modules/unistdio/u8-vasnprintf-tests: Likewise.
21896         * modules/unistdio/u8-vasprintf-tests: Likewise.
21897         * modules/unistdio/u8-vsnprintf-tests: Likewise.
21898         * modules/unistdio/u8-vsprintf-tests: Likewise.
21899         * modules/unistdio/u16-asnprintf-tests: Likewise.
21900         * modules/unistdio/u16-vasnprintf-tests: Likewise.
21901         * modules/unistdio/u16-vasprintf-tests: Likewise.
21902         * modules/unistdio/u16-vsnprintf-tests: Likewise.
21903         * modules/unistdio/u16-vsprintf-tests: Likewise.
21904         * modules/unistdio/u32-asnprintf-tests: Likewise.
21905         * modules/unistdio/u32-vasnprintf-tests: Likewise.
21906         * modules/unistdio/u32-vasprintf-tests: Likewise.
21907         * modules/unistdio/u32-vsnprintf-tests: Likewise.
21908         * modules/unistdio/u32-vsprintf-tests: Likewise.
21909         * modules/unistdio/ulc-asnprintf-tests: Likewise.
21910         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
21911         * modules/unistdio/ulc-vasprintf-tests: Likewise.
21912         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
21913         * modules/unistdio/ulc-vsprintf-tests: Likewise.
21914         * modules/unistr/u8-check-tests: Likewise.
21915         * modules/unistr/u8-chr-tests: Likewise.
21916         * modules/unistr/u8-cmp-tests: Likewise.
21917         * modules/unistr/u8-cmp2-tests: Likewise.
21918         * modules/unistr/u8-cpy-alloc-tests: Likewise.
21919         * modules/unistr/u8-cpy-tests: Likewise.
21920         * modules/unistr/u8-mblen-tests: Likewise.
21921         * modules/unistr/u8-mbsnlen-tests: Likewise.
21922         * modules/unistr/u8-mbtouc-tests: Likewise.
21923         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
21924         * modules/unistr/u8-mbtoucr-tests: Likewise.
21925         * modules/unistr/u8-move-tests: Likewise.
21926         * modules/unistr/u8-next-tests: Likewise.
21927         * modules/unistr/u8-prev-tests: Likewise.
21928         * modules/unistr/u8-set-tests: Likewise.
21929         * modules/unistr/u8-stpcpy-tests: Likewise.
21930         * modules/unistr/u8-stpncpy-tests: Likewise.
21931         * modules/unistr/u8-strcat-tests: Likewise.
21932         * modules/unistr/u8-strcmp-tests: Likewise.
21933         * modules/unistr/u8-strcoll-tests: Likewise.
21934         * modules/unistr/u8-strcpy-tests: Likewise.
21935         * modules/unistr/u8-strdup-tests: Likewise.
21936         * modules/unistr/u8-strlen-tests: Likewise.
21937         * modules/unistr/u8-strmblen-tests: Likewise.
21938         * modules/unistr/u8-strmbtouc-tests: Likewise.
21939         * modules/unistr/u8-strncat-tests: Likewise.
21940         * modules/unistr/u8-strncmp-tests: Likewise.
21941         * modules/unistr/u8-strncpy-tests: Likewise.
21942         * modules/unistr/u8-strnlen-tests: Likewise.
21943         * modules/unistr/u8-to-u16-tests: Likewise.
21944         * modules/unistr/u8-to-u32-tests: Likewise.
21945         * modules/unistr/u8-uctomb-tests: Likewise.
21946         * modules/unistr/u16-check-tests: Likewise.
21947         * modules/unistr/u16-chr-tests: Likewise.
21948         * modules/unistr/u16-cmp-tests: Likewise.
21949         * modules/unistr/u16-cmp2-tests: Likewise.
21950         * modules/unistr/u16-cpy-alloc-tests: Likewise.
21951         * modules/unistr/u16-cpy-tests: Likewise.
21952         * modules/unistr/u16-mblen-tests: Likewise.
21953         * modules/unistr/u16-mbsnlen-tests: Likewise.
21954         * modules/unistr/u16-mbtouc-tests: Likewise.
21955         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
21956         * modules/unistr/u16-mbtoucr-tests: Likewise.
21957         * modules/unistr/u16-move-tests: Likewise.
21958         * modules/unistr/u16-next-tests: Likewise.
21959         * modules/unistr/u16-prev-tests: Likewise.
21960         * modules/unistr/u16-set-tests: Likewise.
21961         * modules/unistr/u16-stpcpy-tests: Likewise.
21962         * modules/unistr/u16-stpncpy-tests: Likewise.
21963         * modules/unistr/u16-strcat-tests: Likewise.
21964         * modules/unistr/u16-strcmp-tests: Likewise.
21965         * modules/unistr/u16-strcoll-tests: Likewise.
21966         * modules/unistr/u16-strcpy-tests: Likewise.
21967         * modules/unistr/u16-strdup-tests: Likewise.
21968         * modules/unistr/u16-strlen-tests: Likewise.
21969         * modules/unistr/u16-strmblen-tests: Likewise.
21970         * modules/unistr/u16-strmbtouc-tests: Likewise.
21971         * modules/unistr/u16-strncat-tests: Likewise.
21972         * modules/unistr/u16-strncmp-tests: Likewise.
21973         * modules/unistr/u16-strncpy-tests: Likewise.
21974         * modules/unistr/u16-strnlen-tests: Likewise.
21975         * modules/unistr/u16-to-u32-tests: Likewise.
21976         * modules/unistr/u16-to-u8-tests: Likewise.
21977         * modules/unistr/u16-uctomb-tests: Likewise.
21978         * modules/unistr/u32-check-tests: Likewise.
21979         * modules/unistr/u32-chr-tests: Likewise.
21980         * modules/unistr/u32-cmp-tests: Likewise.
21981         * modules/unistr/u32-cmp2-tests: Likewise.
21982         * modules/unistr/u32-cpy-alloc-tests: Likewise.
21983         * modules/unistr/u32-cpy-tests: Likewise.
21984         * modules/unistr/u32-mblen-tests: Likewise.
21985         * modules/unistr/u32-mbsnlen-tests: Likewise.
21986         * modules/unistr/u32-mbtouc-tests: Likewise.
21987         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
21988         * modules/unistr/u32-mbtoucr-tests: Likewise.
21989         * modules/unistr/u32-move-tests: Likewise.
21990         * modules/unistr/u32-next-tests: Likewise.
21991         * modules/unistr/u32-prev-tests: Likewise.
21992         * modules/unistr/u32-set-tests: Likewise.
21993         * modules/unistr/u32-stpcpy-tests: Likewise.
21994         * modules/unistr/u32-stpncpy-tests: Likewise.
21995         * modules/unistr/u32-strcat-tests: Likewise.
21996         * modules/unistr/u32-strcmp-tests: Likewise.
21997         * modules/unistr/u32-strcoll-tests: Likewise.
21998         * modules/unistr/u32-strcpy-tests: Likewise.
21999         * modules/unistr/u32-strdup-tests: Likewise.
22000         * modules/unistr/u32-strlen-tests: Likewise.
22001         * modules/unistr/u32-strmblen-tests: Likewise.
22002         * modules/unistr/u32-strmbtouc-tests: Likewise.
22003         * modules/unistr/u32-strncat-tests: Likewise.
22004         * modules/unistr/u32-strncmp-tests: Likewise.
22005         * modules/unistr/u32-strncpy-tests: Likewise.
22006         * modules/unistr/u32-strnlen-tests: Likewise.
22007         * modules/unistr/u32-to-u16-tests: Likewise.
22008         * modules/unistr/u32-to-u8-tests: Likewise.
22009         * modules/unistr/u32-uctomb-tests: Likewise.
22010         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
22011         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
22012         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
22013         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
22014         * modules/uniwidth/u8-strwidth-tests: Likewise.
22015         * modules/uniwidth/u8-width-tests: Likewise.
22016         * modules/uniwidth/u16-strwidth-tests: Likewise.
22017         * modules/uniwidth/u16-width-tests: Likewise.
22018         * modules/uniwidth/u32-strwidth-tests: Likewise.
22019         * modules/uniwidth/u32-width-tests: Likewise.
22020         * modules/uniwidth/width-tests: Likewise.
22021
22022 2010-05-18  Richard Jones  <rjones@redhat.com>
22023
22024         doc: users.txt: list hivex
22025         * users.txt: Add hivex.
22026
22027 2010-05-18  Richard Jones  <rjones@redhat.com>
22028
22029         doc: users.txt: list febootstrap
22030         * users.txt: Add febootstrap.
22031
22032 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
22033
22034         bootstrap: fix an error when gnulib is not used as a git submodule
22035         * build-aux/bootstrap (gnulib_path): If its length is zero then
22036         assign "gnulib" to it.
22037         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
22038
22039 2010-05-16  Bruno Haible  <bruno@clisp.org>
22040
22041         Avoid autoconf warnings about AM_ICONV.
22042         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
22043         2.64.
22044
22045 2010-05-16  Bruno Haible  <bruno@clisp.org>
22046
22047         absolute-header: Make the macro usable in more situations.
22048         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
22049         from gl_ABSOLUTE_HEADER.
22050         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
22051
22052 2010-05-16  James Youngman  <jay@gnu.org>
22053
22054         doc: update users.txt
22055         * users.txt: Add CSSC.
22056
22057 2010-05-16  Jim Meyering  <meyering@redhat.com>
22058
22059         init.sh: fix an error in the previous change; add more comments
22060         * tests/init.sh: Compare exit code in loop against 9, not 2.
22061         Patch by Bruno Haible.
22062         Make the two tests more similar by adding an empty "then" clause.
22063         Add comments.
22064
22065         init.sh: avoid unnecessary shell re-exec
22066         * tests/init.sh: Improve the re-exec-required check to first test the
22067         current shell.  If it passes the test, do not search for a shell that
22068         does pass, and do not re-exec.  This test is particularly contorted to
22069         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
22070         of $(...) evokes a syntax error and causes immediate shell exit with
22071         status 2.  Bruno Haible reported that the re-exec made it impossible
22072         to single-step through any init.sh-using script.
22073
22074 2010-05-16  Bruno Haible  <bruno@clisp.org>
22075
22076         Fix collision between gnulib's and libintl's printf replacements.
22077         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
22078         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
22079         (printf): When using GNU C, map the __printf__ function to rpl_printf
22080         via __asm__. When not using GNU C, define rpl_printf instead of
22081         __printf__.
22082         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
22083         commit.
22084         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
22085         commit.
22086         * m4/asm-underscore.m4: New file.
22087         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
22088         * modules/stdio (Files): Add m4/asm-underscore.m4.
22089         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
22090         Reported by Ben Pfaff.
22091
22092 2010-05-16  Bruno Haible  <bruno@clisp.org>
22093
22094         verify: Avoid skipping the test on openSUSE 11.0.
22095         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
22096
22097 2010-05-13  Bruno Haible  <bruno@clisp.org>
22098
22099         Avoid useless warnings from G++.
22100         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
22101         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
22102         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
22103
22104 2010-05-11  Jim Meyering  <meyering@redhat.com>
22105
22106         maint.mk: tweak preceding change
22107         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
22108         regexps tighter by anchoring at EOL, and make the new group "shy"
22109         for slightly decreased overhead.
22110
22111 2010-05-11  Eric Blake  <eblake@redhat.com>
22112
22113         maint.mk: gnulib doesn't guarantee NSIG
22114         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
22115
22116 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
22117
22118         test-pwrite.c: Remove unused variable declaration.
22119         * tests/test-pwrite.c (main): Remove read_buf declaration.
22120
22121         Remove useless test-pwrite.sh file.
22122         * tests/test-pwrite.sh: Delete file.
22123         * modules/pwrite-tests: Remove references.
22124         Reported by Bruno Haible.
22125
22126 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
22127
22128         init.sh: fix a typo
22129         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
22130
22131 2010-05-10  Jim Meyering  <meyering@redhat.com>
22132
22133         maint.mk: avoid using a temporary file in the always-defined-macros check
22134         * top/maint.mk (.re-defmac): Remove rule.
22135         (gl_trap_): Remove definition.
22136         (sc_prohibit_always-defined_macros): Rewrite not to create and
22137         depend on a temporary file.  Instead, depend on GNU grep's ability
22138         to read a list of regular expressions from stdin when given "-f -".
22139
22140 2010-05-09  Bruno Haible  <bruno@clisp.org>
22141
22142         Update to GNU gettext 0.18, part 1.
22143         * m4/gettext.m4: Update to GNU gettext 0.18.
22144         * m4/intl.m4: Likewise.
22145         * m4/po.m4: Likewise.
22146         * modules/gettext (Files): Add m4/fcntl-o.m4.
22147         (configure.ac): Require gettext infrastructure from version 0.18.
22148
22149 2010-05-09  Jim Meyering  <meyering@redhat.com>
22150
22151         init.sh: enable MALLOC_PERTURB_
22152         * tests/init.sh: Enable glibc's malloc-perturbing option.
22153
22154         maint.mk: improve sc_cross_check_PATH_usage_in_tests
22155         With my recent change in init.sh from the two-line form:
22156             -#   : ${srcdir=.}
22157             -#   . "$srcdir/init.sh"; path_prepend_ .
22158             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
22159         I noticed that using the one-line form would cause this test
22160         to fail with a false-positive, or to stop working altogether,
22161         depending on whether help-version changed or all the tests did.
22162         * top/maint.mk (_hv_regex): Remove this definition.
22163         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
22164         (_hv_regex_strong): Use a stronger regex to check for conformance.
22165         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
22166         Give a separate diagnostic for lack of conforming use.
22167
22168         maint.mk: prohibit definition of symbols defined by gnulib
22169         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
22170         definition of symbols defined by gnulib.
22171
22172 2010-05-09  Bruno Haible  <bruno@clisp.org>
22173
22174         acl: Avoid test failure on Cygwin-hosted mingw.
22175         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
22176
22177 2010-05-09  Bruno Haible  <bruno@clisp.org>
22178
22179         error: Use system's fcntl function.
22180         * lib/error.c (fcntl): Undefine.
22181
22182 2010-05-09  Jim Meyering  <meyering@redhat.com>
22183
22184         verify: adjust formatting to be more consistent
22185         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
22186         argument-list '('s, and after one comma.
22187
22188 2010-05-09  Bruno Haible  <bruno@clisp.org>
22189
22190         error: More reliable output on mingw.
22191         * lib/error.c: Include <windows.h>.
22192         (is_open): New function.
22193         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
22194         defined.
22195
22196 2010-05-09  Bruno Haible  <bruno@clisp.org>
22197
22198         vasnprintf: Fix syntax errors in libintl build on mingw.
22199         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
22200         pad_ourselves and prec_ourselves after use.
22201
22202 2010-05-08  Bruno Haible  <bruno@clisp.org>
22203
22204         * lib/config.charset: Update comments for Cygwin 1.7.
22205         * lib/localcharset.c: Likewise.
22206
22207 2010-05-07  Jim Meyering  <meyering@redhat.com>
22208
22209         init.sh: improve comments
22210         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
22211         . "${srcdir=.}/init.sh"; path_prepend_ .
22212         Add a note about path_prepend_ and the alternative of using
22213         TESTS_ENVIRONMENT.
22214
22215 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
22216
22217         exclude: Unescape hashed patterns in wildcard mode.
22218         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
22219         to the hash list.
22220         * tests/test-exclude8.sh: New test case.
22221         * modules/exclude-tests: Add new test.
22222
22223 2010-05-05  Eric Blake  <eblake@redhat.com>
22224
22225         verify: automate tests
22226         * modules/verify-tests: New module.
22227         * tests/test-verify.sh: New file.
22228         * tests/test-verify.c: Guard each negative test with a unique id.
22229         Also avoid warning about unused left hand of comma expressions.
22230
22231 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
22232
22233         Further improvements to verify.h, suggested by Eric Blake.
22234         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
22235         the GL_* versions, to avoid collision with OpenGL.
22236         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
22237         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
22238         than testing merely whether it's defined.
22239
22240         Modify verify.h to pacify gcc -Wredundant_decls.
22241         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
22242         These use the prefix "GL_" since they're likely to be useful elsewhere.
22243         We may need to break them out into a different .h file.
22244         (__COUNTER__): Define to 0 if the compiler doesn't support it.
22245         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
22246         of verify_function__.
22247
22248 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
22249
22250         Tests for module pwrite.
22251         * modules/pwrite-tests: New file.
22252         * tests/test-pwrite.sh: New file.
22253         * tests/test-pwrite.c: New file.
22254
22255         New module pwrite.
22256         * lib/unistd.in.h (pwrite): New declaration.
22257         * lib/pwrite.c: New file, from glibc with modifications.
22258         * m4/pwrite.m4: New file.
22259         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
22260         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
22261         REPLACE_PWRITE.
22262         * modules/pwrite: New file.
22263         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
22264         REPLACE_PWRITE.
22265         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
22266         * doc/posix-functions/pwrite.texi: Mention the new module.
22267
22268 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
22269
22270         pread: Update documentation.
22271         * doc/posix-functions/pread.texi: Mention the 'pread' module.
22272
22273 2010-05-04  Eric Blake  <eblake@redhat.com>
22274
22275         docs: update cygwin progress
22276         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
22277         this bug.
22278         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
22279         Added in cygwin 1.7.2.
22280         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
22281         Likewise.
22282         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
22283         Likewise.
22284         * doc/glibc-functions/dup3.texi (dup3): Likewise.
22285         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
22286         * doc/glibc-functions/accept4.texi (accept4): Likewise.
22287         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
22288         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
22289         Mention nproc module.
22290         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
22291         bug in cygwin 1.7.5 addition.
22292         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
22293         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
22294         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
22295         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
22296         1.7.5.
22297         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
22298         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
22299         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
22300         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
22301         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
22302         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
22303         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
22304         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
22305         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
22306         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
22307         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
22308         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
22309         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
22310         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
22311         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
22312         Likewise.
22313         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
22314         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
22315         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
22316         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
22317         Likewise.
22318         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
22319         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
22320         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
22321         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
22322         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
22323         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
22324         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
22325         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
22326         Likewise.
22327         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
22328         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
22329         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
22330         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
22331         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
22332         Likewise.
22333         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
22334         Likewise.
22335         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
22336         Likewise.
22337         * doc/glibc-functions/xdrrec_endofrecord.texi
22338         (xdrrec_endofrecord): Likewise.
22339         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
22340         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
22341         Likewise.
22342         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
22343         Likewise.
22344
22345 2010-05-04  Jim Meyering  <meyering@redhat.com>
22346
22347         gendocs.sh: make its "-s FILE" option more useful
22348         * build-aux/gendocs.sh: When honoring the -s FILE option, update
22349         $PACKAGE to reflect the probably-different basename of "FILE".
22350
22351 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
22352
22353         bootstrap: don't ignore download_po_files failure
22354         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
22355         failure.
22356
22357 2010-05-03  Jim Meyering  <meyering@redhat.com>
22358
22359         maint.mk: allow to pass options to gendocs.sh
22360         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
22361         (gendocs_options_): New overridable variable.
22362
22363         gnu-web-doc-update: don't ignore configure or build failure
22364         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
22365
22366         announce-gen: backslash-escape '@'s in --help output
22367         * build-aux/announce-gen: Fix syntax errors.
22368
22369         maint.mk, announce-gen: allow project-specific announcement mail headers
22370         * top/maint.mk (translation_project_): Define default.
22371         (announcement_Cc_, announcement_mail_headers_): Likewise.
22372         (announcement): Invoke announce-gen with new --mail-headers option.
22373         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
22374
22375         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
22376         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
22377         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
22378         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
22379         line in the "err2" output file when running "make check" in verbose
22380         mode (i.e., with set -x enabled).
22381
22382 2010-05-03  Bruno Haible  <bruno@clisp.org>
22383
22384         wctob: Fix for weird platforms.
22385         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
22386         argument value.
22387
22388 2010-05-03  Jim Meyering  <meyering@redhat.com>
22389
22390         maint.mk: prohibit unwarranted use of <strings.h>
22391         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
22392         strings.h in a file that does not also use strcasecmp, strncasecmp,
22393         ffs or ffsll.
22394
22395         maint.mk: remove obsolete comments
22396         * top/maint.mk: Remove stale, commented-out rules.
22397
22398 2010-05-02  Bruno Haible  <bruno@clisp.org>
22399
22400         wcwidth: Declare also when it's aliased.
22401         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
22402         macro.
22403
22404 2010-05-02  Bruno Haible  <bruno@clisp.org>
22405
22406         Fix regression from 2010-04-25.
22407         * gnulib-tool (func_modules_transitive_closure): Check the status of
22408         all modules, not only of the tests that are of the form foo-tests where
22409         foo is a module.
22410
22411 2010-05-02  Bruno Haible  <bruno@clisp.org>
22412
22413         wctob: Work around nasty Cygwin 1.7.2 bug.
22414         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
22415         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
22416
22417 2010-05-01  Bruno Haible  <bruno@clisp.org>
22418
22419         fpurge: Sharper test.
22420         * tests/test-fpurge.c (main): Add one more ftell check.
22421         * modules/fpurge-tests (Depends-on): Add ftell.
22422         Suggested by Eric Blake.
22423
22424 2010-05-01  Bruno Haible  <bruno@clisp.org>
22425
22426         ftello: Another test.
22427         * tests/test-ftello3.c: New file.
22428         * modules/ftello-tests (Files): Add it.
22429         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
22430         MOSTLYCLEANFILES.
22431
22432         ftell: Another test.
22433         * tests/test-ftell3.c: New file.
22434         * modules/ftell-tests (Files): Add it.
22435         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
22436         MOSTLYCLEANFILES.
22437
22438 2010-05-01  Bruno Haible  <bruno@clisp.org>
22439
22440         ftell, ftello: Work around Solaris bug.
22441         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
22442         * lib/ftello.c: Include stdio-impl.h.
22443         (ftello): On Solaris, when _IOWRT is set, compute the result without
22444         looking at _IOREAD.
22445         * modules/ftello (Files): Add lib/stdio-impl.h.
22446         * doc/posix-functions/ftell.texi: Mention Solaris bug.
22447         * doc/posix-functions/ftello.texi: Likewise.
22448         Reported by Eric Blake.
22449
22450 2010-05-01  Bruno Haible  <bruno@clisp.org>
22451
22452         freading: Adapt to special meaning of _IOREAD flag on Solaris.
22453         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
22454         the _IOWRT flag is also set.
22455
22456 2010-05-01  Bruno Haible  <bruno@clisp.org>
22457
22458         Fix doc about a HP-UX stdio bug.
22459         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
22460         * doc/posix-functions/ftello.texi: Likewise.
22461
22462 2010-05-01  Bruno Haible  <bruno@clisp.org>
22463
22464         lseek test: Fix failure on Solaris.
22465         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
22466         output.
22467
22468 2010-04-30  Jim Meyering  <meyering@redhat.com>
22469
22470         bootstrap: don't ignore failure to generate po*/Makevars
22471         * build-aux/bootstrap (with_gettext): Don't ignore failure
22472         to create po/Makevars or runtime-po/Makevars.
22473
22474 2010-04-29  Eric Blake  <eblake@redhat.com>
22475
22476         headers: relax license to LGPLv2+
22477         * modules/fcntl-h (License): Relax license.
22478         * modules/getopt-posix (License): Likewise.
22479         * modules/locale (License): Likewise.
22480         * modules/math (License): Likewise.
22481         * modules/pty (License): Likewise.
22482         * modules/sched (License): Likewise.
22483         * modules/search (License): Likewise.
22484         * modules/spawn (License): Likewise.
22485         * modules/stdarg (License): Likewise.
22486         * modules/sysexits (License): Likewise.
22487
22488 2010-04-29  Jim Meyering  <meyering@redhat.com>
22489
22490         inttypes: relax license to LGPLv2+
22491         * modules/inttypes (License): Relax license.
22492
22493 2010-04-29  Simon Josefsson  <simon@josefsson.org>
22494
22495         * top/maint.mk (indent): Run twice to produce idempotent results.
22496
22497 2010-04-28  Bruno Haible  <bruno@clisp.org>
22498
22499         getdate: Generate getdate.c in the source directory.
22500         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
22501         MOSTLYCLEANFILES.
22502         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
22503
22504 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
22505
22506         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
22507         is not declared as a const *; avoid warnings in that case.
22508
22509 2010-04-28  Eric Blake  <eblake@redhat.com>
22510
22511         canonicalize-lgpl: avoid compiler warning
22512         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
22513         declaration' / 'extraneous semicolon' warning with some compilers.
22514         Reported by Andreas Gruenbacher.
22515
22516 2010-04-28  Jim Meyering  <meyering@redhat.com>
22517
22518         init.sh: ensure a more reliable exit status when exiting via trap
22519         * tests/init.sh (setup_): Don't rely on $? in signal handler.
22520         Inspired by patches from Dmitry V. Levin.
22521         Also trap on signal 3 (SIGQUIT).
22522
22523 2010-04-27  Bruno Haible  <bruno@clisp.org>
22524
22525         Update doc about utimes().
22526         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
22527         'utimens' module.
22528         Reported by Andreas Gruenbacher <agruen@suse.de>.
22529
22530 2010-04-27  Eric Blake  <eblake@redhat.com>
22531
22532         full-read, full-write: relax license
22533         * modules/full-read (License): Drop to LGPLv2+.
22534         * modules/full-write (License): Likewise.
22535         * modules/safe-read (License): Likewise.
22536         * modules/safe-write (License): Likewise.
22537
22538         pthread: mention library for linking
22539         * modules/pthread (Link): Mention $(LIB_PTHREAD).
22540
22541 2010-04-27  Jim Meyering  <meyering@redhat.com>
22542
22543         maint.mk: fix a bug introduced in last change
22544         * top/maint.mk (gl_assured_headers_): Now that all names are on
22545         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
22546         is not anchored to end of word, it should be adequate.
22547
22548         maint.mk: avoid side-effect in latest syntax-check
22549         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
22550         to run commands via $(shell...), and hence to incur cost only when
22551         the new rule is actually run.
22552
22553         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
22554         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
22555         and use that to create a regexp used to detect all #if HAVE_..._H uses.
22556         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
22557         (gl_assured_headers_, az_, AZ_): Define.
22558         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
22559
22560 2010-04-26  Jim Meyering  <jim@meyering.net>
22561             Bruno Haible  <bruno@clisp.org>
22562
22563         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
22564         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
22565         Prompted by an exchange with Gilles Espinasse.
22566
22567 2010-04-26  Jim Meyering  <meyering@redhat.com>
22568
22569         git-version-gen: aesthetic tweak
22570         * build-aux/git-version-gen: Use "$nl" rather than a literal,
22571         so that the command remains on a single line.
22572
22573 2010-04-26  Eric Blake  <eblake@redhat.com>
22574
22575         git-version-gen: allow use on EBCDIC hosts
22576         * build-aux/git-version-gen (dirty): Use literal rather than tying
22577         ourselves to ascii.
22578         Reported by Steve Goetze.
22579
22580 2010-04-25  Bruno Haible  <bruno@clisp.org>
22581
22582         netdb: Add support for GNULIB_POSIXCHECK.
22583         * lib/netdb.in.h: Include warn-on-use.h.
22584         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
22585         functions are used when GNULIB_POSIXCHECK is defined and the
22586         getaddrinfo module is not in use.
22587         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
22588         freeaddrinfo, gai_strerror, getnameinfo are declared.
22589         * modules/netdb (Depends-on): Add warn-on-use.
22590         (Makefile.am): Include warn-on-use.h in netdb.h.
22591
22592 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
22593
22594         build: avoid "make check" failure without .git/ directory
22595         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
22596         there is no .git/ directory.
22597
22598 2010-04-25  Bruno Haible  <bruno@clisp.org>
22599
22600         ptsname: Fix misuse of ttyname_r.
22601         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
22602         of errno.
22603
22604 2010-04-25  Bruno Haible  <bruno@clisp.org>
22605
22606         ttyname_r: Make it work on Solaris 10.
22607         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
22608         if the system function has the POSIX declaration. Test whether the
22609         function fails if the buffer is less than 128 bytes large.
22610         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
22611         system's ttyname_r function. Provide a reasonably large buffer.
22612         * modules/ttyname_r (Depends-on): Add extensions.
22613         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
22614
22615 2010-04-25  Bruno Haible  <bruno@clisp.org>
22616
22617         Use the 'extensions' module for some more functions on Solaris.
22618         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
22619         module.
22620         * doc/posix-functions/ctime_r.texi: Likewise.
22621         * doc/posix-functions/getgrgid_r.texi: Likewise.
22622         * doc/posix-functions/getgrnam_r.texi: Likewise.
22623         * doc/posix-functions/getpwnam_r.texi: Likewise.
22624         * doc/posix-functions/getpwuid_r.texi: Likewise.
22625         * doc/posix-functions/readdir_r.texi: Likewise.
22626         * doc/posix-functions/sigwait.texi: Likewise.
22627         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
22628         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
22629
22630 2010-04-25  Bruno Haible  <bruno@clisp.org>
22631
22632         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
22633         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
22634         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
22635         * lib/ttyname_r.c: Include <limits.h>.
22636         (ttyname_r): Define using the system's ttyname_r function, if it exists
22637         and not on Solaris.
22638         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
22639         set.
22640         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
22641         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
22642         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
22643         Reported by Simon Josefsson.
22644
22645 2010-04-25  Bruno Haible  <bruno@clisp.org>
22646
22647         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
22648         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
22649         * doc/posix-functions/ctime_r.texi: Likewise.
22650         * doc/posix-functions/getgrgid_r.texi: Likewise.
22651         * doc/posix-functions/getgrnam_r.texi: Likewise.
22652         * doc/posix-functions/getlogin_r.texi: Likewise.
22653         * doc/posix-functions/getpwnam_r.texi: Likewise.
22654         * doc/posix-functions/getpwuid_r.texi: Likewise.
22655         * doc/posix-functions/readdir_r.texi: Likewise.
22656         * doc/posix-functions/sigwait.texi: Likewise.
22657         * doc/posix-functions/ttyname_r.texi: Likewise.
22658         Reported by Simon Josefsson.
22659
22660 2010-04-25  Bruno Haible  <bruno@clisp.org>
22661
22662         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
22663         * gnulib-tool (func_usage): Document that --with-*-tests options apply
22664         also to --create-testdir.
22665         (func_acceptable): Don't consider the status of *-tests modules here.
22666         (func_modules_transitive_closure): Consider it here, before including a
22667         test module.
22668         (func_import, func_create_testdir): Set inc_all_direct_tests,
22669         inc_all_indirect_tests.
22670         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
22671         --create-testdir and --create-megatestdir.
22672
22673 2010-04-25  Bruno Haible  <bruno@clisp.org>
22674
22675         gnulib-tool: Add --without-*-tests options.
22676         * gnulib-tool (func_usage): Document the --without-*-tests options.
22677         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
22678         excl_unportable_tests): New variables.
22679         Fail if they are specified with --import or --update.
22680         (func_acceptable): Respect the excl_*_tests variables.
22681         (func_import): Set the excl_*_tests variables to empty.
22682
22683 2010-04-25  Simon Josefsson  <simon@josefsson.org>
22684             Bruno Haible  <bruno@clisp.org>
22685
22686         Work around a MacOS X 10.4 bug with openpty.
22687         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
22688         * tests/test-openpty.c (main): Close the master side explicitly.
22689
22690 2010-04-25  Bruno Haible  <bruno@clisp.org>
22691
22692         strnlen: Fix a C++ test error on MacOS X and Solaris.
22693         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
22694         the function is not declared.
22695         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
22696         Simon Josefsson.
22697
22698 2010-04-24  Bruno Haible  <bruno@clisp.org>
22699
22700         Avoid a gcc warning.
22701         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
22702         of correct type for %08lx directive.
22703         Reported by Eric Blake.
22704
22705 2010-04-24  Bruno Haible  <bruno@clisp.org>
22706
22707         vasnprintf: Correct errno value in case of out-of-memory.
22708         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
22709         or sprintf. Use the errno value from SNPRINTF or sprintf.
22710         Reported by Ian Beckwith <ianb@erislabs.net>.
22711
22712 2010-04-24  Bruno Haible  <bruno@clisp.org>
22713
22714         ansi-c++-opt: Find correct compiler when cross-compiling.
22715         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
22716         AC_CHECK_PROGS.
22717         Reported by Simon Josefsson.
22718
22719 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
22720
22721         vc-list-files: Add support for subversion
22722         * build-aux/vc-list-files: Use "svn list" to generate the list of
22723         files controlled by subversion.
22724
22725 2010-04-23  Jim Meyering  <meyering@redhat.com>
22726
22727         vc-list-files tests: convert to use init.sh
22728         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
22729         path_prepend_.
22730         Use Exit, not exit.
22731         Use skip_ rather than open coding it.
22732         Remove trap set-up and compare definitions.
22733         * tests/test-vc-list-files-git.sh: Likewise.
22734         * modules/vc-list-files-tests (Files): Add tests/init.sh.
22735
22736 2010-04-22  Simon Josefsson  <simon@josefsson.org>
22737
22738         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
22739         backup files.
22740
22741 2010-04-21  Simon Josefsson  <simon@josefsson.org>
22742
22743         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
22744
22745 2010-04-20  Eric Blake  <eblake@redhat.com>
22746
22747         tests: be robust to ignored SIGPIPE
22748         * tests/test-select-in.sh: Consume all output.
22749         * tests/test-lseek.sh: Check correct exit status, while avoiding
22750         EPIPE.
22751
22752 2010-04-20  Simon Josefsson  <simon@josefsson.org>
22753             Bruno Haible  <bruno@clisp.org>
22754
22755         visibility: Don't use -fvisibility if it leads to a warning.
22756         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
22757         yes, don't pretend that visibility works if it leads to a warning.
22758         Reported by Mike Gran <spk121@yahoo.com>.
22759
22760 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
22761
22762         * build-aux/bootstrap: Use "git -h" for testing for supported options
22763         instead of "git --help".  The short-form option only shows a summary,
22764         and doesn't layout the full man page.  Grep for the full option name
22765         in the summary, too.
22766
22767 2010-04-19  Bruno Haible  <bruno@clisp.org>
22768
22769         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
22770         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
22771         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
22772         mention of RELOCATABLE_STRIP.
22773         Reported by Sylvain Beucler <beuc@beuc.net>.
22774
22775 2010-04-19  Bruno Haible  <bruno@clisp.org>
22776
22777         * lib/diffseq.h: Fix typo in comment.
22778         Reported by Eric Blake.
22779
22780 2010-04-19  Bruno Haible  <bruno@clisp.org>
22781
22782         ioctl: Move autoconf macro to a .m4 file.
22783         * m4/ioctl.m4: New file, extracted from modules/ioctl.
22784         * modules/ioctl (Files): Add it.
22785         (configure.ac): Simply invoke gl_FUNC_IOCTL.
22786         Reported by Ian Beckwith <ianb@erislabs.net>.
22787
22788 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
22789             Bruno Haible  <bruno@clisp.org>
22790
22791         diffseq: Accommodate use-case with abstract arrays.
22792         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
22793         is not defined.
22794         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
22795         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
22796
22797 2010-04-18  Bruno Haible  <bruno@clisp.org>
22798
22799         * doc/posix-headers/stdbool.texi: More precise wording.
22800
22801 2010-04-17  Jim Meyering  <meyering@redhat.com>
22802
22803         maint.mk: use gnu-style indentation in an embedded perl script
22804         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
22805         Rename variable: s/two/last_two_bytes/
22806
22807 2010-04-16  Eric Blake  <eblake@redhat.com>
22808
22809         test-stdbool: skip test that fails with Solaris CC
22810         * tests/test-stdbool.c (f): Skip test that causes compilation
22811         error under buggy C++ compiler.
22812         * lib/stdbool.in.h: Document the limitation.
22813         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
22814
22815         setenv: allow compilation with C++
22816         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
22817         register keyword.
22818
22819         stdint: allow test to pass with C++
22820         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
22821
22822         getopt: allow compilation with C++
22823         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
22824         struct.
22825         * lib/getopt.c (_getopt_internal_r): Use correct type.
22826         Reported by Dagobert Michelson, via Joel E. Denny.
22827
22828 2010-04-16  Bruno Haible  <bruno@clisp.org>
22829
22830         Override netdb.h always.
22831         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
22832         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
22833         Reported by Ludovic Courtès <ludo@gnu.org>.
22834
22835 2010-04-15  Bruno Haible  <bruno@clisp.org>
22836
22837         openpty: Fix mistake from 2010-03-21.
22838         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
22839         Reported by Simon Josefsson.
22840
22841 2010-04-15  Eric Blake  <eblake@redhat.com>
22842
22843         test-forkpty: fix expected signature
22844         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
22845         Reported by Simon Josefsson.
22846
22847 2010-04-15  Jim Meyering  <meyering@redhat.com>
22848
22849         maint.mk: texinfo_suffix_re_: correct the default regexp
22850         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
22851
22852         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
22853         make it configurable via texinfo_suffix_re_.
22854
22855 2010-04-14  Eric Blake  <eblake@redhat.com>
22856
22857         strtok_r: relax license to LGPLv2+
22858         * modules/strtok_r (License): Relax license.
22859         Reported by Matthias Bolte.
22860
22861 2010-04-14  Simon Josefsson  <simon@josefsson.org>
22862
22863         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
22864         version 1.4.4 by default instead of requiring the libgcrypt
22865         version used during build.  This makes it possible to use the
22866         application with older but still binary compatible libgcrypt
22867         versions.
22868
22869 2010-04-13  Eric Blake  <eblake@redhat.com>
22870
22871         getopt-gnu: match recent glibc fixes and posix ruling
22872         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
22873         '+' handling, when requesting extensions.
22874         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
22875         'W;' handling.
22876         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
22877         * doc/posix-functions/getopt.texi (getopt): Document this.
22878         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
22879         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
22880         Likewise.
22881
22882         getopt: merge bug fixes from glibc
22883         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
22884         diagnostics.  Honor '+:' correctly.  Reject ';'.
22885
22886         getopt-posix: detect MacOS bug
22887         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
22888         optind when missing a required argument.
22889         * doc/posix-functions/getopt.texi (getopt): Document the bug.
22890         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
22891         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
22892         Likewise.
22893
22894         getopt-posix: avoid spurious failure on Solaris
22895         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
22896         an indicator that setting optind=1 is sufficient for reset.
22897
22898         getopt-posix: avoid spurious failure on FreeBSD
22899         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
22900         in POSIX mode, since the m4 test uses it.
22901
22902         gnulib-tool: silence warning on BSD sh
22903         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
22904
22905 2010-04-13  Jim Meyering  <meyering@redhat.com>
22906
22907         doc: users.txt: GNU patch now uses gnulib
22908         * users.txt: Add patch.
22909
22910 2010-04-12  Jim Meyering  <meyering@redhat.com>
22911
22912         maint.mk: generate more concise timing data for syntax-check rules
22913         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
22914         " done" from each line that reports a syntax-check test duration.
22915
22916 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
22917
22918         git-version-gen: use "git update-index..." rather than "git status"
22919         * build-aux/git-version-gen: Use git update-index --refresh, not
22920         "git status".  With some versions of git, "git status" would fail
22921         to update the index and result in an unwarranted "-dirty" suffix.
22922
22923 2010-04-11  Jim Meyering  <meyering@redhat.com>
22924
22925         openat: correct formatting (no semantic change)
22926         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
22927         Suggested by Bruno Haible.
22928
22929 2010-04-11  Bruno Haible  <bruno@clisp.org>
22930
22931         Stricter declaration checking in testdirs.
22932         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
22933         If for_tests is true, augment AM_CPPFLAGS to define
22934         GNULIB_STRICT_CHECKING.
22935         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
22936         GNULIB_STRICT_CHECKING is defined, verify that the function is
22937         declared.
22938
22939 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
22940             Bruno Haible  <bruno@clisp.org>
22941
22942         libunistring: Improve configure output.
22943         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
22944         Don't say "consider installing GNU libunistring" when checking again
22945         with libiconv.
22946
22947 2010-04-11  Bruno Haible  <bruno@clisp.org>
22948
22949         libunistring: Correct value of $LTLIBUNISTRING.
22950         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
22951         correct the value of $LTLIBUNISTRING.
22952
22953 2010-04-11  Bruno Haible  <bruno@clisp.org>
22954
22955         havelib: Add static libraries to LIBS in the right order.
22956         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
22957         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
22958
22959 2010-04-11  Bruno Haible  <bruno@clisp.org>
22960
22961         libunistring: Detect libunistring also when it depends on libiconv.
22962         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
22963         the second AC_LIB_HAVE_LINKFLAGS invocation.
22964
22965 2010-04-11  James Youngman  <jay@gnu.org>
22966
22967         close-stream: declare local scalars to be "const"
22968         * lib/close-stream.c (close_stream): Make boolean variables const
22969         to document the fact that we set but do not change them.
22970
22971 2010-04-11  Bruno Haible  <bruno@clisp.org>
22972
22973         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
22974
22975 2010-04-11  Jim Meyering  <meyering@redhat.com>
22976
22977         maint.mk: don't include dist-check.mk
22978         * top/maint.mk: Remove bogus include directive.
22979
22980         maint.mk: improve empty-line-at-EOF check
22981         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
22982         solution, rather than tail+Perl-based one.  The latter would read
22983         a few kilobytes from the end of each file, and did not handle empty
22984         files properly.
22985
22986         maint.mk: print the elapsed time for each syntax-check rule
22987         * top/maint.mk (sc_m_rules_): Save start time in a file.
22988         (sc_z_rules_): New rules: remove temp file and print elapsed time.
22989         (local-check): Interpose the .z rules
22990
22991 2010-04-11  Jim Meyering  <meyering@redhat.com>
22992
22993         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
22994         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
22995         empty file with one that ends in an empty line.
22996
22997 2010-04-10  Bruno Haible  <bruno@clisp.org>
22998
22999         mkdir: Make it work on mingw64.
23000         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
23001         * lib/mkdir.c: Update comment.
23002         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
23003
23004 2010-04-10  Bruno Haible  <bruno@clisp.org>
23005
23006         Don't override improved macro from newer autoconf.
23007         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
23008         autoconf >= 2.62.
23009         Reported by Joel E. Denny <jdenny@clemson.edu>.
23010
23011 2010-04-10  Jim Meyering  <meyering@redhat.com>
23012
23013         maint.mk: new syntax-check rule: prohibit empty lines at end of file
23014         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
23015
23016         maint.mk: correct a diagnostic
23017         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
23018         in diagnostic; now use $prohibit.
23019
23020 2010-04-10  Bruno Haible  <address@hidden>
23021
23022         fchownat: Fix a C++ test error on Solaris 8.
23023         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
23024         the function does not exist.
23025
23026 2010-04-10  Bruno Haible  <bruno@clisp.org>
23027
23028         vasnprintf: Add more tests.
23029         * tests/test-vasnprintf-posix.c: Include <errno.h>.
23030         (test_function): Test converting an invalid wide string.
23031
23032         vasnprintf: Correct handling of unconvertible wide string arguments.
23033         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
23034         VASNPRINTF.
23035         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
23036         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
23037         smaller than the expected maximum need for the directive. Set errno to
23038         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
23039         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
23040         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
23041         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
23042         * modules/vasnprintf (Files): Add m4/printf.m4.
23043         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
23044
23045 2010-04-10  Bruno Haible  <bruno@clisp.org>
23046
23047         vasnprintf: Fix crash in %ls directive.
23048         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
23049         string is passed as argument to %ls, with no precision and no width.
23050         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
23051
23052 2010-04-10  Bruno Haible  <bruno@clisp.org>
23053
23054         vasnprintf: Fix multiple test failures on mingw.
23055         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
23056         _snprintf, or snwprintf, not _snwprintf.
23057
23058 2010-04-10  Bruno Haible  <bruno@clisp.org>
23059
23060         write: Fix a C++ test error on mingw.
23061         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
23062
23063 2010-04-10  Bruno Haible  <bruno@clisp.org>
23064
23065         vasnprintf test: Reduce code duplication.
23066         * tests/test-vasnprintf.c (test_function): New function, extracted from
23067         test_vasnprintf.
23068         (test_vasnprintf, test_asnprintf): Invoke it.
23069
23070 2010-04-10  Bruno Haible  <bruno@clisp.org>
23071
23072         strnlen: Fix warning in C++ mode on MacOS X.
23073         * lib/string.in.h (strnlen): Use the modern idiom.
23074         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
23075         defining strnlen as a macro already in <config.h>.
23076         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
23077         REPLACE_STRNLEN.
23078         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
23079         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
23080
23081 2010-04-08  James Youngman  <jay@gnu.org>
23082
23083         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
23084         the example.
23085
23086 2010-04-09  Jim Meyering  <meyering@redhat.com>
23087
23088         maint.mk: print better diagnostic when there is no $(_hv_file)
23089         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
23090         announce that when $(_hv_file) (aka help-version) does not exist.
23091
23092         init.sh: run tr in the "C" locale to avoid multibyte interpretation
23093         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
23094         not try to interpret its random input bytes.  Jarno Rajahalme reported
23095         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
23096         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
23097         (mktempd_): Likewise, just in case.
23098
23099         ftruncate: add two years to projected module removal date: 2012
23100         * m4/ftruncate.m4: Adjust comments.
23101
23102         ftruncate: mark module as obsolete; even MinGW provides it, now
23103         * modules/ftruncate (Status): Obsolete.
23104         (Notice): Say that.
23105         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
23106         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
23107
23108 2010-04-08  Bruno Haible  <bruno@clisp.org>
23109
23110         Fix side effects from tests-related modules.
23111         * modules/dprintf-posix (Comment): New section.
23112         * modules/fprintf-posix (Comment): Likewise.
23113         * modules/obstack-printf-posix (Comment): Likewise.
23114         * modules/printf-posix (Comment): Likewise.
23115         * modules/snprintf-posix (Comment): Likewise.
23116         * modules/sprintf-posix (Comment): Likewise.
23117         * modules/vasnprintf-posix (Comment): Likewise.
23118         * modules/vasprintf-posix (Comment): Likewise.
23119         * modules/vdprintf-posix (Comment): Likewise.
23120         * modules/vfprintf-posix (Comment): Likewise.
23121         * modules/vprintf-posix (Comment): Likewise.
23122         * modules/vsnprintf-posix (Comment): Likewise.
23123         * modules/vsprintf-posix (Comment): Likewise.
23124         * modules/xprintf-posix (Comment): Likewise.
23125         * modules/xvasprintf-posix (Comment): Likewise.
23126         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
23127         * modules/floorf-tests (Depends-on): Likewise.
23128         * modules/round-tests (Depends-on): Likewise.
23129         * modules/roundf-tests (Depends-on): Likewise.
23130         * modules/trunc-tests (Depends-on): Likewise.
23131         * modules/truncf-tests (Depends-on): Likewise.
23132         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
23133         'fprintf-posix' module is not present.
23134         * tests/test-floorf2.c (check): Likewise.
23135         * tests/test-trunc2.c (check): Likewise.
23136         * tests/test-truncf2.c (check): Likewise.
23137         * tests/test-round2.c (equal): Likewise.
23138         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
23139
23140 2010-04-07  Karl Berry  <karl@gnu.org>
23141
23142         * config/srclist.txt,
23143         * config/srclistvars.sh,
23144         * config/srclist-update: doc fixes.
23145
23146 2010-04-07  Jim Meyering  <meyering@redhat.com>
23147
23148         maint.mk: add a PATH crosschecking syntax-check rule
23149         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
23150         Useful if you use a test like the one in help-version (coreutils,
23151         diffutils, grep, gzip) that ensures $(VERSION) matches what is
23152         printed by prog --version.
23153
23154 2010-04-06  Bruno Haible  <bruno@clisp.org>
23155
23156         Fix link error on mingw.
23157         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
23158         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
23159
23160 2010-04-06  Bruno Haible  <bruno@clisp.org>
23161
23162         Assume rmdir exists.
23163         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
23164
23165 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
23166
23167         doc: update users.txt
23168         * users.txt: Add gcal.
23169
23170 2010-04-06  Jim Meyering  <meyering@redhat.com>
23171
23172         init.sh: simply unset TMPDIR rather than risking env -i
23173         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
23174         although it probably works fine on all Unix-based systems, some
23175         systems (Cygwin?) cannot tolerate a totally cleared environment.
23176         Suggestion from Eric Blake.
23177
23178 2010-04-06  Jim Meyering  <meyering@redhat.com>
23179
23180         init.sh: portability fix: use env's POSIX-specified -i option not -u
23181         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
23182         than unportable env -u.  Solaris 5.11's env lacks support for -u.
23183
23184 2010-04-05  Bruno Haible  <bruno@clisp.org>
23185
23186         btowc: Work around Cygwin 1.7.2 bug.
23187         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
23188         does not map NUL to 0.
23189         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
23190
23191 2010-04-05  Bruno Haible  <bruno@clisp.org>
23192
23193         Make the multithread modules work on Cygwin 1.7.2.
23194         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
23195         imported symbols can be declared weak, so that it returns "no" on
23196         Cygwin 1.7.2.
23197
23198 2010-04-05  Bruno Haible  <bruno@clisp.org>
23199
23200         Use the module 'strncat'.
23201         * modules/unistr/u8-strncat (Depends-on): Add strncat.
23202
23203         Tests for module 'strncat'.
23204         * modules/strncat-tests: New file.
23205         * tests/test-strncat.c: New file.
23206
23207         New module 'strncat'.
23208         * lib/string.in.h (strncat): New declaration.
23209         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
23210         * m4/strncat.m4: New file, based on m4/memchr.m4.
23211         * modules/strncat: New file.
23212         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
23213         is declared.
23214         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
23215         REPLACE_STRNCAT.
23216         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
23217         REPLACE_STRNCAT.
23218         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
23219         module.
23220         * tests/test-string-c++.cc: Check signature of strncat.
23221
23222 2010-04-05  Jim Meyering  <meyering@redhat.com>
23223
23224         xstrtoumax-tests: convert to use init.sh
23225         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
23226         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
23227         Use Exit, not exit.
23228         Remove uses of $EXEEXT and "./" to run a program in the current dir.
23229
23230         xstrtoimax-tests: convert to use init.sh
23231         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
23232         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
23233         Use Exit, not exit.
23234         Remove uses of $EXEEXT and "./" to run a program in the current dir.
23235
23236 2010-04-05  Bruno Haible  <bruno@clisp.org>
23237
23238         sys_socket: Avoid #define replacements in C++ mode.
23239         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
23240         warning to the function if possible, rather than #defining the symbol
23241         to a dysfunctional alias.
23242
23243 2010-04-05  Bruno Haible  <bruno@clisp.org>
23244
23245         fseeko: Fix C++ test error on mingw.
23246         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
23247         gl_FUNC_FSEEKO.
23248         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
23249         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
23250         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
23251         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
23252
23253 2010-04-05  Bruno Haible  <bruno@clisp.org>
23254
23255         duplocale: Improve test output.
23256         * tests/test-duplocale.c (main): Print reason for skipped test.
23257
23258 2010-04-05  Bruno Haible  <bruno@clisp.org>
23259
23260         Assume rmdir exists.
23261         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
23262         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
23263
23264 2010-04-05  Bruno Haible  <bruno@clisp.org>
23265
23266         Fix link error on Solaris 8 with cc.
23267         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
23268
23269 2010-04-05  Bruno Haible  <bruno@clisp.org>
23270
23271         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
23272         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
23273
23274 2010-04-05  Bruno Haible  <bruno@clisp.org>
23275
23276         vasprintf: Update documentation.
23277         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
23278
23279 2010-04-05  Bruno Haible  <bruno@clisp.org>
23280
23281         ptsname: Improve test.
23282         * tests/test-ptsname.c (main): Also try the various master names of BSD
23283         systems.
23284
23285 2010-04-05  Bruno Haible  <bruno@clisp.org>
23286
23287         memchr: Avoid a possible C++ test error.
23288         * lib/string.in.h (memchr): Provide declaration if function is missing.
23289         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
23290         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
23291         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
23292         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
23293
23294 2010-04-05  Bruno Haible  <bruno@clisp.org>
23295
23296         strtok_r: Improve idiom.
23297         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
23298         AC_LIBOBJ is used.
23299
23300 2010-04-05  Bruno Haible  <bruno@clisp.org>
23301
23302         strdup: Improve idiom.
23303         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
23304         AC_LIBOBJ is used.
23305         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
23306         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
23307         when AC_LIBOBJ is used.
23308
23309 2010-04-05  Bruno Haible  <bruno@clisp.org>
23310
23311         mbsinit, mbrtowc, wcrtomb: Improve idioms.
23312         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
23313         don't set REPLACE_MBSINIT to 1.
23314         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
23315         don't set REPLACE_MBRTOWC to 1.
23316         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
23317         exist, don't set REPLACE_MBSRTOWCS to 1.
23318         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
23319         exist, don't set REPLACE_MBSNRTOWCS to 1.
23320         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
23321         don't set REPLACE_WCRTOMB to 1.
23322         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
23323         exist, don't set REPLACE_WCSRTOMBS to 1.
23324         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
23325         exist, don't set REPLACE_WCSNRTOMBS to 1.
23326
23327 2010-04-05  Bruno Haible  <bruno@clisp.org>
23328
23329         ldexpl: Improve idiom.
23330         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
23331         make sure to set HAVE_DECL_LDEXPL to 0.
23332
23333 2010-04-05  Jim Meyering  <meyering@redhat.com>
23334
23335         xstrtol-tests: convert to use init.sh
23336         * modules/xstrtol-tests (Files): Add tests/init.sh.
23337         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
23338         Use Exit, not exit.
23339         Remove uses of $EXEEXT and "./" to run a program in the current dir.
23340
23341         atexit-tests: convert to use init.sh
23342         * modules/atexit-tests (Files): Add tests/init.sh.
23343         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
23344         Use Exit, not exit.
23345         Remove uses of $EXEEXT and "./" to run a program in the current dir.
23346
23347         init.sh: fix typo
23348         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
23349
23350         init.sh: make it easier for a test script to write to the tty, ...
23351         when using automake's parallel-tests mode.
23352         * tests/init.sh (stderr_fileno_): Define overridable variable.
23353         (warn_): New function, to use it.
23354         (fail_, skip_, framework_failure_): Use warn_.
23355
23356 2010-04-04  Bruno Haible  <bruno@clisp.org>
23357
23358         btowc: Avoid warning.
23359         * lib/btowc.c: Include <stdlib.h>.
23360         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
23361
23362 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
23363             Bruno Haible  <bruno@clisp.org>
23364
23365         wchar: Port to NetBSD 1.5.
23366         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
23367         * lib/wctype.in.h (WEOF): Likewise.
23368
23369 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
23370             Bruno Haible  <bruno@clisp.org>
23371
23372         Port extended stdio to NetBSD 1.5.
23373         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
23374         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
23375         older.
23376
23377 2010-04-04  Bruno Haible  <bruno@clisp.org>
23378
23379         string: Remove unused substitution.
23380         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
23381         HAVE_DECL_STRERROR.
23382         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
23383
23384 2010-04-04  Bruno Haible  <bruno@clisp.org>
23385
23386         strtod: Avoid a possible C++ test error.
23387         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
23388         set REPLACE_STRTOD.
23389
23390 2010-04-04  Bruno Haible  <bruno@clisp.org>
23391
23392         strerror: Update documentation.
23393         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
23394
23395 2010-04-04  Bruno Haible  <bruno@clisp.org>
23396
23397         stdio: Fix some C++ test errors on Solaris 8 with GCC.
23398         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
23399         _GL_CXXALIAS_SYS_CAST.
23400
23401 2010-04-04  Bruno Haible  <bruno@clisp.org>
23402
23403         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
23404         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
23405         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
23406         REPLACE_FREXPL to 1.
23407         * doc/posix-functions/frexpl.texi: Update documentation.
23408
23409 2010-04-04  Bruno Haible  <bruno@clisp.org>
23410
23411         math: Fix some C++ test errors on Solaris 8 and Cygwin.
23412         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
23413
23414 2010-04-04  Bruno Haible  <bruno@clisp.org>
23415
23416         Implement nanosleep for native Windows.
23417         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
23418
23419 2010-04-04  Bruno Haible  <bruno@clisp.org>
23420
23421         math: Fix some C++ test errors on Solaris 8.
23422         * lib/math.in.h (truncf, trunc): Use simpler idiom.
23423
23424 2010-04-04  Bruno Haible  <bruno@clisp.org>
23425
23426         math: Fix some C++ test errors on Cygwin.
23427         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
23428         truncl): Provide declaration if the system does not have it.
23429         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
23430         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
23431         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
23432         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
23433         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
23434         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
23435         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
23436         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
23437         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
23438         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
23439         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
23440         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
23441         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
23442         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
23443         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
23444         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
23445         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
23446         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
23447         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
23448         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
23449         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
23450         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
23451
23452 2010-04-04  Bruno Haible  <bruno@clisp.org>
23453
23454         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
23455         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
23456         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
23457         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
23458         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
23459         * m4/isinf.m4 (gl_ISINF): Likewise.
23460         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
23461
23462 2010-04-04  Bruno Haible  <bruno@clisp.org>
23463
23464         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
23465         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
23466
23467 2010-04-04  Bruno Haible  <bruno@clisp.org>
23468
23469         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
23470         * modules/tmpfile (configure.ac): Update.
23471
23472         tmpfile: Fix C++ test error on mingw.
23473         * lib/stdio.in.h (tmpfile): New declaration.
23474         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
23475         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
23476         * modules/tmpfile (Depends-on): Add stdio.
23477         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
23478         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
23479         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
23480         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
23481         REPLACE_TMPFILE.
23482         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
23483
23484 2010-04-04  Bruno Haible  <bruno@clisp.org>
23485
23486         ioctl: Fix C++ test error on mingw.
23487         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
23488         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
23489         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
23490
23491 2010-04-03  Bruno Haible  <bruno@clisp.org>
23492
23493         wcwidth: Fix C++ test error on mingw.
23494         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
23495         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
23496         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
23497
23498 2010-04-03  Bruno Haible  <bruno@clisp.org>
23499
23500         nanosleep: Fix C++ test error on mingw.
23501         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
23502         * lib/time.in.h (nanosleep): Use modern idiom.
23503         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
23504         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
23505         REPLACE_NANOSLEEP to 1.
23506         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
23507         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
23508
23509 2010-04-03  Bruno Haible  <bruno@clisp.org>
23510
23511         strptime: Fix C++ test error on mingw.
23512         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
23513         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
23514         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
23515         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
23516         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
23517         not REPLACE_STRPTIME.
23518         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
23519         REPLACE_STRPTIME.
23520
23521 2010-04-03  Bruno Haible  <bruno@clisp.org>
23522
23523         timegm: Fix C++ test error on mingw.
23524         * lib/time.in.h (timegm): Use modern idiom.
23525         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
23526         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
23527         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
23528         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
23529
23530 2010-04-03  Bruno Haible  <bruno@clisp.org>
23531
23532         timegm: Assume declaration if function exists.
23533         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
23534         if it exists. Don't clobber ac_cv_func_timegm.
23535
23536 2010-04-03  Bruno Haible  <bruno@clisp.org>
23537
23538         time_r: Fix C++ test error on mingw.
23539         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
23540         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
23541         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
23542         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
23543         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
23544
23545 2010-04-03  Bruno Haible  <bruno@clisp.org>
23546
23547         time_r: Minor updates.
23548         * modules/time_r (Description): Mention the provided functions.
23549         * lib/time_r.c: Don't include <string.h>.
23550         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
23551         * doc/posix-functions/localtime_r.texi: Likewise.
23552
23553 2010-04-03  Bruno Haible  <bruno@clisp.org>
23554
23555         time: Fix regression introduced on 2010-03-08.
23556         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
23557         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
23558
23559 2010-04-03  Jim Meyering  <meyering@redhat.com>
23560
23561         maint.mk: don't silently disable project-specific syntax-check rules
23562         * top/maint.mk (_prohibit_regexp): Define, to help people realize
23563         that they need to convert their project-specific syntax-check rules
23564         to use the new _sc_search_regexp.
23565
23566 2010-04-03  Bruno Haible  <bruno@clisp.org>
23567
23568         fchdir: Fix regression introduced on 2010-03-08.
23569         * lib/unistd.in.h (fchdir): Fix declaration.
23570         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
23571         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
23572         REPLACE_FCHDIR.
23573         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
23574         REPLACE_FCHDIR.
23575
23576 2010-04-03  Bruno Haible  <bruno@clisp.org>
23577
23578         getpagesize: Fix C++ test error on mingw.
23579         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
23580         system does not declare the function.
23581         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
23582         declared.
23583         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23584         HAVE_DECL_GETPAGESIZE.
23585         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
23586
23587 2010-04-03  Bruno Haible  <bruno@clisp.org>
23588
23589         stdio: Make C++ tests work on mingw.
23590         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
23591         does not declare the function.
23592
23593 2010-04-03  Bruno Haible  <bruno@clisp.org>
23594
23595         ftello: Fix C++ test error on mingw.
23596         * lib/stdio.in.h (ftello): Use modern idiom.
23597         * lib/ftello.c (ftello): Renamed from rpl_ftello.
23598         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
23599         is missing and that it needs to be replaced.
23600         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
23601         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
23602         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
23603
23604 2010-04-03  Bruno Haible  <bruno@clisp.org>
23605
23606         fseeko: Fix C++ test error on mingw.
23607         * lib/stdio.in.h (fseeko): Use modern idiom.
23608         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
23609         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
23610         is missing and that it needs to be replaced.
23611         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
23612         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
23613         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
23614
23615 2010-04-03  Bruno Haible  <bruno@clisp.org>
23616
23617         mkstemp: Fix C++ test error on mingw.
23618         * lib/stdlib.in.h (mkstemp): Use modern idiom.
23619         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
23620         function is missing and that it needs to be replaced.
23621         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
23622         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
23623
23624 2010-04-03  Bruno Haible  <bruno@clisp.org>
23625
23626         stpncpy: Fix C++ test error on mingw.
23627         * lib/string.in.h (stpncpy): Use modern idiom.
23628         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
23629         function is missing and that it needs to be replaced.
23630         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
23631         REPLACE_STPNCPY.
23632         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
23633
23634 2010-04-03  Bruno Haible  <bruno@clisp.org>
23635
23636         sys_stat: Fix C++ test error on mingw.
23637         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
23638         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
23639
23640 2010-04-03  Bruno Haible  <bruno@clisp.org>
23641
23642         pty: Update doc.
23643         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
23644
23645 2010-04-03  Bruno Haible  <bruno@clisp.org>
23646
23647         unistd: Fix C++ test error on mingw.
23648         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
23649
23650 2010-04-03  Bruno Haible  <bruno@clisp.org>
23651
23652         Update doc regarding mingw.
23653         * doc/glibc-functions/openpty.texi: Update regarding mingw.
23654         * doc/glibc-functions/login_tty.texi: Likewise.
23655         * doc/glibc-functions/forkpty.texi: Likewise.
23656
23657 2010-04-03  Bruno Haible  <bruno@clisp.org>
23658
23659         stdlib: Avoid compilation failure of c-strtold on mingw.
23660         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
23661
23662 2010-04-03  Bruno Haible  <bruno@clisp.org>
23663
23664         locale: Make C++ tests work on Cygwin and mingw.
23665         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
23666         cannot provide the function.
23667         Reported by Simon Josefsson.
23668
23669 2010-04-03  Bruno Haible  <bruno@clisp.org>
23670
23671         localename: Port to MacOS X 10.6.
23672         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
23673         memory layout of the locales in MacOS X 10.6 as well.
23674         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
23675
23676 2010-04-02  Bruno Haible  <bruno@clisp.org>
23677
23678         gnulib-tool: Ensure that long-running tests are executed last.
23679         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
23680         running tests after the one for the other tests.
23681
23682 2010-04-02  Bruno Haible  <bruno@clisp.org>
23683
23684         gnulib-tool: Ensure the tests in the main directory are executed first.
23685         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
23686         start with the current directory.
23687
23688 2010-04-02  Bruno Haible  <bruno@clisp.org>
23689
23690         Tests for module 'havelib', moved here from GNU gettext.
23691         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
23692         modifications.
23693         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
23694         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
23695         with modifications.
23696         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
23697         modifications.
23698         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
23699         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
23700         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
23701         with modifications.
23702         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
23703         with modifications.
23704         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
23705         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
23706         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
23707         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
23708         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
23709         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
23710         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
23711         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
23712         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
23713         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
23714         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
23715         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
23716         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
23717         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
23718         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
23719         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
23720         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
23721         with modifications.
23722         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
23723         with modifications.
23724         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
23725         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
23726         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
23727         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
23728         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
23729         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
23730         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
23731         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
23732         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
23733         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
23734         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
23735         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
23736         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
23737         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
23738         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
23739         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
23740         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
23741         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
23742         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
23743         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
23744         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
23745         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
23746         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
23747         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
23748         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
23749         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
23750         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
23751         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
23752         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
23753         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
23754         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
23755         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
23756         * tests/havelib/rpathx/rpathx.c: New file, from
23757         gettext/autoconf-lib-link.
23758         * tests/havelib/rpathx/Makefile.am: New file, from
23759         gettext/autoconf-lib-link.
23760         * tests/havelib/rpathx/configure.ac: New file, from
23761         gettext/autoconf-lib-link with modifications.
23762         * tests/havelib/rpathy/rpathy.c: New file, from
23763         gettext/autoconf-lib-link.
23764         * tests/havelib/rpathy/Makefile.am: New file, from
23765         gettext/autoconf-lib-link.
23766         * tests/havelib/rpathy/configure.ac: New file, from
23767         gettext/autoconf-lib-link with modifications.
23768         * tests/havelib/rpathz/rpathz.c: New file, from
23769         gettext/autoconf-lib-link.
23770         * tests/havelib/rpathz/Makefile.am: New file, from
23771         gettext/autoconf-lib-link.
23772         * tests/havelib/rpathz/configure.ac: New file, from
23773         gettext/autoconf-lib-link with modifications.
23774         * tests/havelib/rpathlx/usex.c: New file, from
23775         gettext/autoconf-lib-link.
23776         * tests/havelib/rpathlx/Makefile.am: New file, from
23777         gettext/autoconf-lib-link.
23778         * tests/havelib/rpathlx/configure.ac: New file, from
23779         gettext/autoconf-lib-link with modifications.
23780         * tests/havelib/rpathly/usey.c: New file, from
23781         gettext/autoconf-lib-link.
23782         * tests/havelib/rpathly/Makefile.am: New file, from
23783         gettext/autoconf-lib-link.
23784         * tests/havelib/rpathly/configure.ac: New file, from
23785         gettext/autoconf-lib-link with modifications.
23786         * tests/havelib/rpathlz/usez.c: New file, from
23787         gettext/autoconf-lib-link.
23788         * tests/havelib/rpathlz/Makefile.am: New file, from
23789         gettext/autoconf-lib-link.
23790         * tests/havelib/rpathlz/configure.ac: New file, from
23791         gettext/autoconf-lib-link with modifications.
23792         * tests/havelib/rpathlyx/usey.c: New file, from
23793         gettext/autoconf-lib-link.
23794         * tests/havelib/rpathlyx/Makefile.am: New file, from
23795         gettext/autoconf-lib-link.
23796         * tests/havelib/rpathlyx/configure.ac: New file, from
23797         gettext/autoconf-lib-link with modifications.
23798         * tests/havelib/rpathlzyx/usez.c: New file, from
23799         gettext/autoconf-lib-link.
23800         * tests/havelib/rpathlzyx/Makefile.am: New file, from
23801         gettext/autoconf-lib-link.
23802         * tests/havelib/rpathlzyx/configure.ac: New file, from
23803         gettext/autoconf-lib-link with modifications.
23804         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
23805         with modifications.
23806
23807 2010-04-02  Bruno Haible  <bruno@clisp.org>
23808
23809         gnulib-tool: Create distributed built sources also for the tests.
23810         * gnulib-tool (func_create_testdir): Also generate distributed built
23811         sources in the tests directory.
23812
23813 2010-04-02  Bruno Haible  <bruno@clisp.org>
23814
23815         gnulib-tool: Obey user's environment variables.
23816         * gnulib-tool (func_create_testdir): When creating built sources,
23817         respect the environment variables for autoconf, automake, etc. given by
23818         the user.
23819
23820 2010-04-02  Bruno Haible  <bruno@clisp.org>
23821
23822         gnulib-tool: Provide the value of --m4-base to modules.
23823         * gnulib-tool (func_import, func_create_testdir): Emit a definition
23824         of gl_m4_base.
23825
23826 2010-04-02  Eric Blake  <eblake@redhat.com>
23827
23828         maint.mk: fix some fallout
23829         * NEWS: Document the incompatible change, and its effect on cfg.mk.
23830         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
23831
23832 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
23833
23834         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
23835         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
23836         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
23837         (sc_cast_of_x_alloc_return_value): Likewise.
23838         (sc_cast_of_alloca_return_value): Likewise.
23839         (sc_space_tab): Likewise.
23840         (sc_prohibit_atoi_atof): Likewise.
23841         (sc_prohibit_magic_number_exit): Likewise.
23842         (sc_error_exit_success): Likewise.
23843         (sc_file_system): Likewise.
23844         (sc_prohibit_have_config_h): Likewise.
23845         (sc_require_config_h): Likewise.
23846         (sc_prohibit_HAVE_MBRTOWC): Likewise.
23847         (sc_obsolete_symbols): Likewise.
23848         (sc_changelog): Likewise.
23849         (sc_program_name): Likewise.
23850         (sc_the_the): Likewise.
23851         (sc_trailing_blank): Likewise.
23852         (sc_two_space_separator_in_usage): Likewise.
23853         (sc_useless_cpp_parens): Likewise.
23854         (sc_GPL_version): Likewise.
23855         (sc_GFDL_version): Likewise.
23856         (sc_texinfo_acronym): Likewise.
23857         (sc_prohibit_cvs_keyword): Likewise.
23858         (sc_prohibit_stat_st_blocks): Likewise.
23859         (sc_prohibit_S_IS_definition): Likewise.
23860         (sc_redundant_const): Likewise.
23861         (sc_makefile_TAB_only_indentation): Likewise.
23862         (sc_m4_quote_check): Likewise.
23863         (sc_makefile_path_separator_check): Likewise.
23864         (sc_copyright_check): Likewise.
23865         (sc_Wundef_boolean): Likewise.
23866         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
23867
23868         maint.mk: match 0 or more whitespace-before-function-call '('
23869         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
23870         that have zero or two-and-more spaces between the function name
23871         and the open parenthesis.
23872         (sc_error_message_warn_fatal): Likewise.
23873         (sc_error_message_uppercase): Likewise.
23874         (sc_error_message_period): Likewise.
23875
23876 2010-03-31  Eric Blake  <eblake@redhat.com>
23877
23878         maint.mk: check for [ as well as test
23879         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
23880         Based on a libvirt report by Matthias Bolte.
23881
23882         gnumakefile: don't squelch _version output
23883         * top/GNUmakefile (_version): Create one-shot dependency rather
23884         than using $(shell) when version must be regenerated.
23885         (_autoreconf): Run verbosely, by default.
23886
23887         sys_time: avoid compiler warnings
23888         * lib/sys_time.in.h (includes): Ensure gcc pragma is
23889         unconditional, fixing regression from 2010-03-29.
23890         Reported by Simon Josefsson.
23891
23892 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
23893
23894         maint.mk: s/_header_without_use/_sc_header_without_use/
23895         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
23896         (sc_prohibit_assert_without_use): Use the new name.
23897         (sc_prohibit_close_stream_without_use): Likewise.
23898         (sc_prohibit_getopt_without_use): Likewise.
23899         (sc_prohibit_quotearg_without_use): Likewise.
23900         (sc_prohibit_quote_without_use): Likewise.
23901         (sc_prohibit_long_options_without_use): Likewise.
23902         (sc_prohibit_inttostr_without_use): Likewise.
23903         (sc_prohibit_ignore_value_without_use): Likewise.
23904         (sc_prohibit_error_without_use): Likewise.
23905         (sc_prohibit_xalloc_without_use): Likewise.
23906         (sc_prohibit_hash_without_use): Likewise.
23907         (sc_prohibit_hash_pjw_without_use): Likewise.
23908         (sc_prohibit_safe_read_without_use): Likewise.
23909         (sc_prohibit_argmatch_without_use): Likewise.
23910         (sc_prohibit_canonicalize_without_use): Likewise.
23911         (sc_prohibit_root_dev_ino_without_use): Likewise.
23912         (sc_prohibit_openat_without_use): Likewise.
23913         (sc_prohibit_c_ctype_without_use): Likewise.
23914         (sc_prohibit_signal_without_use): Likewise.
23915         (sc_prohibit_intprops_without_use): Likewise.
23916
23917 2010-03-30  Eric Blake  <eblake@redhat.com>
23918
23919         maint: improve module indicators
23920         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
23921         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
23922         columns, and avoid extra macro expansion.
23923
23924         fdopendir: work around FreeBSD bug
23925         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
23926         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
23927         * modules/dirent (Makefile.am): Substitute it.
23928         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
23929         declaration.
23930         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
23931         fix.
23932         Reported by Christian Weisgerber <naddy@mips.inka.de>.
23933
23934 2010-03-29  Bruno Haible  <bruno@clisp.org>
23935
23936         Emit #pragma system_header after the inclusion guard, not before.
23937         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
23938         guard that spans the entire file, not before. This enables an
23939         optimization in GCC's preprocessor.
23940         * lib/ctype.in.h: Likewise.
23941         * lib/dirent.in.h: Likewise.
23942         * lib/errno.in.h: Likewise.
23943         * lib/float.in.h: Likewise.
23944         * lib/getopt.in.h: Likewise.
23945         * lib/iconv.in.h: Likewise.
23946         * lib/langinfo.in.h: Likewise.
23947         * lib/locale.in.h: Likewise.
23948         * lib/math.in.h: Likewise.
23949         * lib/netdb.in.h: Likewise.
23950         * lib/netinet_in.in.h: Likewise.
23951         * lib/pty.in.h: Likewise.
23952         * lib/sched.in.h: Likewise.
23953         * lib/se-selinux.in.h: Likewise.
23954         * lib/search.in.h: Likewise.
23955         * lib/spawn.in.h: Likewise.
23956         * lib/stdarg.in.h: Likewise.
23957         * lib/stdint.in.h: Likewise.
23958         * lib/string.in.h: Likewise.
23959         * lib/strings.in.h: Likewise.
23960         * lib/sys_file.in.h: Likewise.
23961         * lib/sys_ioctl.in.h: Likewise.
23962         * lib/sys_time.in.h: Likewise.
23963         * lib/sys_times.in.h: Likewise.
23964         * lib/sys_utsname.in.h: Likewise.
23965         * lib/sys_wait.in.h: Likewise.
23966         * lib/sysexits.in.h: Likewise.
23967         * lib/wctype.in.h: Likewise.
23968
23969 2010-03-28  James Youngman  <jay@gnu.org>
23970
23971         save-cwd: don't leak a file descriptor when the caller execs.
23972         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
23973         saved file descriptor.
23974         * modules/save-cwd (Depends-on): Depend on cloexec.
23975
23976 2010-03-29  Bruno Haible  <bruno@clisp.org>
23977
23978         Remove vestiges of fts-lgpl module.
23979         * lib/fts_.h: Assume GNULIB_FTS is 1.
23980         * lib/fts.c: Likewise.
23981         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
23982
23983 2010-03-28  Bruno Haible  <bruno@clisp.org>
23984
23985         Fix definition of tests witness macro.
23986         * gnulib-tool (func_import): Fix definition of witness macro.
23987
23988 2010-03-28  Bruno Haible  <bruno@clisp.org>
23989
23990         Fix ioctl's protoype on glibc systems.
23991         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
23992         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
23993         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
23994         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
23995         signature. If not, arrange to replace the ioctl function.
23996         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
23997         REPLACE_IOCTL.
23998         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
23999         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
24000         Reported by Ludovic Courtès <ludo@gnu.org>.
24001
24002 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
24003
24004         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
24005         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
24006         made it so grep -r --include=GLOB* ... did not work.
24007
24008 2010-03-26  Jim Meyering  <meyering@redhat.com>
24009             Eric Blake  <eblake@redhat.com>
24010
24011         maint.mk: prohibit use of test's -o and -a operators
24012         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
24013
24014 2010-03-28  Bruno Haible  <bruno@clisp.org>
24015
24016         Remove unused GNULIB_XYZ macro definitions.
24017         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
24018         invocation.
24019
24020 2010-03-28  Bruno Haible  <bruno@clisp.org>
24021
24022         Mark privileged tests modules.
24023         * modules/idpriv-drop-tests (Status): New section.
24024         * modules/idpriv-droptemp-tests (Status): New section.
24025
24026 2010-03-28  Bruno Haible  <bruno@clisp.org>
24027
24028         Split C++ tests into separate tests modules.
24029         * modules/dirent-c++-tests: New file, extracted from
24030         modules/dirent-tests.
24031         * modules/dirent-tests: Depend on it.
24032         * modules/fcntl-h-c++-tests: New file, extracted from
24033         modules/fcntl-h-tests.
24034         * modules/fcntl-h-tests: Depend on it.
24035         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
24036         * modules/glob-tests: Depend on it.
24037         * modules/iconv-h-c++-tests: New file, extracted from
24038         modules/iconv-h-tests.
24039         * modules/iconv-h-tests: Depend on it.
24040         * modules/langinfo-c++-tests: New file, extracted from
24041         modules/langinfo-tests.
24042         * modules/langinfo-tests: Depend on it.
24043         * modules/locale-c++-tests: New file, extracted from
24044         modules/locale-tests.
24045         * modules/locale-tests: Depend on it.
24046         * modules/math-c++-tests: New file, extracted from modules/math-tests.
24047         * modules/math-tests: Depend on it.
24048         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
24049         * modules/pty-tests: Depend on it.
24050         * modules/search-c++-tests: New file, extracted from
24051         modules/search-tests.
24052         * modules/search-tests: Depend on it.
24053         * modules/signal-c++-tests: New file, extracted from
24054         modules/signal-tests.
24055         * modules/signal-tests: Depend on it.
24056         * modules/spawn-c++-tests: New file, extracted from
24057         modules/spawn-tests.
24058         * modules/spawn-tests: Depend on it.
24059         * modules/stdio-c++-tests: New file, extracted from
24060         modules/stdio-tests.
24061         * modules/stdio-tests: Depend on it.
24062         * modules/stdlib-c++-tests: New file, extracted from
24063         modules/stdlib-tests.
24064         * modules/stdlib-tests: Depend on it.
24065         * modules/string-c++-tests: New file, extracted from
24066         modules/string-tests.
24067         * modules/string-tests: Depend on it.
24068         * modules/sys_ioctl-c++-tests: New file, extracted from
24069         modules/sys_ioctl-tests.
24070         * modules/sys_ioctl-tests: Depend on it.
24071         * modules/sys_select-c++-tests: New file, extracted from
24072         modules/sys_select-tests.
24073         * modules/sys_select-tests: Depend on it.
24074         * modules/sys_socket-c++-tests: New file, extracted from
24075         modules/sys_socket-tests.
24076         * modules/sys_socket-tests: Depend on it.
24077         * modules/sys_stat-c++-tests: New file, extracted from
24078         modules/sys_stat-tests.
24079         * modules/sys_stat-tests: Depend on it.
24080         * modules/sys_time-c++-tests: New file, extracted from
24081         modules/sys_time-tests.
24082         * modules/sys_time-tests: Depend on it.
24083         * modules/time-c++-tests: New file, extracted from modules/time-tests.
24084         * modules/time-tests: Depend on it.
24085         * modules/unistd-c++-tests: New file, extracted from
24086         modules/unistd-tests.
24087         * modules/unistd-tests: Depend on it.
24088         * modules/wchar-c++-tests: New file, extracted from
24089         modules/wchar-tests.
24090         * modules/wchar-tests: Depend on it.
24091         * modules/wctype-c++-tests: New file, extracted from
24092         modules/wctype-tests.
24093         * modules/wctype-tests: Depend on it.
24094         Reported by Simon Josefsson.
24095
24096 2010-03-28  Bruno Haible  <bruno@clisp.org>
24097
24098         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
24099         * gnulib-tool (func_exists_module): New function, extracted from
24100         func_verify_module.
24101         (func_verify_module): Use it.
24102         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
24103         'foo' only if 'foo' exists.
24104         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
24105         module.
24106
24107 2010-03-28  Bruno Haible  <bruno@clisp.org>
24108
24109         gnulib-tool: Add support for special categories of tests.
24110         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
24111         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
24112         (func_usage): Document them.
24113         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
24114         inc_unportable_tests, inc_all_tests): New variables.
24115         (func_acceptable): Consider these variables.
24116         (func_modules_transitive_closure): Make it work when the 'Status' field
24117         consists of multiple words.
24118         (func_import): Store and restore the values of inc_cxx_tests,
24119         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
24120         inc_all_tests in gnulib-comp.m4.
24121         (func_create_testdir): Set inc_all_tests to true.
24122         * doc/gnulib.texi (Extra tests modules): New section.
24123         Suggested by Jim Meyering.
24124
24125 2010-03-28  Bruno Haible  <bruno@clisp.org>
24126
24127         ansi-c++-opt: Allow turning off the C++ build by default.
24128         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
24129         gl_CXX_CHOICE_DEFAULT_NO is defined.
24130         Requested by Eric Blake.
24131
24132 2010-03-28  Bruno Haible  <bruno@clisp.org>
24133
24134         unistd: Avoid #define replacements in C++ mode.
24135         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
24136         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
24137         setsockopt, shutdown, select): In C++, attach a warning to the function
24138         if possible, rather than #defining the symbol to a dysfunctional alias.
24139         Reported by John W. Eaton <jwe@gnu.org>.
24140
24141 2010-03-28  Bruno Haible  <bruno@clisp.org>
24142
24143         Fix link errors on mingw.
24144         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
24145         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
24146         $(LIBSOCKET).
24147         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
24148         $(LIBSOCKET).
24149
24150 2010-03-28  Bruno Haible  <bruno@clisp.org>
24151             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24152
24153         lib-ignore: Determine different options for different compilers.
24154         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
24155         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
24156         Add comments.
24157         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
24158         * NEWS: Mention the change.
24159
24160 2010-03-27  Bruno Haible  <bruno@clisp.org>
24161
24162         Remove unused GNULIB_XYZ macro definitions.
24163         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
24164         * modules/fseek (configure.ac): Likewise.
24165         * modules/ioctl (configure.ac): Likewise.
24166         * modules/open (configure.ac): Likewise.
24167         * modules/stdlib-safer (configure.ac): Likewise.
24168
24169 2010-03-27  Bruno Haible  <bruno@clisp.org>
24170
24171         Add a remark about certain modules.
24172         * modules/malloc (Comment): New section.
24173         * modules/realloc (Comment): Likewise.
24174         * modules/sigpipe (Comment): Likewise.
24175
24176 2010-03-27  Bruno Haible  <bruno@clisp.org>
24177
24178         Resolve conflict between the two kinds of module indicators.
24179         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
24180         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
24181         * modules/canonicalize (configure.ac): Invoke
24182         gl_MODULE_INDICATOR_FOR_TESTS.
24183         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
24184         GNULIB_XYZ.
24185         * tests/test-dirent-c++.cc: Likewise.
24186         * tests/test-dirent-safer.c: Likewise.
24187         * tests/test-dup2.c: Likewise.
24188         * tests/test-fchdir.c: Likewise.
24189         * tests/test-fcntl-h-c++.cc: Likewise.
24190         * tests/test-getopt.c: Likewise.
24191         * tests/test-getopt.h: Likewise.
24192         * tests/test-langinfo-c++.cc: Likewise.
24193         * tests/test-locale-c++.cc: Likewise.
24194         * tests/test-math-c++.cc: Likewise.
24195         * tests/test-pty-c++.cc: Likewise.
24196         * tests/test-search-c++.cc: Likewise.
24197         * tests/test-signal-c++.cc: Likewise.
24198         * tests/test-spawn-c++.cc: Likewise.
24199         * tests/test-stdio-c++.cc: Likewise.
24200         * tests/test-stdlib-c++.cc: Likewise.
24201         * tests/test-string-c++.cc: Likewise.
24202         * tests/test-sys_ioctl-c++.cc: Likewise.
24203         * tests/test-sys_select-c++.cc: Likewise.
24204         * tests/test-sys_socket-c++.cc: Likewise.
24205         * tests/test-sys_stat-c++.cc: Likewise.
24206         * tests/test-sys_time-c++.cc: Likewise.
24207         * tests/test-time-c++.cc: Likewise.
24208         * tests/test-unistd-c++.cc: Likewise.
24209         * tests/test-wchar-c++.cc: Likewise.
24210         * tests/uninorm/test-u8-nfc.c: Likewise.
24211         * tests/uninorm/test-u8-nfd.c: Likewise.
24212         * tests/uninorm/test-u8-nfkc.c: Likewise.
24213         * tests/uninorm/test-u8-nfkd.c: Likewise.
24214         * tests/uninorm/test-u16-nfc.c: Likewise.
24215         * tests/uninorm/test-u16-nfd.c: Likewise.
24216         * tests/uninorm/test-u16-nfkc.c: Likewise.
24217         * tests/uninorm/test-u16-nfkd.c: Likewise.
24218         * tests/uninorm/test-u32-nfc.c: Likewise.
24219         * tests/uninorm/test-u32-nfc-big.c: Likewise.
24220         * tests/uninorm/test-u32-nfd.c: Likewise.
24221         * tests/uninorm/test-u32-nfd-big.c: Likewise.
24222         * tests/uninorm/test-u32-nfkc.c: Likewise.
24223         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
24224         * tests/uninorm/test-u32-nfkd.c: Likewise.
24225         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
24226         * tests/uninorm/test-u32-normalize-big.c: Likewise.
24227
24228 2010-03-27  Bruno Haible  <bruno@clisp.org>
24229
24230         Distinguish two kinds of module indicators.
24231         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
24232         gl_MODULE_INDICATOR.
24233         (gl_MODULE_INDICATOR): New macro.
24234         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
24235         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
24236         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
24237         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
24238         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
24239         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
24240         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
24241         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
24242         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
24243         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
24244         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
24245         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
24246         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
24247         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
24248         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
24249         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
24250         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
24251         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
24252         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
24253         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
24254         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
24255         * modules/cloexec (configure.ac): Likewise.
24256         * modules/getopt-gnu (configure.ac): Likewise.
24257         * modules/uninorm/u8-normalize (configure.ac): Likewise.
24258         * modules/uninorm/u16-normalize (configure.ac): Likewise.
24259         * modules/uninorm/u32-normalize (configure.ac): Likewise.
24260         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
24261
24262 2010-03-27  Bruno Haible  <bruno@clisp.org>
24263
24264         New module description field 'Comment'.
24265         * gnulib-tool: New option --extract-comment.
24266         (func_usage): Document it.
24267         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
24268         (func_get_comment): New function.
24269         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
24270
24271 2010-03-27  Bruno Haible  <bruno@clisp.org>
24272
24273         Addendum to 2010-02-07 commit.
24274         * gnulib-tool (func_usage): Document --extract-applicability option.
24275
24276 2010-03-27  Bruno Haible  <bruno@clisp.org>
24277
24278         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
24279         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
24280         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
24281         rather than link errors.
24282
24283 2010-03-27  Bruno Haible  <bruno@clisp.org>
24284
24285         Avoid side effects from tests-related modules on the compilation of lib.
24286         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
24287         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
24288         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
24289         parameter. Emit into AM_CPPFLAGS a definition of the designated C
24290         macro.
24291         (func_import): Define a witness macro. Assign it a value that depends
24292         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
24293         tests-related modules.
24294         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
24295         Reported by Jim Meyering.
24296
24297 2010-03-27  Bruno Haible  <bruno@clisp.org>
24298
24299         Factorize common .m4 code.
24300         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
24301         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
24302         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
24303         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
24304         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
24305         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
24306         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
24307         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
24308         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
24309         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
24310         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
24311         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
24312         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
24313         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
24314         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
24315         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
24316         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
24317         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
24318         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
24319         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
24320         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
24321         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
24322         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
24323         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
24324         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
24325         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
24326         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
24327         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
24328         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
24329         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
24330         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
24331         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
24332
24333 2010-03-27  Bruno Haible  <bruno@clisp.org>
24334
24335         Fix a compilation error on Cygwin with g++ >= 4.3.
24336         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
24337         if it is undefined or if we alias it to chmod.
24338         (lstat): Don't warn about the use of this function if it is undefined
24339         or if we alias it to stat.
24340         Reported by Simon Josefsson.
24341
24342 2010-03-27  Bruno Haible  <bruno@clisp.org>
24343
24344         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
24345         * modules/getlogin (configure.ac): Update.
24346
24347         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
24348         * modules/getlogin_r (configure.ac): Update.
24349
24350         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
24351         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
24352         * modules/inet_ntop (configure.ac): Update.
24353
24354         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
24355         * modules/inet_pton (configure.ac): Update.
24356
24357         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
24358         * modules/mbslen (configure.ac): Update.
24359
24360         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
24361         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
24362         * modules/forkpty (configure.ac): Update.
24363         * modules/openpty (configure.ac): Update.
24364
24365 2010-03-26  Simon Josefsson  <simon@josefsson.org>
24366
24367         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
24368         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
24369
24370 2010-03-25  Eric Blake  <eblake@redhat.com>
24371
24372         maint: use pragma consistently across replacement headers
24373         * lib/ctype.in.h (system_header): Hoist for consistent placement.
24374         * lib/dirent.in.h (system_header): Likewise.
24375         * lib/errno.in.h (system_header): Likewise.
24376         * lib/float.in.h (system_header): Likewise.
24377         * lib/getopt.in.h (system_header): Likewise.
24378         * lib/iconv.in.h (system_header): Likewise.
24379         * lib/inttypes.in.h (system_header): Likewise.
24380         * lib/langinfo.in.h (system_header): Likewise.
24381         * lib/locale.in.h (system_header): Likewise.
24382         * lib/math.in.h (system_header): Likewise.
24383         * lib/netdb.in.h (system_header): Likewise.
24384         * lib/netinet_in.in.h (system_header): Likewise.
24385         * lib/pty.in.h (system_header): Likewise.
24386         * lib/sched.in.h (system_header): Likewise.
24387         * lib/se-selinux.in.h (system_header): Likewise.
24388         * lib/search.in.h (system_header): Likewise.
24389         * lib/spawn.in.h (system_header): Likewise.
24390         * lib/stdarg.in.h (system_header): Likewise.
24391         * lib/stdint.in.h (system_header): Likewise.
24392         * lib/string.in.h (system_header): Likewise.
24393         * lib/strings.in.h (system_header): Likewise.
24394         * lib/sys_file.in.h (system_header): Likewise.
24395         * lib/sys_ioctl.in.h (system_header): Likewise.
24396         * lib/sys_socket.in.h (system_header): Likewise.
24397         * lib/sys_times.in.h (system_header): Likewise.
24398         * lib/sys_utsname.in.h (system_header): Likewise.
24399         * lib/sys_wait.in.h (system_header): Likewise.
24400         * lib/sysexits.in.h (system_header): Likewise.
24401         * lib/unistd.in.h (system_header): Likewise.
24402         * lib/wctype.in.h (system_header): Likewise.
24403
24404         arpa/inet: fix mingw compilation warning
24405         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
24406         Reported by Matthew Bolte.
24407
24408 2010-03-25  Bruno Haible  <bruno@clisp.org>
24409
24410         Avoid collision between gnulib wrapper and libintl wrapper.
24411         * lib/printf.c (printf): Don't define if a printf wrapper is already
24412         defined in intl/printf.c.
24413         Reported by Michel Boaventura <michel@michelboaventura.com>.
24414
24415 2010-03-25  Bruno Haible  <bruno@clisp.org>
24416
24417         Use ANSI C.
24418         * lib/readutmp.h (getutent): Provide ANSI C prototype.
24419
24420 2010-03-25  Bruno Haible  <bruno@clisp.org>
24421
24422         Minor formatting changes.
24423         * lib/acosl.c: Insert space before function argument list.
24424         * lib/argz.c: Likewise.
24425         * lib/asinl.c: Likewise.
24426         * lib/expl.c: Likewise.
24427         * lib/gen-uni-tables.c: Likewise.
24428         * lib/gettext.h: Likewise.
24429         * lib/glthread/lock.h: Likewise.
24430         * lib/tanl.c: Likewise.
24431         * lib/uniname/uniname.c: Likewise.
24432         * tests/test-idpriv-drop.c: Likewise.
24433         * tests/test-idpriv-droptemp.c: Likewise.
24434         * tests/test-lock.c: Likewise.
24435         * tests/test-tls.c: Likewise.
24436         * lib/argp-help.c: Insert space before function-like macro argument
24437         list.
24438         * lib/memcmp.c: Likewise.
24439         * tests/test-base64.c: Likewise.
24440         * lib/localename.c: Insert space before sizeof's argument list.
24441         * lib/safe-alloc.h: Likewise.
24442         * lib/file-set.h: Insert space before macro argument list.
24443         * tests/test-argp.c: Likewise.
24444         * lib/argp-namefrob.h: Insert space before function parameter list.
24445         * lib/getaddrinfo.c: Likewise.
24446         * lib/netdb.in.h: Likewise.
24447         * lib/parse-duration.h: Likewise.
24448         * lib/parse-duration.c: Likewise.
24449         * lib/poll.c: Likewise.
24450         * lib/select.c: Likewise.
24451         * lib/trim.h: Likewise.
24452         * tests/test-usleep.c: Likewise.
24453         * lib/ldexpl.c: Insert space before function parameter list and before
24454         function argument list.
24455         * lib/logl.c: Likewise.
24456         * lib/sqrtl.c: Likewise.
24457         * lib/trim.c: Likewise.
24458         * lib/cosl.c: Use GNU style indentation. Insert space before function
24459         argument list.
24460         * lib/sinl.c: Likewise.
24461         * lib/tsearch.c: Insert space after 'for'.
24462         Reported by Jim Meyering.
24463
24464 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
24465
24466         * maint.mk (sc_Wundef_boolean): Check for the presence of the
24467         config header before grepping, as it's not present before
24468         autoreconf/configure are run.  Reported by Simon Josefsson.
24469
24470 2010-03-23  Bruno Haible  <bruno@clisp.org>
24471
24472         pt_chown: Make it work with automake < 1.11.
24473         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
24474         Reported by Simon Josefsson.
24475
24476 2010-03-23  Bruno Haible  <bruno@clisp.org>
24477
24478         pt_chown: Don't depend on GPLed modules.
24479         * lib/pt_chown.c: Don't include idpriv.h.
24480         (main): Don't drop privileges.
24481         * modules/pt_chown (Depends-on): Remove idpriv-drop.
24482         Reported by Simon Josefsson.
24483
24484 2010-03-24  Simon Josefsson  <simon@josefsson.org>
24485
24486         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
24487         suggestions from karl@freefriends.org (Karl Berry).
24488
24489 2010-03-22  Eric Blake  <eblake@redhat.com>
24490
24491         gethostname: further tweaks
24492         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
24493         are overriding gethostname.
24494         Suggested by Bruno Haible.
24495
24496 2010-03-21  Bruno Haible  <bruno@clisp.org>
24497
24498         Fix comments.
24499         * lib/forkpty.c (rpl_forkpty): Fix comment.
24500         * lib/openpty.c (rpl_openpty): Likewise.
24501         Reported by Eric Blake.
24502
24503 2010-03-22  Eric Blake  <eblake@redhat.com>
24504
24505         gethostname: fix build on mingw
24506         * lib/unistd.in.h (includes): Work around fact that mingw
24507         <winsock2.h> re-includes <unistd.h>, by avoiding any
24508         redeclarations if we are being included by <winsock2.h>.
24509         Reported by Matthias Bolte.
24510
24511 2010-03-21  Bruno Haible  <bruno@clisp.org>
24512
24513         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
24514         * lib/forkpty.c (forkpty): New replacement function, from glibc with
24515         modifications.
24516         * lib/pty.in.h (forkpty): Update declaration. Add comments.
24517         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
24518         provide the replacement.
24519         * modules/forkpty (Depends-on): Add openpty, login_tty.
24520         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
24521         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
24522         * doc/glibc-functions/forkpty.texi: More supported platforms.
24523         * config/srclist.txt: Add forkpty.c (commented).
24524
24525 2010-03-21  Bruno Haible  <bruno@clisp.org>
24526
24527         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
24528         (Makefile.am): Verify that PTY_LIB is defined.
24529
24530         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
24531
24532 2010-03-21  Bruno Haible  <bruno@clisp.org>
24533
24534         Tests for module 'login_tty'.
24535         * modules/login_tty-tests: New file.
24536         * tests/test-login_tty.c: New file.
24537
24538         New module 'login_tty'.
24539         * lib/login_tty.c: New file.
24540         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
24541         * modules/login_tty: New file.
24542         * doc/glibc-functions/login_tty.texi: Mention the new module.
24543
24544 2010-03-21  Bruno Haible  <bruno@clisp.org>
24545
24546         login_tty: Documentation.
24547         * doc/glibc-functions/login_tty.texi: New file.
24548         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
24549
24550 2010-03-21  Bruno Haible  <bruno@clisp.org>
24551
24552         pty: Consistent macro naming.
24553         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
24554         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
24555         * modules/pty (configure.ac): Update.
24556
24557 2010-03-21  Bruno Haible  <bruno@clisp.org>
24558
24559         Tests for openpty: Make stricter.
24560         * tests/test-openpty.c (main): Add test of canonical processing and
24561         erase.
24562         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
24563
24564         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
24565         * lib/openpty.c (openpty): New replacement function.
24566         * lib/pty.in.h: Include <termios.h>.
24567         (openpty): Update declaration. Add comments.
24568         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
24569         is not declared, arrange to provide the replacement. Check for _getpty
24570         and posix_openpt.
24571         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
24572         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
24573         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
24574         * modules/pty-tests (test_pty_c___LDADD): New variable.
24575         * doc/glibc-functions/openpty.texi: More supported platforms.
24576
24577 2010-03-21  Bruno Haible  <bruno@clisp.org>
24578
24579         setenv: Tweaks.
24580         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
24581         the test program.
24582         * doc/posix-functions/setenv.texi: Update platforms list.
24583
24584 2010-03-21  Bruno Haible  <bruno@clisp.org>
24585
24586         New module 'unlockpt'.
24587         * lib/unlockpt.c: New file, from glibc with modifications.
24588         * m4/unlockpt.m4: New file.
24589         * modules/unlockpt: New file.
24590         * lib/stdlib.in.h (unlockpt): New declaration.
24591         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
24592         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
24593         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
24594         HAVE_UNLOCKPT.
24595         * doc/posix-functions/unlockpt.texi: Mention the new module.
24596         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
24597         * config/srclist.txt: Add unlockpt.c (commented).
24598
24599 2010-03-21  Jim Meyering  <meyering@redhat.com>
24600
24601         maint.mk: prohibit inclusion of "intprops.h" without use
24602         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
24603
24604 2010-03-21  Bruno Haible  <bruno@clisp.org>
24605
24606         New module 'grantpt'.
24607         * lib/grantpt.c: New file, from glibc with modifications.
24608         * m4/grantpt.m4: New file.
24609         * modules/grantpt: New file.
24610         * lib/stdlib.in.h (grantpt): New declaration.
24611         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
24612         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
24613         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
24614         HAVE_GRANTPT.
24615         * doc/posix-functions/grantpt.texi: Mention the new module.
24616         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
24617         * config/srclist.txt: Add grantpt.c (commented).
24618
24619 2010-03-21  Bruno Haible  <bruno@clisp.org>
24620
24621         New module 'pt_chown'.
24622         * lib/pt_chown.c: New file, from glibc with modifications.
24623         * lib/pty-private.h: New file, from glibc with modifications.
24624         * modules/pt_chown: New file.
24625         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
24626
24627 2010-03-21  Bruno Haible  <bruno@clisp.org>
24628
24629         Tests for module 'ptsname'.
24630         * modules/ptsname-tests: New file.
24631         * tests/test-ptsname.c: New file.
24632
24633         New module 'ptsname'.
24634         * lib/ptsname.c: New file, from glibc with modifications.
24635         * m4/ptsname.m4: New file.
24636         * modules/ptsname: New file.
24637         * lib/stdlib.in.h (ptsname): New declaration.
24638         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
24639         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
24640         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
24641         HAVE_PTSNAME.
24642         * doc/posix-functions/ptsname.texi: Mention the new module.
24643         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
24644         * config/srclist.txt: Add ptsname.c (commented).
24645
24646 2010-03-21  Bruno Haible  <bruno@clisp.org>
24647
24648         Tests for module 'ttyname_r'.
24649         * modules/ttyname_r-tests: New file.
24650         * tests/test-ttyname_r.c: New file.
24651
24652         New module 'ttyname_r'.
24653         * lib/ttyname_r.c: New file.
24654         * m4/ttyname_r.m4: New file.
24655         * modules/ttyname_r: New file.
24656         * lib/unistd.in.h (ttyname_r): New declaration.
24657         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
24658         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
24659         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
24660         HAVE_TTYNAME_R.
24661         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
24662         * doc/posix-functions/ttyname_r.texi: Mention the new module.
24663
24664 2010-03-20  Bruno Haible  <bruno@clisp.org>
24665
24666         signal: Undefine macro definitions in C++ mode.
24667         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
24668         sigfillset): Undefine macro definitions from the system header in C++
24669         mode.
24670         Reported by John W. Eaton <jwe@gnu.org>.
24671
24672 2010-03-20  Bruno Haible  <bruno@clisp.org>
24673
24674         Ensure no #include statements inside extern "C" { ... }.
24675         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
24676         contain #include statements.
24677         * lib/time.in.h: Likewise.
24678
24679 2010-03-20  Bruno Haible  <bruno@clisp.org>
24680
24681         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
24682         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
24683         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
24684         Reported by John W. Eaton <jwe@gnu.org>.
24685
24686 2010-03-20  Bruno Haible  <bruno@clisp.org>
24687
24688         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
24689         Reported by Jim Meyering.
24690
24691 2010-03-20  Bruno Haible  <bruno@clisp.org>
24692
24693         pipe: Set errno upon failure.
24694         * lib/pipe.h: Specify that when -1 is returned, errno is set.
24695         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
24696         errno value in error message.
24697
24698 2010-03-20  Bruno Haible  <bruno@clisp.org>
24699             Jim Meyering  <meyering@redhat.com>
24700
24701         lchown: Avoid "unused variable" warning.
24702         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
24703
24704 2010-03-20  Bruno Haible  <bruno@clisp.org>
24705
24706         Work around unlink() bug on MacOS X 10.5.6.
24707         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
24708         attempting to unlink a parent directory.
24709         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
24710         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
24711         activate for the replacement function.
24712         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
24713
24714 2010-03-20  Bruno Haible  <bruno@clisp.org>
24715
24716         Fix link errors on Solaris 8.
24717         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
24718         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
24719
24720 2010-03-19  Jim Meyering  <meyering@redhat.com>
24721
24722         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
24723         The _LIBC implementation of build_range_exp correctly honors the
24724         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
24725         However, the non-_LIBC implementation would ignore that syntax-bit
24726         flag and return REG_ERANGE unconditionally.
24727         This change makes it honor that flag.
24728         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
24729         Make two pointer parameters "const".
24730         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
24731         (parse_bracket_exp): Update caller.
24732
24733         regex.m4: correct the reversed range endpoint ([b-a]) test
24734         * m4/regex.m4: When requiring that [b-a] evoke failure,
24735         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
24736         test pass once again for x86-based systems.
24737
24738 2010-03-19  Bruno Haible  <bruno@clisp.org>
24739
24740         scandir: Fix link error on Solaris 8.
24741         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
24742         macros.
24743
24744 2010-03-19  Bruno Haible  <bruno@clisp.org>
24745
24746         getusershell: Fix documentation.
24747         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
24748         module.
24749         * doc/glibc-functions/setusershell.texi: Likewise.
24750
24751         getusershell: Provide declaration, missing on Solaris 9.
24752         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
24753         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
24754         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
24755         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
24756         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24757         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
24758         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
24759         HAVE_GETUSERSHELL.
24760         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
24761
24762 2010-03-19  Bruno Haible  <bruno@clisp.org>
24763
24764         wctype: Provide iswblank function.
24765         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
24766         exists and is fine.
24767         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
24768         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
24769         * tests/test-wctype.c (main): Re-enable the iswblank tests.
24770         * doc/posix-functions/iswblank.texi: Update.
24771
24772 2010-03-19  Bruno Haible  <bruno@clisp.org>
24773
24774         Tests of module 'pty' in C++ mode.
24775         * modules/pty-tests: New file.
24776         * tests/test-pty-c++.cc: New file.
24777         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
24778
24779 2010-03-19  Eric Blake  <eblake@redhat.com>
24780
24781         logb: fix documentation
24782         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
24783         1.5 declaration bug.
24784
24785         forkpty, openpty: prefer glibc's const-safe prototype
24786         * lib/forkpty.c (rpl_forkpty): New file.
24787         * lib/openpty.c (rpl_openpty): Likewise.
24788         * modules/forkpty (Files): Distribute it.
24789         * modules/openpty (Files): Likewise.
24790         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
24791         check...
24792         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
24793         replacement for for non-const BSD signature.
24794         * modules/pty (Makefile.am): Substitute witnesses.
24795         * lib/pty.in.h (forkpty, openpty): Declare replacements.
24796         * tests/test-forkpty.c: Update signature check.
24797         * tests/test-openpty.c: Likewise.
24798         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
24799         * doc/glibc-functions/openpty.texi (openpty): Likewise.
24800
24801         forkpty, openpty: split functions into new modules
24802         * modules/pty (Makefile.am): Substitute new witnesses.
24803         (Libraries): Move library detection...
24804         * modules/forkpty: ...into new module.
24805         * modules/openpty: Another new module.
24806         * modules/pty-tests: Rename and split...
24807         * modules/forkpty-tests: ...to this...
24808         * modules/openpty-tests: ...and this.
24809         * tests/test-pty.c: Rename and split...
24810         * tests/test-forkpty.c: ...to this...
24811         * tests/test-openpty.c: ...and this.
24812         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
24813         (gl_PTY): Split library searching...
24814         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
24815         (gl_FORKPTY, gl_OPENPTY): New macros.
24816         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
24817         * NEWS: Mention the split.
24818         * MODULES.html.sh (Misc): Document the modules.
24819         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
24820         * doc/glibc-functions/openpty.texi (openpty): Likewise.
24821
24822         pty: improve replacement header
24823         * lib/pty.in.h: New file.
24824         * modules/pty (Files): Ship it.
24825         (Makefile.am): Always build replacement.
24826         * m4/pty.m4: Rename...
24827         * m4/pty_h.m4: ...to this.
24828         (gl_PTY): Modernize setting of witness macros; update check of
24829         forkpty to take proper advantage of cache.
24830         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
24831
24832         getopt: avoid compiler warning
24833         * lib/getopt.c (attribute_hidden): Remove unused macro.
24834
24835 2010-03-18  Bruno Haible  <bruno@clisp.org>
24836
24837         Fix link errors on Solaris 8.
24838         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
24839         * modules/search-tests (test_search_c___LDADD): Likewise.
24840         * modules/signal-tests (test_signal_c___LDADD): Likewise.
24841         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
24842         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
24843         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
24844         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
24845         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
24846         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
24847
24848 2010-03-18  Bruno Haible  <bruno@clisp.org>
24849
24850         Fix bug introduced on 2010-03-14.
24851         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
24852         (gl_SPAWN_H): Require it.
24853         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
24854         Reported by Simon Josefsson.
24855
24856 2010-03-18  Bruno Haible  <bruno@clisp.org>
24857
24858         Fix typo introduced on 2009-12-31.
24859         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
24860         posix_spawn_file_actions_adddup2.
24861
24862 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
24863         and Eric Blake  <eblake@redhat.com>
24864
24865         test-vc-list-files-git: make more robust
24866         * tests/test-vc-list-files-git.sh: Unset problematic environment
24867         variables.  Chain commands together.
24868
24869 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
24870
24871         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
24872         `AC_CHECK_DECL' invocation.
24873
24874 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
24875
24876         * lib/inttostr.c (inttostr): Make sure the invocation of verify
24877         appears before executable statements. Suggested by Petr Sumbera
24878         <Petr.Sumbera@Sun.COM>.
24879
24880 2010-03-14  Bruno Haible  <bruno@clisp.org>
24881
24882         * tests/test-flock.c (test_exclusive): Comment out a test that causes
24883         portability problems. Instead use a simpler test.
24884         (main): Check that invalid arguments are rejected only on Linux.
24885
24886 2010-03-14  Bruno Haible  <bruno@clisp.org>
24887
24888         Fix bug introduced on 2009-12-31.
24889         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
24890         gl_PREREQ_SYS_H_WINSOCK2 always.
24891         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
24892         SYS_SOCKET_H variable.
24893         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
24894         Update comments.
24895         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
24896         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
24897         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
24898         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
24899         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
24900
24901 2010-03-14  Bruno Haible  <bruno@clisp.org>
24902
24903         Fix values returned by sinl, cosl.
24904         * lib/trigl.h: Add specification comments.
24905         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
24906         that combines the values from the precomputed table with the values of
24907         the Chebyshev polynomials.
24908
24909 2010-03-14  Bruno Haible  <bruno@clisp.org>
24910
24911         Fix compilation error when modules 'posix_spawn[p]' are not used.
24912         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
24913         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
24914
24915 2010-03-14  Bruno Haible  <bruno@clisp.org>
24916
24917         Fix compilation error on mingw when module 'time_r' is not used.
24918         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
24919         is 1.
24920         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
24921         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
24922         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
24923         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
24924
24925 2010-03-14  Bruno Haible  <bruno@clisp.org>
24926
24927         Fix compilation error with Sun C.
24928         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
24929         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
24930         instead of GCC specific ULONG_LONG_MAX.
24931         * lib/xstrtoll.c: Likewise.
24932         * lib/xstrtoull.c: Likewise.
24933
24934 2010-03-13  Bruno Haible  <bruno@clisp.org>
24935
24936         Allow the user to disable C++ code and tests.
24937         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
24938         (gl_PROG_ANSI_CXX): Require it.
24939
24940 2010-03-13  Bruno Haible  <bruno@clisp.org>
24941
24942         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
24943         cases.
24944
24945 2010-03-13  Bruno Haible  <bruno@clisp.org>
24946
24947         Test that gnulib does not break the standard C++ headers.
24948         * tests/test-locale-c++2.cc: New file.
24949         * modules/locale-tests (Files): Add it.
24950         (Makefile.am): Compile it for test-locale-c++.
24951         * tests/test-math-c++2.cc: New file.
24952         * modules/math-tests (Files): Add it.
24953         (Makefile.am): Compile it for test-math-c++.
24954         * tests/test-signal-c++2.cc: New file.
24955         * modules/signal-tests (Files): Add it.
24956         (Makefile.am): Compile it for test-signal-c++.
24957         * tests/test-stdio-c++2.cc: New file.
24958         * modules/stdio-tests (Files): Add it.
24959         (Makefile.am): Compile it for test-stdio-c++.
24960         * tests/test-stdlib-c++2.cc: New file.
24961         * modules/stdlib-tests (Files): Add it.
24962         (Makefile.am): Compile it for test-stdlib-c++.
24963         * tests/test-string-c++2.cc: New file.
24964         * modules/string-tests (Files): Add it.
24965         (Makefile.am): Compile it for test-string-c++.
24966         * tests/test-time-c++2.cc: New file.
24967         * modules/time-tests (Files): Add it.
24968         (Makefile.am): Compile it for test-time-c++.
24969         Reported by John W. Eaton <jwe@gnu.org>.
24970
24971 2010-03-13  Bruno Haible  <bruno@clisp.org>
24972
24973         * gnulib-tool (func_usage): Clarify which options are available for
24974         --create-testdir and --create-megatestdir.
24975
24976 2010-03-13  Bruno Haible  <bruno@clisp.org>
24977
24978         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
24979         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
24980         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
24981         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
24982         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
24983         when appropriate.
24984         Reported by Jim Meyering.
24985
24986 2010-03-12  Simon Josefsson  <simon@josefsson.org>
24987
24988         * gnulib-tool (func_import): Explain origin of code.
24989
24990 2010-03-12  Bruno Haible  <bruno@clisp.org>
24991
24992         Fix problem with automake's definition of CXXLINK.
24993         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
24994         Reported by Simon Josefsson and Ludovic Courtès.
24995
24996 2010-03-12  Bruno Haible  <bruno@clisp.org>
24997
24998         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
24999         stable releases.
25000
25001 2010-03-11  Bruno Haible  <bruno@clisp.org>
25002
25003         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
25004         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
25005         whether the system provides one variant or multiple variants of the
25006         function.
25007         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
25008         C++ compilers.
25009         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
25010         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
25011         Reported by Jim Meyering.
25012
25013 2010-03-09  Simon Josefsson  <simon@josefsson.org>
25014
25015         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
25016
25017 2010-03-08  Bruno Haible  <bruno@clisp.org>
25018
25019         gnulib-tool: Add support for --libtool in --create-testdir.
25020         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
25021         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
25022
25023 2010-03-08  Eric Blake  <eblake@redhat.com>
25024
25025         gnulib-tool.texi: mention possibility of git submodule
25026         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
25027         submodules.
25028         * doc/.gitignore: Ignore another generated file.
25029
25030 2010-03-08  Karl Berry  <karl@gnu.org>
25031
25032         * doc/gnulib-tool.texi (VCS Issues): Mention third option
25033         of committing gnulib files while skipping others.
25034
25035 2010-03-07  Bruno Haible  <bruno@clisp.org>
25036
25037         Tests of module 'wctype' in C++ mode.
25038         * tests/test-wctype-c++.cc: New file.
25039         * modules/wctype-tests (Files): Add it and tests/signature.h.
25040         (Depends-on): Add ansi-c++-opt.
25041         (Makefile.am): Arrange to compile and run test-wctype-c++.
25042
25043         Tests of module 'wchar' in C++ mode.
25044         * tests/test-wchar-c++.cc: New file.
25045         * modules/wchar-tests (Files): Add it and tests/signature.h.
25046         (Depends-on): Add ansi-c++-opt.
25047         (Makefile.am): Arrange to compile and run test-wchar-c++.
25048         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
25049         gl_MODULE_INDICATOR.
25050
25051         Tests of module 'unistd' in C++ mode.
25052         * tests/test-unistd-c++.cc: New file.
25053         * modules/unistd-tests (Files): Add it and tests/signature.h.
25054         (Depends-on): Add ansi-c++-opt.
25055         (Makefile.am): Arrange to compile and run test-unistd-c++.
25056         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
25057         gl_MODULE_INDICATOR.
25058
25059         Tests of module 'time' in C++ mode.
25060         * tests/test-time-c++.cc: New file.
25061         * modules/time-tests (Files): Add it and tests/signature.h.
25062         (Depends-on): Add ansi-c++-opt.
25063         (Makefile.am): Arrange to compile and run test-time-c++.
25064         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
25065
25066         Tests of module 'sys_time' in C++ mode.
25067         * tests/test-sys_time-c++.cc: New file.
25068         * modules/sys_time-tests (Files): Add it and tests/signature.h.
25069         (Depends-on): Add ansi-c++-opt.
25070         (Makefile.am): Arrange to compile and run test-sys_time-c++.
25071         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
25072         gl_MODULE_INDICATOR.
25073
25074         Tests of module 'sys_stat' in C++ mode.
25075         * tests/test-sys_stat-c++.cc: New file.
25076         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
25077         (Depends-on): Add ansi-c++-opt.
25078         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
25079         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
25080         gl_MODULE_INDICATOR.
25081
25082         Tests of module 'sys_socket' in C++ mode.
25083         * tests/test-sys_socket-c++.cc: New file.
25084         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
25085         (Depends-on): Add ansi-c++-opt.
25086         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
25087         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
25088         gl_MODULE_INDICATOR.
25089
25090         Tests of module 'sys_select' in C++ mode.
25091         * tests/test-sys_select-c++.cc: New file.
25092         * modules/sys_select-tests (Files): Add it and tests/signature.h.
25093         (Depends-on): Add ansi-c++-opt.
25094         (Makefile.am): Arrange to compile and run test-sys_select-c++.
25095         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
25096         gl_MODULE_INDICATOR.
25097
25098         Tests of module 'sys_ioctl' in C++ mode.
25099         * tests/test-sys_ioctl-c++.cc: New file.
25100         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
25101         (Depends-on): Add ansi-c++-opt.
25102         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
25103         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
25104         gl_MODULE_INDICATOR.
25105
25106         Tests of module 'string' in C++ mode.
25107         * tests/test-string-c++.cc: New file.
25108         * modules/string-tests (Files): Add it and tests/signature.h.
25109         (Depends-on): Add ansi-c++-opt.
25110         (Makefile.am): Arrange to compile and run test-string-c++.
25111         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
25112         gl_MODULE_INDICATOR.
25113
25114         Tests of module 'stdlib' in C++ mode.
25115         * tests/test-stdlib-c++.cc: New file.
25116         * modules/stdlib-tests (Files): Add it and tests/signature.h.
25117         (Depends-on): Add ansi-c++-opt.
25118         (Makefile.am): Arrange to compile and run test-stdlib-c++.
25119         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
25120         gl_MODULE_INDICATOR.
25121
25122         Tests of module 'stdio' in C++ mode.
25123         * tests/test-stdio-c++.cc: New file.
25124         * modules/stdio-tests (Files): Add it and tests/signature.h.
25125         (Depends-on): Add ansi-c++-opt.
25126         (Makefile.am): Arrange to compile and run test-stdio-c++.
25127         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
25128         gl_MODULE_INDICATOR.
25129
25130         Tests of module 'spawn' in C++ mode.
25131         * tests/test-spawn-c++.cc: New file.
25132         * modules/spawn-tests (Files): Add it and tests/signature.h.
25133         (Depends-on): Add ansi-c++-opt.
25134         (Makefile.am): Arrange to compile and run test-spawn-c++.
25135         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
25136         gl_MODULE_INDICATOR.
25137
25138         Tests of module 'signal' in C++ mode.
25139         * tests/test-signal-c++.cc: New file.
25140         * modules/signal-tests (Files): Add it and tests/signature.h.
25141         (Depends-on): Add ansi-c++-opt.
25142         (Makefile.am): Arrange to compile and run test-signal-c++.
25143         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
25144         gl_MODULE_INDICATOR.
25145
25146         Tests of module 'search' in C++ mode.
25147         * tests/test-search-c++.cc: New file.
25148         * modules/search-tests (Files): Add it and tests/signature.h.
25149         (Depends-on): Add ansi-c++-opt.
25150         (Makefile.am): Arrange to compile and run test-search-c++.
25151         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
25152         gl_MODULE_INDICATOR.
25153
25154         Tests of module 'math' in C++ mode.
25155         * tests/test-math-c++.cc: New file.
25156         * modules/math-tests (Files): Add it and tests/signature.h.
25157         (Depends-on): Add ansi-c++-opt.
25158         (Makefile.am): Arrange to compile and run test-math-c++.
25159         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
25160
25161         Tests of module 'locale' in C++ mode.
25162         * tests/test-locale-c++.cc: New file.
25163         * modules/locale-tests (Files): Add it and tests/signature.h.
25164         (Depends-on): Add ansi-c++-opt.
25165         (Makefile.am): Arrange to compile and run test-locale-c++.
25166         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
25167         gl_MODULE_INDICATOR.
25168
25169         Tests of module 'langinfo' in C++ mode.
25170         * tests/test-langinfo-c++.cc: New file.
25171         * modules/langinfo-tests (Files): Add it and tests/signature.h.
25172         (Depends-on): Add ansi-c++-opt.
25173         (Makefile.am): Arrange to compile and run test-langinfo-c++.
25174         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
25175         gl_MODULE_INDICATOR.
25176
25177         Tests of module 'iconv-h' in C++ mode.
25178         * tests/test-iconv-h-c++.cc: New file.
25179         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
25180         (Depends-on): Add ansi-c++-opt.
25181         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
25182
25183         Tests of module 'glob' in C++ mode.
25184         * tests/test-glob-c++.cc: New file.
25185         * modules/glob-tests (Files): Add it.
25186         (Depends-on): Add ansi-c++-opt.
25187         (Makefile.am): Arrange to compile and run test-glob-c++.
25188
25189         Tests of module 'fcntl-h' in C++ mode.
25190         * tests/test-fcntl-h-c++.cc: New file.
25191         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
25192         (Depends-on): Add ansi-c++-opt.
25193         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
25194         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
25195         gl_MODULE_INDICATOR.
25196
25197         Tests of module 'dirent' in C++ mode.
25198         * tests/test-dirent-c++.cc: New file.
25199         * modules/dirent-tests (Files): Add it and tests/signature.h.
25200         (Depends-on): Add ansi-c++-opt.
25201         (Makefile.am): Arrange to compile and run test-dirent-c++.
25202         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
25203         gl_MODULE_INDICATOR.
25204
25205         New module 'ansi-c++-opt'.
25206         * modules/ansi-c++-opt: New file.
25207         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
25208
25209         Document C++ namespace mode.
25210         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
25211
25212         wctype: Avoid #define replacements in C++ mode.
25213         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
25214         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
25215         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
25216         In C++, define a namespaced alias symbol.
25217         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
25218         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
25219         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
25220         rule.
25221
25222         wchar: Avoid #define replacements in C++ mode.
25223         * lib/wchar.in.h: Include c++defs.h.
25224         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
25225         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
25226         symbol.
25227         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
25228         * modules/wchar (Depends-on): Add c++defs.
25229         (Makefile.am): Update wchar.h rule.
25230
25231         unistd: Avoid #define replacements in C++ mode.
25232         * lib/unistd.in.h: Include c++defs.h.
25233         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
25234         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
25235         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
25236         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
25237         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
25238         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
25239         symbol.
25240         (environ): Update.
25241         * modules/unistd (Depends-on): Add c++defs.
25242         (Makefile.am): Update unistd.h rule.
25243
25244         time: Avoid #define replacements in C++ mode.
25245         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
25246         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
25247         define a namespaced alias symbol.
25248         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
25249         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
25250         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
25251         * modules/time (Depends-on): Add c++defs, warn-on-use.
25252         (Makefile.am): Update time.h rule.
25253         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
25254         * modules/nanosleep (configure.ac): Likewise.
25255         * modules/strptime (configure.ac): Likewise.
25256         * modules/timegm (configure.ac): Likewise.
25257
25258         sys_time: Avoid #define replacements in C++ mode.
25259         * lib/sys_time.in.h: Include c++defs.h.
25260         (gettimeofday): In C++, define a namespaced alias symbol.
25261         * modules/sys_time (Depends-on): Add c++defs.
25262         (Makefile.am): Update sys/time.h rule.
25263
25264         sys_stat: Avoid #define replacements in C++ mode.
25265         * lib/sys_stat.in.h: Include c++defs.h.
25266         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
25267         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
25268         namespaced alias symbol.
25269         In C++, define a namespaced alias symbol.
25270         * modules/sys_stat (Depends-on): Add c++defs.
25271         (Makefile.am): Update sys/stat.h rule.
25272
25273         sys_socket: Avoid #define replacements in C++ mode.
25274         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
25275         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
25276         definitions also when the system has a <sys/socket.h>.
25277         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
25278         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
25279         In C++, define a namespaced alias symbol.
25280         * modules/sys_socket (Depends-on): Add c++defs.
25281         (Makefile.am): Update sys/socket.h rule.
25282
25283         sys_select: Avoid #define replacements in C++ mode.
25284         * lib/sys_select.in.h: Include c++defs.h. Enable the function
25285         definitions also when the system has a <sys/select.h>.
25286         (select): In C++, define a namespaced alias symbol.
25287         * modules/sys_select (Depends-on): Add c++defs.
25288         (Makefile.am): Update sys/select.h rule.
25289
25290         sys_ioctl: Avoid #define replacements in C++ mode.
25291         * lib/sys_ioctl.in.h: Include c++defs.h.
25292         (ioctl): In C++, define a namespaced alias symbol.
25293         * modules/sys_ioctl (Depends-on): Add c++defs.
25294         (Makefile.am): Update sys/ioctl.h rule.
25295
25296         string: Avoid #define replacements in C++ mode.
25297         * lib/string.in.h: Include c++defs.h.
25298         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
25299         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
25300         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
25301         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
25302         strsignal, strverscmp): In C++, define a namespaced alias symbol.
25303         * modules/string (Depends-on): Add c++defs.
25304         (Makefile.am): Update string.h rule.
25305
25306         stdlib: Avoid #define replacements in C++ mode.
25307         * lib/stdlib.in.h: Include c++defs.h.
25308         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
25309         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
25310         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
25311         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
25312         symbol.
25313         * modules/stdlib (Depends-on): Add c++defs.
25314         (Makefile.am): Update stdlib.h rule.
25315
25316         stdio: Avoid #define replacements in C++ mode.
25317         * lib/stdio.in.h: Include c++defs.h.
25318         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
25319         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
25320         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
25321         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
25322         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
25323         namespaced alias symbol.
25324         * modules/stdio (Depends-on): Add c++defs.
25325         (Makefile.am): Update stdio.h rule.
25326
25327         spawn: Avoid #define replacements in C++ mode.
25328         * lib/spawn.in.h: Include c++defs.h.
25329         (posix_spawn, posix_spawnp, posix_spawnattr_init,
25330         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
25331         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
25332         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
25333         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
25334         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
25335         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
25336         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
25337         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
25338         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
25339         In C++, define a namespaced alias symbol.
25340         * modules/spawn (Depends-on): Add c++defs.
25341         (Makefile.am): Update spawn.h rule.
25342
25343         signal: Avoid #define replacements in C++ mode.
25344         * lib/signal.in.h: Include c++defs.h.
25345         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
25346         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
25347         namespaced alias symbol.
25348         * modules/signal (Depends-on): Add c++defs.
25349         (Makefile.am): Update signal.h rule.
25350
25351         search: Avoid #define replacements in C++ mode.
25352         * lib/search.in.h: Include c++defs.h.
25353         (_gl_search_compar_fn, _gl_search_action_fn): New types.
25354         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
25355         symbol.
25356         * modules/search (Depends-on): Add c++defs.
25357         (Makefile.am): Update search.h rule.
25358
25359         math: Avoid #define replacements in C++ mode.
25360         * lib/math.in.h: Include c++defs.h.
25361         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
25362         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
25363         trunc, truncl): In C++, define a namespaced alias symbol.
25364         * modules/math (Depends-on): Add c++defs.
25365         (Makefile.am): Update math.h rule.
25366
25367         locale: Avoid #define replacements in C++ mode.
25368         * lib/locale.in.h: Include c++defs.h.
25369         (duplocale): In C++, define a namespaced alias symbol.
25370         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
25371         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
25372         * modules/locale (Depends-on): Add c++defs.
25373         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
25374
25375         langinfo: Avoid #define replacements in C++ mode.
25376         * lib/langinfo.in.h: Include c++defs.h.
25377         (nl_langinfo): In C++, define a namespaced alias symbol.
25378         * modules/langinfo (Depends-on): Add c++defs.
25379         (Makefile.am): Update langinfo.h rule.
25380
25381         iconv-h: Avoid #define replacements in C++ mode.
25382         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
25383         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
25384         symbol.
25385         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
25386         whenever iconv is present.
25387         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
25388         (Makefile.am): Update iconv.h rule.
25389
25390         glob: Avoid #define replacements in C++ mode.
25391         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
25392         (_gl_glob_errfunc_fn): New type.
25393         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
25394         symbol.
25395         * modules/glob (Depends-on): Add c++defs, warn-on-use.
25396         (Makefile.am): Update glob.h rule.
25397
25398         fcntl-h: Avoid #define replacements in C++ mode.
25399         * lib/fcntl.in.h: Include c++defs.h.
25400         (fcntl, open, openat): In C++, define a namespaced alias symbol.
25401         * modules/fcntl-h (Depends-on): Add c++defs.
25402         (Makefile.am): Update fcntl.h rule.
25403
25404         dirent: Avoid #define replacements in C++ mode.
25405         * lib/dirent.in.h: Include c++defs.h.
25406         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
25407         namespaced alias symbol.
25408         (dirfd): Update declaration.
25409         * modules/dirent (Depends-on): Add c++defs.
25410         (Makefile.am): Update dirent.h rule.
25411
25412         ctype: Make it usable in C++ code.
25413         * lib/ctype.in.h: Include c++defs.h.
25414         (isblank): Declare as extern "C".
25415         * modules/ctype (Depends-on): Add c++defs.
25416         (Makefile.am): Update ctype.h rule.
25417
25418         New module 'c++defs'.
25419         * modules/c++defs: New file.
25420         * build-aux/c++defs.h: New file.
25421         Reported by John W. Eaton <jwe@gnu.org>.
25422
25423 2010-03-07  Bruno Haible  <bruno@clisp.org>
25424
25425         logb: Provide missing declaration for Cygwin.
25426         * lib/math.in.h (logb): New declaration.
25427         * m4/logb.m4: New file.
25428         * modules/logb (Files): Add m4/logb.m4.
25429         (Depends-on): Add math.
25430         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
25431         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
25432         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
25433         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
25434         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
25435
25436 2010-03-07  Bruno Haible  <bruno@clisp.org>
25437
25438         Fix test-cond link error.
25439         * tests/test-cond.c: Include <stdio.h>.
25440
25441 2010-03-07  Bruno Haible  <bruno@clisp.org>
25442
25443         Fix test-dirent-safer link error.
25444         * modules/dirent-safer-tests (Makefile.am): Define
25445         test_dirent_safer_LDADD.
25446
25447 2010-03-07  Bruno Haible  <bruno@clisp.org>
25448
25449         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
25450         among default module list.
25451
25452 2010-03-07  Bruno Haible  <bruno@clisp.org>
25453
25454         Fix link error on platforms with GNU libiconv.
25455         * modules/unistr/u8-strcoll-tests (Makefile): Define
25456         test_u8_strcoll_LDADD.
25457         * modules/unistr/u16-strcoll-tests (Makefile): Define
25458         test_u16_strcoll_LDADD.
25459         * modules/unistr/u32-strcoll-tests (Makefile): Define
25460         test_u32_strcoll_LDADD.
25461
25462 2010-03-07  Bruno Haible  <bruno@clisp.org>
25463
25464         Use POSIX declarations for socket functions.
25465         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
25466         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
25467         rpl_sendto): Change declaration to match POSIX.
25468         * lib/connect.c (rpl_connect): Likewise.
25469         * lib/accept.c (rpl_accept): Likewise.
25470         * lib/bind.c (rpl_bind): Likewise.
25471         * lib/getpeername.c (rpl_getpeername): Likewise.
25472         * lib/getsockname.c (rpl_getsockname): Likewise.
25473         * lib/recv.c (rpl_recv): Likewise.
25474         * lib/send.c (rpl_send): Likewise.
25475         * lib/recvfrom.c (rpl_recvfrom): Likewise.
25476         * lib/sendto.c (rpl_sendto): Likewise.
25477
25478 2010-03-06  Bruno Haible  <bruno@clisp.org>
25479
25480         Clarify access, euidaccess, faccessat.
25481         * doc/posix-functions/faccessat.texi: Mention security problem under
25482         "Other problems", not "Portability problems".
25483         * doc/posix-functions/access.texi: Likewise. Mention a related security
25484         problem.
25485         * doc/glibc-functions/euidaccess.texi: Mention security problems.
25486         * lib/euidaccess.c: Add comments about platforms.
25487         * lib/unistd.in.h (access, euidaccess): Add warnings.
25488
25489 2010-03-07  Bruno Haible  <bruno@clisp.org>
25490
25491         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
25492         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
25493         (POSIX_SPAWN_SETSCHEDULER): Likewise.
25494         (POSIX_SPAWN_USEVFORK): Define in a way that works when
25495         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
25496         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
25497         declare when POSIX_SPAWN_SETSCHEDULER is zero.
25498         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
25499         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
25500         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
25501         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
25502         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
25503         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
25504         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
25505         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
25506         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
25507         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
25508         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
25509         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
25510         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
25511         Likewise.
25512         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
25513         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
25514         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
25515         Likewise.
25516         * tests/test-spawn.c (main): Make it work when
25517         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
25518
25519 2010-03-07  Bruno Haible  <bruno@clisp.org>
25520
25521         Fix incorrect Makefile.am generation in German locale.
25522         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
25523         Execute sed command with character range in C locale.
25524
25525 2010-03-06  Bruno Haible  <bruno@clisp.org>
25526
25527         Tests for module 'iconv-h'.
25528         * modules/iconv-h-tests: New file.
25529         * tests/test-iconv-h.c: New file.
25530
25531         New module 'iconv-h'.
25532         * modules/iconv-h: New file.
25533         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
25534         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
25535         (configure.ac): Remove gl_ICONV_H.
25536         (Makefile.am): Remove rule for iconv.h.
25537
25538 2010-03-06  Bruno Haible  <bruno@clisp.org>
25539
25540         More consistent naming of *.m4 files.
25541         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
25542         * modules/wctype (Files): Update.
25543
25544         More consistent naming of *.m4 files.
25545         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
25546         * modules/wchar (Files): Update.
25547
25548 2010-03-06  Jim Meyering  <meyering@redhat.com>
25549
25550         euidaccess: relax license to LGPLv2+
25551         * modules/euidaccess (License): Relax to LGPLv2+.
25552
25553 2010-03-06  Bruno Haible  <bruno@clisp.org>
25554
25555         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
25556         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
25557         (Makefile.am): Augment lib_SOURCES instead.
25558
25559 2010-03-04  Jim Meyering  <meyering@redhat.com>
25560
25561         utime: remove obsolete module
25562         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
25563         unnecessary for years, and has been marked as obsolete for 10 months.
25564         * modules/utime: Remove file.
25565         * lib/utime.c: Remove file.
25566         * m4/utime.m4: Remove file.
25567         * m4/utimes-null.m4: Remove file.
25568         * doc/posix-functions/utime.texi (utime): Remove reference to
25569         the module.  Move the sole "fixed by gnulib" item into the
25570         "problems not fixed by Gnulib" list.
25571         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
25572
25573 2010-03-05  Simon Josefsson  <simon@josefsson.org>
25574
25575         * modules/exit (License): Relax license to LGPLv2+.
25576         (Status): Mark as obsolete.
25577         * NEWS: Mention deprecated 'exit' module.
25578         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
25579         of now obsolete 'exit'.
25580
25581 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25582
25583         fts-lgpl: remove unused module
25584         * modules/fts-lgpl: Remove.
25585         * MODULES.html.sh (func_all_modules): Adjust.
25586         * check-module (find_included_lib_files): Adjust.
25587         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
25588
25589 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
25590
25591         copy-acl: enhance Solaris ACL error handling
25592         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
25593         * lib/set-mode-acl.c (qset_acl): Likewise.
25594
25595 2010-03-02  Bruno Haible  <bruno@clisp.org>
25596
25597         spawn: Don't override the system defined values on FreeBSD 8.
25598         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
25599         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
25600         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
25601         if HAVE_POSIX_SPAWN is 1.
25602         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
25603
25604 2010-03-01  Bruno Haible  <bruno@clisp.org>
25605
25606         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
25607         regarding Automake.
25608
25609 2010-02-25  Bruno Haible  <bruno@clisp.org>
25610
25611         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
25612         * gnulib-tool: Define 'echo' as a function only before the ksh alias
25613         setting, not afterwards.
25614         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
25615
25616 2010-02-24  Eric Blake  <eblake@redhat.com>
25617
25618         bootstrap, git-version-gen: use timestamp
25619         * build-aux/git-version-gen (scriptversion): Force UTC.
25620         * build-aux/bootstrap (scriptversion): New variable.
25621
25622         bootstrap: allow older git
25623         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
25624         older than 1.6.4.  Requested by the libvirt project.
25625
25626 2010-02-23  Eric Blake  <eblake@redhat.com>
25627
25628         warn-on-use: work with old autoconf
25629         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
25630         AS_VAR semantics of autoconf 2.60.
25631         Reported by Bruno Haible.
25632
25633         bootstrap: improve some comments
25634         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
25635         clarification comments.
25636
25637         gettimeofday: provide correct function
25638         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
25639         when replacement is declared, otherwise provide gettimeofday.
25640         Reported by Michael Goffioul.
25641
25642 2010-02-23  Jim Meyering  <meyering@redhat.com>
25643
25644         lib-ignore: relax license to "unlimited", not LGPLv2+
25645         * modules/lib-ignore (License): Relax to "unlimited".
25646
25647 2010-02-23  Jim Meyering  <meyering@redhat.com>
25648
25649         lib-ignore: relax license to LGPLv2+
25650         * modules/lib-ignore (License): Relax to LGPLv2+.
25651
25652 2010-02-22  Eric Blake  <eblake@redhat.com>
25653
25654         lseek: avoid bash 3.2 broken pipe bug
25655         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
25656         warning from bash 3.2.
25657         Reported by Ben Pfaff, with analysis from Bruno Haible.
25658
25659         bootstrap: support non-FSF copyright holder
25660         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
25661         bootstrap.conf override of COPYRIGHT_HOLDER.
25662         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
25663
25664         bootstrap: interoperate with gettext 0.14.1
25665         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
25666
25667         bootstrap: allow for alternate submodule location
25668         * build-aux/bootstrap (gnulib_path): New variable; use instead of
25669         hardcoding submodule location.
25670         (gnulib_mk): Allow direct use of Makefile.am.
25671
25672         bootstrap: use GNULIB_SRCDIR to reduce disk usage
25673         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
25674         rather than reconfiguring where the submodule points.
25675
25676         gettimeofday: restore support for platforms that lack function
25677         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
25678         replacement if function is missing.
25679         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
25680         * modules/sys_time (Makefile.am): Substitute it.
25681         * lib/sys_time.in.h (gettimeofday): Check it.
25682         Reported by Michael Goffioul.
25683
25684 2010-02-21  Bruno Haible  <bruno@clisp.org>
25685
25686         * lib/stdio.in.h (obstack_printf): Fix typo.
25687
25688 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
25689
25690         vc-list-files: use bzr ls's -R option
25691         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
25692         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
25693
25694 2010-02-21  Jim Meyering  <meyering@redhat.com>
25695
25696         init.sh: fix EXEEXT shims to work also for names like test-prog
25697         * tests/init.sh: Re-exec a better shell, when needed.
25698         If the current shell lacks support for posix $(...), an init.sh-using
25699         test will now try to find a shell that supports that.  If EXEEXT is
25700         nonempty, we also require support for hyphen-in-alias-name and shell
25701         substitutions like ${var#glob}.  Failure to find such a shell results
25702         in a skipped test.
25703
25704 2010-02-21  Bruno Haible  <bruno@clisp.org>
25705
25706         Really work around around "broken pipe" error message from bash 3.2.
25707         * gnulib-tool (func_reset_sigpipe): Remove function.
25708         (echo): In bash 3.2, define to a function that uses printf.
25709         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
25710
25711 2010-02-20  Bruno Haible  <bruno@clisp.org>
25712
25713         Restore support for automake 1.9.6 with autoconf 2.61.
25714         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
25715         Reported by James Youngman <jay@gnu.org>.
25716
25717 2010-02-20  Bruno Haible  <bruno@clisp.org>
25718
25719         Improve *printf warning condition.
25720         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
25721         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
25722         and the function is overridden due to SIGPIPE emulation.
25723
25724 2010-02-20  Bruno Haible  <bruno@clisp.org>
25725
25726         * lib/stdio.in.h: Tweak comments.
25727
25728 2010-02-19  Bruno Haible  <bruno@clisp.org>
25729
25730         Make it easier to find modules. New gnulib-tool option '--find'.
25731         * gnulib-tool: New option --find.
25732         (func_usage): Document it.
25733         (func_sanitize_modulelist): New function, extracted from
25734         func_all_modules.
25735         (func_all_modules): Invoke it.
25736         * doc/gnulib-tool.texi (Which modules?): New node.
25737
25738 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
25739
25740         * lib/sys_select.in.h: Provide select replacement even if
25741         sys/select.h exists on a system, for Interix.
25742
25743 2010-02-18  Jim Meyering  <meyering@redhat.com>
25744
25745         init.sh: don't use $(...) just yet
25746         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
25747         to accommodate e.g., Solaris' /bin/sh.
25748
25749 2010-02-17  Bruno Haible  <bruno@clisp.org>
25750
25751         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
25752         Reported by Ludovic Courtès <ludo@gnu.org>.
25753
25754 2010-02-16  Simon Josefsson  <simon@josefsson.org>
25755
25756         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
25757         linking with -lintl.
25758
25759 2010-02-17  Simon Josefsson  <simon@josefsson.org>
25760
25761         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
25762         if not provided by the system's netdb.h.  Reported by
25763         ludo@gnu.org (Ludovic Courtès).
25764
25765 2010-02-15  Jim Meyering  <meyering@redhat.com>
25766
25767         init.sh: improve portability and efficiency
25768         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
25769         "dummy" in a for loop.
25770         Use '!', not '^' to select the complement of a character set used
25771         in a "case" statement.
25772         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
25773         Suggestions from Eric Blake.
25774
25775         init.sh: automatically accommodate programs with the .exe suffix
25776         Automatically arrange for an invocation of "prog" to execute the
25777         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
25778         may use the simpler "prog", yet still work when built on a system
25779         that requires specifying the added suffix.
25780         Do this by constructing a function named "prog" that invokes
25781         "prog.exe" for each .exe file in selected directories.
25782         * tests/init.sh (find_exe_basenames_): New function.
25783         (create_exe_shim_functions_): New function.
25784         (path_prepend_): Use it.
25785
25786         maint.mk: mark syntax-check sc_*.m rules as .PHONY
25787         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
25788         "make -t syntax-check" doesn't create a ton of sc_*.m files.
25789
25790 2010-02-14  Jim Meyering  <meyering@redhat.com>
25791
25792         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
25793         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
25794         (sc_prohibit_hash_pjw_without_use): New rule.
25795
25796         maint.mk: allow the default upload destination dir to be overridden
25797         * top/maint.mk (upload_dest_dir_): Define with a default that
25798         preserves the status quo.
25799         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
25800         Reported by Peter Simons.
25801
25802         maint.mk: prohibit inclusion of "hash.h" without_use
25803         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
25804
25805 2010-02-10  Jim Meyering  <meyering@redhat.com>
25806
25807         maint.mk: prohibit inclusion of "ignore-value.h" without_use
25808         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
25809
25810 2010-02-09  Eric Blake  <ebb9@byu.net>
25811         and Bruno Haible  <bruno@clisp.org>
25812
25813         obstack-printf-posix: ensure declaration
25814         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
25815         extracted from gl_FUNC_OBSTACK_PRINTF.
25816         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
25817         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
25818         Likewise.
25819         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
25820         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
25821         0.
25822
25823 2010-02-08  Bruno Haible  <bruno@clisp.org>
25824
25825         gnulib-tool: Fix typo in 2010-02-07 commit.
25826         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
25827         Reported by Eric Blake.
25828
25829 2010-02-07  Bruno Haible  <bruno@clisp.org>
25830
25831         gnulib-tool: Fix up caching patches.
25832         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
25833         option --no-cache. Use associative arrays when supported by the shell.
25834         (sed_comments): New variable.
25835         (modcache): Renamed from do_cache.
25836         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
25837         abbreviate unnecessarily.
25838         (have_associative): New variable.
25839         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
25840         way also for ksh and zsh.
25841         (func_init_sed_convert_to_cache_statements): New function, extracted
25842         from func_cache_lookup_module. Add support for associative arrays.
25843         Don't set the c_MODULE_cached variable here. Ignore all lines before
25844         the first field header. Remove only the final newline, not all trailing
25845         newlines. Support empty fields correctly. Limit the use of 'eval' to
25846         assignments.
25847         (func_get_description, func_get_status, func_get_notice,
25848         func_get_applicability, func_get_filelist, func_get_dependencies,
25849         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
25850         func_get_automake_snippet, func_get_include_directive,
25851         func_get_link_directive, func_get_license, func_get_maintainer):
25852         Update documentation. List the unoptimized code first. Add support for
25853         associative arrays. Limit the use of 'eval' to assignments.
25854         (func_get_applicability): Undo stylistic pessimisations.
25855         (func_get_automake_snippet, func_get_include_directive): Reduce code
25856         duplication.
25857         (func_modules_transitive_closure, func_modules_add_dummy,
25858         func_modules_notice, func_modules_to_filelist, func_add_file,
25859         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
25860         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
25861         func_create_testdir, func_create_megatestdir): Update documentation.
25862
25863 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25864
25865         * gnulib-tool (func_cache_lookup_module): Store the module name
25866         belonging to the cache variable; error out if two different
25867         module names map to the same cache variable name.
25868
25869 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25870
25871         gnulib-tool: Make caching optional.
25872         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
25873         Update matching short versions of --no-changelog.
25874         (func_usage): Update.
25875         (sed_extract_cache_prog): Renamed from ...
25876         (sed_extract_prog): ... this; revert to old extraction script.
25877         (func_get_description, func_get_status)
25878         (func_get_notice, func_get_applicability, func_get_filelist)
25879         (func_get_dependencies, func_get_autoconf_early_snippet)
25880         (func_get_autoconf_snippet, func_get_automake_snippet)
25881         (func_get_include_directive, func_get_link_directive)
25882         (func_get_license, func_get_maintainer): If $do_cache is false,
25883         use old, non-caching extraction scripts.
25884         Suggestion by Bruno Haible.
25885
25886 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25887
25888         gnulib-tool: cache module metainformation.
25889         * gnulib-tool (sed_extract_prog): Match newline before each
25890         header, and rewrite header to a shell variable suffix.
25891         (func_cache_var, func_cache_lookup_module): New functions,
25892         to turn a module name into a cache variable prefix, and to
25893         look up and cache module metainformation.
25894         (func_get_description, func_get_status)
25895         (func_get_notice, func_get_applicability, func_get_filelist)
25896         (func_get_dependencies, func_get_autoconf_early_snippet)
25897         (func_get_autoconf_snippet, func_get_automake_snippet)
25898         (func_get_include_directive, func_get_link_directive)
25899         (func_get_license, func_get_maintainer): Use
25900         func_cache_lookup_module.
25901
25902 2010-02-07  Bruno Haible  <bruno@clisp.org>
25903
25904         fnctl: Fix missing dependency.
25905         * modules/fcntl (Depends-on): Add getdtablesize.
25906         Reported by John W. Eaton <jwe@gnu.org>.
25907
25908 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
25909
25910         Argp: fix recognition of short alias options.
25911
25912         * lib/argp-parse.c (convert_options): Fix improper use of
25913         `|' between character values.
25914         * tests/test-argp.c (group1_option): New alias option
25915         --read (-r).
25916         (group1_parser): Special handling for 'r'.
25917         (test15): New test case.
25918         (test_fun): Add test15.
25919         * tests/test-argp-2.sh: Update expected --help and --usage
25920         outputs.
25921
25922 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
25923
25924         * tests/test-argp.c: Fix indentation.
25925
25926 2010-02-04  Eric Blake  <ebb9@byu.net>
25927
25928         gettimeofday: expose type of second argument
25929         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
25930         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
25931         * tests/test-gettimeofday.c: Use it to silence warning.
25932         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
25933         the issue.
25934
25935 2010-02-03  Jim Meyering  <meyering@redhat.com>
25936
25937         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
25938         * lib/regcomp.c (TYPE_SIGNED): Define.
25939         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
25940
25941         regcomp.c: avoid a new -Wshadow warning
25942         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
25943
25944 2010-02-01  Jim Meyering  <meyering@redhat.com>
25945
25946         removing useless parentheses in cpp #define directives
25947         For motivation, see commit c0221df4, "define STREQ(a,b)
25948         consistently, removing useless parentheses"
25949         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
25950         * lib/mountlist.c (MNT_IGNORE): Likewise.
25951         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
25952
25953 2010-02-01  Eric Blake  <ebb9@byu.net>
25954
25955         sys_time: use link-warning
25956         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
25957         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
25958         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
25959         * modules/sys_time (Depends-on): Add warn-on-use.
25960         (Makefile.am): Always build replacement.
25961         (configure.ac): Update substitutions.
25962         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
25963         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
25964         bother with SYS_TIME_H.
25965         * modules/gettimeofday (configure.ac): Declare indicator.
25966         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
25967         in use.
25968
25969         closein-tests: silence compiler warning
25970         * tests/test-closein.c (main): Ignore fread result.
25971         * modules/closein-tests (Depends-on): Add ignore-value.
25972
25973         tests: silence warning about system return
25974         * tests/test-areadlink-with-size.c (main): Ignore system result.
25975         * tests/test-areadlink.c (main): Likewise.
25976         * tests/test-areadlinkat-with-size.c (main): Likewise.
25977         * tests/test-areadlinkat.c (main): Likewise.
25978         * tests/test-canonicalize-lgpl.c (main): Likewise.
25979         * tests/test-canonicalize.c (main): Likewise.
25980         * tests/test-chown.c (main): Likewise.
25981         * tests/test-fchownat.c (main): Likewise.
25982         * tests/test-fdutimensat.c (main): Likewise.
25983         * tests/test-fstatat.c (main): Likewise.
25984         * tests/test-futimens.c (main): Likewise.
25985         * tests/test-lchown.c (main): Likewise.
25986         * tests/test-link.c (main): Likewise.
25987         * tests/test-linkat.c (main): Likewise.
25988         * tests/test-lstat.c (main): Likewise.
25989         * tests/test-mkdir.c (main): Likewise.
25990         * tests/test-mkdirat.c (main): Likewise.
25991         * tests/test-mkfifo.c (main): Likewise.
25992         * tests/test-mkfifoat.c (main): Likewise.
25993         * tests/test-mknod.c (main): Likewise.
25994         * tests/test-readlink.c (main): Likewise.
25995         * tests/test-remove.c (main): Likewise.
25996         * tests/test-rename.c (main): Likewise.
25997         * tests/test-renameat.c (main): Likewise.
25998         * tests/test-rmdir.c (main): Likewise.
25999         * tests/test-symlink.c (main): Likewise.
26000         * tests/test-symlinkat.c (main): Likewise.
26001         * tests/test-unlink.c (main): Likewise.
26002         * tests/test-unlinkat.c (main): Likewise.
26003         * tests/test-utimens.c (main): Likewise.
26004         * tests/test-utimensat.c (main): Likewise.
26005         * modules/areadlink-tests (Depends-on): Add ignore-value.
26006         * modules/areadlink-with-size-tests (Depends-on): Likewise.
26007         * modules/areadlinkat-tests (Depends-on): Likewise.
26008         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
26009         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
26010         * modules/canonicalize-tests (Depends-on): Likewise.
26011         * modules/chown-tests (Depends-on): Likewise.
26012         * modules/fdutimensat-tests (Depends-on): Likewise.
26013         * modules/futimens-tests (Depends-on): Likewise.
26014         * modules/lchown-tests (Depends-on): Likewise.
26015         * modules/link-tests (Depends-on): Likewise.
26016         * modules/linkat-tests (Depends-on): Likewise.
26017         * modules/lstat-tests (Depends-on): Likewise.
26018         * modules/mkdir-tests (Depends-on): Likewise.
26019         * modules/mkfifo-tests (Depends-on): Likewise.
26020         * modules/mkfifoat-tests (Depends-on): Likewise.
26021         * modules/mknod-tests (Depends-on): Likewise.
26022         * modules/openat-tests (Depends-on): Likewise.
26023         * modules/readlink-tests (Depends-on): Likewise.
26024         * modules/remove-tests (Depends-on): Likewise.
26025         * modules/rename-tests (Depends-on): Likewise.
26026         * modules/renameat-tests (Depends-on): Likewise.
26027         * modules/rmdir-tests (Depends-on): Likewise.
26028         * modules/symlink-tests (Depends-on): Likewise.
26029         * modules/symlinkat-tests (Depends-on): Likewise.
26030         * modules/unlink-tests (Depends-on): Likewise.
26031         * modules/utimens-tests (Depends-on): Likewise.
26032         * modules/utimensat-tests (Depends-on): Likewise.
26033
26034 2010-01-31  Bruno Haible  <bruno@clisp.org>
26035
26036         Perform the same test for many <math.h> functions.
26037         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
26038         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
26039         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
26040         of gl_MATHFUNC.
26041         * modules/acos (configure.ac): Likewise.
26042         * modules/asin (configure.ac): Likewise.
26043         * modules/atan (configure.ac): Likewise.
26044         * modules/atan2 (configure.ac): Likewise.
26045         * modules/cbrt (configure.ac): Likewise.
26046         * modules/copysign (configure.ac): Likewise.
26047         * modules/cos (configure.ac): Likewise.
26048         * modules/cosh (configure.ac): Likewise.
26049         * modules/erf (configure.ac): Likewise.
26050         * modules/erfc (configure.ac): Likewise.
26051         * modules/exp (configure.ac): Likewise.
26052         * modules/fmod (configure.ac): Likewise.
26053         * modules/hypot (configure.ac): Likewise.
26054         * modules/j0 (configure.ac): Likewise.
26055         * modules/j1 (configure.ac): Likewise.
26056         * modules/jn (configure.ac): Likewise.
26057         * modules/lgamma (configure.ac): Likewise.
26058         * modules/log (configure.ac): Likewise.
26059         * modules/log10 (configure.ac): Likewise.
26060         * modules/log1p (configure.ac): Likewise.
26061         * modules/pow (configure.ac): Likewise.
26062         * modules/remainder (configure.ac): Likewise.
26063         * modules/sin (configure.ac): Likewise.
26064         * modules/sinh (configure.ac): Likewise.
26065         * modules/tan (configure.ac): Likewise.
26066         * modules/tanh (configure.ac): Likewise.
26067         * modules/y0 (configure.ac): Likewise.
26068         * modules/y1 (configure.ac): Likewise.
26069         * modules/yn (configure.ac): Likewise.
26070         Suggested by Paolo Bonzini.
26071
26072 2010-01-31  Bruno Haible  <bruno@clisp.org>
26073
26074         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
26075
26076 2010-01-31  Bruno Haible  <bruno@clisp.org>
26077
26078         Work around getdelim() bug on FreeBSD 8.0.
26079         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
26080         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
26081         not work.
26082         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
26083         is 1.
26084         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
26085         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
26086         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
26087         a non-zero size.
26088         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
26089
26090 2010-01-31  Bruno Haible  <bruno@clisp.org>
26091
26092         Work around getline() bug on FreeBSD 8.0.
26093         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
26094         and a non-zero size.
26095         * tests/test-getline.c (main): Likewise.
26096         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
26097         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
26098
26099 2010-01-28  Eric Blake  <ebb9@byu.net>
26100
26101         regex: fix build failure
26102         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
26103         platforms.
26104
26105 2010-01-28  Jim Meyering  <meyering@redhat.com>
26106
26107         regex: do not ignore memory allocation failure
26108         * lib/regex_internal.c (create_cd_newstate): Detect
26109         re_node_set_init_copy failure.   Extracted from glibc commit
26110         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
26111
26112         regex: sync more white-space changes from libc
26113         * lib/regex_internal.c: White-space only changes.
26114         * lib/regexec.c: Likewise.
26115
26116         regex: add many uses of __attribute_warn_unused_result__
26117         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
26118         * lib/regexec.c: Likewise.
26119         Extracted from a messy glibc commit.
26120
26121         regcomp.c: spelling and merge-artifact from glibc
26122         * lib/regcomp.c: Merge remainder of glibc's
26123         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
26124
26125         regcomp.c: sync white-space changes from glibc
26126         * lib/regcomp.c: Merge to accommodate white space
26127         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
26128
26129         regcomp.c: do not ignore internal return values
26130         * lib/regcomp.c: Do not ignore internal return values.
26131         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
26132         but without its white-space changes and spelling fixes.
26133
26134         regex_internal.h: define __attribute_warn_unused_result__
26135         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
26136
26137         maint: add a syntax-check rule to check for vulnerable Makefile.in
26138         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
26139
26140 2010-01-27  Jim Meyering  <meyering@redhat.com>
26141
26142         ncftpput-ftp: clean up spaces
26143         * build-aux/ncftpput-ftp: Make Copyright line consistent.
26144         Remove trailing blanks.
26145
26146 2010-01-27  Simon Josefsson  <simon@josefsson.org>
26147
26148         * build-aux/git-version-gen: Fix copyright statement.
26149         * build-aux/gnupload: Likewise.
26150         * tests/test-arcfour.c: Likewise.
26151         * tests/test-arctwo.c: Likewise.
26152         * tests/test-count-one-bits.c: Likewise.
26153         * tests/test-crc.c: Likewise.
26154         * tests/test-des.c: Likewise.
26155         * tests/test-gc-arcfour.c: Likewise.
26156         * tests/test-gc-arctwo.c: Likewise.
26157         * tests/test-gc-des.c: Likewise.
26158         * tests/test-gc-hmac-md5.c: Likewise.
26159         * tests/test-gc-hmac-sha1.c: Likewise.
26160         * tests/test-gc-md2.c: Likewise.
26161         * tests/test-gc-md4.c: Likewise.
26162         * tests/test-gc-md5.c: Likewise.
26163         * tests/test-gc-pbkdf2-sha1.c: Likewise.
26164         * tests/test-gc-rijndael.c: Likewise.
26165         * tests/test-gc-sha1.c: Likewise.
26166         * tests/test-gc.c: Likewise.
26167         * tests/test-gethostname.c: Likewise.
26168         * tests/test-gettimeofday.c: Likewise.
26169         * tests/test-hash.c: Likewise.
26170         * tests/test-hmac-md5.c: Likewise.
26171         * tests/test-hmac-sha1.c: Likewise.
26172         * tests/test-md2.c: Likewise.
26173         * tests/test-md4.c: Likewise.
26174         * tests/test-md5.c: Likewise.
26175         * tests/test-memchr.c: Likewise.
26176         * tests/test-memchr2.c: Likewise.
26177         * tests/test-memcmp.c: Likewise.
26178         * tests/test-memmem.c: Likewise.
26179         * tests/test-memrchr.c: Likewise.
26180         * tests/test-rawmemchr.c: Likewise.
26181         * tests/test-read-file.c: Likewise.
26182         * tests/test-rijndael.c: Likewise.
26183         * tests/test-sockets.c: Likewise.
26184         * tests/test-strchrnul.c: Likewise.
26185         * tests/test-strstr.c: Likewise.
26186         * tests/test-strtod.c: Likewise.
26187         * build-aux/ncftpput-ftp: Likewise.
26188
26189 2010-01-26  Eric Blake  <ebb9@byu.net>
26190
26191         ignore-value: update recommended header name
26192         * modules/ignore-value (Include): Only use <> for headers that
26193         exist in glibc.
26194
26195 2010-01-26  Jim Meyering  <meyering@redhat.com>
26196
26197         test-userspec.c: avoid compiler warnings
26198         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
26199         and "initialization discards qualifiers..." warnings.
26200         Put the first "uid" in its own scope, and make char* members "const".
26201
26202 2010-01-25  Bruno Haible  <bruno@clisp.org>
26203
26204         gnulib-tool: Make warning diagnostics consistent.
26205         * gnulib-tool (func_warning): New function.
26206         Use it everywhere where gnulib-tool produces output to stderr and it is
26207         not a fatal error.
26208
26209 2010-01-25  Bruno Haible  <bruno@clisp.org>
26210
26211         Fix test dependencies.
26212         * modules/xstrtol-tests (Depends-on): Add inttypes.
26213         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
26214
26215 2010-01-25 Pádraig Brady <P@draigBrady.com>
26216
26217         syntax-check: detect incorrect boolean macro values in config.h
26218         * modules/maintainer-makefile (configure.ac): Parameterize the location
26219         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
26220         The logic is from Eric Blake and the location indicated by Jim Meyering.
26221         Note the more natural CONFIG_HEADER name is prohibited by automake
26222         for backwards compatibility reasons.
26223         * top/maint.mk (sc_Wundef_boolean): New rule.
26224
26225 2010-01-25  Jim Meyering  <meyering@redhat.com>
26226
26227         bootstrap: detect MacOS 10.6's shasum, too
26228         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
26229         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
26230
26231 2010-01-23  Jim Meyering  <meyering@redhat.com>
26232
26233         xstrtoll: new module
26234         * modules/xstrtoll: New file.
26235         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
26236         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
26237         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
26238         ./configure fails if you use this module and lack "long long".
26239         * modules/xstrtoll-tests: New module.
26240         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
26241         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
26242         new init.sh-based test framework.
26243
26244 2010-01-24  Bruno Haible  <bruno@clisp.org>
26245
26246         Tests for module 'yn'.
26247         * modules/yn-tests: New file.
26248         * tests/test-yn.c: New file.
26249
26250         Tests for module 'y1'.
26251         * modules/y1-tests: New file.
26252         * tests/test-y1.c: New file.
26253
26254         Tests for module 'y0'.
26255         * modules/y0-tests: New file.
26256         * tests/test-y0.c: New file.
26257
26258         Tests for module 'tanh'.
26259         * modules/tanh-tests: New file.
26260         * tests/test-tanh.c: New file.
26261
26262         Tests for module 'tan'.
26263         * modules/tan-tests: New file.
26264         * tests/test-tan.c: New file.
26265
26266         Tests for module 'sqrt'.
26267         * modules/sqrt-tests: New file.
26268         * tests/test-sqrt.c: New file.
26269
26270         Tests for module 'sinh'.
26271         * modules/sinh-tests: New file.
26272         * tests/test-sinh.c: New file.
26273
26274         Tests for module 'sin'.
26275         * modules/sin-tests: New file.
26276         * tests/test-sin.c: New file.
26277
26278         Tests for module 'rint'.
26279         * modules/rint-tests: New file.
26280         * tests/test-rint.c: New file.
26281
26282         Tests for module 'remainder'.
26283         * modules/remainder-tests: New file.
26284         * tests/test-remainder.c: New file.
26285
26286         Tests for module 'pow'.
26287         * modules/pow-tests: New file.
26288         * tests/test-pow.c: New file.
26289
26290         Tests for module 'nextafter'.
26291         * modules/nextafter-tests: New file.
26292         * tests/test-nextafter.c: New file.
26293
26294         Tests for module 'modf'.
26295         * modules/modf-tests: New file.
26296         * tests/test-modf.c: New file.
26297
26298         Tests for module 'logb'.
26299         * modules/logb-tests: New file.
26300         * tests/test-logb.c: New file.
26301
26302         Tests for module 'log1p'.
26303         * modules/log1p-tests: New file.
26304         * tests/test-log1p.c: New file.
26305
26306         Tests for module 'log10'.
26307         * modules/log10-tests: New file.
26308         * tests/test-log10.c: New file.
26309
26310         Tests for module 'log'.
26311         * modules/log-tests: New file.
26312         * tests/test-log.c: New file.
26313
26314         Tests for module 'lgamma'.
26315         * modules/lgamma-tests: New file.
26316         * tests/test-lgamma.c: New file.
26317
26318         Tests for module 'ldexp'.
26319         * modules/ldexp-tests: New file.
26320         * tests/test-ldexp.c: New file.
26321
26322         Tests for module 'jn'.
26323         * modules/jn-tests: New file.
26324         * tests/test-jn.c: New file.
26325
26326         Tests for module 'j1'.
26327         * modules/j1-tests: New file.
26328         * tests/test-j1.c: New file.
26329
26330         Tests for module 'j0'.
26331         * modules/j0-tests: New file.
26332         * tests/test-j0.c: New file.
26333
26334         Tests for module 'hypot'.
26335         * modules/hypot-tests: New file.
26336         * tests/test-hypot.c: New file.
26337
26338         Tests for module 'fmod'.
26339         * modules/fmod-tests: New file.
26340         * tests/test-fmod.c: New file.
26341
26342         Tests for module 'fabs'.
26343         * modules/fabs-tests: New file.
26344         * tests/test-fabs.c: New file.
26345
26346         Tests for module 'exp'.
26347         * modules/exp-tests: New file.
26348         * tests/test-exp.c: New file.
26349
26350         Tests for module 'erfc'.
26351         * modules/erfc-tests: New file.
26352         * tests/test-erfc.c: New file.
26353
26354         Tests for module 'erf'.
26355         * modules/erf-tests: New file.
26356         * tests/test-erf.c: New file.
26357
26358         Tests for module 'cosh'.
26359         * modules/cosh-tests: New file.
26360         * tests/test-cosh.c: New file.
26361
26362         Tests for module 'cos'.
26363         * modules/cos-tests: New file.
26364         * tests/test-cos.c: New file.
26365
26366         Tests for module 'copysign'.
26367         * modules/copysign-tests: New file.
26368         * tests/test-copysign.c: New file.
26369
26370         Tests for module 'cbrt'.
26371         * modules/cbrt-tests: New file.
26372         * tests/test-cbrt.c: New file.
26373
26374         Tests for module 'atan2'.
26375         * modules/atan2-tests: New file.
26376         * tests/test-atan2.c: New file.
26377
26378         Tests for module 'atan'.
26379         * modules/atan-tests: New file.
26380         * tests/test-atan.c: New file.
26381
26382         Tests for module 'asin'.
26383         * modules/asin-tests: New file.
26384         * tests/test-asin.c: New file.
26385
26386         Tests for module 'acos'.
26387         * modules/acos-tests: New file.
26388         * tests/test-acos.c: New file.
26389
26390 2010-01-24  Bruno Haible  <bruno@clisp.org>
26391
26392         Fix tests for common <math.h> functions.
26393         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
26394         code snippet that references the function pointer, rather than merely
26395         calling the function. Substitute the FUNC_LIBM variable.
26396         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
26397         * modules/acos (configure.ac): Likewise.
26398         * modules/asin (configure.ac): Likewise.
26399         * modules/atan (configure.ac): Likewise.
26400         * modules/atan2 (configure.ac): Likewise.
26401         * modules/cbrt (configure.ac): Likewise.
26402         * modules/copysign (configure.ac): Likewise.
26403         * modules/cos (configure.ac): Likewise.
26404         * modules/cosh (configure.ac): Likewise.
26405         * modules/erf (configure.ac): Likewise.
26406         * modules/erfc (configure.ac): Likewise.
26407         * modules/exp (configure.ac): Likewise.
26408         * modules/fabs (configure.ac): Likewise.
26409         * modules/fmod (configure.ac): Likewise.
26410         * modules/hypot (configure.ac): Likewise.
26411         * modules/j0 (configure.ac): Likewise.
26412         * modules/j1 (configure.ac): Likewise.
26413         * modules/jn (configure.ac): Likewise.
26414         * modules/ldexp (configure.ac): Likewise.
26415         * modules/lgamma (configure.ac): Likewise.
26416         * modules/log (configure.ac): Likewise.
26417         * modules/log10 (configure.ac): Likewise.
26418         * modules/log1p (configure.ac): Likewise.
26419         * modules/logb (configure.ac): Likewise.
26420         * modules/modf (configure.ac): Likewise.
26421         * modules/nextafter (configure.ac): Likewise.
26422         * modules/pow (configure.ac): Likewise.
26423         * modules/remainder (configure.ac): Likewise.
26424         * modules/rint (configure.ac): Likewise.
26425         * modules/sin (configure.ac): Likewise.
26426         * modules/sinh (configure.ac): Likewise.
26427         * modules/tan (configure.ac): Likewise.
26428         * modules/tanh (configure.ac): Likewise.
26429         * modules/y0 (configure.ac): Likewise.
26430         * modules/y1 (configure.ac): Likewise.
26431         * modules/yn (configure.ac): Likewise.
26432
26433 2010-01-24  Bruno Haible  <bruno@clisp.org>
26434
26435         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
26436         * tests/test-acosl.c (x): New variable.
26437         (main): Store argument in x and fetch it from x.
26438         * tests/test-asinl.c (x): New variable.
26439         (main): Store argument in x and fetch it from x.
26440         * tests/test-atanl.c (x): New variable.
26441         (main): Store argument in x and fetch it from x.
26442         * tests/test-cosl.c (x): New variable.
26443         (main): Store argument in x and fetch it from x.
26444         * tests/test-expl.c (x): New variable.
26445         (main): Store argument in x and fetch it from x.
26446         * tests/test-logl.c (x): New variable.
26447         (main): Store argument in x and fetch it from x.
26448         * tests/test-sinl.c (x): New variable.
26449         (main): Store argument in x and fetch it from x.
26450         * tests/test-sqrtl.c (x): New variable.
26451         (main): Store argument in x and fetch it from x.
26452         * tests/test-tanl.c (x): New variable.
26453         (main): Store argument in x and fetch it from x.
26454
26455 2010-01-24  Bruno Haible  <bruno@clisp.org>
26456
26457         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
26458         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
26459         assignments to the initial TESTS_ENVIRONMENT.
26460         * doc/gnulib.texi (Unit test modules): Document it.
26461         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
26462         TESTS_ENVIRONMENT.
26463         * modules/btowc-tests (Makefile.am): Likewise.
26464         * modules/c-stack-tests (Makefile.am): Likewise.
26465         * modules/c-strcase-tests (Makefile.am): Likewise.
26466         * modules/copy-file-tests (Makefile.am): Likewise.
26467         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
26468         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
26469         * modules/mbrtowc-tests (Makefile.am): Likewise.
26470         * modules/mbscasecmp-tests (Makefile.am): Likewise.
26471         * modules/mbscasestr-tests (Makefile.am): Likewise.
26472         * modules/mbschr-tests (Makefile.am): Likewise.
26473         * modules/mbscspn-tests (Makefile.am): Likewise.
26474         * modules/mbsinit-tests (Makefile.am): Likewise.
26475         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
26476         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
26477         * modules/mbspbrk-tests (Makefile.am): Likewise.
26478         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
26479         * modules/mbsrchr-tests (Makefile.am): Likewise.
26480         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
26481         * modules/mbsspn-tests (Makefile.am): Likewise.
26482         * modules/mbsstr-tests (Makefile.am): Likewise.
26483         * modules/nl_langinfo-tests (Makefile.am): Likewise.
26484         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
26485         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
26486         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
26487         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
26488         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
26489         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
26490         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
26491         * modules/wcrtomb-tests (Makefile.am): Likewise.
26492         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
26493         * modules/wcsrtombs-tests (Makefile.am): Likewise.
26494         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
26495         assignments from TESTS_ENVIRONMENT.
26496         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
26497         augmentation.
26498         * modules/argp-version-etc-tests (Makefile.am): Likewise.
26499         * modules/atexit-tests (Makefile.am): Likewise.
26500         * modules/binary-io-tests (Makefile.am): Likewise.
26501         * modules/closein-tests (Makefile.am): Likewise.
26502         * modules/dprintf-posix-tests (Makefile.am): Likewise.
26503         * modules/exclude-tests (Makefile.am): Likewise.
26504         * modules/fflush-tests (Makefile.am): Likewise.
26505         * modules/fpending-tests (Makefile.am): Likewise.
26506         * modules/fprintf-posix-tests (Makefile.am): Likewise.
26507         * modules/freadahead-tests (Makefile.am): Likewise.
26508         * modules/freadptr-tests (Makefile.am): Likewise.
26509         * modules/freadseek-tests (Makefile.am): Likewise.
26510         * modules/fseek-tests (Makefile.am): Likewise.
26511         * modules/fseeko-tests (Makefile.am): Likewise.
26512         * modules/ftell-tests (Makefile.am): Likewise.
26513         * modules/ftello-tests (Makefile.am): Likewise.
26514         * modules/idpriv-drop-tests (Makefile.am): Likewise.
26515         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
26516         * modules/lseek-tests (Makefile.am): Likewise.
26517         * modules/parse-duration-tests (Makefile.am): Likewise.
26518         * modules/perror-tests (Makefile.am): Likewise.
26519         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
26520         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
26521         * modules/pipe-tests (Makefile.am): Likewise.
26522         * modules/pread-tests (Makefile.am): Likewise.
26523         * modules/printf-posix-tests (Makefile.am): Likewise.
26524         * modules/select-tests (Makefile.am): Likewise.
26525         * modules/sigpipe-tests (Makefile.am): Likewise.
26526         * modules/tsearch-tests (Makefile.am): Likewise.
26527         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
26528         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
26529         * modules/uniname/uniname-tests (Makefile.am): Likewise.
26530         * modules/uniwidth/width-tests (Makefile.am): Likewise.
26531         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
26532         * modules/version-etc-tests (Makefile.am): Likewise.
26533         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
26534         * modules/vprintf-posix-tests (Makefile.am): Likewise.
26535         * modules/xalloc-die-tests (Makefile.am): Likewise.
26536         * modules/xprintf-posix-tests (Makefile.am): Likewise.
26537         * modules/xstrtoimax-tests (Makefile.am): Likewise.
26538         * modules/xstrtol-tests (Makefile.am): Likewise.
26539         * modules/xstrtoumax-tests (Makefile.am): Likewise.
26540         * modules/yesno-tests (Makefile.am): Likewise.
26541         Suggested by Jim Meyering.
26542
26543 2010-01-24  Bruno Haible  <bruno@clisp.org>
26544
26545         More documentation.
26546         * doc/gnulib.texi (Writing modules): New chapter.
26547         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
26548         the new chapter.
26549
26550 2010-01-24  Jim Meyering  <meyering@redhat.com>
26551
26552         maint.mk: do not prepend "./" after filtering
26553         * top/maint.mk (_prepend_srcdir_prefix): New variable
26554         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
26555         "./" when $(srcdir) is ".".
26556
26557         define STREQ(a,b) consistently, removing useless parentheses
26558         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
26559         since the only risk is that "a" or "b" contains an unparenthesized
26560         comma, but if either did that, STREQ would have 3 or more arguments.
26561         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
26562         * lib/fts.c (STREQ): Remove unnecessary parentheses.
26563         * lib/hash-triple.c (STREQ): Likewise.
26564         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
26565         * lib/getugroups.c (STREQ): Likewise.
26566
26567 2010-01-23  Jim Meyering  <meyering@redhat.com>
26568
26569         maint.mk: fix syntax-check in a non-srcdir build directory
26570         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
26571         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
26572
26573 2010-01-22  Jim Meyering  <meyering@redhat.com>
26574
26575         userspec: add unit tests
26576         * tests/test-userspec.c: New file.
26577         * modules/userspec-tests: Likewise.
26578
26579 2010-01-21  Jim Meyering  <meyering@redhat.com>
26580
26581         maint.mk: handle source file names containing "." robustly
26582         * top/maint.mk (_dot_escaped_srcdir): Define.
26583         (VC_LIST): Use it in LHS of sed substitution.
26584
26585 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
26586
26587         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
26588         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
26589         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
26590         from a non-srcdir build.
26591
26592 2010-01-20  Eric Blake  <ebb9@byu.net>
26593
26594         warn-on-use: use instead of link-warning
26595         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
26596         * modules/unistd (Depends-on, Makefile.am): Likewise.
26597         * modules/arpa_inet (Depends-on): Replace link-warning with
26598         warn-on-use.
26599         (Makefile.am): Update rules accordingly.
26600         * modules/ctype (Depends-on, Makefile.am): Likewise.
26601         * modules/dirent (Depends-on, Makefile.am): Likewise.
26602         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
26603         * modules/inttypes (Depends-on, Makefile.am): Likewise.
26604         * modules/langinfo (Depends-on, Makefile.am): Likewise.
26605         * modules/locale (Depends-on, Makefile.am): Likewise.
26606         * modules/math (Depends-on, Makefile.am): Likewise.
26607         * modules/search (Depends-on, Makefile.am): Likewise.
26608         * modules/signal (Depends-on, Makefile.am): Likewise.
26609         * modules/spawn (Depends-on, Makefile.am): Likewise.
26610         * modules/stdlib (Depends-on, Makefile.am): Likewise.
26611         * modules/string (Depends-on, Makefile.am): Likewise.
26612         * modules/strings (Depends-on, Makefile.am): Likewise.
26613         * modules/sys_file (Depends-on, Makefile.am): Likewise.
26614         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
26615         * modules/sys_select (Depends-on, Makefile.am): Likewise.
26616         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
26617         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
26618         * modules/sys_times (Depends-on, Makefile.am): Likewise.
26619         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
26620         * modules/wchar (Depends-on, Makefile.am): Likewise.
26621         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
26622         should be poisoned.
26623         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
26624         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
26625         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
26626         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
26627         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
26628         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
26629         * m4/math_h.m4 (gl_MATH_H): Likewise.
26630         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
26631         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
26632         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
26633         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
26634         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
26635         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
26636         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
26637         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
26638         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
26639         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
26640         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
26641         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
26642         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
26643         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
26644         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
26645         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
26646         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
26647         GL_LINK_WARNING.
26648         * lib/ctype.in.h: Likewise.
26649         * lib/dirent.in.h: Likewise.
26650         * lib/fcntl.in.h: Likewise.
26651         * lib/inttypes.in.h: Likewise.
26652         * lib/langinfo.in.h: Likewise.
26653         * lib/locale.in.h: Likewise.
26654         * lib/math.in.h: Likewise.
26655         * lib/search.in.h: Likewise.
26656         * lib/signal.in.h: Likewise.
26657         * lib/spawn.in.h: Likewise.
26658         * lib/stdio.in.h: Likewise.
26659         * lib/stdlib.in.h: Likewise.
26660         * lib/string.in.h: Likewise.
26661         * lib/strings.in.h: Likewise.
26662         * lib/sys_file.in.h: Likewise.
26663         * lib/sys_ioctl.in.h: Likewise.
26664         * lib/sys_select.in.h: Likewise.
26665         * lib/sys_socket.in.h: Likewise.
26666         * lib/sys_stat.in.h: Likewise.
26667         * lib/sys_times.in.h: Likewise.
26668         * lib/sys_utsname.in.h: Likewise.
26669         * lib/unistd.in.h: Likewise.
26670         * lib/wchar.in.h: Likewise.
26671
26672 2010-01-20  Bruno Haible  <bruno@clisp.org>
26673
26674         Avoid duplicate -lm.
26675         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
26676         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
26677         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
26678         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
26679         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
26680         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
26681         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
26682         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
26683         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
26684         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
26685         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
26686         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
26687         Reported by Paolo Bonzini.
26688
26689 2010-01-19  Bruno Haible  <bruno@clisp.org>
26690
26691         langinfo, nl_langinfo: Relicense under LGPLv2+.
26692         * modules/langinfo (License): Change to LGPLv2+.
26693         * modules/nl_langinfo (License): Likewise.
26694         Patch by David Lutterkort <lutter@redhat.com>.
26695
26696 2010-01-19  Bruno Haible  <bruno@clisp.org>
26697
26698         Avoid compilation error with cc on OSF/1 5.1.
26699         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
26700         statement, not before.
26701         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26702
26703 2010-01-18  Bruno Haible  <bruno@clisp.org>
26704
26705         Avoid a link error due to the __printf__ symbol.
26706         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
26707         and 2.6.x.
26708         (__format__, __printf__): Remove definitions.
26709         * lib/argp-fmtstream.h: Likewise.
26710         * lib/argp.h: Likewise.
26711         * lib/error.h: Likewise.
26712         * lib/vasnprintf.h: Likewise.
26713         * lib/xprintf.h: Likewise.
26714         * lib/xvasprintf.h: Likewise.
26715         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26716
26717 2010-01-18  Bruno Haible  <bruno@clisp.org>
26718
26719         Tests for module 'tanl'.
26720         * modules/tanl-tests: New file.
26721         * tests/test-tanl.c: New file.
26722
26723         Tests for module 'sqrtl'.
26724         * modules/sqrtl-tests: New file.
26725         * tests/test-sqrtl.c: New file.
26726
26727         Tests for module 'sinl'.
26728         * modules/sinl-tests: New file.
26729         * tests/test-sinl.c: New file.
26730
26731         Tests for module 'logl'.
26732         * modules/logl-tests: New file.
26733         * tests/test-logl.c: New file.
26734
26735         Tests for module 'expl'.
26736         * modules/expl-tests: New file.
26737         * tests/test-expl.c: New file.
26738
26739         Tests for module 'cosl'.
26740         * modules/cosl-tests: New file.
26741         * tests/test-cosl.c: New file.
26742
26743         Tests for module 'atanl'.
26744         * modules/atanl-tests: New file.
26745         * tests/test-atanl.c: New file.
26746
26747         Tests for module 'asinl'.
26748         * modules/asinl-tests: New file.
26749         * tests/test-asinl.c: New file.
26750
26751         Tests for module 'acosl'.
26752         * modules/acosl-tests: New file.
26753         * tests/test-acosl.c: New file.
26754
26755         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
26756         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
26757         tanl): Use the standard gnulib idiom.
26758         * lib/cosl.c: Don't include trigl.c and sincosl.c.
26759         * lib/sinl.c: Likewise.
26760         * lib/tanl.c: Don't include trigl.c.
26761         (kernel_tanl): Make static.
26762         * lib/sincosl.c: Include trigl.h first.
26763         * lib/trigl.c: Likewise.
26764         * m4/acosl.m4: New file.
26765         * m4/asinl.m4: New file.
26766         * m4/atanl.m4: New file.
26767         * m4/cosl.m4: New file.
26768         * m4/expl.m4: New file.
26769         * m4/logl.m4: New file.
26770         * m4/sinl.m4: New file.
26771         * m4/sqrtl.m4: New file.
26772         * m4/tanl.m4: New file.
26773         * m4/mathl.m4: Remove file.
26774         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
26775         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
26776         Don't initialize GNULIB_MATHL.
26777         * modules/acosl: New file.
26778         * modules/asinl: New file.
26779         * modules/atanl: New file.
26780         * modules/cosl: New file.
26781         * modules/expl: New file.
26782         * modules/logl: New file.
26783         * modules/sinl: New file.
26784         * modules/sqrtl: New file.
26785         * modules/tanl: New file.
26786         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
26787         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
26788         substitute GNULIB_MATHL.
26789         * modules/mathl: Rewritten.
26790         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
26791         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
26792         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
26793         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
26794         * doc/posix-functions/expl.texi: Mention the 'expl' module.
26795         * doc/posix-functions/logl.texi: Mention the 'logl' module.
26796         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
26797         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
26798         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
26799
26800 2010-01-18  Bruno Haible  <bruno@clisp.org>
26801
26802         sqrt: Make gl_FUNC_SQRT requirable.
26803         * m4/sqrt.m4: New file.
26804         * modules/sqrt (Files): Add it.
26805         (configure.ac): Invoke gl_FUNC_SQRT.
26806
26807 2010-01-18  Bruno Haible  <bruno@clisp.org>
26808
26809         New modules for common <math.h> functions.
26810         * m4/mathfunc.m4: New file.
26811         * modules/acos: New file.
26812         * modules/asin: New file.
26813         * modules/atan: New file.
26814         * modules/atan2: New file.
26815         * modules/cbrt: New file.
26816         * modules/copysign: New file.
26817         * modules/cos: New file.
26818         * modules/cosh: New file.
26819         * modules/erf: New file.
26820         * modules/erfc: New file.
26821         * modules/exp: New file.
26822         * modules/fabs: New file.
26823         * modules/fmod: New file.
26824         * modules/hypot: New file.
26825         * modules/j0: New file.
26826         * modules/j1: New file.
26827         * modules/jn: New file.
26828         * modules/ldexp: New file.
26829         * modules/lgamma: New file.
26830         * modules/log: New file.
26831         * modules/log10: New file.
26832         * modules/log1p: New file.
26833         * modules/logb: New file.
26834         * modules/modf: New file.
26835         * modules/nextafter: New file.
26836         * modules/pow: New file.
26837         * modules/remainder: New file.
26838         * modules/rint: New file.
26839         * modules/sin: New file.
26840         * modules/sinh: New file.
26841         * modules/sqrt: New file.
26842         * modules/tan: New file.
26843         * modules/tanh: New file.
26844         * modules/y0: New file.
26845         * modules/y1: New file.
26846         * modules/yn: New file.
26847         * doc/posix-functions/acos.texi: Mention the 'acos' module.
26848         * doc/posix-functions/asin.texi: Mention the 'asin' module.
26849         * doc/posix-functions/atan.texi: Mention the 'atan' module.
26850         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
26851         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
26852         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
26853         * doc/posix-functions/cos.texi: Mention the 'cos' module.
26854         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
26855         * doc/posix-functions/erf.texi: Mention the 'erf' module.
26856         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
26857         * doc/posix-functions/exp.texi: Mention the 'exp' module.
26858         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
26859         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
26860         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
26861         * doc/posix-functions/j0.texi: Mention the 'j0' module.
26862         * doc/posix-functions/j1.texi: Mention the 'j1' module.
26863         * doc/posix-functions/jn.texi: Mention the 'jn' module.
26864         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
26865         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
26866         * doc/posix-functions/log.texi: Mention the 'log' module.
26867         * doc/posix-functions/log10.texi: Mention the 'log10' module.
26868         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
26869         * doc/posix-functions/logb.texi: Mention the 'logb' module.
26870         * doc/posix-functions/modf.texi: Mention the 'modf' module.
26871         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
26872         * doc/posix-functions/pow.texi: Mention the 'pow' module.
26873         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
26874         * doc/posix-functions/rint.texi: Mention the 'rint' module.
26875         * doc/posix-functions/sin.texi: Mention the 'sin' module.
26876         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
26877         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
26878         * doc/posix-functions/tan.texi: Mention the 'tan' module.
26879         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
26880         * doc/posix-functions/y0.texi: Mention the 'y0' module.
26881         * doc/posix-functions/y1.texi: Mention the 'y1' module.
26882         * doc/posix-functions/yn.texi: Mention the 'yn' module.
26883
26884 2010-01-18  Jim Meyering  <meyering@redhat.com>
26885
26886         ignore-value: relax license to LGPLv2+
26887         * modules/ignore-value (License): Relax to LGPLv2+.
26888
26889         getdate: don't leak when TZ contains two or more '"'s
26890         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
26891         double quote in TZ after the first one.
26892
26893         readtokens: do not leak internal token_lengths buffer
26894         * lib/readtokens.c (readtokens): Free the local, lengths,
26895         when the supplied "token_lengths" parameter is NULL.
26896
26897 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26898
26899         Fix a couple of missing LIBTHREAD link failures on AIX.
26900         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
26901         $(LIBTHREAD).
26902         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
26903
26904         Link test-poll against INET_PTON_LIB.
26905         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
26906         for inet_pton on Solaris 10.
26907
26908 2010-01-17  Bruno Haible  <bruno@clisp.org>
26909
26910         unistdio/*-sprintf: Fix typo in module description.
26911         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
26912         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
26913         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
26914         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
26915         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
26916         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
26917         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
26918         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26919
26920 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26921
26922         gnulib-tool: fix filelist for AIX, HP-UX ksh.
26923         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
26924         variables in shell case patterns, for AIX and HP-UX ksh.
26925
26926         Split large sed scripts, for HP-UX sed.
26927         * modules/stdio: Split sed scripts around 50 sed commands,
26928         to avoid HP-UX limit of 99 commands, in the near future.
26929         * modules/string: Likewise.
26930         * modules/unistd: Likewise.
26931
26932         gnulib-tool: avoid writing in the current directory.
26933         * gnulib-tool (func_emit_lib_Makefile_am)
26934         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
26935         not in the current directory, so concurrent gnulib-tool
26936         instances do not interfere.
26937
26938 2010-01-16  Jim Meyering  <meyering@redhat.com>
26939
26940         doc: update users.txt
26941         * users.txt: Add grep.
26942         (diffutils, gzip): Update URLs.
26943
26944 2010-01-12  Bruno Haible  <bruno@clisp.org>
26945
26946         posix_spawn: Avoid test failure on Cygwin.
26947         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
26948         characters.
26949         Reported by Simon Josefsson.
26950
26951 2010-01-12  Bruno Haible  <bruno@clisp.org>
26952
26953         * tests/test-cond.c (main): When skipping the test, show the reason.
26954
26955 2010-01-12  Simon Josefsson  <simon@josefsson.org>
26956
26957         * lib/striconv.c (str_cd_iconv): Avoid if before free.
26958
26959 2010-01-12  Simon Josefsson  <simon@josefsson.org>
26960
26961         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
26962         VC_LIST_ALWAYS_EXCLUDE_REGEX.
26963
26964 2010-01-12  Eric Blake  <ebb9@byu.net>
26965
26966         build: guarantee AS_VAR_IF
26967         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
26968         (gl_AS_VAR_IF): Move...
26969         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
26970         Reported by Simon Josefsson.
26971
26972 2010-01-12  Simon Josefsson  <simon@josefsson.org>
26973
26974         * lib/stdio.in.h: Fix typo.
26975
26976 2010-01-12  Simon Josefsson  <simon@josefsson.org>
26977
26978         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
26979         libgpg-error.
26980
26981 2010-01-12  Simon Josefsson  <simon@josefsson.org>
26982
26983         * tests/test-xalloc-die.sh: Use $EXEEXT.
26984
26985 2010-01-12  Simon Josefsson  <simon@josefsson.org>
26986             Bruno Haible  <bruno@clisp.org>
26987
26988         getlogin, getlogin_r: Avoid test failure.
26989         * tests/test-getlogin.c: Include <stdio.h>.
26990         (main): Skip the test when the function fails because stdin is not a
26991         tty.
26992         * tests/test-getlogin_r.c: Include <stdio.h>.
26993         (main): Skip the test when the function fails because stdin is not a
26994         tty.
26995
26996 2010-01-11  Eric Blake  <ebb9@byu.net>
26997
26998         tests: avoid more large file warnings
26999         * tests/test-fflush.c: Avoid warning about ftell use.
27000         * tests/test-fseek.c: Avoid warning about fseek use.
27001
27002 2010-01-10  Bruno Haible  <bruno@clisp.org>
27003
27004         nproc: Work better on Linux when /proc and /sys are not mounted.
27005         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
27006         as lower bound when, on glibc/Linux systems,
27007         sysconf (_SC_NPROCESSORS_CONF) returns 1.
27008         Suggested by Pádraig Brady <P@draigbrady.com>.
27009         Reported by Dmitry V. Levin <ldv@altlinux.org>.
27010
27011         nproc: Refactor.
27012         * lib/nproc.c (num_processors_via_affinity_mask): New function,
27013         extracted from num_processors.
27014         (num_processors): Call it.
27015
27016 2010-01-11  Jim Meyering  <meyering@redhat.com>
27017
27018         utimecmp: avoid new warning from upcoming gcc-4.5.0
27019         * lib/utimecmp.c (BILLION): Define using #define rather than an
27020         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
27021
27022 2010-01-11  Eric Blake  <ebb9@byu.net>
27023
27024         math: add portability warnings for classification macros
27025         * modules/math (Depends-on): Add warn-on-use.
27026         (Makefile.am): Provide new substitutions.
27027         * m4/math_h.m4 (gl_MATH_H): Require inline.
27028         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
27029         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
27030         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
27031         implement warnings.
27032
27033         unistd: warn on use of environ without module
27034         * modules/unistd (Depends-on): Add warn-on-use.
27035         (Makefile.am): Provide new substitutions.
27036         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
27037         * lib/unistd.in.h (environ): Wrap with a warning helper function.
27038
27039         stdio: warn on suspicious uses
27040         * modules/stdio (Depends-on): Add warn-on-use.
27041         (Makefile.am): Provide new substitutions.
27042         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
27043         fseeko.
27044         * lib/stdio.in.h (gets): Always warn on use.
27045         (fseek, ftell): Adjust when warnings are issued, and honor
27046         _GL_NO_LARGE_FILES as a way to silence the warning.
27047         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
27048         any warning about large file offsets.
27049         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
27050         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
27051         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
27052         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
27053         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
27054         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
27055         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
27056         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
27057
27058         warn-on-use: new module
27059         * modules/warn-on-use: New file.
27060         * build-aux/warn-on-use.h: Likewise.
27061         * m4/warn-on-use.m4: Likewise.
27062         * MODULES.html.sh (Support for building): Mention it.
27063
27064 2010-01-10  Bruno Haible  <bruno@clisp.org>
27065
27066         Tests for module 'unistr/u32-strdup'.
27067         * modules/unistr/u32-strdup-tests: New file.
27068         * tests/unistr/test-u32-strdup.c: New file.
27069
27070         Tests for module 'unistr/u16-strdup'.
27071         * modules/unistr/u16-strdup-tests: New file.
27072         * tests/unistr/test-u16-strdup.c: New file.
27073
27074         Tests for module 'unistr/u8-strdup'.
27075         * modules/unistr/u8-strdup-tests: New file.
27076         * tests/unistr/test-u8-strdup.c: New file.
27077         * tests/unistr/test-strdup.h: New file.
27078
27079         Tests for module 'unistr/u32-strncmp'.
27080         * modules/unistr/u32-strncmp-tests: New file.
27081         * tests/unistr/test-u32-strncmp.c: New file.
27082
27083         Tests for module 'unistr/u16-strncmp'.
27084         * modules/unistr/u16-strncmp-tests: New file.
27085         * tests/unistr/test-u16-strncmp.c: New file.
27086
27087         Tests for module 'unistr/u8-strncmp'.
27088         * modules/unistr/u8-strncmp-tests: New file.
27089         * tests/unistr/test-u8-strncmp.c: New file.
27090         * tests/unistr/test-strncmp.h: New file.
27091
27092         Tests for module 'unistr/u32-strcoll'.
27093         * modules/unistr/u32-strcoll-tests: New file.
27094         * tests/unistr/test-u32-strcoll.c: New file.
27095
27096         Tests for module 'unistr/u16-strcoll'.
27097         * modules/unistr/u16-strcoll-tests: New file.
27098         * tests/unistr/test-u16-strcoll.c: New file.
27099
27100         Tests for module 'unistr/u8-strcoll'.
27101         * modules/unistr/u8-strcoll-tests: New file.
27102         * tests/unistr/test-u8-strcoll.c: New file.
27103
27104         Tests for module 'unistr/u32-strcmp'.
27105         * modules/unistr/u32-strcmp-tests: New file.
27106         * tests/unistr/test-u32-strcmp.c: New file.
27107         * tests/unistr/test-u32-strcmp.h: New file.
27108
27109         Tests for module 'unistr/u16-strcmp'.
27110         * modules/unistr/u16-strcmp-tests: New file.
27111         * tests/unistr/test-u16-strcmp.c: New file.
27112         * tests/unistr/test-u16-strcmp.h: New file.
27113
27114         Tests for module 'unistr/u8-strcmp'.
27115         * modules/unistr/u8-strcmp-tests: New file.
27116         * tests/unistr/test-u8-strcmp.c: New file.
27117         * tests/unistr/test-u8-strcmp.h: New file.
27118         * tests/unistr/test-strcmp.h: New file.
27119
27120         Tests for module 'unistr/u32-strncat'.
27121         * modules/unistr/u32-strncat-tests: New file.
27122         * tests/unistr/test-u32-strncat.c: New file.
27123
27124         Tests for module 'unistr/u16-strncat'.
27125         * modules/unistr/u16-strncat-tests: New file.
27126         * tests/unistr/test-u16-strncat.c: New file.
27127
27128         Tests for module 'unistr/u8-strncat'.
27129         * modules/unistr/u8-strncat-tests: New file.
27130         * tests/unistr/test-u8-strncat.c: New file.
27131         * tests/unistr/test-strncat.h: New file.
27132
27133         Tests for module 'unistr/u32-strcat'.
27134         * modules/unistr/u32-strcat-tests: New file.
27135         * tests/unistr/test-u32-strcat.c: New file.
27136
27137         Tests for module 'unistr/u16-strcat'.
27138         * modules/unistr/u16-strcat-tests: New file.
27139         * tests/unistr/test-u16-strcat.c: New file.
27140
27141         Tests for module 'unistr/u8-strcat'.
27142         * modules/unistr/u8-strcat-tests: New file.
27143         * tests/unistr/test-u8-strcat.c: New file.
27144         * tests/unistr/test-strcat.h: New file.
27145
27146         Tests for module 'unistr/u32-stpncpy'.
27147         * modules/unistr/u32-stpncpy-tests: New file.
27148         * tests/unistr/test-u32-stpncpy.c: New file.
27149
27150         Tests for module 'unistr/u16-stpncpy'.
27151         * modules/unistr/u16-stpncpy-tests: New file.
27152         * tests/unistr/test-u16-stpncpy.c: New file.
27153
27154         Tests for module 'unistr/u8-stpncpy'.
27155         * modules/unistr/u8-stpncpy-tests: New file.
27156         * tests/unistr/test-u8-stpncpy.c: New file.
27157         * tests/unistr/test-stpncpy.h: New file.
27158
27159         Tests for module 'unistr/u32-strncpy'.
27160         * modules/unistr/u32-strncpy-tests: New file.
27161         * tests/unistr/test-u32-strncpy.c: New file.
27162
27163         Tests for module 'unistr/u16-strncpy'.
27164         * modules/unistr/u16-strncpy-tests: New file.
27165         * tests/unistr/test-u16-strncpy.c: New file.
27166
27167         Tests for module 'unistr/u8-strncpy'.
27168         * modules/unistr/u8-strncpy-tests: New file.
27169         * tests/unistr/test-u8-strncpy.c: New file.
27170         * tests/unistr/test-strncpy.h: New file.
27171
27172         Tests for module 'unistr/u32-stpcpy'.
27173         * modules/unistr/u32-stpcpy-tests: New file.
27174         * tests/unistr/test-u32-stpcpy.c: New file.
27175
27176         Tests for module 'unistr/u16-stpcpy'.
27177         * modules/unistr/u16-stpcpy-tests: New file.
27178         * tests/unistr/test-u16-stpcpy.c: New file.
27179
27180         Tests for module 'unistr/u8-stpcpy'.
27181         * modules/unistr/u8-stpcpy-tests: New file.
27182         * tests/unistr/test-u8-stpcpy.c: New file.
27183         * tests/unistr/test-stpcpy.h: New file.
27184
27185         Tests for module 'unistr/u32-strcpy'.
27186         * modules/unistr/u32-strcpy-tests: New file.
27187         * tests/unistr/test-u32-strcpy.c: New file.
27188
27189         Tests for module 'unistr/u16-strcpy'.
27190         * modules/unistr/u16-strcpy-tests: New file.
27191         * tests/unistr/test-u16-strcpy.c: New file.
27192
27193         Tests for module 'unistr/u8-strcpy'.
27194         * modules/unistr/u8-strcpy-tests: New file.
27195         * tests/unistr/test-u8-strcpy.c: New file.
27196         * tests/unistr/test-strcpy.h: New file.
27197
27198         Tests for module 'unistr/u32-strnlen'.
27199         * modules/unistr/u32-strnlen-tests: New file.
27200         * tests/unistr/test-u32-strnlen.c: New file.
27201
27202         Tests for module 'unistr/u16-strnlen'.
27203         * modules/unistr/u16-strnlen-tests: New file.
27204         * tests/unistr/test-u16-strnlen.c: New file.
27205
27206         Tests for module 'unistr/u8-strnlen'.
27207         * modules/unistr/u8-strnlen-tests: New file.
27208         * tests/unistr/test-u8-strnlen.c: New file.
27209         * tests/unistr/test-strnlen.h: New file.
27210
27211         Tests for module 'unistr/u32-strlen'.
27212         * modules/unistr/u32-strlen-tests: New file.
27213         * tests/unistr/test-u32-strlen.c: New file.
27214
27215         Tests for module 'unistr/u16-strlen'.
27216         * modules/unistr/u16-strlen-tests: New file.
27217         * tests/unistr/test-u16-strlen.c: New file.
27218
27219         Tests for module 'unistr/u8-strlen'.
27220         * modules/unistr/u8-strlen-tests: New file.
27221         * tests/unistr/test-u8-strlen.c: New file.
27222
27223         Tests for module 'unistr/u32-prev'.
27224         * modules/unistr/u32-prev-tests: New file.
27225         * tests/unistr/test-u32-prev.c: New file.
27226
27227         Tests for module 'unistr/u16-prev'.
27228         * modules/unistr/u16-prev-tests: New file.
27229         * tests/unistr/test-u16-prev.c: New file.
27230
27231         Tests for module 'unistr/u8-prev'.
27232         * modules/unistr/u8-prev-tests: New file.
27233         * tests/unistr/test-u8-prev.c: New file.
27234
27235         Tests for module 'unistr/u32-next'.
27236         * modules/unistr/u32-next-tests: New file.
27237         * tests/unistr/test-u32-next.c: New file.
27238
27239         Tests for module 'unistr/u16-next'.
27240         * modules/unistr/u16-next-tests: New file.
27241         * tests/unistr/test-u16-next.c: New file.
27242
27243         Tests for module 'unistr/u8-next'.
27244         * modules/unistr/u8-next-tests: New file.
27245         * tests/unistr/test-u8-next.c: New file.
27246
27247         Tests for module 'unistr/u32-strmbtouc'.
27248         * modules/unistr/u32-strmbtouc-tests: New file.
27249         * tests/unistr/test-u32-strmbtouc.c: New file.
27250
27251         Tests for module 'unistr/u16-strmbtouc'.
27252         * modules/unistr/u16-strmbtouc-tests: New file.
27253         * tests/unistr/test-u16-strmbtouc.c: New file.
27254
27255         Tests for module 'unistr/u8-strmbtouc'.
27256         * modules/unistr/u8-strmbtouc-tests: New file.
27257         * tests/unistr/test-u8-strmbtouc.c: New file.
27258
27259         Tests for module 'unistr/u32-strmblen'.
27260         * modules/unistr/u32-strmblen-tests: New file.
27261         * tests/unistr/test-u32-strmblen.c: New file.
27262
27263         Tests for module 'unistr/u16-strmblen'.
27264         * modules/unistr/u16-strmblen-tests: New file.
27265         * tests/unistr/test-u16-strmblen.c: New file.
27266
27267         Tests for module 'unistr/u8-strmblen'.
27268         * modules/unistr/u8-strmblen-tests: New file.
27269         * tests/unistr/test-u8-strmblen.c: New file.
27270
27271         Tests for module 'unistr/u32-cpy-alloc'.
27272         * modules/unistr/u32-cpy-alloc-tests: New file.
27273         * tests/unistr/test-u32-cpy-alloc.c: New file.
27274
27275         Tests for module 'unistr/u16-cpy-alloc'.
27276         * modules/unistr/u16-cpy-alloc-tests: New file.
27277         * tests/unistr/test-u16-cpy-alloc.c: New file.
27278
27279         Tests for module 'unistr/u8-cpy-alloc'.
27280         * modules/unistr/u8-cpy-alloc-tests: New file.
27281         * tests/unistr/test-u8-cpy-alloc.c: New file.
27282         * tests/unistr/test-cpy-alloc.h: New file.
27283
27284         Tests for module 'unistr/u32-mbsnlen'.
27285         * modules/unistr/u32-mbsnlen-tests: New file.
27286         * tests/unistr/test-u32-mbsnlen.c: New file.
27287
27288         Tests for module 'unistr/u16-mbsnlen'.
27289         * modules/unistr/u16-mbsnlen-tests: New file.
27290         * tests/unistr/test-u16-mbsnlen.c: New file.
27291
27292         Tests for module 'unistr/u8-mbsnlen'.
27293         * modules/unistr/u8-mbsnlen-tests: New file.
27294         * tests/unistr/test-u8-mbsnlen.c: New file.
27295
27296         Tests for module 'unistr/u32-chr'.
27297         * modules/unistr/u32-chr-tests: New file.
27298         * tests/unistr/test-u32-chr.c: New file.
27299
27300         Tests for module 'unistr/u16-chr'.
27301         * modules/unistr/u16-chr-tests: New file.
27302         * tests/unistr/test-u16-chr.c: New file.
27303
27304         Tests for module 'unistr/u8-chr'.
27305         * modules/unistr/u8-chr-tests: New file.
27306         * tests/unistr/test-u8-chr.c: New file.
27307         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
27308
27309         Tests for module 'unistr/u32-cmp2'.
27310         * modules/unistr/u32-cmp2-tests: New file.
27311         * tests/unistr/test-u32-cmp2.c: New file.
27312
27313         Tests for module 'unistr/u16-cmp2'.
27314         * modules/unistr/u16-cmp2-tests: New file.
27315         * tests/unistr/test-u16-cmp2.c: New file.
27316
27317         Tests for module 'unistr/u8-cmp2'.
27318         * modules/unistr/u8-cmp2-tests: New file.
27319         * tests/unistr/test-u8-cmp2.c: New file.
27320         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
27321
27322         Tests for module 'unistr/u32-cmp'.
27323         * modules/unistr/u32-cmp-tests: New file.
27324         * tests/unistr/test-u32-cmp.c: New file.
27325
27326         Tests for module 'unistr/u16-cmp'.
27327         * modules/unistr/u16-cmp-tests: New file.
27328         * tests/unistr/test-u16-cmp.c: New file.
27329
27330         Tests for module 'unistr/u8-cmp'.
27331         * modules/unistr/u8-cmp-tests: New file.
27332         * tests/unistr/test-u8-cmp.c: New file.
27333         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
27334
27335         Tests for module 'unistr/u32-set'.
27336         * modules/unistr/u32-set-tests: New file.
27337         * tests/unistr/test-u32-set.c: New file.
27338
27339         Tests for module 'unistr/u16-set'.
27340         * modules/unistr/u16-set-tests: New file.
27341         * tests/unistr/test-u16-set.c: New file.
27342
27343         Tests for module 'unistr/u8-set'.
27344         * modules/unistr/u8-set-tests: New file.
27345         * tests/unistr/test-u8-set.c: New file.
27346         * tests/unistr/test-set.h: New file.
27347
27348         Tests for module 'unistr/u32-move'.
27349         * modules/unistr/u32-move-tests: New file.
27350         * tests/unistr/test-u32-move.c: New file.
27351
27352         Tests for module 'unistr/u16-move'.
27353         * modules/unistr/u16-move-tests: New file.
27354         * tests/unistr/test-u16-move.c: New file.
27355
27356         Tests for module 'unistr/u8-move'.
27357         * modules/unistr/u8-move-tests: New file.
27358         * tests/unistr/test-u8-move.c: New file.
27359         * tests/unistr/test-move.h: New file.
27360
27361         Tests for module 'unistr/u32-cpy'.
27362         * modules/unistr/u32-cpy-tests: New file.
27363         * tests/unistr/test-u32-cpy.c: New file.
27364
27365         Tests for module 'unistr/u16-cpy'.
27366         * modules/unistr/u16-cpy-tests: New file.
27367         * tests/unistr/test-u16-cpy.c: New file.
27368
27369         Tests for module 'unistr/u8-cpy'.
27370         * modules/unistr/u8-cpy-tests: New file.
27371         * tests/unistr/test-u8-cpy.c: New file.
27372         * tests/unistr/test-cpy.h: New file.
27373
27374 2010-01-09  Bruno Haible  <bruno@clisp.org>
27375
27376         Tests for module 'unistr/u32-uctomb'.
27377         * modules/unistr/u32-uctomb-tests: New file.
27378         * tests/unistr/test-u32-uctomb.c: New file.
27379
27380         Tests for module 'unistr/u16-uctomb'.
27381         * modules/unistr/u16-uctomb-tests: New file.
27382         * tests/unistr/test-u16-uctomb.c: New file.
27383
27384         Tests for module 'unistr/u8-uctomb'.
27385         * modules/unistr/u8-uctomb-tests: New file.
27386         * tests/unistr/test-u8-uctomb.c: New file.
27387
27388         Tests for module 'unistr/u32-mbtoucr'.
27389         * modules/unistr/u32-mbtoucr-tests: New file.
27390         * tests/unistr/test-u32-mbtoucr.c: New file.
27391
27392         Tests for module 'unistr/u16-mbtoucr'.
27393         * modules/unistr/u16-mbtoucr-tests: New file.
27394         * tests/unistr/test-u16-mbtoucr.c: New file.
27395
27396         Tests for module 'unistr/u8-mbtoucr'.
27397         * modules/unistr/u8-mbtoucr-tests: New file.
27398         * tests/unistr/test-u8-mbtoucr.c: New file.
27399
27400         Tests for module 'unistr/u32-mbtouc'.
27401         * modules/unistr/u32-mbtouc-tests: New file.
27402         * tests/unistr/test-u32-mbtouc.c: New file.
27403
27404         Tests for module 'unistr/u16-mbtouc'.
27405         * modules/unistr/u16-mbtouc-tests: New file.
27406         * tests/unistr/test-u16-mbtouc.c: New file.
27407
27408         Tests for module 'unistr/u8-mbtouc'.
27409         * modules/unistr/u8-mbtouc-tests: New file.
27410         * tests/unistr/test-u8-mbtouc.c: New file.
27411
27412         Tests for module 'unistr/u32-mbtouc-unsafe'.
27413         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
27414         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
27415         * tests/unistr/test-u32-mbtouc.h: New file.
27416
27417         Tests for module 'unistr/u16-mbtouc-unsafe'.
27418         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
27419         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
27420         * tests/unistr/test-u16-mbtouc.h: New file.
27421
27422         Tests for module 'unistr/u8-mbtouc-unsafe'.
27423         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
27424         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
27425         * tests/unistr/test-u8-mbtouc.h: New file.
27426
27427         Tests for module 'unistr/u32-mblen'.
27428         * modules/unistr/u32-mblen-tests: New file.
27429         * tests/unistr/test-u32-mblen.c: New file.
27430
27431         Tests for module 'unistr/u16-mblen'.
27432         * modules/unistr/u16-mblen-tests: New file.
27433         * tests/unistr/test-u16-mblen.c: New file.
27434
27435         Tests for module 'unistr/u8-mblen'.
27436         * modules/unistr/u8-mblen-tests: New file.
27437         * tests/unistr/test-u8-mblen.c: New file.
27438
27439         Tests for module 'unistr/u32-to-u16'.
27440         * modules/unistr/u32-to-u16-tests: New file.
27441         * tests/unistr/test-u32-to-u16.c: New file.
27442
27443         Tests for module 'unistr/u32-to-u8'.
27444         * modules/unistr/u32-to-u8-tests: New file.
27445         * tests/unistr/test-u32-to-u8.c: New file.
27446
27447         Tests for module 'unistr/u16-to-u32'.
27448         * modules/unistr/u16-to-u32-tests: New file.
27449         * tests/unistr/test-u16-to-u32.c: New file.
27450
27451         Tests for module 'unistr/u16-to-u8'.
27452         * modules/unistr/u16-to-u8-tests: New file.
27453         * tests/unistr/test-u16-to-u8.c: New file.
27454
27455         Tests for module 'unistr/u8-to-u32'.
27456         * modules/unistr/u8-to-u32-tests: New file.
27457         * tests/unistr/test-u8-to-u32.c: New file.
27458
27459         Tests for module 'unistr/u8-to-u16'.
27460         * modules/unistr/u8-to-u16-tests: New file.
27461         * tests/unistr/test-u8-to-u16.c: New file.
27462
27463         Tests for module 'unistr/u32-check'.
27464         * modules/unistr/u32-check-tests: New file.
27465         * tests/unistr/test-u32-check.c: New file.
27466
27467         Tests for module 'unistr/u16-check'.
27468         * modules/unistr/u16-check-tests: New file.
27469         * tests/unistr/test-u16-check.c: New file.
27470
27471         Tests for module 'unistr/u8-check'.
27472         * modules/unistr/u8-check-tests: New file.
27473         * tests/unistr/test-u8-check.c: New file.
27474
27475         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
27476         (category_equals): New function.
27477         (main): Add more tests.
27478         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
27479
27480         * tests/unictype/test-bidi_byname.c (main): Add more tests.
27481
27482 2010-01-10  Bruno Haible  <bruno@clisp.org>
27483
27484         unistr/u*-strcoll: Try harder to distinguish different strings.
27485         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
27486         compare s1 and s2 to see if they are different.
27487
27488 2010-01-10  Bruno Haible  <bruno@clisp.org>
27489
27490         unistr/u*-stpncpy: Fix the return value.
27491         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
27492         description of the return value consistent with stpncpy in glibc.
27493         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
27494         written non-NUL unit.
27495
27496 2010-01-10  Bruno Haible  <bruno@clisp.org>
27497
27498         unistr/u*-next: Add missing dependencies.
27499         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
27500         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
27501         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
27502
27503 2010-01-10  Bruno Haible  <bruno@clisp.org>
27504
27505         unistr/u8-mbsnlen: Fix return value for incomplete character.
27506         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
27507         u8_mblen.
27508         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
27509         Remove unistr/u8-mblen.
27510         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
27511         u16_mblen.
27512         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
27513         Remove unistr/u16-mblen.
27514
27515 2010-01-10  Bruno Haible  <bruno@clisp.org>
27516
27517         wchar: Fix compilation error when <wchar.h> is used from coreutils.
27518         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
27519         Reported by Brian Gough <bjg@gnu.org> and
27520         Chris Clayton <chris2553@googlemail.com> via
27521         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
27522
27523 2010-01-09  Bruno Haible  <bruno@clisp.org>
27524
27525         unistr/u16-to-u32: Reject invalid input.
27526         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
27527         u16_mbtouc.
27528         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
27529         Remove unistr/u16-mbtouc.
27530
27531         unistr/u16-to-u8: Reject invalid input.
27532         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
27533         u16_mbtouc.
27534         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
27535         Remove unistr/u16-mbtouc.
27536
27537         unistr/u8-to-u32: Reject invalid input.
27538         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
27539         u8_mbtouc.
27540         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
27541         Remove unistr/u8-mbtouc.
27542
27543         unistr/u8-to-u16: Reject invalid input.
27544         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
27545         u8_mbtouc.
27546         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
27547         Remove unistr/u8-mbtouc.
27548
27549 2010-01-09  Bruno Haible  <bruno@clisp.org>
27550
27551         Tests for module 'getlogin'.
27552         * modules/getlogin-tests: New file.
27553         * tests/test-getlogin.c: New file.
27554
27555         New module 'getlogin'.
27556         * lib/unistd.in.h (getlogin): New declaration.
27557         * lib/getlogin.c: New file.
27558         * m4/getlogin.m4: New file.
27559         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
27560         HAVE_GETLOGIN.
27561         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
27562         HAVE_GETLOGIN.
27563         * modules/getlogin: New file.
27564         * doc/posix-functions/getlogin.texi: Mention the new module.
27565         Reported by John W. Eaton <jwe@gnu.org>.
27566
27567 2010-01-09  Bruno Haible  <bruno@clisp.org>
27568
27569         getlogin_r: Support for native Windows.
27570         * lib/getlogin_r.c: Include <windows.h>
27571         (getlogin_r): Implement for native Windows.
27572         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
27573         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
27574         via John W. Eaton <jwe@gnu.org>.
27575
27576 2010-01-09  Bruno Haible  <bruno@clisp.org>
27577
27578         getlogin_r: Small fixes.
27579         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
27580         succeeds.
27581         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
27582         before testing whether getlogin_r is declared. No need to set
27583         HAVE_DECL_GETLOGIN_R to 1.
27584         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
27585
27586 2010-01-09  Bruno Haible  <bruno@clisp.org>
27587
27588         * lib/unistd.in.h (getlogin_r): Add comment.
27589
27590 2010-01-09  Bruno Haible  <bruno@clisp.org>
27591
27592         Tests for module 'getlogin_r'.
27593         * modules/getlogin_r-tests: New file.
27594         * tests/test-getlogin_r.c: New file.
27595
27596 2010-01-09  Jim Meyering  <meyering@redhat.com>
27597
27598         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
27599         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
27600         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
27601
27602 2010-01-08  Simon Josefsson  <simon@josefsson.org>
27603
27604         * lib/dup2.c (rpl_dup2): Improve comment.
27605
27606 2010-01-08  Eric Blake  <ebb9@byu.net>
27607
27608         maint.mk: allow packages to add makefile @@ exceptions
27609         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
27610         (sc_makefile_check): Rename...
27611         (sc_makefile_at_at_check): ...to this, and use hook.
27612
27613         dup2: work around mingw bug
27614         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
27615         Reported by Simon Josefsson.
27616
27617 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
27618
27619         glob: Fix C++ compilation.
27620         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
27621         C++.
27622
27623 2010-01-07  Bruno Haible  <bruno@clisp.org>
27624
27625         Fix indentation of wctype.in.h, broken since 2007-01-06.
27626         * lib/wctype.in.h: Fix indentation of preprocessor directives.
27627
27628 2010-01-07  Bruno Haible  <bruno@clisp.org>
27629
27630         mbslen: Avoid collision with system function.
27631         * lib/string.in.h [MirBSD]: Include <wchar.h>.
27632         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
27633         * m4/mbslen.m4: New file.
27634         * modules/mbslen (Files): Add it.
27635         (configure.ac): Invoke gl_MBSLEN.
27636         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
27637         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
27638         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
27639         via Ian Beckwith <ianb@erislabs.net>.
27640
27641 2010-01-07  Bruno Haible  <bruno@clisp.org>
27642
27643         dirent: Document the last fix.
27644         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
27645
27646 2010-01-07  Bruno Haible  <bruno@clisp.org>
27647
27648         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
27649         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
27650         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
27651         va_list are defined.
27652         * doc/posix-headers/stdio.texi: Document the bug of missing types.
27653         Reported by Eric Blake.
27654
27655 2010-01-07  Bruno Haible  <bruno@clisp.org>
27656
27657         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
27658         * modules/xlist (Depends-on): Add 'list',
27659         * modules/xoset (Depends-on): Add 'oset'.
27660         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27661
27662 2010-01-07  Bruno Haible  <bruno@clisp.org>
27663
27664         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
27665         * doc/posix-functions/strncasecmp.texi: Likewise.
27666
27667 2010-01-07  Bruno Haible  <bruno@clisp.org>
27668
27669         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
27670
27671 2010-01-07  John W. Eaton  <jwe@octave.org>
27672
27673         wctype: allow C++ use
27674         * lib/wctype.in.h: Add extern "C" block for C++.
27675
27676 2010-01-06  Eric Blake  <ebb9@byu.net>
27677
27678         maint.mk: detect incorrect GFDL usage
27679         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
27680
27681 2010-01-06  Jim Meyering  <meyering@redhat.com>
27682         and Eric Blake  <ebb9@byu.net>
27683
27684         maint.mk: ignore multi-line copyright in NEWS
27685         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
27686
27687 2010-01-06  Eric Blake  <ebb9@byu.net>
27688
27689         select: add missing dependency
27690         * modules/select-tests (Depends-on): Move sockets dependency...
27691         * modules/select (Depends-on): ...here.
27692         Reported by Ian Beckwith.
27693
27694         doc: regenerate INSTALL
27695         * doc/INSTALL: Reflect recent autoconf update.
27696         * doc/INSTALL.ISO: Likewise.
27697         * doc/INSTALL.UTF-8: Likewise.
27698
27699         pread: fix compilation on glibc
27700         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
27701         Reported by Ralf Wildenhues.
27702
27703         dirent: fix test failure
27704         * lib/dirent.in.h (includes): Guarantee ino_t.
27705         Reported by Ralf Wildenhues.
27706
27707 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
27708
27709         linkat, renameat: avoid bad free
27710         * lib/at-func2.c (at_func2): Fix typo.
27711         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
27712
27713 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27714
27715         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
27716         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
27717         to avoid failure of symlink test later.
27718
27719 2010-01-06  Eric Blake  <ebb9@byu.net>
27720
27721         stdio, unistd: guarantee ssize_t
27722         * lib/unistd.in.h (includes): Ensure that types required by POSIX
27723         2008 are exposed when needed.
27724         * lib/stdio.in.h (includes): Likewise.
27725         Reported by Ralf Wildenhues.
27726
27727 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
27728
27729         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
27730         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
27731         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
27732
27733 2010-01-06  Jim Meyering  <meyering@redhat.com>
27734
27735         readtokens: this module *does* require xalloc.h
27736         It uses only functions that were omitted by the old syntax-check rule.
27737         * lib/readtokens.c: Include "xalloc.h" once again.
27738         * modules/readtokens (Depends-on): Add xalloc.
27739         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
27740
27741 2010-01-05  Eric Blake  <ebb9@byu.net>
27742
27743         maint: support 'make announcement' from a VPATH build
27744         * top/maint.mk (announcement): Look for correct NEWS file.
27745
27746 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
27747
27748         utimens (fdutimens): ignore a negative FD, per contract
27749         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
27750         when we have a valid file descriptor.  Otherwise, using a brand
27751         new glibc (with just-patched futimens that now fails with EBADF)
27752         would cause this function to fail with ENOSYS.
27753         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
27754         See also http://bugzilla.redhat.com/552320.
27755
27756 2010-01-05  Eric Blake  <ebb9@byu.net>
27757
27758         strcase: document what it provides
27759         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
27760         gnulib module.
27761         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
27762         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
27763
27764 2010-01-05  Jim Meyering  <meyering@redhat.com>
27765
27766         maint: remove useless inclusions of "xalloc.h"
27767         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
27768         * lib/readtokens.c: Likewise.
27769         * lib/same.c: Likewise.
27770         * modules/getloadavg (Depends-on): Remove xalloc.
27771         * modules/readtokens: Likewise.
27772         * modules/same: Likewise.
27773
27774         maint.mk: include 4 more function names in alloca.h-checking regexp
27775         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
27776         regexp.  Before, we would give a false-positive (saying alloca.h
27777         is included unnecessarily) when the only uses involved omitted symbols.
27778
27779         xalloc.h: use consistent formatting
27780         * lib/xalloc.h: Move declarations to start in the first column.
27781
27782 2010-01-05  Eric Blake  <ebb9@byu.net>
27783
27784         mkdir: avoid xalloc
27785         * lib/mkdir.c (includes): Drop unused header.
27786         Reported by John W. Eaton.
27787
27788 2010-01-04  Jim Meyering  <meyering@redhat.com>
27789
27790         nl_langinfo: avoid configure-time syntax error
27791         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
27792         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
27793         the empty string.  Don't let that provoke a shell syntax error.
27794
27795         regcomp, regexec, fnmatch: avoid array bounds read error
27796         * lib/regcomp.c (build_equiv_class): From glibc:
27797         Use only the low 24 bits of a findidx return value as an index
27798         into the weights array.  Patch by Ulrich Drepper:
27799         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
27800         * lib/regexec.c (check_node_accept_bytes): Likewise.
27801         * lib/fnmatch_loop.c (FCT): Likewise.
27802
27803         regcomp: skip collseq lookup when there are no rules
27804         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
27805         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
27806
27807         regcomp: recognize ill-formed { } expressions
27808         * lib/regcomp.c (parse_dup_op): From glibc:
27809         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
27810
27811         regcomp: fix typo in comment
27812         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
27813         s/satisfy/satisfies/.
27814
27815         regcomp: sync from glibc: remove dead store
27816         * lib/regcomp.c (duplicate_node_closure): Remove useless
27817         search_duplicated_node call and dead store.
27818
27819         regcomp: sync from glibc; always use nl_langinfo
27820         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
27821         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
27822         * modules/regex (Depends-on): Add nl_langinfo.
27823
27824 2010-01-04  Eric Blake  <ebb9@byu.net>
27825
27826         fdopendir: fix configure test
27827         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
27828
27829 2010-01-01  Bruno Haible  <bruno@clisp.org>
27830
27831         wchar: Remove unused configure check.
27832         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
27833
27834 2010-01-01  Eric Blake  <ebb9@byu.net>
27835
27836         headers: make check of system header explicit
27837         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
27838         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
27839         ourselves.
27840         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
27841         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
27842         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
27843         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
27844         internals.
27845         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
27846         missing.
27847         Suggested by Bruno Haible.
27848
27849 2010-01-01  Jim Meyering  <meyering@redhat.com>
27850
27851         ChangeLog: tweak to eliminate unnecessary copyright line
27852         * ChangeLog: Remove a copyright line that was mistakenly updated
27853         by today's update-copyright run.  Reported by Eric Blake.
27854
27855         test-update-copyright: don't let envvar setting cause test failure
27856         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
27857
27858 2010-01-01  Bruno Haible  <bruno@clisp.org>
27859
27860         localename: Avoid gcc warning.
27861         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
27862         function if it is not used.
27863
27864 2010-01-01  Jim Meyering  <meyering@redhat.com>
27865
27866         update nearly all FSF copyright year lists to include 2010
27867         Use the same procedure as for 2009, outlined in
27868         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
27869
27870         version-etc: set COPYRIGHT_YEAR to 2010
27871         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
27872
27873 2009-12-31  Eric Blake  <ebb9@byu.net>
27874
27875         doc: correct availability of cygwin 1.5.x getopt
27876         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
27877         variables.
27878         * doc/posix-functions/opterr.texi (opterr): Likewise.
27879         * doc/posix-functions/optind.texi (optind): Likewise.
27880         * doc/posix-functions/optopt.texi (optopt): Likewise.
27881         * doc/posix-functions/tzname.texi (tzname): Likewise.
27882
27883         openat: update maintainer
27884         * modules/openat (Maintainer): Add myself.
27885
27886         utimens: avoid shadowing warning
27887         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
27888         buffers into one, to avoid shadowing, as well as avoiding a
27889         redundant stat.
27890         Reported by Jim Meyering.
27891
27892         test-dup2: avoid compiler warning
27893         * tests/test-dup2.c (is_inheritable): Only define if used.
27894
27895 2010-01-01  Bruno Haible  <bruno@clisp.org>
27896
27897         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
27898         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
27899         defined, use wctomb instead of wcrtomb.
27900
27901 2010-01-01  Bruno Haible  <bruno@clisp.org>
27902
27903         iconv: Reject native Solaris iconv.
27904         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
27905         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
27906
27907 2009-12-31  Bruno Haible  <bruno@clisp.org>
27908
27909         * tests/test-signal.c (main): Remove test of 'SIG'.
27910
27911 2009-12-31  Bruno Haible  <bruno@clisp.org>
27912
27913         spawn: Fix incomplete fix.
27914         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
27915         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
27916         warnings for GNULIB_POSIXCHECK again.
27917         Reported by Eric Blake.
27918
27919 2009-12-31  Bruno Haible  <bruno@clisp.org>
27920
27921         Avoid namespace pollution on glibc systems.
27922         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
27923         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
27924         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
27925         glibc systems.
27926
27927 2009-12-31  Bruno Haible  <bruno@clisp.org>
27928
27929         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
27930         (gl_REPLACE_WCHAR_H): Turn into a no-op.
27931         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
27932         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
27933         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
27934         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
27935         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
27936
27937 2009-12-31  Bruno Haible  <bruno@clisp.org>
27938
27939         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
27940         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
27941         afterwards.
27942
27943 2009-12-31  Bruno Haible  <bruno@clisp.org>
27944
27945         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
27946         SYS_UTSNAME_H.
27947
27948 2009-12-31  Bruno Haible  <bruno@clisp.org>
27949
27950         spawn: Fix misapplied patch.
27951         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
27952         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
27953         warnings for GNULIB_POSIXCHECK.
27954
27955 2009-12-31  Bruno Haible  <bruno@clisp.org>
27956
27957         times: Update after sys_times changed.
27958         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
27959         * modules/times (Files): Add it.
27960         (configure.ac): Invoke gl_FUNC_TIMES.
27961
27962 2009-12-31  Bruno Haible  <bruno@clisp.org>
27963
27964         Use AC_C_INLINE where necessary.
27965         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
27966         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
27967         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
27968         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
27969         * m4/mbfile.m4 (gl_MBFILE): Likewise.
27970         * m4/mbiter.m4 (gl_MBITER): Likewise.
27971         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
27972         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
27973         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
27974         * modules/u64 (configure.ac): Likewise.
27975
27976 2009-12-31  Bruno Haible  <bruno@clisp.org>
27977
27978         Use AC_C_INLINE instead of module 'inline' where possible.
27979         * modules/inline (Description): Clarify purpose.
27980         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
27981         * modules/count-one-bits (Depends-on): Remove inline.
27982         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
27983         * modules/openat (Depends-on): Remove inline.
27984         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
27985         instead of depending on module 'inline'.
27986         * modules/filevercmp (Depends-on, configure.ac): Likewise.
27987         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
27988         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
27989         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
27990         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
27991         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
27992         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
27993         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
27994         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
27995         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
27996         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
27997         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
27998         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
27999         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
28000         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
28001         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
28002         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
28003         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
28004         Likewise.
28005         * modules/unictype/property-ascii-hex-digit (Depends-on,
28006         configure.ac): Likewise.
28007         * modules/unictype/property-bidi-arabic-digit (Depends-on,
28008         configure.ac): Likewise.
28009         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
28010         configure.ac): Likewise.
28011         * modules/unictype/property-bidi-block-separator (Depends-on,
28012         configure.ac): Likewise.
28013         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
28014         configure.ac): Likewise.
28015         * modules/unictype/property-bidi-common-separator (Depends-on,
28016         configure.ac): Likewise.
28017         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
28018         Likewise.
28019         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
28020         configure.ac): Likewise.
28021         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
28022         configure.ac): Likewise.
28023         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
28024         configure.ac): Likewise.
28025         * modules/unictype/property-bidi-european-digit (Depends-on,
28026         configure.ac): Likewise.
28027         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
28028         configure.ac): Likewise.
28029         * modules/unictype/property-bidi-left-to-right (Depends-on,
28030         configure.ac): Likewise.
28031         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
28032         configure.ac): Likewise.
28033         * modules/unictype/property-bidi-other-neutral (Depends-on,
28034         configure.ac): Likewise.
28035         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
28036         Likewise.
28037         * modules/unictype/property-bidi-segment-separator (Depends-on,
28038         configure.ac): Likewise.
28039         * modules/unictype/property-bidi-whitespace (Depends-on,
28040         configure.ac): Likewise.
28041         * modules/unictype/property-combining (Depends-on, configure.ac):
28042         Likewise.
28043         * modules/unictype/property-composite (Depends-on, configure.ac):
28044         Likewise.
28045         * modules/unictype/property-currency-symbol (Depends-on,
28046         configure.ac): Likewise.
28047         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
28048         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
28049         Likewise.
28050         * modules/unictype/property-default-ignorable-code-point (Depends-on,
28051         configure.ac): Likewise.
28052         * modules/unictype/property-deprecated (Depends-on, configure.ac):
28053         Likewise.
28054         * modules/unictype/property-diacritic (Depends-on, configure.ac):
28055         Likewise.
28056         * modules/unictype/property-extender (Depends-on, configure.ac):
28057         Likewise.
28058         * modules/unictype/property-format-control (Depends-on, configure.ac):
28059         Likewise.
28060         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
28061         Likewise.
28062         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
28063         Likewise.
28064         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
28065         Likewise.
28066         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
28067         Likewise.
28068         * modules/unictype/property-hyphen (Depends-on, configure.ac):
28069         Likewise.
28070         * modules/unictype/property-id-continue (Depends-on, configure.ac):
28071         Likewise.
28072         * modules/unictype/property-id-start (Depends-on, configure.ac):
28073         Likewise.
28074         * modules/unictype/property-ideographic (Depends-on, configure.ac):
28075         Likewise.
28076         * modules/unictype/property-ids-binary-operator (Depends-on,
28077         configure.ac): Likewise.
28078         * modules/unictype/property-ids-trinary-operator (Depends-on,
28079         configure.ac): Likewise.
28080         * modules/unictype/property-ignorable-control (Depends-on,
28081         configure.ac): Likewise.
28082         * modules/unictype/property-iso-control (Depends-on, configure.ac):
28083         Likewise.
28084         * modules/unictype/property-join-control (Depends-on, configure.ac):
28085         Likewise.
28086         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
28087         Likewise.
28088         * modules/unictype/property-line-separator (Depends-on, configure.ac):
28089         Likewise.
28090         * modules/unictype/property-logical-order-exception (Depends-on,
28091         configure.ac): Likewise.
28092         * modules/unictype/property-lowercase (Depends-on, configure.ac):
28093         Likewise.
28094         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
28095         * modules/unictype/property-non-break (Depends-on, configure.ac):
28096         Likewise.
28097         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
28098         Likewise.
28099         * modules/unictype/property-numeric (Depends-on, configure.ac):
28100         Likewise.
28101         * modules/unictype/property-other-alphabetic (Depends-on,
28102         configure.ac): Likewise.
28103         * modules/unictype/property-other-default-ignorable-code-point
28104         (Depends-on, configure.ac): Likewise.
28105         * modules/unictype/property-other-grapheme-extend (Depends-on,
28106         configure.ac): Likewise.
28107         * modules/unictype/property-other-id-continue (Depends-on,
28108         configure.ac): Likewise.
28109         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
28110         Likewise.
28111         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
28112         Likewise.
28113         * modules/unictype/property-other-math (Depends-on, configure.ac):
28114         Likewise.
28115         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
28116         Likewise.
28117         * modules/unictype/property-paired-punctuation (Depends-on,
28118         configure.ac): Likewise.
28119         * modules/unictype/property-paragraph-separator (Depends-on,
28120         configure.ac): Likewise.
28121         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
28122         Likewise.
28123         * modules/unictype/property-pattern-white-space (Depends-on,
28124         configure.ac): Likewise.
28125         * modules/unictype/property-private-use (Depends-on, configure.ac):
28126         Likewise.
28127         * modules/unictype/property-punctuation (Depends-on, configure.ac):
28128         Likewise.
28129         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
28130         Likewise.
28131         * modules/unictype/property-radical (Depends-on, configure.ac):
28132         Likewise.
28133         * modules/unictype/property-sentence-terminal (Depends-on,
28134         configure.ac): Likewise.
28135         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
28136         Likewise.
28137         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
28138         * modules/unictype/property-terminal-punctuation (Depends-on,
28139         configure.ac): Likewise.
28140         * modules/unictype/property-titlecase (Depends-on, configure.ac):
28141         Likewise.
28142         * modules/unictype/property-unassigned-code-value (Depends-on,
28143         configure.ac): Likewise.
28144         * modules/unictype/property-unified-ideograph (Depends-on,
28145         configure.ac): Likewise.
28146         * modules/unictype/property-uppercase (Depends-on, configure.ac):
28147         Likewise.
28148         * modules/unictype/property-variation-selector (Depends-on,
28149         configure.ac): Likewise.
28150         * modules/unictype/property-white-space (Depends-on, configure.ac):
28151         Likewise.
28152         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
28153         Likewise.
28154         * modules/unictype/property-xid-start (Depends-on, configure.ac):
28155         Likewise.
28156         * modules/unictype/property-zero-width (Depends-on, configure.ac):
28157         Likewise.
28158         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
28159         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
28160         Likewise.
28161
28162 2009-12-31  Bruno Haible  <bruno@clisp.org>
28163
28164         Remove unnecessary AC_C_INLINE invocation.
28165         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
28166         since 2009-08-21.
28167
28168 2009-12-31  Jim Meyering  <meyering@redhat.com>
28169
28170         maint.mk: don't require explicit gpg_key_ID in cfg.mk
28171         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
28172         With this change, we can all remove the gpg_key_ID = ... definition
28173         from our respective cfg.mk files.
28174
28175         maint.mk: create announcement template in ~/, not in /tmp
28176         * top/maint.mk (emit_upload_commands): Adjust.
28177         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
28178         Remove temporary file, .ci-msg.
28179
28180 2009-12-31  Eric Blake  <ebb9@byu.net>
28181
28182         link-warning: always build headers with link warnings
28183         * modules/arpa_inet (Makefile.am): Always build replacement
28184         header.
28185         * modules/ctype (Makefile.am): Likewise.
28186         * modules/dirent (Makefile.am): Likewise.
28187         * modules/inttypes (Makefile.am): Likewise.
28188         * modules/langinfo (Makefile.am): Likewise.
28189         * modules/locale (Makefile.am): Likewise.
28190         * modules/spawn (Makefile.am): Likewise.
28191         * modules/sys_file (Makefile.am): Likewise.
28192         * modules/sys_ioctl (Makefile.am): Likewise.
28193         * modules/sys_select (Makefile.am): Likewise.
28194         * modules/sys_socket (Makefile.am): Likewise.
28195         * modules/sys_times (Makefile.am): Likewise.
28196         * modules/sys_utsname (Makefile.am): Likewise.
28197         * modules/sys_wait (Makefile.am): Likewise.
28198         * modules/wchar (Makefile.am): Likewise.
28199         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
28200         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
28201         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
28202         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
28203         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
28204         Likewise.
28205         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
28206         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
28207         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
28208         Likewise.
28209         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
28210         Likewise.
28211         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
28212         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
28213         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
28214         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
28215         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
28216         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
28217         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
28218         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
28219         (gl_WCHAR_H_DEFAULTS): Likewise.
28220
28221 2009-12-31  Eric Blake  <ebb9@byu.net>
28222
28223         signal, spawn: use link warnings
28224         * lib/signal.in.h (sigset_t): Make unconditional.
28225         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
28226         (sigpending, sigprocmask, sigaction): Add link warnings.
28227         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
28228         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
28229         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
28230         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
28231         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
28232         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
28233         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
28234         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
28235         (posix_spawn_file_actions_destroy)
28236         (posix_spawn_file_actions_addopen)
28237         (posix_spawn_file_actions_addclose)
28238         (posix_spawn_file_actions_adddup2): Likewise.
28239         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
28240         * tests/test-signal.c (main): Enhance test.
28241
28242         spawn: improve wrapper support
28243         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
28244         (gl_SPAWN_H_DEFAULTS): New defaults.
28245         * modules/spawn (Makefile.am): Substitute them.
28246         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
28247         Only declare if missing or broken.
28248
28249         sys_times, sys_utsname: use include_next
28250         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
28251         header.
28252         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
28253         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
28254         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
28255         * modules/sys_times (Depends-on): Add include_next.
28256         (Makefile.am): Substitute additional values.
28257         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
28258         * lib/sys_times.in.h (includes): Include native header, if
28259         available.
28260         * lib/sys_utsname.in.h (includes): Likewise.
28261         * tests/test-sys_times.c (main): Enhance test.
28262
28263         fdutimensat: revert prior patch
28264         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
28265         utimens.h.
28266         Reported by Bruno Haible.
28267
28268 2009-12-30  Eric Blake  <ebb9@byu.net>
28269
28270         sys_wait: drop link-warning dependency
28271         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
28272         link-warning efforts.
28273         * lib/sys_wait.in.h: Likewise.
28274
28275         fdutimensat: remove bogus dependency
28276         * modules/fdutimensat (Depends-on): Drop inline.
28277
28278         unistd: fix typo
28279         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
28280
28281 2009-12-30  Bruno Haible  <bruno@clisp.org>
28282
28283         Fix compilation error with Solaris cc.
28284         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
28285         * lib/unicase/u16-is-invariant.c: Likewise.
28286         * lib/unicase/u32-is-invariant.c: Likewise.
28287         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
28288
28289 2009-12-30  Bruno Haible  <bruno@clisp.org>
28290
28291         Fix test crash.
28292         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
28293         locales.
28294         Reported by Simon Josefsson <simon@josefsson.org>.
28295
28296 2009-12-30  Bruno Haible  <bruno@clisp.org>
28297
28298         Fix compilation error on most platforms.
28299         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
28300         Reported by Simon Josefsson <simon@josefsson.org>
28301         and Nelson H. F. Beebe <beebe@math.utah.edu>.
28302
28303 2009-12-30  Eric Blake  <ebb9@byu.net>
28304
28305         futimens, utimensat: work around ntfs-3g bug
28306         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
28307         a ctime bug is present, and expand workaround to cover ntfs-3g.
28308         * lib/utimens.c (fdutimens, lutimens): Likewise.
28309         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
28310         (validate_timespec): Adjust return value.
28311         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
28312         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
28313         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
28314
28315 2009-12-29  Eric Blake  <ebb9@byu.net>
28316
28317         link-warning: make usage consistent
28318         * modules/ctype (Depends-on): Add link-warning.
28319         (Makefile.am): Update rules accordingly.
28320         * modules/langinfo (Depends-on, Makefile.am): Likewise.
28321         * modules/locale (Depends-on, Makefile.am): Likewise.
28322         * modules/sys_file (Makefile.am): Likewise.
28323         * modules/getopt-posix (Makefile.am): Delete unused link warning
28324         efforts.
28325         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
28326         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
28327         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
28328         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
28329
28330         stdio: remove unused variables
28331         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
28332         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
28333         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
28334
28335         tests: test more substitute headers
28336         * modules/ctype-tests: New file.
28337         * modules/dirent-tests: Likewise.
28338         * modules/spawn-tests: Likewise.
28339         * modules/sys_file-tests: Likewise.
28340         * modules/sys_ioctl-tests: Likewise.
28341         * modules/sys_wait-tests: Likewise.
28342         * tests/test-ctype.c: Likewise.
28343         * tests/test-dirent.c: Likewise.
28344         * tests/test-spawn.c: Likewise.
28345         * tests/test-sys_file.c: Likewise.
28346         * tests/test-sys_ioctl.c: Likewise.
28347         * tests/test-sys_wait.c: Likewise.
28348         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
28349         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
28350         whether or not flock is in use.
28351
28352         tests: remove License section from module
28353         * modules/arpa_inet-tests: Remove unneeded section.
28354         * modules/byteswap-tests: Likewise.
28355         * modules/ceilf-tests: Likewise.
28356         * modules/ceill-tests: Likewise.
28357         * modules/crypto/des-tests: Likewise.
28358         * modules/crypto/gc-arcfour-tests: Likewise.
28359         * modules/crypto/gc-arctwo-tests: Likewise.
28360         * modules/crypto/gc-des-tests: Likewise.
28361         * modules/crypto/gc-hmac-md5-tests: Likewise.
28362         * modules/crypto/gc-hmac-sha1-tests: Likewise.
28363         * modules/crypto/gc-md2-tests: Likewise.
28364         * modules/crypto/gc-md4-tests: Likewise.
28365         * modules/crypto/gc-md5-tests: Likewise.
28366         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
28367         * modules/crypto/gc-rijndael-tests: Likewise.
28368         * modules/crypto/gc-sha1-tests: Likewise.
28369         * modules/crypto/gc-tests: Likewise.
28370         * modules/crypto/md2-tests: Likewise.
28371         * modules/crypto/md4-tests: Likewise.
28372         * modules/fcntl-h-tests: Likewise.
28373         * modules/floorf-tests: Likewise.
28374         * modules/floorl-tests: Likewise.
28375         * modules/frexp-nolibm-tests: Likewise.
28376         * modules/frexp-tests: Likewise.
28377         * modules/frexpl-nolibm-tests: Likewise.
28378         * modules/frexpl-tests: Likewise.
28379         * modules/getaddrinfo-tests: Likewise.
28380         * modules/inttypes-tests: Likewise.
28381         * modules/isfinite-tests: Likewise.
28382         * modules/isinf-tests: Likewise.
28383         * modules/ldexpl-tests: Likewise.
28384         * modules/locale-tests: Likewise.
28385         * modules/math-tests: Likewise.
28386         * modules/netdb-tests: Likewise.
28387         * modules/netinet_in-tests: Likewise.
28388         * modules/printf-frexp-tests: Likewise.
28389         * modules/printf-frexpl-tests: Likewise.
28390         * modules/priv-set-tests: Likewise.
28391         * modules/random_r-tests: Likewise.
28392         * modules/round-tests: Likewise.
28393         * modules/roundf-tests: Likewise.
28394         * modules/roundl-tests: Likewise.
28395         * modules/search-tests: Likewise.
28396         * modules/select-tests: Likewise.
28397         * modules/signal-tests: Likewise.
28398         * modules/stdbool-tests: Likewise.
28399         * modules/stddef-tests: Likewise.
28400         * modules/stdint-tests: Likewise.
28401         * modules/stdio-tests: Likewise.
28402         * modules/stdlib-tests: Likewise.
28403         * modules/string-tests: Likewise.
28404         * modules/strings-tests: Likewise.
28405         * modules/sys_select-tests: Likewise.
28406         * modules/sys_socket-tests: Likewise.
28407         * modules/sys_stat-tests: Likewise.
28408         * modules/sys_time-tests: Likewise.
28409         * modules/sys_utsname-tests: Likewise.
28410         * modules/sysexits-tests: Likewise.
28411         * modules/time-tests: Likewise.
28412         * modules/trunc-tests: Likewise.
28413         * modules/truncf-tests: Likewise.
28414         * modules/truncl-tests: Likewise.
28415         * modules/tsearch-tests: Likewise.
28416         * modules/unistd-tests: Likewise.
28417         * modules/wchar-tests: Likewise.
28418         * modules/wctype-tests: Likewise.
28419
28420         tests: fix license on several tests
28421         * tests/test-des.c: Update to GPLv3+.
28422         * tests/test-flock.c: Likewise.
28423         * tests/test-fsync.c: Likewise.
28424         * tests/test-futimens.h: Likewise.
28425         * tests/test-gc-arcfour.c: Likewise.
28426         * tests/test-gc-arctwo.c: Likewise.
28427         * tests/test-gc-des.c: Likewise.
28428         * tests/test-gc-hmac-md5.c: Likewise.
28429         * tests/test-gc-hmac-sha1.c: Likewise.
28430         * tests/test-gc-md2.c: Likewise.
28431         * tests/test-gc-md4.c: Likewise.
28432         * tests/test-gc-md5.c: Likewise.
28433         * tests/test-gc-pbkdf2-sha1.c: Likewise.
28434         * tests/test-gc-rijndael.c: Likewise.
28435         * tests/test-gc-sha1.c: Likewise.
28436         * tests/test-gc.c: Likewise.
28437         * tests/test-getcwd.c: Likewise.
28438         * tests/test-link.c: Likewise.
28439         * tests/test-link.h: Likewise.
28440         * tests/test-lutimens.h: Likewise.
28441         * tests/test-md2.c: Likewise.
28442         * tests/test-md4.c: Likewise.
28443         * tests/test-mkdir.h: Likewise.
28444         * tests/test-rename.c: Likewise.
28445         * tests/test-rename.h: Likewise.
28446         * tests/test-safe-alloc.c: Likewise.
28447         * tests/test-utimens-common.h: Likewise.
28448         * tests/test-utimens.h: Likewise.
28449
28450         maint: sync license texts
28451         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
28452         * doc/gpl-3.0.texi: Revert copyright year update.
28453         * doc/lgpl-3.0.texi: Likewise.
28454
28455 2009-12-29  Jim Meyering  <meyering@redhat.com>
28456
28457         update nearly all FSF copyright year lists to include 2009
28458         The files named by the following are exempted:
28459             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
28460               test -f "$dst" && { echo "$dst"; continue; }
28461               test -d "$dst" || continue
28462               echo "$dst"/$(basename "$src")
28463             done > exempt
28464             git ls-files tests/unictype >> exempt
28465         In the remaining files, convert to all-interval notation if
28466         - there is already at least one year interval like 2000-2003
28467         - the file is maintained by me
28468         - the file is in lib/uni*/, where that style already prevails
28469         Otherwise, use update-copyright's default.
28470
28471 2009-12-29  Simon Josefsson  <simon@josefsson.org>
28472         and Eric Blake  <ebb9@byu.net>
28473
28474         tests: don't require debug system() to pass
28475         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
28476         * tests/test-rmdir.h (test_rmdir_func): Likewise.
28477         * tests/test-unlink.h (test_unlink_func): Likewise.
28478         * tests/test-fstatat.c (main): ...into callers.
28479         * tests/test-lstat.c (main): Likewise.
28480         * tests/test-rmdir.c (main): Likewise.
28481         * tests/test-unlink.c (main): Likewise.
28482         * tests/test-unlinkat.c (main): Likewise.
28483         * tests/test-areadlink-with-size.c (main): Don't require a
28484         debug-only system call to pass, aiding cross-testing to mingw.
28485         * tests/test-areadlink.c (main): Likewise.
28486         * tests/test-areadlinkat-with-size.c (main): Likewise.
28487         * tests/test-areadlinkat.c (main): Likewise.
28488         * tests/test-canonicalize-lgpl.c (main): Likewise.
28489         * tests/test-canonicalize.c (main): Likewise.
28490         * tests/test-chown.c (main): Likewise.
28491         * tests/test-fchownat.c (main): Likewise.
28492         * tests/test-lchown.c (main): Likewise.
28493         * tests/test-fdutimensat.c (main): Likewise.
28494         * tests/test-futimens.c (main): Likewise.
28495         * tests/test-link.c (main): Likewise.
28496         * tests/test-linkat.c (main): Likewise.
28497         * tests/test-mkdir.c (main): Likewise.
28498         * tests/test-mkdirat.c (main): Likewise.
28499         * tests/test-mkfifo.c (main): Likewise.
28500         * tests/test-mkfifoat.c (main): Likewise.
28501         * tests/test-mknod.c (main): Likewise.
28502         * tests/test-readlink.c (main): Likewise.
28503         * tests/test-remove.c (main): Likewise.
28504         * tests/test-rename.c (main): Likewise.
28505         * tests/test-renameat.c (main): Likewise.
28506         * tests/test-symlink.c (main): Likewise.
28507         * tests/test-symlinkat.c (main): Likewise.
28508         * tests/test-utimens.c (main): Likewise.
28509         * tests/test-utimensat.c (main): Likewise.
28510
28511 2009-12-29  Simon Josefsson  <simon@josefsson.org>
28512
28513         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
28514         on $(UNUSED_PARAMETER_H) to avoid build failure.
28515
28516 2009-12-28  Jim Meyering  <meyering@redhat.com>
28517
28518         update-copyright: you may specify a max. line length other than 72
28519         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
28520
28521         maint: use consistent FSF copyright line syntax
28522         * lib/posixtm.c: Add missing comma in FSF copyright line.
28523         * lib/posixtm.h: Likewise.
28524         * lib/getugroups.c: Add missing ", Inc.".
28525
28526         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
28527         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
28528         FSF copyright line.  Remove trailing blanks.
28529
28530 2009-12-28  Eric Blake  <ebb9@byu.net>
28531
28532         test-dup2: reduce dependencies
28533         * modules/cloexec (Configure.ac): Set witness.
28534         * modules/dup2-tests (Depends-on): Drop cloexec.
28535         * tests/test-dup2.c (main): Skip portion of test if cloexec module
28536         not present.
28537         Suggested by Bruno Haible.
28538
28539 2009-12-26  Bruno Haible  <bruno@clisp.org>
28540
28541         Remove an unneeded dependency.
28542         * modules/fseterr (Depends-on): Remove dup2.
28543
28544 2009-12-26  Eric Blake  <ebb9@byu.net>
28545
28546         tests: use macros.h in more places
28547         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
28548         (ASSERT_STREAM): Provide default of stderr.
28549         * tests/test-dirent-safer.c: Include macros.h, using alternate
28550         stream for assertions.
28551         * tests/test-dup-safer.c: Likewise.
28552         * tests/test-freopen-safer.c: Likewise.
28553         * tests/test-getopt.c: Likewise.
28554         * tests/test-openat-safer.c: Likewise.
28555         * tests/test-pipe.c: Likewise.
28556         * tests/test-popen-safer.c: Likewise.
28557         * modules/dirent-safer-tests (Files): Include macros.h.
28558         * modules/unistd-safer-tests (Files): Likewise.
28559         * modules/freopen-safer-tests (Files): Likewise.
28560         * modules/getopt-posix-tests (Files): Likewise.
28561         * modules/openat-safer-tests (Files): Likewise.
28562         * modules/pipe-tests (Files): Likewise.
28563
28564 2009-12-26  Bruno Haible  <bruno@clisp.org>
28565
28566         javacomp: Portability fix.
28567         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
28568         that it also works on Solaris.
28569
28570 2009-12-26  Bruno Haible  <bruno@clisp.org>
28571
28572         localename: Fix storage allocation of gl_locale_name_thread's result.
28573         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
28574         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
28575         all platforms that have 'uselocale'.
28576         (gl_locale_name_thread_unsafe): New function, extracted from
28577         gl_locale_name_thread.
28578         (gl_locale_name_thread): Call struniq on all platforms that have
28579         'uselocale'.
28580         * tests/test-localename.c (test_locale_name_thread): Check that the
28581         resulting strings are permanently allocated.
28582         * modules/localename-tests (Depends-on): Add strdup.
28583
28584 2009-12-26  Bruno Haible  <bruno@clisp.org>
28585
28586         * tests/test-localename.c (categories): Fill in the strings.
28587
28588 2009-12-26  Jim Meyering  <meyering@redhat.com>
28589
28590         isdir: complete the removal of m4/isdir.m4
28591         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
28592
28593         isdir: clean up, since at least grep still uses it
28594         * lib/isdir.c: Include "isdir.h".
28595         (S_ISDIR): Remove now-unneeded definition.
28596         * modules/isdir (Files): Add lib/isdir.h.
28597         * lib/isdir.h: New file, with declaration.
28598         * m4/isdir.m4: Remove file -- unneeded.
28599
28600 2009-12-25  Bruno Haible  <bruno@clisp.org>
28601
28602         selinux-h: Make generated .h files standalone.
28603         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
28604         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
28605         * lib/se-selinux.in.h: Likewise.
28606         * modules/selinux-h (Depends-on): Add unused-parameter.
28607         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
28608         selinux/selinux.h and selinux/context.h.
28609         Suggested by Eric Blake.
28610
28611 2009-12-25  Bruno Haible  <bruno@clisp.org>
28612
28613         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
28614         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
28615         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
28616         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
28617         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
28618
28619 2009-12-24  Bruno Haible  <bruno@clisp.org>
28620
28621         openat: Fix warning.
28622         * lib/openat-proc.c: Include <unistd.h>.
28623
28624 2009-12-24  Bruno Haible  <bruno@clisp.org>
28625
28626         New module 'unused-parameter'.
28627         * build-aux/unused-parameter.h: New file, extracted from earlier
28628         gnulib-common.m4.
28629         * modules/unused-parameter: New file.
28630         * lib/unistr.h: Include unused-parameter.h.
28631         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
28632         _GL_UNUSED.
28633         * modules/unistr/base (Depends-on): Add unused-parameter.
28634
28635 2009-12-24  Bruno Haible  <bruno@clisp.org>
28636
28637         Add missing dependencies to 'extensions' module.
28638         * m4/extensions.m4: Add comment.
28639         * modules/accept4 (Depends-on): Add extensions.
28640         * modules/dup3 (Depends-on): Likewise.
28641         * modules/fcntl (Depends-on): Likewise.
28642         * modules/futimens (Depends-on): Likewise.
28643         * modules/mknod (Depends-on): Likewise.
28644         * modules/pipe2 (Depends-on): Likewise.
28645         * modules/stat-time (Depends-on): Likewise.
28646         * modules/strcasestr-simple (Depends-on): Likewise.
28647         * modules/strsignal (Depends-on): Likewise.
28648         * modules/utimensat (Depends-on): Likewise.
28649         * modules/localcharset (Depends-on): Likewise. Needed because of
28650         gl_FCNTL_O_FLAGS.
28651         * modules/wcrtomb (Depends-on): Likewise. Needed because of
28652         AC_TYPE_MBSTATE_T.
28653         * modules/wcsnrtombs (Depends-on): Likewise.
28654         * modules/wcsrtombs (Depends-on): Likewise.
28655
28656 2009-12-24  Bruno Haible  <bruno@clisp.org>
28657
28658         binary-io: Avoid gcc warning due to SET_BINARY.
28659         * lib/binary-io.h (SET_BINARY): Cast the result to void.
28660         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
28661
28662 2009-12-24  Bruno Haible  <bruno@clisp.org>
28663
28664         Avoid future namespace pollution on glibc systems.
28665         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
28666         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
28667         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
28668         glibc systems.
28669
28670 2009-12-24  Bruno Haible  <bruno@clisp.org>
28671
28672         Refactor common macros used in tests.
28673         * tests/macros.h: New file.
28674         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
28675         and/or <stdlib.h>, if appropriate.
28676         (ASSERT, SIZEOF): Remove macros.
28677         * tests/test-areadlink-with-size.c: Likewise.
28678         * tests/test-areadlinkat.c: Likewise.
28679         * tests/test-areadlinkat-with-size.c: Likewise.
28680         * tests/test-argmatch.c: Likewise.
28681         * tests/test-argv-iter.c: Likewise.
28682         * tests/test-array-mergesort.c: Likewise.
28683         * tests/test-array_list.c: Likewise.
28684         * tests/test-array_oset.c: Likewise.
28685         * tests/test-avltree_list.c: Likewise.
28686         * tests/test-avltree_oset.c: Likewise.
28687         * tests/test-avltreehash_list.c: Likewise.
28688         * tests/test-base64.c: Likewise.
28689         * tests/test-binary-io.c: Likewise.
28690         * tests/test-bitrotate.c: Likewise.
28691         * tests/test-btowc.c: Likewise.
28692         * tests/test-byteswap.c: Likewise.
28693         * tests/test-c-ctype.c: Likewise.
28694         * tests/test-c-stack.c: Likewise.
28695         * tests/test-c-strcasecmp.c: Likewise.
28696         * tests/test-c-strcasestr.c: Likewise.
28697         * tests/test-c-strncasecmp.c: Likewise.
28698         * tests/test-c-strstr.c: Likewise.
28699         * tests/test-canonicalize-lgpl.c: Likewise.
28700         * tests/test-canonicalize.c: Likewise.
28701         * tests/test-carray_list.c: Likewise.
28702         * tests/test-ceilf1.c: Likewise.
28703         * tests/test-ceilf2.c: Likewise.
28704         * tests/test-ceill.c: Likewise.
28705         * tests/test-chown.c: Likewise.
28706         * tests/test-cloexec.c: Likewise.
28707         * tests/test-copy-acl.c: Likewise.
28708         * tests/test-copy-file.c: Likewise.
28709         * tests/test-count-one-bits.c: Likewise.
28710         * tests/test-dprintf-posix.c: Likewise.
28711         * tests/test-dup2.c: Likewise.
28712         * tests/test-dup3.c: Likewise.
28713         * tests/test-duplocale.c: Likewise.
28714         * tests/test-fbufmode.c: Likewise.
28715         * tests/test-fchdir.c: Likewise.
28716         * tests/test-fchownat.c: Likewise.
28717         * tests/test-fcntl-safer.c: Likewise.
28718         * tests/test-fcntl.c: Likewise.
28719         * tests/test-fdopendir.c: Likewise.
28720         * tests/test-fdutimensat.c: Likewise.
28721         * tests/test-fflush2.c: Likewise.
28722         * tests/test-file-has-acl.c: Likewise.
28723         * tests/test-filevercmp.c: Likewise.
28724         * tests/test-flock.c: Likewise.
28725         * tests/test-floorf1.c: Likewise.
28726         * tests/test-floorf2.c: Likewise.
28727         * tests/test-floorl.c: Likewise.
28728         * tests/test-fnmatch.c: Likewise.
28729         * tests/test-fopen.h: Likewise.
28730         * tests/test-fpending.c: Likewise.
28731         * tests/test-fprintf-posix.c: Likewise.
28732         * tests/test-fpurge.c: Likewise.
28733         * tests/test-freadable.c: Likewise.
28734         * tests/test-freadahead.c: Likewise.
28735         * tests/test-freading.c: Likewise.
28736         * tests/test-freadptr.c: Likewise.
28737         * tests/test-freadptr2.c: Likewise.
28738         * tests/test-freadseek.c: Likewise.
28739         * tests/test-freopen.c: Likewise.
28740         * tests/test-frexp.c: Likewise.
28741         * tests/test-frexpl.c: Likewise.
28742         * tests/test-fseek.c: Likewise.
28743         * tests/test-fseeko.c: Likewise.
28744         * tests/test-fstatat.c: Likewise.
28745         * tests/test-fstrcmp.c: Likewise.
28746         * tests/test-fsync.c: Likewise.
28747         * tests/test-ftell.c: Likewise.
28748         * tests/test-ftello.c: Likewise.
28749         * tests/test-func.c: Likewise.
28750         * tests/test-futimens.c: Likewise.
28751         * tests/test-fwritable.c: Likewise.
28752         * tests/test-fwriting.c: Likewise.
28753         * tests/test-getcwd.c: Likewise.
28754         * tests/test-getdate.c: Likewise.
28755         * tests/test-getdelim.c: Likewise.
28756         * tests/test-getdtablesize.c: Likewise.
28757         * tests/test-getgroups.c: Likewise.
28758         * tests/test-getline.c: Likewise.
28759         * tests/test-getndelim2.c: Likewise.
28760         * tests/test-glob.c: Likewise.
28761         * tests/test-hash.c: Likewise.
28762         * tests/test-i-ring.c: Likewise.
28763         * tests/test-iconv-utf.c: Likewise.
28764         * tests/test-iconv.c: Likewise.
28765         * tests/test-idpriv-drop.c: Likewise.
28766         * tests/test-idpriv-droptemp.c: Likewise.
28767         * tests/test-inet_ntop.c: Likewise.
28768         * tests/test-inet_pton.c: Likewise.
28769         * tests/test-isblank.c: Likewise.
28770         * tests/test-isfinite.c: Likewise.
28771         * tests/test-isinf.c: Likewise.
28772         * tests/test-isnan.c: Likewise.
28773         * tests/test-isnand.h: Likewise.
28774         * tests/test-isnanf.h: Likewise.
28775         * tests/test-isnanl.h: Likewise.
28776         * tests/test-lchown.c: Likewise.
28777         * tests/test-ldexpl.c: Likewise.
28778         * tests/test-link.c: Likewise.
28779         * tests/test-linkat.c: Likewise.
28780         * tests/test-linked_list.c: Likewise.
28781         * tests/test-linkedhash_list.c: Likewise.
28782         * tests/test-localename.c: Likewise.
28783         * tests/test-lseek.c: Likewise.
28784         * tests/test-lstat.c: Likewise.
28785         * tests/test-mbmemcasecmp.c: Likewise.
28786         * tests/test-mbmemcasecoll.c: Likewise.
28787         * tests/test-mbrtowc.c: Likewise.
28788         * tests/test-mbscasecmp.c: Likewise.
28789         * tests/test-mbscasestr1.c: Likewise.
28790         * tests/test-mbscasestr2.c: Likewise.
28791         * tests/test-mbscasestr3.c: Likewise.
28792         * tests/test-mbscasestr4.c: Likewise.
28793         * tests/test-mbschr.c: Likewise.
28794         * tests/test-mbscspn.c: Likewise.
28795         * tests/test-mbsinit.c: Likewise.
28796         * tests/test-mbsncasecmp.c: Likewise.
28797         * tests/test-mbsnrtowcs.c: Likewise.
28798         * tests/test-mbspbrk.c: Likewise.
28799         * tests/test-mbspcasecmp.c: Likewise.
28800         * tests/test-mbsrchr.c: Likewise.
28801         * tests/test-mbsrtowcs.c: Likewise.
28802         * tests/test-mbsspn.c: Likewise.
28803         * tests/test-mbsstr1.c: Likewise.
28804         * tests/test-mbsstr2.c: Likewise.
28805         * tests/test-mbsstr3.c: Likewise.
28806         * tests/test-memchr.c: Likewise.
28807         * tests/test-memchr2.c: Likewise.
28808         * tests/test-memcmp.c: Likewise.
28809         * tests/test-memmem.c: Likewise.
28810         * tests/test-memrchr.c: Likewise.
28811         * tests/test-mkdir.c: Likewise.
28812         * tests/test-mkdirat.c: Likewise.
28813         * tests/test-mkfifo.c: Likewise.
28814         * tests/test-mkfifoat.c: Likewise.
28815         * tests/test-mknod.c: Likewise.
28816         * tests/test-nanosleep.c: Likewise.
28817         * tests/test-nl_langinfo.c: Likewise.
28818         * tests/test-obstack-printf.c: Likewise.
28819         * tests/test-open.c: Likewise.
28820         * tests/test-openat.c: Likewise.
28821         * tests/test-pipe-filter-gi1.c: Likewise.
28822         * tests/test-pipe-filter-gi2-main.c: Likewise.
28823         * tests/test-pipe-filter-ii1.c: Likewise.
28824         * tests/test-pipe-filter-ii2-main.c: Likewise.
28825         * tests/test-pipe2.c: Likewise.
28826         * tests/test-popen.h: Likewise.
28827         * tests/test-posixtm.c: Likewise.
28828         * tests/test-pread.c: Likewise.
28829         * tests/test-printf-frexp.c: Likewise.
28830         * tests/test-printf-frexpl.c: Likewise.
28831         * tests/test-printf-posix.c: Likewise.
28832         * tests/test-priv-set.c: Likewise.
28833         * tests/test-quotearg.c: Likewise.
28834         * tests/test-random_r.c: Likewise.
28835         * tests/test-rawmemchr.c: Likewise.
28836         * tests/test-rbtree_list.c: Likewise.
28837         * tests/test-rbtree_oset.c: Likewise.
28838         * tests/test-rbtreehash_list.c: Likewise.
28839         * tests/test-readlink.c: Likewise.
28840         * tests/test-remove.c: Likewise.
28841         * tests/test-rename.c: Likewise.
28842         * tests/test-renameat.c: Likewise.
28843         * tests/test-rmdir.c: Likewise.
28844         * tests/test-round1.c: Likewise.
28845         * tests/test-roundf1.c: Likewise.
28846         * tests/test-roundl.c: Likewise.
28847         * tests/test-safe-alloc.c: Likewise.
28848         * tests/test-sameacls.c: Likewise.
28849         * tests/test-set-mode-acl.c: Likewise.
28850         * tests/test-setenv.c: Likewise.
28851         * tests/test-sigaction.c: Likewise.
28852         * tests/test-signbit.c: Likewise.
28853         * tests/test-sleep.c: Likewise.
28854         * tests/test-snprintf-posix.c: Likewise.
28855         * tests/test-snprintf.c: Likewise.
28856         * tests/test-sprintf-posix.c: Likewise.
28857         * tests/test-stat-time.c: Likewise.
28858         * tests/test-stat.c: Likewise.
28859         * tests/test-strcasestr.c: Likewise.
28860         * tests/test-strchrnul.c: Likewise.
28861         * tests/test-strerror.c: Likewise.
28862         * tests/test-striconv.c: Likewise.
28863         * tests/test-striconveh.c: Likewise.
28864         * tests/test-striconveha.c: Likewise.
28865         * tests/test-strsignal.c: Likewise.
28866         * tests/test-strstr.c: Likewise.
28867         * tests/test-strtod.c: Likewise.
28868         * tests/test-strverscmp.c: Likewise.
28869         * tests/test-symlink.c: Likewise.
28870         * tests/test-symlinkat.c: Likewise.
28871         * tests/test-trunc1.c: Likewise.
28872         * tests/test-trunc2.c: Likewise.
28873         * tests/test-truncf1.c: Likewise.
28874         * tests/test-truncf2.c: Likewise.
28875         * tests/test-truncl.c: Likewise.
28876         * tests/test-uname.c: Likewise.
28877         * tests/test-unlink.c: Likewise.
28878         * tests/test-unlinkat.c: Likewise.
28879         * tests/test-unsetenv.c: Likewise.
28880         * tests/test-usleep.c: Likewise.
28881         * tests/test-utimens.c: Likewise.
28882         * tests/test-utimensat.c: Likewise.
28883         * tests/test-vasnprintf-posix.c: Likewise.
28884         * tests/test-vasnprintf-posix2.c: Likewise.
28885         * tests/test-vasnprintf.c: Likewise.
28886         * tests/test-vasprintf-posix.c: Likewise.
28887         * tests/test-vasprintf.c: Likewise.
28888         * tests/test-vdprintf-posix.c: Likewise.
28889         * tests/test-vfprintf-posix.c: Likewise.
28890         * tests/test-vprintf-posix.c: Likewise.
28891         * tests/test-vsnprintf-posix.c: Likewise.
28892         * tests/test-vsnprintf.c: Likewise.
28893         * tests/test-vsprintf-posix.c: Likewise.
28894         * tests/test-wcrtomb.c: Likewise.
28895         * tests/test-wcsnrtombs.c: Likewise.
28896         * tests/test-wcsrtombs.c: Likewise.
28897         * tests/test-wctype.c: Likewise.
28898         * tests/test-wcwidth.c: Likewise.
28899         * tests/test-xfprintf-posix.c: Likewise.
28900         * tests/test-xmemdup0.c: Likewise.
28901         * tests/test-xprintf-posix.c: Likewise.
28902         * tests/test-xvasprintf.c: Likewise.
28903         * tests/unicase/test-locale-language.c: Likewise.
28904         * tests/unicase/test-mapping-part1.h: Likewise.
28905         * tests/unicase/test-predicate-part1.h: Likewise.
28906         * tests/unicase/test-u8-casecmp.c: Likewise.
28907         * tests/unicase/test-u8-casecoll.c: Likewise.
28908         * tests/unicase/test-u8-casefold.c: Likewise.
28909         * tests/unicase/test-u8-is-cased.c: Likewise.
28910         * tests/unicase/test-u8-is-casefolded.c: Likewise.
28911         * tests/unicase/test-u8-is-lowercase.c: Likewise.
28912         * tests/unicase/test-u8-is-titlecase.c: Likewise.
28913         * tests/unicase/test-u8-is-uppercase.c: Likewise.
28914         * tests/unicase/test-u8-tolower.c: Likewise.
28915         * tests/unicase/test-u8-totitle.c: Likewise.
28916         * tests/unicase/test-u8-toupper.c: Likewise.
28917         * tests/unicase/test-u16-casecmp.c: Likewise.
28918         * tests/unicase/test-u16-casecoll.c: Likewise.
28919         * tests/unicase/test-u16-casefold.c: Likewise.
28920         * tests/unicase/test-u16-is-cased.c: Likewise.
28921         * tests/unicase/test-u16-is-casefolded.c: Likewise.
28922         * tests/unicase/test-u16-is-lowercase.c: Likewise.
28923         * tests/unicase/test-u16-is-titlecase.c: Likewise.
28924         * tests/unicase/test-u16-is-uppercase.c: Likewise.
28925         * tests/unicase/test-u16-tolower.c: Likewise.
28926         * tests/unicase/test-u16-totitle.c: Likewise.
28927         * tests/unicase/test-u16-toupper.c: Likewise.
28928         * tests/unicase/test-u32-casecmp.c: Likewise.
28929         * tests/unicase/test-u32-casecoll.c: Likewise.
28930         * tests/unicase/test-u32-casefold.c: Likewise.
28931         * tests/unicase/test-u32-is-cased.c: Likewise.
28932         * tests/unicase/test-u32-is-casefolded.c: Likewise.
28933         * tests/unicase/test-u32-is-lowercase.c: Likewise.
28934         * tests/unicase/test-u32-is-titlecase.c: Likewise.
28935         * tests/unicase/test-u32-is-uppercase.c: Likewise.
28936         * tests/unicase/test-u32-tolower.c: Likewise.
28937         * tests/unicase/test-u32-totitle.c: Likewise.
28938         * tests/unicase/test-u32-toupper.c: Likewise.
28939         * tests/unicase/test-ulc-casecmp.c: Likewise.
28940         * tests/unicase/test-ulc-casecoll.c: Likewise.
28941         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
28942         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
28943         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
28944         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
28945         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
28946         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
28947         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
28948         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
28949         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
28950         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
28951         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
28952         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
28953         * tests/unictype/test-bidi_byname.c: Likewise.
28954         * tests/unictype/test-bidi_name.c: Likewise.
28955         * tests/unictype/test-bidi_of.c: Likewise.
28956         * tests/unictype/test-bidi_test.c: Likewise.
28957         * tests/unictype/test-block_list.c: Likewise.
28958         * tests/unictype/test-block_of.c: Likewise.
28959         * tests/unictype/test-block_test.c: Likewise.
28960         * tests/unictype/test-categ_and.c: Likewise.
28961         * tests/unictype/test-categ_and_not.c: Likewise.
28962         * tests/unictype/test-categ_byname.c: Likewise.
28963         * tests/unictype/test-categ_name.c: Likewise.
28964         * tests/unictype/test-categ_none.c: Likewise.
28965         * tests/unictype/test-categ_of.c: Likewise.
28966         * tests/unictype/test-categ_or.c: Likewise.
28967         * tests/unictype/test-categ_test_withtable.c: Likewise.
28968         * tests/unictype/test-combining.c: Likewise.
28969         * tests/unictype/test-decdigit.c: Likewise.
28970         * tests/unictype/test-digit.c: Likewise.
28971         * tests/unictype/test-mirror.c: Likewise.
28972         * tests/unictype/test-numeric.c: Likewise.
28973         * tests/unictype/test-pr_byname.c: Likewise.
28974         * tests/unictype/test-pr_test.c: Likewise.
28975         * tests/unictype/test-predicate-part1.h: Likewise.
28976         * tests/unictype/test-scripts.c: Likewise.
28977         * tests/unictype/test-sy_c_ident.c: Likewise.
28978         * tests/unictype/test-sy_java_ident.c: Likewise.
28979         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
28980         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
28981         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
28982         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
28983         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
28984         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
28985         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
28986         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
28987         * tests/uninorm/test-canonical-decomposition.c: Likewise.
28988         * tests/uninorm/test-compat-decomposition.c: Likewise.
28989         * tests/uninorm/test-composition.c: Likewise.
28990         * tests/uninorm/test-decomposing-form.c: Likewise.
28991         * tests/uninorm/test-decomposition.c: Likewise.
28992         * tests/uninorm/test-u8-nfc.c: Likewise.
28993         * tests/uninorm/test-u8-nfd.c: Likewise.
28994         * tests/uninorm/test-u8-nfkc.c: Likewise.
28995         * tests/uninorm/test-u8-nfkd.c: Likewise.
28996         * tests/uninorm/test-u8-normcmp.c: Likewise.
28997         * tests/uninorm/test-u8-normcoll.c: Likewise.
28998         * tests/uninorm/test-u16-nfc.c: Likewise.
28999         * tests/uninorm/test-u16-nfd.c: Likewise.
29000         * tests/uninorm/test-u16-nfkc.c: Likewise.
29001         * tests/uninorm/test-u16-nfkd.c: Likewise.
29002         * tests/uninorm/test-u16-normcmp.c: Likewise.
29003         * tests/uninorm/test-u16-normcoll.c: Likewise.
29004         * tests/uninorm/test-u32-nfc.c: Likewise.
29005         * tests/uninorm/test-u32-nfd.c: Likewise.
29006         * tests/uninorm/test-u32-nfkc.c: Likewise.
29007         * tests/uninorm/test-u32-nfkd.c: Likewise.
29008         * tests/uninorm/test-u32-normalize-big.c: Likewise.
29009         * tests/uninorm/test-u32-normcmp.c: Likewise.
29010         * tests/uninorm/test-u32-normcoll.c: Likewise.
29011         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
29012         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
29013         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
29014         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
29015         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
29016         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
29017         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
29018         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
29019         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
29020         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
29021         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
29022         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
29023         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
29024         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
29025         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
29026         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
29027         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
29028         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
29029         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
29030         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
29031         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
29032         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
29033         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
29034         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
29035         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
29036         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
29037         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
29038         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
29039         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
29040         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
29041         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
29042         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
29043         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
29044         * tests/uniwidth/test-u8-strwidth.c: Likewise.
29045         * tests/uniwidth/test-u8-width.c: Likewise.
29046         * tests/uniwidth/test-u16-strwidth.c: Likewise.
29047         * tests/uniwidth/test-u16-width.c: Likewise.
29048         * tests/uniwidth/test-u32-strwidth.c: Likewise.
29049         * tests/uniwidth/test-u32-width.c: Likewise.
29050         * tests/uniwidth/test-uc_width.c: Likewise.
29051         * tests/uniwidth/test-uc_width2.c: Likewise.
29052         * modules/acl-tests (Files): Add tests/macros.h.
29053         * modules/areadlink-tests (Files): Likewise.
29054         * modules/areadlink-with-size-tests (Files): Likewise.
29055         * modules/areadlinkat-tests (Files): Likewise.
29056         * modules/areadlinkat-with-size-tests (Files): Likewise.
29057         * modules/argmatch-tests (Files): Likewise.
29058         * modules/argv-iter-tests (Files): Likewise.
29059         * modules/array-list-tests (Files): Likewise.
29060         * modules/array-mergesort-tests (Files): Likewise.
29061         * modules/array-oset-tests (Files): Likewise.
29062         * modules/avltree-list-tests (Files): Likewise.
29063         * modules/avltree-oset-tests (Files): Likewise.
29064         * modules/avltreehash-list-tests (Files): Likewise.
29065         * modules/base64-tests (Files): Likewise.
29066         * modules/binary-io-tests (Files): Likewise.
29067         * modules/bitrotate-tests (Files): Likewise.
29068         * modules/btowc-tests (Files): Likewise.
29069         * modules/byteswap-tests (Files): Likewise.
29070         * modules/c-ctype-tests (Files): Likewise.
29071         * modules/c-stack-tests (Files): Likewise.
29072         * modules/c-strcase-tests (Files): Likewise.
29073         * modules/c-strcasestr-tests (Files): Likewise.
29074         * modules/c-strstr-tests (Files): Likewise.
29075         * modules/canonicalize-lgpl-tests (Files): Likewise.
29076         * modules/canonicalize-tests (Files): Likewise.
29077         * modules/carray-list-tests (Files): Likewise.
29078         * modules/ceilf-tests (Files): Likewise.
29079         * modules/ceill-tests (Files): Likewise.
29080         * modules/chown-tests (Files): Likewise.
29081         * modules/cloexec-tests (Files): Likewise.
29082         * modules/copy-file-tests (Files): Likewise.
29083         * modules/count-one-bits-tests (Files): Likewise.
29084         * modules/dprintf-posix-tests (Files): Likewise.
29085         * modules/dup2-tests (Files): Likewise.
29086         * modules/dup3-tests (Files): Likewise.
29087         * modules/duplocale-tests (Files): Likewise.
29088         * modules/fbufmode-tests (Files): Likewise.
29089         * modules/fchdir-tests (Files): Likewise.
29090         * modules/fcntl-safer-tests (Files): Likewise.
29091         * modules/fcntl-tests (Files): Likewise.
29092         * modules/fdopendir-tests (Files): Likewise.
29093         * modules/fdutimensat-tests (Files): Likewise.
29094         * modules/fflush-tests (Files): Likewise.
29095         * modules/filevercmp-tests (Files): Likewise.
29096         * modules/flock-tests (Files): Likewise.
29097         * modules/floorf-tests (Files): Likewise.
29098         * modules/floorl-tests (Files): Likewise.
29099         * modules/fnmatch-tests (Files): Likewise.
29100         * modules/fopen-safer-tests (Files): Likewise.
29101         * modules/fopen-tests (Files): Likewise.
29102         * modules/fpending-tests (Files): Likewise.
29103         * modules/fprintf-posix-tests (Files): Likewise.
29104         * modules/fpurge-tests (Files): Likewise.
29105         * modules/freadable-tests (Files): Likewise.
29106         * modules/freadahead-tests (Files): Likewise.
29107         * modules/freading-tests (Files): Likewise.
29108         * modules/freadptr-tests (Files): Likewise.
29109         * modules/freadseek-tests (Files): Likewise.
29110         * modules/freopen-tests (Files): Likewise.
29111         * modules/frexp-nolibm-tests (Files): Likewise.
29112         * modules/frexp-tests (Files): Likewise.
29113         * modules/frexpl-nolibm-tests (Files): Likewise.
29114         * modules/frexpl-tests (Files): Likewise.
29115         * modules/fseek-tests (Files): Likewise.
29116         * modules/fseeko-tests (Files): Likewise.
29117         * modules/fstrcmp-tests (Files): Likewise.
29118         * modules/fsync-tests (Files): Likewise.
29119         * modules/ftell-tests (Files): Likewise.
29120         * modules/ftello-tests (Files): Likewise.
29121         * modules/func-tests (Files): Likewise.
29122         * modules/futimens-tests (Files): Likewise.
29123         * modules/fwritable-tests (Files): Likewise.
29124         * modules/fwriting-tests (Files): Likewise.
29125         * modules/getcwd-tests (Files): Likewise.
29126         * modules/getdate-tests (Files): Likewise.
29127         * modules/getdelim-tests (Files): Likewise.
29128         * modules/getdtablesize-tests (Files): Likewise.
29129         * modules/getgroups-tests (Files): Likewise.
29130         * modules/getline-tests (Files): Likewise.
29131         * modules/getndelim2-tests (Files): Likewise.
29132         * modules/glob-tests (Files): Likewise.
29133         * modules/hash-tests (Files): Likewise.
29134         * modules/i-ring-tests (Files): Likewise.
29135         * modules/iconv-tests (Files): Likewise.
29136         * modules/iconv_open-utf-tests (Files): Likewise.
29137         * modules/idpriv-drop-tests (Files): Likewise.
29138         * modules/idpriv-droptemp-tests (Files): Likewise.
29139         * modules/inet_ntop-tests (Files): Likewise.
29140         * modules/inet_pton-tests (Files): Likewise.
29141         * modules/isblank-tests (Files): Likewise.
29142         * modules/isfinite-tests (Files): Likewise.
29143         * modules/isinf-tests (Files): Likewise.
29144         * modules/isnan-tests (Files): Likewise.
29145         * modules/isnand-nolibm-tests (Files): Likewise.
29146         * modules/isnand-tests (Files): Likewise.
29147         * modules/isnanf-nolibm-tests (Files): Likewise.
29148         * modules/isnanf-tests (Files): Likewise.
29149         * modules/isnanl-nolibm-tests (Files): Likewise.
29150         * modules/isnanl-tests (Files): Likewise.
29151         * modules/lchown-tests (Files): Likewise.
29152         * modules/ldexpl-tests (Files): Likewise.
29153         * modules/link-tests (Files): Likewise.
29154         * modules/linkat-tests (Files): Likewise.
29155         * modules/linked-list-tests (Files): Likewise.
29156         * modules/linkedhash-list-tests (Files): Likewise.
29157         * modules/localename-tests (Files): Likewise.
29158         * modules/lseek-tests (Files): Likewise.
29159         * modules/lstat-tests (Files): Likewise.
29160         * modules/mbmemcasecmp-tests (Files): Likewise.
29161         * modules/mbmemcasecoll-tests (Files): Likewise.
29162         * modules/mbrtowc-tests (Files): Likewise.
29163         * modules/mbscasecmp-tests (Files): Likewise.
29164         * modules/mbscasestr-tests (Files): Likewise.
29165         * modules/mbschr-tests (Files): Likewise.
29166         * modules/mbscspn-tests (Files): Likewise.
29167         * modules/mbsinit-tests (Files): Likewise.
29168         * modules/mbsncasecmp-tests (Files): Likewise.
29169         * modules/mbsnrtowcs-tests (Files): Likewise.
29170         * modules/mbspbrk-tests (Files): Likewise.
29171         * modules/mbspcasecmp-tests (Files): Likewise.
29172         * modules/mbsrchr-tests (Files): Likewise.
29173         * modules/mbsrtowcs-tests (Files): Likewise.
29174         * modules/mbsspn-tests (Files): Likewise.
29175         * modules/mbsstr-tests (Files): Likewise.
29176         * modules/memchr-tests (Files): Likewise.
29177         * modules/memchr2-tests (Files): Likewise.
29178         * modules/memcmp-tests (Files): Likewise.
29179         * modules/memmem-tests (Files): Likewise.
29180         * modules/memrchr-tests (Files): Likewise.
29181         * modules/mkdir-tests (Files): Likewise.
29182         * modules/mkfifo-tests (Files): Likewise.
29183         * modules/mkfifoat-tests (Files): Likewise.
29184         * modules/mknod-tests (Files): Likewise.
29185         * modules/nanosleep-tests (Files): Likewise.
29186         * modules/nl_langinfo-tests (Files): Likewise.
29187         * modules/obstack-printf-tests (Files): Likewise.
29188         * modules/open-tests (Files): Likewise.
29189         * modules/openat-tests (Files): Likewise.
29190         * modules/pipe-filter-gi-tests (Files): Likewise.
29191         * modules/pipe-filter-ii-tests (Files): Likewise.
29192         * modules/pipe2-tests (Files): Likewise.
29193         * modules/popen-safer-tests (Files): Likewise.
29194         * modules/popen-tests (Files): Likewise.
29195         * modules/posixtm-tests (Files): Likewise.
29196         * modules/pread-tests (Files): Likewise.
29197         * modules/printf-frexp-tests (Files): Likewise.
29198         * modules/printf-frexpl-tests (Files): Likewise.
29199         * modules/printf-posix-tests (Files): Likewise.
29200         * modules/priv-set-tests (Files): Likewise.
29201         * modules/quotearg-tests (Files): Likewise.
29202         * modules/random_r-tests (Files): Likewise.
29203         * modules/rawmemchr-tests (Files): Likewise.
29204         * modules/rbtree-list-tests (Files): Likewise.
29205         * modules/rbtree-oset-tests (Files): Likewise.
29206         * modules/rbtreehash-list-tests (Files): Likewise.
29207         * modules/readlink-tests (Files): Likewise.
29208         * modules/remove-tests (Files): Likewise.
29209         * modules/rename-tests (Files): Likewise.
29210         * modules/renameat-tests (Files): Likewise.
29211         * modules/rmdir-tests (Files): Likewise.
29212         * modules/round-tests (Files): Likewise.
29213         * modules/roundf-tests (Files): Likewise.
29214         * modules/roundl-tests (Files): Likewise.
29215         * modules/safe-alloc-tests (Files): Likewise.
29216         * modules/setenv-tests (Files): Likewise.
29217         * modules/sigaction-tests (Files): Likewise.
29218         * modules/signbit-tests (Files): Likewise.
29219         * modules/sleep-tests (Files): Likewise.
29220         * modules/snprintf-posix-tests (Files): Likewise.
29221         * modules/snprintf-tests (Files): Likewise.
29222         * modules/sprintf-posix-tests (Files): Likewise.
29223         * modules/stat-tests (Files): Likewise.
29224         * modules/stat-time-tests (Files): Likewise.
29225         * modules/strcasestr-tests (Files): Likewise.
29226         * modules/strchrnul-tests (Files): Likewise.
29227         * modules/strerror-tests (Files): Likewise.
29228         * modules/striconv-tests (Files): Likewise.
29229         * modules/striconveh-tests (Files): Likewise.
29230         * modules/striconveha-tests (Files): Likewise.
29231         * modules/strsignal-tests (Files): Likewise.
29232         * modules/strstr-tests (Files): Likewise.
29233         * modules/strtod-tests (Files): Likewise.
29234         * modules/strverscmp-tests (Files): Likewise.
29235         * modules/symlink-tests (Files): Likewise.
29236         * modules/symlinkat-tests (Files): Likewise.
29237         * modules/trunc-tests (Files): Likewise.
29238         * modules/truncf-tests (Files): Likewise.
29239         * modules/truncl-tests (Files): Likewise.
29240         * modules/uname-tests (Files): Likewise.
29241         * modules/unicase/cased-tests (Files): Likewise.
29242         * modules/unicase/ignorable-tests (Files): Likewise.
29243         * modules/unicase/locale-language-tests (Files): Likewise.
29244         * modules/unicase/tolower-tests (Files): Likewise.
29245         * modules/unicase/totitle-tests (Files): Likewise.
29246         * modules/unicase/toupper-tests (Files): Likewise.
29247         * modules/unicase/u8-casecmp-tests (Files): Likewise.
29248         * modules/unicase/u8-casecoll-tests (Files): Likewise.
29249         * modules/unicase/u8-casefold-tests (Files): Likewise.
29250         * modules/unicase/u8-is-cased-tests (Files): Likewise.
29251         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
29252         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
29253         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
29254         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
29255         * modules/unicase/u8-tolower-tests (Files): Likewise.
29256         * modules/unicase/u8-totitle-tests (Files): Likewise.
29257         * modules/unicase/u8-toupper-tests (Files): Likewise.
29258         * modules/unicase/u16-casecmp-tests (Files): Likewise.
29259         * modules/unicase/u16-casecoll-tests (Files): Likewise.
29260         * modules/unicase/u16-casefold-tests (Files): Likewise.
29261         * modules/unicase/u16-is-cased-tests (Files): Likewise.
29262         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
29263         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
29264         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
29265         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
29266         * modules/unicase/u16-tolower-tests (Files): Likewise.
29267         * modules/unicase/u16-totitle-tests (Files): Likewise.
29268         * modules/unicase/u16-toupper-tests (Files): Likewise.
29269         * modules/unicase/u32-casecmp-tests (Files): Likewise.
29270         * modules/unicase/u32-casecoll-tests (Files): Likewise.
29271         * modules/unicase/u32-casefold-tests (Files): Likewise.
29272         * modules/unicase/u32-is-cased-tests (Files): Likewise.
29273         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
29274         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
29275         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
29276         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
29277         * modules/unicase/u32-tolower-tests (Files): Likewise.
29278         * modules/unicase/u32-totitle-tests (Files): Likewise.
29279         * modules/unicase/u32-toupper-tests (Files): Likewise.
29280         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
29281         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
29282         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
29283         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
29284         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
29285         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
29286         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
29287         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
29288         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
29289         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
29290         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
29291         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
29292         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
29293         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
29294         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
29295         * modules/unictype/bidicategory-name-tests (Files): Likewise.
29296         * modules/unictype/bidicategory-of-tests (Files): Likewise.
29297         * modules/unictype/bidicategory-test-tests (Files): Likewise.
29298         * modules/unictype/block-list-tests (Files): Likewise.
29299         * modules/unictype/block-of-tests (Files): Likewise.
29300         * modules/unictype/block-test-tests (Files): Likewise.
29301         * modules/unictype/category-C-tests (Files): Likewise.
29302         * modules/unictype/category-Cc-tests (Files): Likewise.
29303         * modules/unictype/category-Cf-tests (Files): Likewise.
29304         * modules/unictype/category-Cn-tests (Files): Likewise.
29305         * modules/unictype/category-Co-tests (Files): Likewise.
29306         * modules/unictype/category-Cs-tests (Files): Likewise.
29307         * modules/unictype/category-L-tests (Files): Likewise.
29308         * modules/unictype/category-Ll-tests (Files): Likewise.
29309         * modules/unictype/category-Lm-tests (Files): Likewise.
29310         * modules/unictype/category-Lo-tests (Files): Likewise.
29311         * modules/unictype/category-Lt-tests (Files): Likewise.
29312         * modules/unictype/category-Lu-tests (Files): Likewise.
29313         * modules/unictype/category-M-tests (Files): Likewise.
29314         * modules/unictype/category-Mc-tests (Files): Likewise.
29315         * modules/unictype/category-Me-tests (Files): Likewise.
29316         * modules/unictype/category-Mn-tests (Files): Likewise.
29317         * modules/unictype/category-N-tests (Files): Likewise.
29318         * modules/unictype/category-Nd-tests (Files): Likewise.
29319         * modules/unictype/category-Nl-tests (Files): Likewise.
29320         * modules/unictype/category-No-tests (Files): Likewise.
29321         * modules/unictype/category-P-tests (Files): Likewise.
29322         * modules/unictype/category-Pc-tests (Files): Likewise.
29323         * modules/unictype/category-Pd-tests (Files): Likewise.
29324         * modules/unictype/category-Pe-tests (Files): Likewise.
29325         * modules/unictype/category-Pf-tests (Files): Likewise.
29326         * modules/unictype/category-Pi-tests (Files): Likewise.
29327         * modules/unictype/category-Po-tests (Files): Likewise.
29328         * modules/unictype/category-Ps-tests (Files): Likewise.
29329         * modules/unictype/category-S-tests (Files): Likewise.
29330         * modules/unictype/category-Sc-tests (Files): Likewise.
29331         * modules/unictype/category-Sk-tests (Files): Likewise.
29332         * modules/unictype/category-Sm-tests (Files): Likewise.
29333         * modules/unictype/category-So-tests (Files): Likewise.
29334         * modules/unictype/category-Z-tests (Files): Likewise.
29335         * modules/unictype/category-Zl-tests (Files): Likewise.
29336         * modules/unictype/category-Zp-tests (Files): Likewise.
29337         * modules/unictype/category-Zs-tests (Files): Likewise.
29338         * modules/unictype/category-and-not-tests (Files): Likewise.
29339         * modules/unictype/category-and-tests (Files): Likewise.
29340         * modules/unictype/category-byname-tests (Files): Likewise.
29341         * modules/unictype/category-name-tests (Files): Likewise.
29342         * modules/unictype/category-none-tests (Files): Likewise.
29343         * modules/unictype/category-of-tests (Files): Likewise.
29344         * modules/unictype/category-or-tests (Files): Likewise.
29345         * modules/unictype/category-test-withtable-tests (Files): Likewise.
29346         * modules/unictype/combining-class-tests (Files): Likewise.
29347         * modules/unictype/ctype-alnum-tests (Files): Likewise.
29348         * modules/unictype/ctype-alpha-tests (Files): Likewise.
29349         * modules/unictype/ctype-blank-tests (Files): Likewise.
29350         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
29351         * modules/unictype/ctype-digit-tests (Files): Likewise.
29352         * modules/unictype/ctype-graph-tests (Files): Likewise.
29353         * modules/unictype/ctype-lower-tests (Files): Likewise.
29354         * modules/unictype/ctype-print-tests (Files): Likewise.
29355         * modules/unictype/ctype-punct-tests (Files): Likewise.
29356         * modules/unictype/ctype-space-tests (Files): Likewise.
29357         * modules/unictype/ctype-upper-tests (Files): Likewise.
29358         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
29359         * modules/unictype/decimal-digit-tests (Files): Likewise.
29360         * modules/unictype/digit-tests (Files): Likewise.
29361         * modules/unictype/mirror-tests (Files): Likewise.
29362         * modules/unictype/numeric-tests (Files): Likewise.
29363         * modules/unictype/property-alphabetic-tests (Files): Likewise.
29364         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
29365         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
29366         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
29367         Likewise.
29368         * modules/unictype/property-bidi-block-separator-tests (Files):
29369         Likewise.
29370         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
29371         Likewise.
29372         * modules/unictype/property-bidi-common-separator-tests (Files):
29373         Likewise.
29374         * modules/unictype/property-bidi-control-tests (Files): Likewise.
29375         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
29376         Likewise.
29377         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
29378         Likewise.
29379         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
29380         Likewise.
29381         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
29382         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
29383         Likewise.
29384         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
29385         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
29386         Likewise.
29387         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
29388         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
29389         * modules/unictype/property-bidi-segment-separator-tests (Files):
29390         Likewise.
29391         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
29392         * modules/unictype/property-byname-tests (Files): Likewise.
29393         * modules/unictype/property-combining-tests (Files): Likewise.
29394         * modules/unictype/property-composite-tests (Files): Likewise.
29395         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
29396         * modules/unictype/property-dash-tests (Files): Likewise.
29397         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
29398         * modules/unictype/property-default-ignorable-code-point-tests (Files):
29399         Likewise.
29400         * modules/unictype/property-deprecated-tests (Files): Likewise.
29401         * modules/unictype/property-diacritic-tests (Files): Likewise.
29402         * modules/unictype/property-extender-tests (Files): Likewise.
29403         * modules/unictype/property-format-control-tests (Files): Likewise.
29404         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
29405         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
29406         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
29407         * modules/unictype/property-hex-digit-tests (Files): Likewise.
29408         * modules/unictype/property-hyphen-tests (Files): Likewise.
29409         * modules/unictype/property-id-continue-tests (Files): Likewise.
29410         * modules/unictype/property-id-start-tests (Files): Likewise.
29411         * modules/unictype/property-ideographic-tests (Files): Likewise.
29412         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
29413         * modules/unictype/property-ids-trinary-operator-tests (Files):
29414         Likewise.
29415         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
29416         * modules/unictype/property-iso-control-tests (Files): Likewise.
29417         * modules/unictype/property-join-control-tests (Files): Likewise.
29418         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
29419         * modules/unictype/property-line-separator-tests (Files): Likewise.
29420         * modules/unictype/property-logical-order-exception-tests (Files):
29421         Likewise.
29422         * modules/unictype/property-lowercase-tests (Files): Likewise.
29423         * modules/unictype/property-math-tests (Files): Likewise.
29424         * modules/unictype/property-non-break-tests (Files): Likewise.
29425         * modules/unictype/property-not-a-character-tests (Files): Likewise.
29426         * modules/unictype/property-numeric-tests (Files): Likewise.
29427         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
29428         * modules/unictype/property-other-default-ignorable-code-point-tests
29429         (Files): Likewise.
29430         * modules/unictype/property-other-grapheme-extend-tests (Files):
29431         Likewise.
29432         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
29433         * modules/unictype/property-other-id-start-tests (Files): Likewise.
29434         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
29435         * modules/unictype/property-other-math-tests (Files): Likewise.
29436         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
29437         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
29438         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
29439         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
29440         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
29441         * modules/unictype/property-private-use-tests (Files): Likewise.
29442         * modules/unictype/property-punctuation-tests (Files): Likewise.
29443         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
29444         * modules/unictype/property-radical-tests (Files): Likewise.
29445         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
29446         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
29447         * modules/unictype/property-space-tests (Files): Likewise.
29448         * modules/unictype/property-terminal-punctuation-tests (Files):
29449         Likewise.
29450         * modules/unictype/property-test-tests (Files): Likewise.
29451         * modules/unictype/property-titlecase-tests (Files): Likewise.
29452         * modules/unictype/property-unassigned-code-value-tests (Files):
29453         Likewise.
29454         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
29455         * modules/unictype/property-uppercase-tests (Files): Likewise.
29456         * modules/unictype/property-variation-selector-tests (Files): Likewise.
29457         * modules/unictype/property-white-space-tests (Files): Likewise.
29458         * modules/unictype/property-xid-continue-tests (Files): Likewise.
29459         * modules/unictype/property-xid-start-tests (Files): Likewise.
29460         * modules/unictype/property-zero-width-tests (Files): Likewise.
29461         * modules/unictype/scripts-tests (Files): Likewise.
29462         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
29463         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
29464         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
29465         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
29466         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
29467         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
29468         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
29469         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
29470         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
29471         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
29472         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
29473         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
29474         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
29475         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
29476         * modules/uninorm/composition-tests (Files): Likewise.
29477         * modules/uninorm/decomposing-form-tests (Files): Likewise.
29478         * modules/uninorm/decomposition-tests (Files): Likewise.
29479         * modules/uninorm/filter-tests (Files): Likewise.
29480         * modules/uninorm/nfc-tests (Files): Likewise.
29481         * modules/uninorm/nfd-tests (Files): Likewise.
29482         * modules/uninorm/nfkc-tests (Files): Likewise.
29483         * modules/uninorm/nfkd-tests (Files): Likewise.
29484         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
29485         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
29486         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
29487         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
29488         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
29489         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
29490         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
29491         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
29492         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
29493         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
29494         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
29495         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
29496         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
29497         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
29498         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
29499         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
29500         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
29501         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
29502         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
29503         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
29504         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
29505         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
29506         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
29507         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
29508         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
29509         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
29510         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
29511         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
29512         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
29513         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
29514         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
29515         * modules/uniwidth/u8-width-tests (Files): Likewise.
29516         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
29517         * modules/uniwidth/u16-width-tests (Files): Likewise.
29518         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
29519         * modules/uniwidth/u32-width-tests (Files): Likewise.
29520         * modules/uniwidth/width-tests (Files): Likewise.
29521         * modules/unlink-tests (Files): Likewise.
29522         * modules/unsetenv-tests (Files): Likewise.
29523         * modules/usleep-tests (Files): Likewise.
29524         * modules/utimens-tests (Files): Likewise.
29525         * modules/utimensat-tests (Files): Likewise.
29526         * modules/vasnprintf-posix-tests (Files): Likewise.
29527         * modules/vasnprintf-tests (Files): Likewise.
29528         * modules/vasprintf-posix-tests (Files): Likewise.
29529         * modules/vasprintf-tests (Files): Likewise.
29530         * modules/vdprintf-posix-tests (Files): Likewise.
29531         * modules/vfprintf-posix-tests (Files): Likewise.
29532         * modules/vprintf-posix-tests (Files): Likewise.
29533         * modules/vsnprintf-posix-tests (Files): Likewise.
29534         * modules/vsnprintf-tests (Files): Likewise.
29535         * modules/vsprintf-posix-tests (Files): Likewise.
29536         * modules/wcrtomb-tests (Files): Likewise.
29537         * modules/wcsnrtombs-tests (Files): Likewise.
29538         * modules/wcsrtombs-tests (Files): Likewise.
29539         * modules/wctype-tests (Files): Likewise.
29540         * modules/wcwidth-tests (Files): Likewise.
29541         * modules/xmemdup0-tests (Files): Likewise.
29542         * modules/xprintf-posix-tests (Files): Likewise.
29543         * modules/xvasprintf-tests (Files): Likewise.
29544
29545 2009-12-24  Eric Blake  <ebb9@byu.net>
29546
29547         test-nanosleep: fix typo
29548         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
29549         patch.
29550         Reported by Bruno Haible.
29551
29552 2009-12-24  Bruno Haible  <bruno@clisp.org>
29553
29554         Reduce namespace pollution on glibc systems.
29555         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
29556         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
29557         systems.
29558         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
29559         <getopt.h> on glibc systems.
29560         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
29561         systems.
29562         * lib/fcntl.c: Include <unistd.h> here instead.
29563
29564 2009-12-24  Bruno Haible  <bruno@clisp.org>
29565
29566         * lib/stdlib.in.h (includes): Fix typo in today's commit.
29567
29568 2009-12-24  Eric Blake  <ebb9@byu.net>
29569
29570         tests: add signature checks
29571         * tests/signature.h (SIGNATURE_CHECK): New file.
29572         * modules/atexit-tests (Files): Use it.
29573         * modules/btowc-tests (Files): Likewise.
29574         * modules/canonicalize-lgpl-tests (Files): Likewise.
29575         * modules/ceilf-tests (Files): Likewise.
29576         * modules/ceill-tests (Files): Likewise.
29577         * modules/chown-tests (Files): Likewise.
29578         * modules/dprintf-posix-tests (Files): Likewise.
29579         * modules/dup2-tests (Files): Likewise.
29580         * modules/dup3-tests (Files): Likewise.
29581         * modules/duplocale-tests (Files): Likewise.
29582         * modules/fchdir-tests (Files): Likewise.
29583         * modules/fcntl-tests (Files): Likewise.
29584         * modules/fdopendir-tests (Files): Likewise.
29585         * modules/fflush-tests (Files): Likewise.
29586         * modules/flock-tests (Files): Likewise.
29587         * modules/floorf-tests (Files): Likewise.
29588         * modules/floorl-tests (Files): Likewise.
29589         * modules/fnmatch-tests (Files): Likewise.
29590         * modules/fopen-tests (Files): Likewise.
29591         * modules/fprintf-posix-tests (Files): Likewise.
29592         * modules/freopen-tests (Files): Likewise.
29593         * modules/frexp-nolibm-tests (Files): Likewise.
29594         * modules/frexp-tests (Files): Likewise.
29595         * modules/frexpl-nolibm-tests (Files): Likewise.
29596         * modules/frexpl-tests (Files): Likewise.
29597         * modules/fseek-tests (Files): Likewise.
29598         * modules/fseeko-tests (Files): Likewise.
29599         * modules/fsync-tests (Files): Likewise.
29600         * modules/ftell-tests (Files): Likewise.
29601         * modules/ftello-tests (Files): Likewise.
29602         * modules/futimens-tests (Files): Likewise.
29603         * modules/getaddrinfo-tests (Files): Likewise.
29604         * modules/getcwd-tests (Files): Likewise.
29605         * modules/getdelim-tests (Files): Likewise.
29606         * modules/getdtablesize-tests (Files): Likewise.
29607         * modules/getgroups-tests (Files): Likewise.
29608         * modules/gethostname-tests (Files): Likewise.
29609         * modules/getline-tests (Files): Likewise.
29610         * modules/getopt-posix-tests (Files): Likewise.
29611         * modules/gettimeofday-tests (Files): Likewise.
29612         * modules/glob-tests (Files): Likewise.
29613         * modules/iconv-tests (Files): Likewise.
29614         * modules/inet_ntop-tests (Files): Likewise.
29615         * modules/inet_pton-tests (Files): Likewise.
29616         * modules/isblank-tests (Files): Likewise.
29617         * modules/lchown-tests (Files): Likewise.
29618         * modules/ldexpl-tests (Files): Likewise.
29619         * modules/link-tests (Files): Likewise.
29620         * modules/linkat-tests (Files): Likewise.
29621         * modules/lseek-tests (Files): Likewise.
29622         * modules/lstat-tests (Files): Likewise.
29623         * modules/mbrtowc-tests (Files): Likewise.
29624         * modules/mbsinit-tests (Files): Likewise.
29625         * modules/mbsnrtowcs-tests (Files): Likewise.
29626         * modules/mbsrtowcs-tests (Files): Likewise.
29627         * modules/memchr-tests (Files): Likewise.
29628         * modules/memcmp-tests (Files): Likewise.
29629         * modules/memmem-tests (Files): Likewise.
29630         * modules/memrchr-tests (Files): Likewise.
29631         * modules/mkdir-tests (Files): Likewise.
29632         * modules/mkfifo-tests (Files): Likewise.
29633         * modules/mkfifoat-tests (Files): Likewise.
29634         * modules/mknod-tests (Files): Likewise.
29635         * modules/nanosleep-tests (Files): Likewise.
29636         * modules/nl_langinfo-tests (Files): Likewise.
29637         * modules/obstack-printf-tests (Files): Likewise.
29638         * modules/open-tests (Files): Likewise.
29639         * modules/openat-tests (Files): Likewise.
29640         * modules/perror-tests (Files): Likewise.
29641         * modules/pipe2-tests (Files): Likewise.
29642         * modules/poll-tests (Files): Likewise.
29643         * modules/popen-tests (Files): Likewise.
29644         * modules/posix_spawn-tests (Files): Likewise.
29645         * modules/posix_spawnp-tests (Files): Likewise.
29646         * modules/pread-tests (Files): Likewise.
29647         * modules/printf-posix-tests (Files): Likewise.
29648         * modules/pty-tests (Files): Likewise.
29649         * modules/random_r-tests (Files): Likewise.
29650         * modules/rawmemchr-tests (Files): Likewise.
29651         * modules/readlink-tests (Files): Likewise.
29652         * modules/remove-tests (Files): Likewise.
29653         * modules/rename-tests (Files): Likewise.
29654         * modules/renameat-tests (Files): Likewise.
29655         * modules/rmdir-tests (Files): Likewise.
29656         * modules/round-tests (Files): Likewise.
29657         * modules/roundf-tests (Files): Likewise.
29658         * modules/roundl-tests (Files): Likewise.
29659         * modules/select-tests (Files): Likewise.
29660         * modules/setenv-tests (Files): Likewise.
29661         * modules/sigaction-tests (Files): Likewise.
29662         * modules/sleep-tests (Files): Likewise.
29663         * modules/snprintf-posix-tests (Files): Likewise.
29664         * modules/snprintf-tests (Files): Likewise.
29665         * modules/sprintf-posix-tests (Files): Likewise.
29666         * modules/stat-tests (Files): Likewise.
29667         * modules/strcasestr-tests (Files): Likewise.
29668         * modules/strchrnul-tests (Files): Likewise.
29669         * modules/strerror-tests (Files): Likewise.
29670         * modules/strsignal-tests (Files): Likewise.
29671         * modules/strstr-tests (Files): Likewise.
29672         * modules/strtod-tests (Files): Likewise.
29673         * modules/strverscmp-tests (Files): Likewise.
29674         * modules/symlink-tests (Files): Likewise.
29675         * modules/symlinkat-tests (Files): Likewise.
29676         * modules/times-tests (Files): Likewise.
29677         * modules/trunc-tests (Files): Likewise.
29678         * modules/truncf-tests (Files): Likewise.
29679         * modules/truncl-tests (Files): Likewise.
29680         * modules/tsearch-tests (Files): Likewise.
29681         * modules/uname-tests (Files): Likewise.
29682         * modules/unlink-tests (Files): Likewise.
29683         * modules/unsetenv-tests (Files): Likewise.
29684         * modules/usleep-tests (Files): Likewise.
29685         * modules/utimensat-tests (Files): Likewise.
29686         * modules/vasprintf-tests (Files): Likewise.
29687         * modules/vdprintf-posix-tests (Files): Likewise.
29688         * modules/vfprintf-posix-tests (Files): Likewise.
29689         * modules/vprintf-posix-tests (Files): Likewise.
29690         * modules/vsnprintf-posix-tests (Files): Likewise.
29691         * modules/vsnprintf-tests (Files): Likewise.
29692         * modules/vsprintf-posix-tests (Files): Likewise.
29693         * modules/wcrtomb-tests (Files): Likewise.
29694         * modules/wcsnrtombs-tests (Files): Likewise.
29695         * modules/wcsrtombs-tests (Files): Likewise.
29696         * modules/wcwidth-tests (Files): Likewise.
29697         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
29698         * tests/test-isinf.c (isinf): Likewise.
29699         * tests/test-isnan.c (isnan): Likewise.
29700         * tests/test-signbit.c (signbit): Likewise.
29701         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
29702         declaration, either as macro or with correct signature.
29703         (select): Ensure function under test is declared with correct
29704         signature in correct header.
29705         * tests/test-atexit.c (atexit): Likewise.
29706         * tests/test-btowc.c (btowc): Likewise.
29707         * tests/test-canonicalize-lgpl.c (realpath)
29708         (canonicalize_file_name): Likewise.
29709         * tests/test-ceilf1.c (ceilf): Likewise.
29710         * tests/test-ceill.c (ceill): Likewise.
29711         * tests/test-chown.c (chown): Likewise.
29712         * tests/test-dprintf-posix.c (dprintf): Likewise.
29713         * tests/test-dup2.c (dup2): Likewise.
29714         * tests/test-dup3.c (dup3): Likewise.
29715         * tests/test-duplocale.c (duplocale): Likewise.
29716         * tests/test-fchdir.c (fchdir): Likewise.
29717         * tests/test-fchownat.c (fchownat): Likewise.
29718         * tests/test-fcntl.c (fcntl): Likewise.
29719         * tests/test-fdopendir.c (fdopendir): Likewise.
29720         * tests/test-fflush.c (fflush): Likewise.
29721         * tests/test-flock.c (flock): Likewise.
29722         * tests/test-floorf1.c (floorf): Likewise.
29723         * tests/test-floorl.c (floorl): Likewise.
29724         * tests/test-fnmatch.c (fnmatch): Likewise.
29725         * tests/test-fopen.c (fopen): Likewise.
29726         * tests/test-fprintf-posix.c (fprintf): Likewise.
29727         * tests/test-freopen.c (freopen): Likewise.
29728         * tests/test-frexp.c (frexp): Likewise.
29729         * tests/test-frexpl.c (frexpl): Likewise.
29730         * tests/test-fseek.c (fseek): Likewise.
29731         * tests/test-fseeko.c (fseeko): Likewise.
29732         * tests/test-fstatat.c (fstatat): Likewise.
29733         * tests/test-fsync.c (fsync): Likewise.
29734         * tests/test-ftell.c (ftell): Likewise.
29735         * tests/test-ftello.c (ftello): Likewise.
29736         * tests/test-futimens.c (futimens): Likewise.
29737         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
29738         (gai_strerror): Likewise.
29739         * tests/test-getcwd.c (getcwd): Likewise.
29740         * tests/test-getdelim.c (getdelim): Likewise.
29741         * tests/test-getdtablesize.c (getdtablesize): Likewise.
29742         * tests/test-getgroups.c (getgroups): Likewise.
29743         * tests/test-gethostname.c (gethostname): Likewise.
29744         * tests/test-getline.c (getline): Likewise.
29745         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
29746         Likewise.
29747         * tests/test-gettimeofday.c (gettimeofday): Likewise.
29748         * tests/test-glob.c (glob, globfree): Likewise.
29749         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
29750         * tests/test-inet_ntop.c (inet_ntop): Likewise.
29751         * tests/test-inet_pton.c (inet_pton): Likewise.
29752         * tests/test-isblank.c (isblank): Likewise.
29753         * tests/test-lchown.c (lchown): Likewise.
29754         * tests/test-ldexpl.c (ldexpl): Likewise.
29755         * tests/test-link.c (link): Likewise.
29756         * tests/test-linkat.c (linkat): Likewise.
29757         * tests/test-lseek.c (lseek): Likewise.
29758         * tests/test-lstat.c (lstat): Likewise.
29759         * tests/test-mbrtowc.c (mbrtowc): Likewise.
29760         * tests/test-mbsinit.c (mbsinit): Likewise.
29761         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
29762         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
29763         * tests/test-memchr.c (memchr): Likewise.
29764         * tests/test-memcmp.c (memcmp): Likewise.
29765         * tests/test-memmem.c (memmem): Likewise.
29766         * tests/test-memrchr.c (memrchr): Likewise.
29767         * tests/test-mkdir.c (mkdir): Likewise.
29768         * tests/test-mkdirat.c (mkdirat): Likewise.
29769         * tests/test-mkfifo.c (mkfifo): Likewise.
29770         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
29771         * tests/test-mknod.c (mknod): Likewise.
29772         * tests/test-nanosleep.c (nanosleep): Likewise.
29773         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
29774         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
29775         Likewise.
29776         * tests/test-open.c (open): Likewise.
29777         * tests/test-openat.c (openat): Likewise.
29778         * tests/test-perror.c (perror): Likewise.
29779         * tests/test-pipe2.c (pipe2): Likewise.
29780         * tests/test-poll.c (poll): Likewise.
29781         * tests/test-popen.c (popen, pclose): Likewise.
29782         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
29783         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
29784         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
29785         (posix_spawn_file_actions_destroy)
29786         (posix_spawn_file_actions_addclose)
29787         (posix_spawn_file_actions_addopen)
29788         (posix_spawn_file_actions_adddup2): Likewise.
29789         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
29790         * tests/test-pread.c (pread): Likewise.
29791         * tests/test-printf-posix.c (printf): Likewise.
29792         * tests/test-pty.c (openpty, forkpty): Likewise.
29793         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
29794         (random_r): Likewise.
29795         * tests/test-rawmemchr.c (rawmemchr): Likewise.
29796         * tests/test-readlink.c (readlink): Likewise.
29797         * tests/test-remove.c (remove): Likewise.
29798         * tests/test-rename.c (rename): Likewise.
29799         * tests/test-renameat.c (renameat): Likewise.
29800         * tests/test-rmdir.c (rmdir): Likewise.
29801         * tests/test-round1.c (round): Likewise.
29802         * tests/test-roundf1.c (roundf): Likewise.
29803         * tests/test-roundl.c (roundl): Likewise.
29804         * tests/test-setenv.c (setenv): Likewise.
29805         * tests/test-sigaction.c (sigaction): Likewise.
29806         * tests/test-sleep.c (sleep): Likewise.
29807         * tests/test-snprintf.c (snprintf): Likewise.
29808         * tests/test-sprintf-posix.c (sprintf): Likewise.
29809         * tests/test-stat.c (stat): Likewise.
29810         * tests/test-stpncpy.c (stpncpy): Likewise.
29811         * tests/test-strcasestr.c (strcasestr): Likewise.
29812         * tests/test-strchrnul.c (strchrnul): Likewise.
29813         * tests/test-strerror.c (strerror): Likewise.
29814         * tests/test-strsignal.c (strsignal): Likewise.
29815         * tests/test-strstr.c (strstr): Likewise.
29816         * tests/test-strtod.c (strtod): Likewise.
29817         * tests/test-strverscmp.c (strverscmp): Likewise.
29818         * tests/test-symlink.c (symlink): Likewise.
29819         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
29820         * tests/test-times.c (times): Likewise.
29821         * tests/test-trunc1.c (trunc): Likewise.
29822         * tests/test-truncf1.c (truncf): Likewise.
29823         * tests/test-truncl.c (truncl): Likewise.
29824         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
29825         Likewise.
29826         * tests/test-uname.c (uname): Likewise.
29827         * tests/test-unlink.c (unlink): Likewise.
29828         * tests/test-unlinkat.c (unlinkat): Likewise.
29829         * tests/test-unsetenv.c (unsetenv): Likewise.
29830         * tests/test-usleep.c (usleep): Likewise.
29831         * tests/test-utimensat.c (utimensat): Likewise.
29832         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
29833         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
29834         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
29835         * tests/test-vprintf-posix.c (vprintf): Likewise.
29836         * tests/test-vsnprintf.c (vsnprintf): Likewise.
29837         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
29838         * tests/test-wcrtomb.c (wcrtomb): Likewise.
29839         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
29840         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
29841         * tests/test-wcwidth.c (wcwidth): Likewise.
29842
29843         build: pull in conditional headers during GNULIB_POSIXCHECK
29844         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
29845         definitions from any conditionally-included headers.
29846         * lib/stdlib.in.h (includes): Likewise.
29847         * lib/unistd.in.h (includes): Likewise.
29848
29849 2009-12-24  Bruno Haible  <bruno@clisp.org>
29850
29851         * tests/test-argv-iter.c: Include header file being tested immediately
29852         after config.h.
29853         * tests/test-base64.c: Likewise.
29854         * tests/test-flock.c: Likewise.
29855         * tests/test-fsync.c: Likewise.
29856         * tests/test-getdate.c: Likewise.
29857         * tests/test-getndelim2.c: Likewise.
29858         * tests/test-isfinite.c: Likewise.
29859         * tests/test-isinf.c: Likewise.
29860         * tests/test-strerror.c: Likewise.
29861         * tests/test-strsignal.c: Likewise.
29862
29863 2009-12-23  Eric Blake  <ebb9@byu.net>
29864
29865         unistd: work around cygwin bug
29866         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
29867         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
29868         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
29869
29870 2009-12-23  Bruno Haible  <bruno@clisp.org>
29871
29872         localename: More tests.
29873         * tests/test-localename.c (SIZEOF): New macro.
29874         (categories): New variable.
29875         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
29876         test_locale_name_default): Add test w.r.t. thread locale.
29877         (test_locale_name_thread): New function.
29878         (main): Invoke it.
29879
29880         localename: Make aware of thread locale.
29881         * lib/localename.h (gl_locale_name_thread): New declaration.
29882         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
29883         behaviour with respect to thread locale.
29884         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
29885         <langinfo.h>, glthread/lock.h.
29886         (SIZE_BITS): New macro.
29887         (string_hash): New function.
29888         (struct hash_node): New type.
29889         (HASH_TABLE_SIZE): New macro.
29890         (struniq_hash_table, struniq_lock): New variables.
29891         (struniq): New function.
29892         (gl_locale_name_thread): New function.
29893         (gl_locale_name): Invoke it.
29894         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
29895         * modules/localename (Depends-on): Add lock.
29896         Reported by Mike Gran <spk121@yahoo.com>.
29897
29898 2009-12-23  Eric Blake  <ebb9@byu.net>
29899
29900         va-args: new module
29901         * modules/va-args: New file.
29902         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
29903         * MODULES.html.sh (Core language properties): Mention it.
29904
29905         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
29906         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
29907         named alias for __attribute__((__unused__)).
29908         * lib/chown.c: Update client.
29909         * lib/fchmodat.c: Likewise.
29910         * lib/fts.c: Likewise.
29911         * lib/getdate.y: Likewise.
29912         * lib/getgroups.c: Likewise.
29913         * lib/getopt.c: Likewise.
29914         * lib/getugroups.c: Likewise.
29915         * lib/mkdir.c: Likewise.
29916         * lib/mkfifo.c: Likewise.
29917         * lib/mkfifoat.c: Likewise.
29918         * lib/mknod.c: Likewise.
29919         * lib/mknodat.c: Likewise.
29920         * lib/readlink.c: Likewise.
29921         * lib/se-context.in.h: Likewise.
29922         * lib/se-selinux.in.h: Likewise.
29923         * lib/sockets.c: Likewise.
29924         * lib/symlink.c: Likewise.
29925         * lib/symlinkat.c: Likewise.
29926         * lib/unicodeio.c: Likewise.
29927         * lib/unistr.h: Likewise.
29928         * tests/test-areadlink.c: Likewise.
29929         * tests/test-areadlinkat.c: Likewise.
29930         * tests/test-filenamecat.c: Likewise.
29931         * tests/test-fseeko.c: Likewise.
29932         * tests/test-ftello.c: Likewise.
29933         * tests/test-getdate.c: Likewise.
29934         * tests/test-getgroups.c: Likewise.
29935         * tests/test-gethostname.c: Likewise.
29936         * tests/test-quotearg.c: Likewise.
29937         * tests/test-version-etc.c: Likewise.
29938         * tests/test-xalloc-die.c: Likewise.
29939         * tests/test-xfprintf-posix.c: Likewise.
29940         * tests/test-xprintf-posix.c: Likewise.
29941         * tests/test-xvasprintf.c: Likewise.
29942
29943         tests: avoid compiler warnings
29944         * tests/test-fcntl.c (main): Delete unused parameters.
29945         * tests/test-freopen-safer.c (main): Likewise.
29946         * tests/test-xalloc-die.c (main): Mark unused parameters.
29947         * tests/test-fseeko.c (main): Likewise.
29948         * tests/test-ftello.c (main): Likewise.
29949         * tests/test-nanosleep.c (main): Avoid declaration warning.
29950         * tests/test-sleep.c (main): Likewise.
29951         * tests/test-unsetenv.c (main): Silence warning about string
29952         literal.
29953         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
29954
29955 2009-12-23  Bruno Haible  <bruno@clisp.org>
29956
29957         * tests/test-localename.c (test_locale_name): New function, extracted
29958         from main. Also test mixed situations.
29959         (test_locale_name_posix, test_locale_name_environ,
29960         test_locale_name_default): New functions.
29961         (main): Invoke them all.
29962         * modules/localename-tests (configure.ac): Test for newlocale.
29963
29964 2009-12-23  Bruno Haible  <bruno@clisp.org>
29965
29966         unistd: Ensure getcwd gets declared before being overridden.
29967         * lib/unistd.in.h: Conditionally include <io.h>.
29968
29969 2009-12-22  Bruno Haible  <bruno@clisp.org>
29970
29971         wchar: Diagnose broken combination of glibc and gcc versions and flags.
29972         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
29973         (gl_WCHAR_H): Invoke it.
29974         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
29975         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
29976         Reported by Karl Berry <karl@freefriends.org>.
29977
29978 2009-12-22  Eric Blake  <ebb9@byu.net>
29979
29980         math, unistd: avoid redundant includes
29981         * lib/math.in.h (isnan): No need to re-include <math.h>.
29982         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
29983
29984         getsubopt: work around cygwin bug
29985         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
29986         avoid conflicting with system getsubopt.
29987         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
29988         bug.
29989
29990         getopt: synchronize from glibc
29991         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
29992         parameter order.  Adjust all callers.
29993         (_getopt_internal_r, main): Adjust quoting in error messages.
29994         Drop considerations for outdated POSIX 1003.2 error message.
29995         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
29996         callers.
29997         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
29998
29999         test-getopt: test stderr behavior
30000         * modules/getopt-posix-tests (Depends-on): Add dup2.
30001         * tests/test-getopt.c (ASSERT): Avoid stderr.
30002         (main): Move stderr to a temporary file.
30003         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
30004         Instead, add parameter to inform caller if output occurred.
30005         (test_getopt): Adjust all existing tests to expect silence, and
30006         add new tests of leading ":".
30007         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
30008         glibc shortcomings with leading "-:" or "+:" in optstring.
30009         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
30010         Likewise.
30011         * doc/posix-functions/getopt.texi (getopt): Likewise.
30012
30013         test-getopt: enhance test
30014         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
30015         supports optind=0.
30016         * tests/test-getopt.c (OPTIND_MIN): Move...
30017         * tests/test-getopt.h (OPTIND_MIN): ...here.
30018         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
30019         Require that optind=0 works, since modern BSD supports it in
30020         addition to optreset, and since coreutils expects it.
30021         (test_getopt_long_only): New test.
30022         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
30023         glibc shortcomings with 'W;', and enforcement of optind=0.
30024         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
30025         Likewise.
30026
30027 2009-12-21  Bruno Haible  <bruno@clisp.org>
30028
30029         localename: Improvements for MacOS X and Cygwin.
30030         * lib/localename.h (gl_locale_name_environ): New declaration.
30031         * lib/localename.c (gl_locale_name_environ): New function, extracted from
30032         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
30033         (gl_locale_name_posix): Invoke it.
30034         (gl_locale_name_default): Add comments. Use Windows native API also on
30035         Cygwin.
30036
30037 2009-12-21  Bruno Haible  <bruno@clisp.org>
30038
30039         Update list of Win32 locale ids.
30040         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
30041         (LANG_SAMI): Renamed from LANG_SAAMI.
30042         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
30043         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
30044         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
30045         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
30046         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
30047         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
30048         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
30049         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
30050         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
30051         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
30052         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
30053         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
30054         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
30055         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
30056         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
30057         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
30058         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
30059         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
30060         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
30061         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
30062         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
30063         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
30064         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
30065         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
30066         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
30067         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
30068         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
30069         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
30070         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
30071         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
30072         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
30073         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
30074         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
30075         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
30076         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
30077         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
30078         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
30079         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
30080         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
30081         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
30082         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
30083         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
30084         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
30085         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
30086         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
30087         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
30088         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
30089         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
30090         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
30091         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
30092         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
30093         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
30094         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
30095         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
30096         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
30097         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
30098         Add more languages and countries for Sami, Sorbian. Add more countries
30099         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
30100         for Pashto. Change country for Syriac, Tswana.
30101
30102 2009-12-21  Eric Blake  <ebb9@byu.net>
30103
30104         test-utimens: avoid spurious failure
30105         * tests/test-chown.h (nap): Factor...
30106         * tests/nap.h: ...into new file.
30107         * tests/test-lchown.h (nap): Avoid duplication.
30108         * tests/test-utimens-common.h (nap): Use shared implementation,
30109         necessary on file systems with 1-second resolution.
30110         * modules/chown-tests (Files): Include new file.
30111         * modules/fdutimensat-tests (Files): Likewise.
30112         * modules/futimens-tests (Files): Likewise.
30113         * modules/lchown-tests (Files): Likewise.
30114         * modules/openat-tests (Files): Likewise.
30115         * modules/utimens-tests (Files): Likewise.
30116         * modules/utimensat-tests (Files): Likewise.
30117
30118 2009-12-19  Eric Blake  <ebb9@byu.net>
30119
30120         futimens, utimensat: work around Linux bug
30121         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
30122         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
30123         * lib/utimensat.c (rpl_utimensat): Work around it.
30124         * lib/futimens.c (rpl_futimens): Adjust comment.
30125
30126         utimens: work around Linux ctime bug
30127         * lib/utimens.c (detect_ctime_bug): New helper function.
30128         (update_timespec): Differentiate between workaround needed for
30129         this bug vs. what is needed for systems that lack utimensat.
30130         (fdutimens, lutimens): Work around bug.
30131
30132         utimens: check for ctime update
30133         * tests/test-utimens-common.h (check_ctime): Define.
30134         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
30135         * tests/test-futimens.h (test_futimens): Likewise.
30136         * tests/test-lutimens.h (test_lutimens): Likewise.
30137         * doc/posix-functions/futimens.texi (futimens): Document the bug.
30138         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
30139
30140 2009-12-19  Bruno Haible  <bruno@clisp.org>
30141
30142         dprintf-posix: Check against memory leak fixed on 2009-12-15.
30143         * tests/test-dprintf-posix2.sh: New file.
30144         * tests/test-dprintf-posix2.c: New file.
30145         * modules/dprintf-posix-tests (Files): Add them.
30146         (configure.ac): Check for getrlimit and setrlimit.
30147         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
30148
30149 2009-12-19  Bruno Haible  <bruno@clisp.org>
30150
30151         fprintf-posix: Check against memory leak fixed on 2009-12-15.
30152         * tests/test-fprintf-posix3.sh: New file.
30153         * tests/test-fprintf-posix3.c: New file.
30154         * modules/fprintf-posix-tests (Files): Add them.
30155         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
30156
30157 2009-12-19  Eric Blake  <ebb9@byu.net>
30158
30159         dirfd: fix prototype
30160         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
30161         * lib/dirfd.c (dirfd): Likewise.
30162
30163         canonicalize: reduce memory usage
30164         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
30165         allocation to size.
30166         Reported by Solar Designer <solar@openwall.com>.
30167
30168 2009-12-19  Bruno Haible  <bruno@clisp.org>
30169
30170         New module attribute 'Applicability'.
30171         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
30172         * gnulib-tool: New option --extract-applicability.
30173         (func_usage): Document it.
30174         (sed_extract_prog): Recognize it.
30175         (func_get_applicability): New function.
30176         (func_import): Generalize handling of 'link-warning' module.
30177         * modules/link-warning (Applicability): New section.
30178         * modules/arg-nonnull (Applicability): New section.
30179         Repoted by Simon Josefsson <simon@josefsson.org>.
30180
30181 2009-12-19  Bruno Haible  <bruno@clisp.org>
30182
30183         fflush: tweak
30184         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
30185         * lib/fseeko.c (rpl_fseeko): Likewise.
30186
30187 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
30188
30189         * lib/gl_list.h: Fix typo in comment.
30190
30191 2009-12-16  Eric Blake  <ebb9@byu.net>
30192
30193         fcntl: use to simplify other modules
30194         * modules/cloexec (Depends-on): Add fcntl.
30195         * modules/fchdir (Depends-on): Likewise.
30196         * modules/fd-safer-flag (Depends-on): Likewise.
30197         * modules/unistd-safer (Depends-on): Likewise.
30198         * modules/dup3 (configure.ac): Set module indicator.
30199         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
30200         missing.
30201         * lib/fchdir.c (_gl_register_dup): Fix comment.
30202         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
30203         * lib/dup-safer.c (dup_safer): Likewise.
30204         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
30205         * lib/dup3.c (dup3): Likewise.
30206         * tests/test-fchdir.c (main): Enhance test.
30207         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
30208
30209         fcntl: port portions of fcntl to mingw
30210         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
30211         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
30212         replacement for mingw.
30213         * modules/fcntl (Description): Update.
30214         (Depends-on): Add dup2.
30215         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
30216         * modules/fcntl-h (Makefile.am): Substitute it.
30217         * lib/fcntl.in.h (fcntl): Update declaration.
30218         (F_DUPFD, F_GETFD): New macros, when needed.
30219         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
30220         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
30221         * tests/test-fcntl.c (check_flags, main): Enhance test for items
30222         we now guarantee.
30223
30224         fcntl: work around cygwin bug in F_DUPFD
30225         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
30226         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
30227         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
30228         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
30229         * doc/posix-functions/fcntl.texi (fcntl): Document it.
30230
30231         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
30232         * modules/fcntl (Files): List new files.
30233         (configure.ac): Run a test.
30234         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
30235         * lib/fcntl.c (rpl_fcntl): Likewise.
30236         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
30237         (gl_FCNTL_H): Always replace fcntl.h.
30238         * modules/fcntl-h (Makefile.am): Substitute witnesses.
30239         * lib/fcntl.in.h (fcntl): Declare replacement.
30240         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
30241         needed, plus a witness.
30242         * doc/posix-functions/fcntl.texi (fcntl): Document this.
30243         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
30244         * tests/test-fcntl.c: New file.
30245         * modules/fcntl-tests: Likewise.
30246
30247         binary-io: avoid potential compilation warning
30248         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
30249         directives.
30250
30251         fflush: avoid compilation error on NetBSD
30252         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
30253         between off_t and fpos_t, since the latter is sometimes a struct.
30254         * lib/fseeko.c (rpl_fseeko): Likewise.
30255         Reported by Alexander Nasonov <alnsn@yandex.ru>.
30256
30257 2009-12-15  Eric Blake  <ebb9@byu.net>
30258
30259         fcntl-h, stdio, sys_ioctl: fix declarations
30260         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
30261         function must not take arguments.
30262         * lib/sys_ioctl.in.h (ioctl): Likewise.
30263         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
30264         (open): Add a link warning.
30265
30266 2009-12-15  Jim Meyering  <meyering@redhat.com>
30267
30268         areadlink, areadlink-with-size: relax license to LGPLv2+
30269         * modules/areadlink (License): Relax to LGPLv2+.
30270         * modules/areadlink-with-size (License): Likewise.
30271
30272 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
30273             Bruno Haible  <bruno@clisp.org>
30274
30275         *printf: Fix memory leak.
30276         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
30277         * lib/vfprintf.c (vfprintf): Likewise.
30278         * lib/dprintf.c (dprintf): Likewise.
30279         * lib/vdprintf.c (vdprintf): Likewise.
30280
30281 2009-12-14  Eric Blake  <ebb9@byu.net>
30282
30283         accept4: adjust module dependencies
30284         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
30285
30286         utimens: one more try at avoiding compiler warning
30287         * lib/utimens.c (lutimens): Lower scope of result.
30288
30289 2009-12-13  Bruno Haible  <bruno@clisp.org>
30290
30291         Move the malloc checking from module 'list' to new module 'xlist'.
30292         * modules/xlist: New file.
30293         * lib/gl_xlist.h: New file.
30294         * lib/gl_xlist.c: New file.
30295         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
30296         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
30297         gl_list_add_last, gl_list_add_before, gl_list_add_after,
30298         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
30299         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
30300         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
30301         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
30302         gl_sortedlist_nx_add): New declarations.
30303         (struct gl_list_implementation): Rename and change methods accordingly.
30304         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
30305         (gl_list_nx_create): Renamed from gl_list_create.
30306         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
30307         (gl_list_nx_set_at): Renamed from gl_list_set_at.
30308         (gl_list_nx_add_first): Renamed from gl_list_add_first.
30309         (gl_list_nx_add_last): Renamed from gl_list_add_last.
30310         (gl_list_nx_add_before): Renamed from gl_list_add_before.
30311         (gl_list_nx_add_after): Renamed from gl_list_add_after.
30312         (gl_list_nx_add_at): Renamed from gl_list_add_at.
30313         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
30314         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
30315         gl_list_create_empty.
30316         (gl_list_nx_create): Renamed from gl_list_create.
30317         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
30318         (gl_list_nx_set_at): Renamed from gl_list_set_at.
30319         (gl_list_nx_add_first): Renamed from gl_list_add_first.
30320         (gl_list_nx_add_last): Renamed from gl_list_add_last.
30321         (gl_list_nx_add_before): Renamed from gl_list_add_before.
30322         (gl_list_nx_add_after): Renamed from gl_list_add_after.
30323         (gl_list_nx_add_at): Renamed from gl_list_add_at.
30324         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
30325         * lib/gl_array_list.c: Don't include xalloc.h.
30326         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
30327         NULL upon out-of-memory.
30328         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
30329         out-of-memory.
30330         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
30331         Change return type to 'int'.
30332         (gl_array_nx_set_at): Renamed from gl_array_set_at.
30333         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
30334         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
30335         upon out-of-memory.
30336         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
30337         upon out-of-memory.
30338         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
30339         upon out-of-memory.
30340         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
30341         upon out-of-memory.
30342         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
30343         out-of-memory.
30344         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
30345         Update.
30346         (gl_array_list_implementation): Update.
30347         * lib/gl_carray_list.c: Don't include xalloc.h.
30348         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
30349         Return NULL upon out-of-memory.
30350         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
30351         out-of-memory.
30352         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
30353         Change return type to 'int'.
30354         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
30355         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
30356         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
30357         upon out-of-memory.
30358         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
30359         upon out-of-memory.
30360         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
30361         out-of-memory.
30362         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
30363         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
30364         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
30365         Update.
30366         (gl_carray_list_implementation): Update.
30367         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
30368         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
30369         gl_linked_create_empty. Return NULL upon out-of-memory.
30370         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
30371         out-of-memory.
30372         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
30373         Change return type to 'int'. Return -1 upon out-of-memory.
30374         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
30375         out-of-memory.
30376         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
30377         upon out-of-memory.
30378         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
30379         upon out-of-memory.
30380         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
30381         NULL upon out-of-memory.
30382         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
30383         upon out-of-memory.
30384         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
30385         out-of-memory.
30386         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
30387         Update.
30388         * lib/gl_linked_list.c: Don't include xalloc.h.
30389         (gl_linked_list_implementation): Update.
30390         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
30391         (add_to_bucket): Change return type to 'int'.
30392         (gl_linkedhash_list_implementation): Update.
30393         * lib/gl_anytree_list1.h (free_subtree): New function.
30394         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
30395         gl_tree_create_empty. Return NULL upon out-of-memory.
30396         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
30397         Change return type to 'int'. Return -1 upon out-of-memory.
30398         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
30399         out-of-memory.
30400         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
30401         (gl_tree_remove_node): New function, moved here from
30402         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
30403         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
30404         Update.
30405         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
30406         malloc, not xmalloc. Return NULL upon out-of-memory.
30407         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
30408         out-of-memory.
30409         (gl_tree_remove_node_from_tree): New function, extracted from
30410         gl_tree_remove_node.
30411         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
30412         upon out-of-memory.
30413         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
30414         out-of-memory.
30415         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
30416         upon out-of-memory.
30417         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
30418         upon out-of-memory.
30419         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
30420         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
30421         not xmalloc. Return NULL upon out-of-memory.
30422         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
30423         out-of-memory.
30424         (gl_tree_remove_node_from_tree): New function, extracted from
30425         gl_tree_remove_node.
30426         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
30427         upon out-of-memory.
30428         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
30429         out-of-memory.
30430         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
30431         upon out-of-memory.
30432         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
30433         upon out-of-memory.
30434         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
30435         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
30436         gl_anytree_list1.h before gl_anyavltree_list2.h.
30437         (gl_avltree_list_implementation): Update.
30438         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
30439         gl_anytree_list1.h before gl_anyavltree_list2.h.
30440         (gl_rbtree_list_implementation): Update.
30441         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
30442         Change return type to 'int'. Return -1 upon out-of-memory. Use
30443         __builtin_expect.
30444         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
30445         (gl_avltreehash_list_implementation): Update.
30446         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
30447         (gl_rbtreehash_list_implementation): Update.
30448         * modules/array-list (Depends-on): Remove xalloc.
30449         * modules/carray-list (Depends-on): Likewise.
30450         * modules/linked-list (Depends-on): Likewise.
30451         * modules/linkedhash-list (Depends-on): Likewise.
30452         * modules/avltree-list (Depends-on): Likewise.
30453         * modules/rbtree-list (Depends-on): Likewise.
30454         * modules/avltreehash-list (Depends-on): Likewise.
30455         * modules/rbtreehash-list (Depends-on): Likewise.
30456
30457         * modules/xsublist: New file.
30458         * lib/gl_xsublist.h: New file.
30459         * lib/gl_xsublist.c: New file.
30460         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
30461         (gl_sublist_nx_create): New declaration.
30462         * lib/gl_sublist.c: Don't include xalloc.h.
30463         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
30464         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
30465         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
30466         Change return type to 'int'. Return -1 upon out-of-memory.
30467         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
30468         upon out-of-memory.
30469         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
30470         NULL upon out-of-memory.
30471         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
30472         upon out-of-memory.
30473         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
30474         NULL upon out-of-memory.
30475         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
30476         NULL upon out-of-memory.
30477         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
30478         upon out-of-memory.
30479         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
30480         (gl_sublist_list_implementation): Update.
30481         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
30482         upon out-of-memory.
30483         * modules/sublist (Depends-on): Remove xalloc.
30484
30485         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
30486         * tests/test-carray_list.c: Likewise.
30487         * tests/test-linked_list.c: Likewise.
30488         * tests/test-linkedhash_list.c: Likewise.
30489         * tests/test-avltree_list.c: Likewise.
30490         * tests/test-rbtree_list.c: Likewise.
30491         * tests/test-avltreehash_list.c: Likewise.
30492         * tests/test-rbtreehash_list.c: Likewise.
30493         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
30494         * modules/carray-list-tests (Makefile.am): Likewise.
30495         * modules/linked-list-tests (Makefile.am): Likewise.
30496         * modules/linkedhash-list-tests (Makefile.am): Likewise.
30497         * modules/avltree-list-tests (Makefile.am): Likewise.
30498         * modules/rbtree-list-tests (Makefile.am): Likewise.
30499         * modules/avltreehash-list-tests (Makefile.am): Likewise.
30500         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
30501
30502         * NEWS: Mention the changes.
30503
30504         * lib/clean-temp.c: Include gl_xlist.h.
30505         * modules/clean-temp (Depends-on): Add xlist.
30506
30507         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
30508         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
30509
30510         * tests/test-array_oset.c: Include gl_xlist.h.
30511         * modules/array-oset-tests (Depends-on): Add xlist.
30512
30513         Reported by José E. Marchesi <jemarch@gnu.org>.
30514
30515 2009-12-13  Bruno Haible  <bruno@clisp.org>
30516
30517         Move the malloc checking from module 'oset' to new module 'xoset'.
30518         * modules/xoset: New file.
30519         * lib/gl_xoset.h: New file.
30520         * lib/gl_xoset.c: New file.
30521         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
30522         declarations.
30523         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
30524         (struct gl_oset_implementation): Rename and change methods accordingly.
30525         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
30526         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
30527         'int'. Mark as __warn_unused_result__.
30528         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
30529         gl_oset_create_empty.
30530         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
30531         'int'.
30532         * lib/gl_array_oset.c: Don't include xalloc.h.
30533         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
30534         malloc, not xmalloc.
30535         (grow): Change return type to 'int'. Don't call xalloc_die.
30536         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
30537         to 'int'.
30538         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
30539         'int'.
30540         (gl_array_oset_implementation): Update.
30541         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
30542         gl_tree_create_empty.
30543         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
30544         'int'.
30545         * lib/gl_avltree_oset.c: Don't include xalloc.h.
30546         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
30547         xmalloc.
30548         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
30549         not xmalloc.
30550         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
30551         xmalloc.
30552         (gl_avltree_oset_implementation): Update.
30553         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
30554         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
30555         xmalloc.
30556         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
30557         not xmalloc.
30558         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
30559         xmalloc.
30560         (gl_rbtree_oset_implementation): Update.
30561         * modules/array-oset (Depends-on): Remove xalloc.
30562         * modules/avltree-oset (Depends-on): Likewise.
30563         * modules/rbtree-oset (Depends-on): Likewise.
30564         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
30565         * tests/test-avltree_oset.c: Likewise.
30566         * tests/test-rbtree_oset.c: Likewise.
30567         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
30568         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
30569         * modules/rbtree-oset-tests (Makefile.am): Likewise.
30570         * NEWS: Mention the change.
30571
30572 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
30573
30574         maint.mk: allow a project to override release-prep commands
30575         * top/maint.mk (alpha, beta, stable): Move release-preparatory
30576         commands into a new rule.
30577         (release-prep): New rule.
30578         (release-prep-hook): New overridable variable.
30579
30580 2009-12-13  Bruno Haible  <bruno@clisp.org>
30581
30582         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
30583
30584 2009-12-13  Jim Meyering  <meyering@redhat.com>
30585
30586         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
30587         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
30588
30589 2009-12-12  Bruno Haible  <bruno@clisp.org>
30590
30591         duplocale: Tweak.
30592         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
30593
30594 2009-12-12  Karl Berry  <karl@gnu.org>
30595
30596         * config/srclist.txt (strtoll.c): tab changes, no more sync.
30597
30598 2009-12-12  Bruno Haible  <bruno@clisp.org>
30599
30600         * m4/po.m4: Undo incorrect untabification.
30601
30602 2009-12-12  Bruno Haible  <bruno@clisp.org>
30603
30604         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
30605         * modules/c-strtod (Depends-on): Add locale.
30606         * modules/c-strtold (Depends-on): Likewise.
30607
30608 2009-12-12  Bruno Haible  <bruno@clisp.org>
30609
30610         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
30611
30612 2009-12-11  Eric Blake  <ebb9@byu.net>
30613
30614         setenv: relax requirement in light of POSIX ruling
30615         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
30616         not NULL.
30617         * tests/test-setenv.c (main): Relax test.
30618         * tests/test-unsetenv.c (main): Likewise.
30619         * doc/posix-functions/setenv.texi (setenv): Document this.
30620         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
30621
30622 2009-12-11  Bruno Haible  <bruno@clisp.org>
30623
30624         New module 'fd-safer-flag'.
30625         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
30626         * lib/dup-safer.c (dup_safer_flag): Remove function.
30627         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
30628         * lib/fd-safer.c (fd_safer_flag): Remove function.
30629         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
30630         * modules/cloexec (configure.ac): Drop indicator macro.
30631         * modules/fd-safer-flag: New file.
30632         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
30633         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
30634         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
30635
30636 2009-12-11  Bruno Haible  <bruno@clisp.org>
30637
30638         Tests for module 'nl_langinfo'.
30639         * modules/nl_langinfo-tests: New file.
30640         * tests/test-nl_langinfo.sh: New file.
30641         * tests/test-nl_langinfo.c: New file.
30642
30643         New module 'nl_langinfo'.
30644         * lib/nl_langinfo.c: New file.
30645         * m4/nl_langinfo.m4: New file.
30646         * modules/nl_langinfo: New file.
30647         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
30648
30649 2009-12-11  Bruno Haible  <bruno@clisp.org>
30650
30651         Tests for module 'langinfo'.
30652         * modules/langinfo-tests: New file.
30653         * tests/test-langinfo.c: New file.
30654
30655         New module 'langinfo'.
30656         * lib/langinfo.in.h: New file.
30657         * m4/langinfo_h.m4: New file.
30658         * modules/langinfo: New file.
30659         * doc/posix-headers/langinfo.texi: Mention the new module.
30660
30661 2009-12-11  Bruno Haible  <bruno@clisp.org>
30662
30663         * lib/config.charset: Untabify.
30664
30665 2009-12-11  Bruno Haible  <bruno@clisp.org>
30666
30667         * modules/unistd-safer (configure.ac): Drop indicator macro.
30668
30669 2009-12-11  Bruno Haible  <bruno@clisp.org>
30670
30671         Move pipe2-safer code to its own file.
30672         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
30673         * lib/pipe-safer.c (pipe2_safer): Remove function.
30674         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
30675         (Makefile.am): Add it to lib_SOURCES.
30676
30677 2009-12-10  Bruno Haible  <bruno@clisp.org>
30678
30679         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
30680
30681 2009-12-10  Bruno Haible  <bruno@clisp.org>
30682
30683         Declare which arguments expect non-NULL values, for GCC and clang.
30684         * build-aux/arg-nonnull.h: New file.
30685         * modules/arg-nonnull: New file.
30686         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
30687         (inet_ntop, inet_pton): Use it.
30688         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
30689         (closedir, dirfd, opendir, scandir, alphasort): Use it.
30690         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
30691         (open, openat): Use it.
30692         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
30693         (fnmatch): Use it.
30694         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
30695         (getopt, getopt_long, getopt_long_only): Use it.
30696         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
30697         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
30698         Use it.
30699         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
30700         (iconv_open): Use it.
30701         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
30702         (strtoimax, strtoumax): Use it.
30703         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
30704         (duplocale): Use it.
30705         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
30706         (frexp, frexpl): Use it.
30707         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
30708         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
30709         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
30710         (tsearch, tfind, tdelete, twalk): Use it.
30711         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
30712         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
30713         sigpending): Use it.
30714         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
30715         (posix_spawn, posix_spawnp, posix_spawnattr_init,
30716         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
30717         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
30718         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
30719         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
30720         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
30721         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
30722         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
30723         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
30724         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
30725         Use it.
30726         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
30727         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
30728         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
30729         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
30730         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
30731         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
30732         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
30733         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
30734         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
30735         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
30736         strtoull, unsetenv): Use it.
30737         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
30738         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
30739         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
30740         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
30741         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
30742         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
30743         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
30744         (strcasecmp, strncasecmp): Use it.
30745         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
30746         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
30747         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
30748         rpl_setsockopt): Use it.
30749         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
30750         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
30751         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
30752         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
30753         (gettimeofday): Use it.
30754         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
30755         (times): Use it.
30756         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
30757         (uname): Use it.
30758         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
30759         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
30760         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
30761         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
30762         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
30763         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
30764         unlinkat, write): Use it.
30765         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
30766         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
30767         * lib/argv-iter.h: Include arg-nonnull.h.
30768         (_ATTRIBUTE_NONNULL_): Remove macro.
30769         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
30770         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
30771         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
30772         optimization.
30773         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
30774         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
30775         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
30776         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
30777         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
30778         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
30779         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
30780         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
30781         * modules/arpa_inet (Depends-on): Add arg-nonnull.
30782         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
30783         * modules/dirent (Depends-on): Add arg-nonnull.
30784         (Makefile.am): Insert arg-nonnull.h into dirent.h.
30785         * modules/fcntl-h (Depends-on): Add arg-nonnull.
30786         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
30787         * modules/fnmatch (Depends-on): Add arg-nonnull.
30788         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
30789         * modules/getopt-posix (Depends-on): Add arg-nonnull.
30790         (Makefile.am): Insert arg-nonnull.h into getopt.h.
30791         * modules/glob (Depends-on): Add arg-nonnull.
30792         (Makefile.am): Insert arg-nonnull.h into glob.h.
30793         * modules/iconv_open (Depends-on): Add arg-nonnull.
30794         (Makefile.am): Insert arg-nonnull.h into iconv.h.
30795         * modules/inttypes (Depends-on): Add arg-nonnull.
30796         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
30797         * modules/locale (Depends-on): Add arg-nonnull.
30798         (Makefile.am): Insert arg-nonnull.h into locale.h.
30799         * modules/math (Depends-on): Add arg-nonnull.
30800         (Makefile.am): Insert arg-nonnull.h into math.h.
30801         * modules/netdb (Depends-on): Add arg-nonnull.
30802         (Makefile.am): Insert arg-nonnull.h into netdb.h.
30803         * modules/search (Depends-on): Add arg-nonnull.
30804         (Makefile.am): Insert arg-nonnull.h into search.h.
30805         * modules/signal (Depends-on): Add arg-nonnull.
30806         (Makefile.am): Insert arg-nonnull.h into signal.h.
30807         * modules/spawn (Depends-on): Add arg-nonnull.
30808         (Makefile.am): Insert arg-nonnull.h into spawn.h.
30809         * modules/stdio (Depends-on): Add arg-nonnull.
30810         (Makefile.am): Insert arg-nonnull.h into stdio.h.
30811         * modules/stdlib (Depends-on): Add arg-nonnull.
30812         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
30813         * modules/string (Depends-on): Add arg-nonnull.
30814         (Makefile.am): Insert arg-nonnull.h into string.h.
30815         * modules/strings (Depends-on): Add arg-nonnull.
30816         (Makefile.am): Insert arg-nonnull.h into strings.h.
30817         * modules/sys_socket (Depends-on): Add arg-nonnull.
30818         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
30819         * modules/sys_stat (Depends-on): Add arg-nonnull.
30820         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
30821         * modules/sys_time (Depends-on): Add arg-nonnull.
30822         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
30823         * modules/sys_times (Depends-on): Add arg-nonnull.
30824         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
30825         * modules/sys_utsname (Depends-on): Add arg-nonnull.
30826         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
30827         * modules/time (Depends-on): Add arg-nonnull.
30828         (Makefile.am): Insert arg-nonnull.h into time.h.
30829         * modules/unistd (Depends-on): Add arg-nonnull.
30830         (Makefile.am): Insert arg-nonnull.h into unistd.h.
30831         * modules/wchar (Depends-on): Add arg-nonnull.
30832         (Makefile.am): Insert arg-nonnull.h into wchar.h.
30833         * modules/argv-iter (Depends-on): Add arg-nonnull.
30834         * tests/test-canonicalize.c (null_ptr): New function.
30835         (main): Use it.
30836         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
30837         (main): Use it.
30838         * tests/test-memmem.c (null_ptr): New function.
30839         (main): Use it.
30840         Reported by Jim Meyering.
30841
30842 2009-12-10  Bruno Haible  <bruno@clisp.org>
30843
30844         Use spaces for indentation, not tabs.
30845         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
30846         * m4/*.m4: Untabify.
30847         * build-aux/*.h: Untabify.
30848         * tests/**/*.[hc]: Untabify.
30849         * README: New section "Indent with spaces, not TABs", based on
30850         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
30851         * NEWS: Mention the change.
30852
30853 2009-12-10  Bruno Haible  <bruno@clisp.org>
30854
30855         pty test: Fix link error.
30856         * modules/pty-tests (Makefile.am): Add the default LDADD value to
30857         test_pty_LDADD.
30858
30859 2009-12-07  Simon Josefsson  <simon@josefsson.org>
30860
30861         * modules/pty: New file.
30862         * modules/pty-tests: New file.
30863         * m4/pty.m4: New file.
30864         * tests/test-pty.c: New file.
30865         * doc/glibc-headers/pty.texi: Modified.
30866         * doc/glibc-functions/forkpty.texi: Modified.
30867         * doc/glibc-functions/openpty.texi: Modified.
30868
30869 2009-12-10  Bruno Haible  <bruno@clisp.org>
30870
30871         Avoid syntax error in C++ mode.
30872         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
30873
30874 2009-12-10  Bruno Haible  <bruno@clisp.org>
30875
30876         Use sed with option -e.
30877         * gnulib-tool (func_version, func_emit_copyright_notice,
30878         func_emit_initmacro_end, func_import, func_create_testdir): Pass
30879         option -e to sed.
30880         * modules/link-warning (Makefile.am): Likewise.
30881
30882 2009-12-10  Jim Meyering  <meyering@redhat.com>
30883
30884         mgetgroups: do not write bytes beyond end of malloc'd buffer
30885         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
30886         username, we call getgroups with a one-element-shorter buffer,
30887         but still told it the length was original, max_n_groups.
30888
30889 2009-12-09  Eric Blake  <ebb9@byu.net>
30890
30891         cloexec: relax license
30892         * modules/cloexec (Maintainer): Add myself.
30893         (License): Use LGPL, not GPL.
30894
30895         link-warning: optimize generation
30896         * modules/link-warning (Makefile.am): Reduce process usage.
30897
30898 2009-12-09  Bruno Haible  <bruno@clisp.org>
30899
30900         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
30901         workaround was added on 2009-11-17.
30902
30903 2009-12-09  Jim Meyering  <meyering@redhat.com>
30904             Bruno Haible  <bruno@clisp.org>
30905
30906         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
30907         * modules/link-warning (Makefile.am): Make the comment-removing sed
30908         command more robust in the face of bootstrap-prepended comment lines.
30909
30910 2009-12-09  Bruno Haible  <bruno@clisp.org>
30911
30912         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
30913         most one group.
30914
30915 2009-12-09  Simon Josefsson <simon@josefsson.org>
30916             Bruno Haible  <bruno@clisp.org>
30917
30918         * build-aux/link-warning.h: Add copyright notice.
30919         * modules/link-warning (Makefile.am): Generate link-warning.h from
30920         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
30921         * NEWS: Mention change in link-warning module.
30922         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
30923         * modules/dirent (Makefile.am): Add dependency to dirent.h.
30924         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
30925         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
30926         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
30927         * modules/math (Makefile.am): Add dependency to math.h.
30928         * modules/search (Makefile.am): Add dependency to search.h.
30929         * modules/signal (Makefile.am): Add dependency to signal.h.
30930         * modules/spawn (Makefile.am): Add dependency to spawn.h.
30931         * modules/stdio (Makefile.am): Add dependency to stdio.h.
30932         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
30933         * modules/string (Makefile.am): Add dependency to string.h.
30934         * modules/strings (Makefile.am): Add dependency to strings.h.
30935         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
30936         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
30937         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
30938         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
30939         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
30940         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
30941         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
30942         * modules/unistd (Makefile.am): Add dependency to unistd.h.
30943         * modules/wchar (Makefile.am): Add dependency to wchar.h.
30944
30945 2009-12-09  Bruno Haible  <bruno@clisp.org>
30946
30947         fchdir: Optimize away rpl_fstat when possible.
30948         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
30949         REPLACE_OPEN_DIRECTORY.
30950         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
30951
30952 2009-12-09  Bruno Haible  <bruno@clisp.org>
30953
30954         * lib/fchdir.c: Update comment.
30955
30956 2009-12-09  Bruno Haible  <bruno@clisp.org>
30957
30958         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
30959
30960 2009-12-08  Eric Blake  <ebb9@byu.net>
30961
30962         fchdir: avoid memory leak on re-registration.
30963         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
30964
30965 2009-12-08  Jim Meyering  <meyering@redhat.com>
30966
30967         init.sh: avoid Solaris 10 /bin/sh portability problem
30968         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
30969         sourced script:
30970           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
30971           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
30972           bar
30973         tests/init.sh relied on that, accepting a --set-path=DIR argument,
30974         and two tests used that idiom.
30975         * tests/init.sh: Update suggested usage comments.
30976         (path_prepend_): New function, to be used in place
30977         of the --src-path=DIR option.
30978         (setup_): Move PATH-prepending code into path_prepend_.
30979         * tests/test-pread.sh: Adapt to new usage.
30980         * tests/test-xalloc-die.sh: Likewise.
30981
30982 2009-12-08  Simon Josefsson  <simon@josefsson.org>
30983
30984         * doc/gnulib.texi (Glibc pty.h): Add.
30985         * doc/glibc-functions/forkpty.texi: Add.
30986         * doc/glibc-functions/openpty.texi: Add.
30987         Suggested by Bruno Haible.
30988
30989 2009-12-08  Eric Blake  <ebb9@byu.net>
30990
30991         fchdir: fix logic bugs
30992         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
30993         * tests/test-fchdir.c (main): Enhance test.
30994         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
30995         is in use.
30996
30997         dup2: fix logic bugs
30998         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
30999         REPLACE_DUP2 to decide when rpl_dup2 is needed.
31000         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
31001         exists.
31002         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
31003
31004 2009-12-07  Eric Blake  <ebb9@byu.net>
31005
31006         unlink: fix m4 detection
31007         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
31008
31009         unistd-safer: add unit test
31010         * modules/unistd-safer-tests: New file.
31011         * tests/test-dup-safer.c: Likewise.
31012         * tests/test-cloexec.c (setmode): Avoid compiler warning.
31013         * tests/test-dup2.c (setmode): Likewise.
31014         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
31015
31016         cloexec: preserve text vs. binary across dup_cloexec
31017         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
31018         mode.
31019         * modules/dup2-tests (Depends-on): Add binary-io.
31020         * modules/cloexec-tests (Depends-on): Likewise.
31021         * tests/test-dup2.c (setmode, is_mode): New helpers.
31022         (main): Add tests that translation mode is preserved.
31023         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
31024         Reported by Bruno Haible.
31025
31026         mgetgroups: reduce duplicate listings
31027         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
31028         resulting array.
31029         * tests/test-chown.h (test_chown): Simplify client.
31030         * tests/test-lchown.h (test_lchown): Likewise.
31031
31032 2009-12-06  Bruno Haible  <bruno@clisp.org>
31033
31034         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
31035         value.
31036
31037 2009-12-06  Bruno Haible  <bruno@clisp.org>
31038
31039         * lib/progname.c: Include stdio.h, stdlib.h.
31040         (set_program_name): Reject a NULL argument.
31041
31042 2009-12-05  Eric Blake  <ebb9@byu.net>
31043
31044         pipe2-safer: new module
31045         * modules/pipe2-safer: New file.
31046         * lib/unistd-safer.h (pipe2_safer): New prototype.
31047         * lib/unistd--.h (pipe2): New wrapper.
31048         * lib/pipe-safer.c (pipe2_safer): New function.
31049         * modules/pipe (Depends-on): Add pipe2-safer.
31050         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
31051
31052         stdlib-safer: preserve cloexec flag for mkostemp[s]
31053         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
31054         fd_safer_flag.
31055
31056         unistd-safer: allow preservation of cloexec status via flag
31057         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
31058         prototypes.
31059         * lib/dup-safer.c (dup_safer_flag): New function.
31060         * lib/fd-safer.c (fd_safer_flag): Likewise.
31061         * modules/cloexec (configure.ac): Set witness.
31062
31063         test-dup2: enhance test
31064         * modules/dup2-tests (Depends-on): Add cloexec.
31065         * tests/test-dup2.c (main): Enhance test.
31066
31067         cloexec: add dup_cloexec
31068         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
31069         header and comments.
31070         * lib/cloexec.c (set_cloexec_flag): Add comments.
31071         (dup_cloexec): New function, with mingw implementation borrowed
31072         from...
31073         * lib/w32spawn.h (dup_noinherit): ...here.
31074         * modules/execute (Depends-on): Add cloexec.
31075         * modules/pipe (Depends-on): Likewise.
31076         * modules/cloexec (Depends-on): Add dup2.
31077         * modules/cloexec-tests (Files): New file.
31078         * tests/test-cloexec.c: Likewise.
31079
31080         test-xalloc-die: fix test for mingw
31081         * modules/xalloc-die-tests (Files): Add tests/init.sh.
31082         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
31083         directory and .exe suffix off argv[0] output.
31084
31085         test-fseeko: fix test for mingw
31086         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
31087         than undefining fseek, so test will pass on mingw.
31088
31089 2009-12-05  Bruno Haible  <bruno@clisp.org>
31090
31091         * lib/progname.h (set_program_name): Clarify specification.
31092         * lib/progname.c (set_program_name): Likewise.
31093         Reported by Jim Meyering.
31094
31095 2009-12-05  Jim Meyering  <meyering@redhat.com>
31096
31097         maint.mk: backslash-escape parens in default regexp
31098         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
31099         backslash-escape the literal parentheses.
31100
31101         maint.mk: news-date-check: use grep -E
31102         * top/maint.mk (today): Define a Make variable, not a...
31103         (news-date-check): ...shell variable.
31104         (news-date-regexp): Use the Make variable.
31105         Use grep's -E option.  Change the failing diagnostic to mention
31106         the variable, $(news-date-regexp).
31107
31108 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
31109
31110         maintainer-makefile: allow customization of NEWS entry format
31111         * top/maint.mk (news-date-regexp): New overridable variable.
31112         (news-date-check): Use it.
31113
31114 2009-12-04  Eric Blake  <ebb9@byu.net>
31115
31116         mgetgroups: add xgetgroups, and avoid ENOSYS failures
31117         * lib/mgetgroups.h (xgetgroups): New prototype.
31118         * lib/mgetgroups.c (xgetgroups): New wrapper.
31119         (mgetgroups): Handle ENOSYS.
31120         * modules/mgetgroups (Depends-on): Add realloc.
31121         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
31122
31123         mgetgroups: avoid argument promotion issues with -1
31124         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
31125         for invalid gid_t.
31126         * tests/test-chown.h (getegid, test_chown): Likewise.
31127         * tests/test-lchown.h (getegid, test_lchown): Likewise.
31128
31129 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
31130
31131         exclude: Fix header file problems.
31132         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
31133
31134 2009-12-01  Jim Meyering  <meyering@redhat.com>
31135
31136         fts: fts_open: do not let an empty string cause immediate failure
31137         This is required in support of GNU rm, for which the command
31138         "rm A '' B" must process and remove both A and B, in spite of
31139         the empty string argument.
31140         * lib/fts.c (fts_open): Do not let the presence of an empty string
31141         cause fts_open to fail immediately.  Most fts-using tools must be
31142         able to process all arguments, in order, and can be expected to
31143         diagnose such arguments themselves.
31144
31145 2009-11-30  Eric Blake  <ebb9@byu.net>
31146
31147         utimens: fix compilation error
31148         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
31149         Declare variable at right scope.
31150
31151 2009-11-29  Jim Meyering  <meyering@redhat.com>
31152
31153         bootstrap: handle perl-5.11's changed --version output
31154         * build-aux/bootstrap (get_version): Handle perl separately,
31155         since perl-5.11's --version output is different.
31156
31157 2009-11-28  Jim Meyering  <meyering@redhat.com>
31158
31159         userspec: depend on the inttostr module, too
31160         * modules/userspec (Depends-on): Add inttostr.
31161
31162         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
31163         * lib/userspec.c (parse_with_separator): Do not accept a user ID
31164         number of MAXUID when it evaluates to (uid_t) -1.
31165         Likewise for group ID.  Reported by Matt McCutchen in
31166         <http://savannah.gnu.org/bugs/?28113>
31167
31168         userspec: reformat to use spaces, not TABs
31169         * lib/userspec.c: Expand TABs to spaces.
31170         Add Emacs' "indent-tabs-mode: nil" hint.
31171
31172 2009-11-27  Eric Blake  <ebb9@byu.net>
31173
31174         getopt-gnu: flush out another BSD bug
31175         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
31176         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
31177         flush out BSD bug.
31178         * tests/test-getopt.h (test_getopt): End lists with NULL.
31179         * tests/test-getopt_long.h (test_getopt_long): Likewise.
31180         (test_getopt_long_posix): Enhance test.
31181         * modules/getopt-posix-tests (Depends-on): Add stdbool.
31182         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
31183         getopt-gnu.
31184         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31185         Likewise.
31186
31187 2009-11-27  Simon Josefsson  <simon@josefsson.org>
31188
31189         * modules/idpriv-droptemp-tests (Notice): Fix text.
31190
31191 2009-11-27  Jim Meyering  <meyering@redhat.com>
31192
31193         test-xalloc-die: avoid spurious failure due to libtool argv difference
31194         In a libtool-enabled project, this test would fail due to a difference
31195         in the emitted program name, e.g.,
31196         -test-xalloc-die: memory exhausted
31197         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
31198         Use program to avoid that.
31199         * modules/xalloc-die-tests (Depends-on): Add progname.
31200         * tests/test-xalloc-die.c: Include progname.h".
31201         (program_name): Remove decl.
31202         (main): Call set_program_name.
31203         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
31204
31205 2009-11-26  Richard Jones  <rjones@redhat.com>
31206
31207         w32sock: leave win32 error in place.
31208         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
31209
31210 2009-11-26  Eric Blake  <ebb9@byu.net>
31211
31212         init.sh: suggest to use skip_ and fail_ functions in comments
31213         * tests/init.sh: Add a sentence.
31214
31215 2009-11-25  Bruno Haible  <bruno@clisp.org>
31216
31217         init.sh: add documentation in comments
31218         * tests/init.sh: Add some developer and user documentation.
31219
31220 2009-11-26  Jim Meyering  <meyering@redhat.com>
31221
31222         init.sh: accommodate even those who specify bogus srcdir manually
31223         * tests/init.sh: Normally, srcdir is guaranteed by automake and
31224         configure-time tests to be sanitized, so that there is no need to
31225         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
31226         (with no double quotes) suffices.  However, since tests may be
31227         invoked manually, and since you may explicitly set srcdir to the
31228         name of a directory containing spaces, do quote its uses here.
31229         * tests/test-pread.sh: Likewise.
31230         Suggested by Bruno Haible.
31231
31232         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
31233         * tests/test-pread.sh: Write no data into the pipe, because
31234         test-pread actually reads none.  This avoids a diagnostic,
31235         "bash: echo: write error: Broken pipe", that arises in the unusual
31236         event something is ignoring SIGPIPE, and might be interpreted
31237         as some sort of failure.  Reported by Bruno Haible.
31238
31239 2009-11-25  Jim Meyering  <meyering@redhat.com>
31240
31241         test-pread: cover failure with ESPIPE and EINVAL
31242         * tests/test-pread.c (main): Test for failure, too.
31243         * tests/test-pread.sh: Invoke with stdin on a pipe.
31244         Suggested by Eric Blake.
31245
31246         pread: improvement and fix
31247         * modules/pread (Depends-on): Depend on lseek, for portability to
31248         e.g., mingw.  Suggested by Eric Blake.
31249         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
31250
31251         unistd.in.h: correct declaration of pread
31252         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
31253         Reported by Richard W.M. Jones.
31254
31255         test-pread.sh: distribute the test script
31256         * modules/pread-tests (Files): Include test-pread.sh.
31257
31258         test-pread.sh: clean up
31259         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
31260         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
31261         That is unnecessary, since it's always ".".
31262         Suggestion from Eric Blake.
31263
31264         test-pread.sh: make executable
31265         * tests/test-pread.sh: Set executable bit.
31266         Reported by Eric Blake.
31267
31268         correct typo in test-pread.sh
31269         * tests/test-pread.sh: Add #! line.
31270
31271         test pread
31272         * tests/test-pread.c: New file.
31273         * tests/test-pread.sh: Likewise.
31274         * modules/pread-tests: Likewise.
31275
31276         pread: new module
31277         * modules/pread: New file.
31278         * lib/unistd.in.h (pread): Define/declare.
31279         * lib/pread.c (pread): New file.
31280         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
31281         * modules/unistd (Makefile.am): Substitute witnesses.
31282         * doc/posix-functions/pread.texi (pread): Update.
31283         * MODULES.html.sh: Add pread.
31284
31285 2009-11-25  Jim Meyering  <meyering@redhat.com>
31286
31287         tests/init.sh: new file to be used via most *.sh tests
31288         * tests/init.sh: New file.
31289
31290 2009-11-25  Eric Blake  <ebb9@byu.net>
31291
31292         utimens: work around older Linux failure with symlinks
31293         * lib/utimens.c (lutimensat_works_really): New variable.
31294         (fdutimens, lutimens): Use it to manage kernels that support
31295         nanosecond times on files, but not on symlinks.
31296         Reported by OndÅ™ej Vašík.
31297
31298         utimes: fix configure grammar
31299         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
31300
31301 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
31302
31303         regex: Fix fastmap for multibyte character ranges.
31304         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
31305         characters when a multibyte character range is included.
31306
31307 2009-11-22  Andy Wingo  <wingo@pobox.com>
31308
31309         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
31310         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
31311
31312 2009-11-24  Bruno Haible  <bruno@clisp.org>
31313
31314         doc: Most *_l functions exist in MacOS X 10.5.
31315         * doc/posix-functions/duplocale.texi: Update platforms list.
31316         * doc/posix-functions/freelocale.texi: Likewise.
31317         * doc/posix-functions/newlocale.texi: Likewise.
31318         * doc/posix-functions/uselocale.texi: Likewise.
31319         * doc/posix-functions/isalnum_l.texi: Likewise.
31320         * doc/posix-functions/isalpha_l.texi: Likewise.
31321         * doc/posix-functions/isblank_l.texi: Likewise.
31322         * doc/posix-functions/iscntrl_l.texi: Likewise.
31323         * doc/posix-functions/isdigit_l.texi: Likewise.
31324         * doc/posix-functions/isgraph_l.texi: Likewise.
31325         * doc/posix-functions/islower_l.texi: Likewise.
31326         * doc/posix-functions/isprint_l.texi: Likewise.
31327         * doc/posix-functions/ispunct_l.texi: Likewise.
31328         * doc/posix-functions/isspace_l.texi: Likewise.
31329         * doc/posix-functions/isupper_l.texi: Likewise.
31330         * doc/posix-functions/iswalnum_l.texi: Likewise.
31331         * doc/posix-functions/iswalpha_l.texi: Likewise.
31332         * doc/posix-functions/iswblank_l.texi: Likewise.
31333         * doc/posix-functions/iswcntrl_l.texi: Likewise.
31334         * doc/posix-functions/iswctype_l.texi: Likewise.
31335         * doc/posix-functions/iswdigit_l.texi: Likewise.
31336         * doc/posix-functions/iswgraph_l.texi: Likewise.
31337         * doc/posix-functions/iswlower_l.texi: Likewise.
31338         * doc/posix-functions/iswprint_l.texi: Likewise.
31339         * doc/posix-functions/iswpunct_l.texi: Likewise.
31340         * doc/posix-functions/iswspace_l.texi: Likewise.
31341         * doc/posix-functions/iswupper_l.texi: Likewise.
31342         * doc/posix-functions/iswxdigit_l.texi: Likewise.
31343         * doc/posix-functions/isxdigit_l.texi: Likewise.
31344         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
31345         * doc/posix-functions/strcasecmp_l.texi: Likewise.
31346         * doc/posix-functions/strcoll_l.texi: Likewise.
31347         * doc/posix-functions/strfmon_l.texi: Likewise.
31348         * doc/posix-functions/strftime_l.texi: Likewise.
31349         * doc/posix-functions/strncasecmp_l.texi: Likewise.
31350         * doc/posix-functions/strxfrm_l.texi: Likewise.
31351         * doc/posix-functions/tolower_l.texi: Likewise.
31352         * doc/posix-functions/toupper_l.texi: Likewise.
31353         * doc/posix-functions/towctrans_l.texi: Likewise.
31354         * doc/posix-functions/towlower_l.texi: Likewise.
31355         * doc/posix-functions/towupper_l.texi: Likewise.
31356         * doc/posix-functions/wcscoll_l.texi: Likewise.
31357         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
31358         * doc/posix-functions/wctrans_l.texi: Likewise.
31359         * doc/posix-functions/wctype_l.texi: Likewise.
31360         * doc/glibc-functions/strptime_l.texi: Likewise.
31361         * doc/glibc-functions/strtod_l.texi: Likewise.
31362         * doc/glibc-functions/strtof_l.texi: Likewise.
31363         * doc/glibc-functions/strtol_l.texi: Likewise.
31364         * doc/glibc-functions/strtold_l.texi: Likewise.
31365         * doc/glibc-functions/strtoll_l.texi: Likewise.
31366         * doc/glibc-functions/strtoul_l.texi: Likewise.
31367         * doc/glibc-functions/strtoull_l.texi: Likewise.
31368         * doc/glibc-functions/wcsftime_l.texi: Likewise.
31369         * doc/glibc-functions/wcstod_l.texi: Likewise.
31370         * doc/glibc-functions/wcstof_l.texi: Likewise.
31371         * doc/glibc-functions/wcstol_l.texi: Likewise.
31372         * doc/glibc-functions/wcstold_l.texi: Likewise.
31373         * doc/glibc-functions/wcstoll_l.texi: Likewise.
31374         * doc/glibc-functions/wcstoul_l.texi: Likewise.
31375         * doc/glibc-functions/wcstoull_l.texi: Likewise.
31376
31377 2009-11-24  Bruno Haible  <bruno@clisp.org>
31378
31379         duplocale: Fix logic bug.
31380         * lib/duplocale.c: Don't include <langinfo.h>.
31381         (_NL_LOCALE_NAME): Remove macro.
31382         (rpl_duplocale): Use setlocale instead of nl_langinfo.
31383         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
31384
31385 2009-11-23  Jim Meyering  <meyering@redhat.com>
31386
31387         test-update-copyright: don't hard-code /usr/bin/perl
31388         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
31389         perl to print the current year.  Gilles Espinasse reported that
31390         the replaced use of perl was hard-coded as /usr/bin/perl.
31391
31392 2009-11-23  Bruno Haible  <bruno@clisp.org>
31393
31394         duplocale: Add support for glibc 2.3.x.
31395         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
31396
31397 2009-11-22  Bruno Haible  <bruno@clisp.org>
31398
31399         vasnprintf: Tiny optimization.
31400         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
31401         MacOS X.
31402
31403 2009-11-22  Bruno Haible  <bruno@clisp.org>
31404
31405         Tests for module 'duplocale'.
31406         * modules/duplocale-tests: New file.
31407         * tests/test-duplocale.c: New file.
31408
31409         New module 'duplocale'.
31410         * m4/duplocale.m4: New file.
31411         * lib/locale.in.h (duplocale): New declaration.
31412         * lib/duplocale.c: New file.
31413         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
31414         gl_LOCALE_H_DEFAULTS): New macros.
31415         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
31416         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
31417         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
31418         REPLACE_DUPLOCALE.
31419         * modules/duplocale: New file.
31420         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
31421
31422 2009-11-22  Bruno Haible  <bruno@clisp.org>
31423
31424         * modules/locale-tests (configure.ac): Test for newlocale function.
31425         * tests/test-locale.c: When the system has extended locale functions,
31426         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
31427
31428         locale: Make locale_t available when possible.
31429         * lib/locale.in.h: Include <xlocale.h> when it exists.
31430         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
31431         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
31432         * modules/locale (Depends-on): Add extensions.
31433         (Makefile.am): Also substitute HAVE_XLOCALE_H.
31434         * doc/posix-headers/locale.texi: Document the problem with locale_t.
31435
31436 2009-11-22  Bruno Haible  <bruno@clisp.org>
31437
31438         Add comments.
31439         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
31440         invocation.
31441         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
31442         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
31443         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
31444
31445 2009-11-22  Bruno Haible  <bruno@clisp.org>
31446
31447         error: account for the possibility of freopen (stdout).
31448         * lib/error.c: Include <unistd.h>.
31449         (flush_stdout): New function, extracted from error and error_at_line.
31450         Determine stdout's fd dynamically.
31451         (error, error_at_line): Invoke flush_stdout.
31452         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
31453         * modules/error (Depends-on): Add unistd.
31454
31455 2009-11-22  Bruno Haible  <bruno@clisp.org>
31456
31457         diffseq: Add comment.
31458         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
31459
31460 2009-11-22  Jim Meyering  <meyering@redhat.com>
31461
31462         c-stack: avoid defining an unused static function
31463         * lib/c-stack.c (find_stack_direction): Do not define this function
31464         when it will not be used.
31465
31466         diffseq: avoid spurious gcc warnings
31467         * lib/diffseq.h (IF_LINT2): Define.
31468         (compareseq): Use it to initialize two members of "part".
31469         This avoids two used-uninitialized warnings.
31470
31471 2009-11-21  Jim Meyering  <meyering@redhat.com>
31472
31473         c-stack: avoid "ignoring return value of `write'" warning
31474         * lib/c-stack.c: Include "ignore-value.h".
31475         (die): Explicitly ignore each write return value.
31476         * modules/c-stack (Depends-on): Add ignore-value.
31477
31478 2009-11-21  Bruno Haible  <bruno@clisp.org>
31479
31480         diffseq: reduce scope of variable 'best'.
31481         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
31482         variable, earlier used for two different purposes.
31483
31484 2009-11-21  Jim Meyering  <meyering@redhat.com>
31485
31486         diffseq: remove useless assignment to "best"
31487         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
31488         assignment.  At that point "best" is already guaranteed to be zero.
31489
31490 2009-11-20  Eric Blake  <ebb9@byu.net>
31491
31492         build: mention ftp redirector in release announcements
31493         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
31494         values that used to come from cfg.mk; mention FTP redirect URL.
31495         * build-aux/announce-gen: Mention the mirror list.
31496         Suggested by Karl Berry.
31497
31498         nanosleep: improve port to mingw
31499         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
31500         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
31501         LIB_NANOSLEEP, but only when needed.
31502         * modules/select (Link): Document LIBSOCKET.
31503         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
31504         enough.
31505
31506         nanosleep: work around cygwin bug
31507         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
31508         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
31509         bug.
31510         (getnow): Delete, not needed.
31511         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
31512         LIB_CLOCK_GETTIME.
31513         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
31514         clock-time, gettime.
31515         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
31516         bug.
31517         * modules/nanosleep-tests: New test.
31518         * tests/test-nanosleep.c: New file.
31519
31520         sleep: work around cygwin bug
31521         * lib/sleep.c (rpl_sleep): Work around the bug.
31522         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
31523         (gl_PREREQ_SLEEP): Delete unused macro.
31524         * modules/sleep (Depends-on): Add verify.
31525         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
31526         * modules/unistd (Makefile.am): Substitute witness.
31527         * lib/unistd.in.h (sleep): Update prototype.
31528         * doc/posix-functions/sleep.texi (sleep): Document the bug.
31529         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
31530         * modules/sleep-tests (Depends-on): Check for alarm.
31531
31532 2009-11-20  Jim Meyering  <meyering@redhat.com>
31533
31534         maint.mk: improve sc_prohibit_magic_number_exit
31535         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
31536         so it does not match uses like System.exit(1).
31537         Add comments showing how to correct all offenders.
31538
31539 2009-11-19  Eric Blake  <ebb9@byu.net>
31540
31541         xalloc-die-tests: add missing library
31542         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
31543
31544         test-xvasprintf: silence compiler warnings
31545         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
31546         empty string from gcc.
31547
31548 2009-11-19  Jim Meyering  <meyering@redhat.com>
31549
31550         xfreopen: new module, from coreutils
31551         * modules/xfreopen: New module.
31552         * lib/xfreopen.c: New file.
31553         * lib/xfreopen.h: New file.
31554         * MODULES.html.sh (File stream based Input/Output"): Add it.
31555
31556 2009-11-19  Eric Blake  <ebb9@byu.net>
31557
31558         manywarnings: depend on warnings
31559         * modules/manywarnings (Depends-on): Add warnings.
31560
31561         build: avoid compiler warnings
31562         * lib/select.c (rpl_select): Delete unused variable.
31563         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
31564
31565 2009-11-18  Eric Blake  <ebb9@byu.net>
31566
31567         tests: avoid false negative with --with-packager
31568         * tests/test-version-etc.sh: Discard packager information.
31569         * tests/test-argp-version-etc-1.sh: Likewise.
31570         Reported by Mike Frysinger.
31571
31572         utimens: fix regression on Solaris
31573         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
31574         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
31575         can only change fd timestamps via futimesat.  Instead, use an
31576         additional witness macro to avoid BSD bug.
31577         Reported by Jim Meyering.
31578
31579 2009-11-17  Eric Blake  <ebb9@byu.net>
31580
31581         usleep: use it to simplify tests
31582         * modules/stat-time-tests (Depends-on): Add usleep.
31583         (configure.ac): Drop usleep check.
31584         * modules/chown-tests (Depends-on, configure.ac): Likewise.
31585         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
31586         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
31587         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
31588         * modules/openat-tests (Depends-on, configure.ac): Likewise.
31589         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
31590         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
31591         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
31592         Likewise.
31593         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
31594         * tests/test-lchown.h (nap): Likewise.
31595         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
31596         * tests/test-stat-time.c (nap): Likewise.
31597         * tests/test-utimens-common.h (nap): Update comments.
31598
31599         usleep: new module
31600         * modules/usleep: New file.
31601         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
31602         * lib/usleep.c (usleep): Likewise.
31603         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
31604         * modules/unistd (Makefile.am): Substitute witnesses.
31605         * lib/unistd.in.h (usleep): Add declaration.
31606         * doc/pastposix-functions/usleep.texi (usleep): Document this.
31607         * MODULES.html.sh (Date and time): Likewise.
31608         * modules/usleep-tests (Depends-on): New test.
31609         * tests/test-usleep.c: New file.
31610
31611         chown: work around OpenBSD bug
31612         * lib/chown.c (rpl_chown): Work around the bug.
31613         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
31614         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
31615         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
31616         * modules/chown (Depends-on): Add stdbool.
31617         * modules/lchown (Depends-on): Likewise.
31618         * doc/posix-functions/chown.texi (chown): Document the bug.
31619         * doc/posix-functions/lchown.texi (lchown): Likewise.
31620         * tests/test-lchown.h (test_chown): Relax test.
31621
31622         mkstemp: avoid conflict with C++ keyword template
31623         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
31624         * lib/mkostemp.c (mkostemp): Likewise.
31625         * lib/mkostemps.c (mkostemps): Likewise.
31626         * lib/mkstemp.c (mkstemp): Likewise.
31627         * lib/mkstemps.c (mkstemps): Likewise.
31628
31629         xalloc-die-tests: optimize
31630         * tests/test-xalloc-die.sh: Reduce number of processes.
31631
31632 2009-11-17  Simon Josefsson  <simon@josefsson.org>
31633
31634         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
31635         patch from ludo@gnu.org (Ludovic Courtès).
31636
31637 2009-11-17  Jim Meyering  <meyering@redhat.com>
31638
31639         version-etc: use proper license string
31640         * modules/version-etc (License): Use LGPL, not LGPLv3+.
31641         * modules/version-etc-fsf: Likewise.
31642
31643 2009-11-17  Simon Josefsson  <simon@josefsson.org>
31644
31645         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
31646         printed to stdout.  Deal with EOL differences.
31647
31648 2009-11-17  Eric Blake  <ebb9@byu.net>
31649
31650         unsetenv: work around Solaris bug
31651         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
31652         * lib/unsetenv.c (rpl_unsetenv): Work around it.
31653         Reported by Jim Meyering.
31654
31655         vasnprintf: avoid compiler warnings
31656         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
31657         variables.
31658         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
31659
31660 2009-11-17  Simon Josefsson  <simon@josefsson.org>
31661
31662         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
31663         settings since xalloc-die is no longer the self test,
31664         xalloc-die.sh is.
31665
31666 2009-11-17  Jim Meyering  <meyering@redhat.com>
31667
31668         test-xalloc-die.sh: make the code agree with the commit log
31669         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
31670         at the end, just in case you happen to have a test-xalloc-die
31671         program in some other PATH directory.
31672
31673         test-xalloc-die.sh: fix a portability bug
31674         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
31675         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
31676         Otherwise, argv[0] (as often seen in diagnostics) would be too
31677         system-dependent, sometimes with, and sometimes without the leading "./".
31678
31679         version-etc-fsf: relax license to LGPLv3+
31680         * modules/version-etc-fsf (License): Relax license.
31681
31682 2009-11-16  Eric Blake  <ebb9@byu.net>
31683
31684         xalloc-die-tests: avoid printing null pointer
31685         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
31686         shell script.
31687         * tests/test-xalloc-die.c (program_name): Declare.
31688         * tests/test-xalloc-die.sh (tmpfiles): New file.
31689
31690         setenv, unsetenv: work around various bugs
31691         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
31692         (setenv) [HAVE_SETENV]: Work around bugs.
31693         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
31694         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
31695         for bugs.
31696         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
31697         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
31698         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
31699         * modules/stdlib (Makefile.am): Update substitutions.
31700         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
31701         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
31702         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
31703         * modules/setenv-tests: New test.
31704         * modules/unsetenv-tests: Likewise.
31705         * tests/test-setenv.c: New file.
31706         * tests/test-unsetenv.c: Likewise.
31707
31708 2009-11-16  Jim Meyering  <meyering@redhat.com>
31709
31710         version-etc: relax license to LGPLv3+
31711         * modules/version-etc (License): Relax license.
31712
31713         better AC_REQUIRE expanded-before-required-warning avoidance
31714         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
31715         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
31716         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
31717         which is no longer needed.
31718
31719 2009-11-16  Eric Blake  <ebb9@byu.net>
31720
31721         test-freading: clean up temporary file
31722         * tests/test-freading.c (main): Remove file on success, and use
31723         ASSERT more liberally.
31724         Reported by Jim Meyering.
31725
31726 2009-11-16  Jim Meyering  <meyering@redhat.com>
31727
31728         avoid new AC_REQUIRE expanded-before-required warnings
31729         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
31730         merely using it.
31731         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
31732         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
31733
31734 2009-11-15  Simon Josefsson  <simon@josefsson.org>
31735
31736         * tests/test-xalloc-die.c: New file.
31737         * modules/xalloc-die-tests: New file.
31738         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
31739         XFAIL_TESTS so it can be appended by modules.
31740
31741 2009-11-15  Simon Josefsson  <simon@josefsson.org>
31742
31743         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
31744         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
31745
31746 2009-11-14  Eric Blake  <ebb9@byu.net>
31747
31748         fnmatch: avoid compiler warning
31749         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
31750         to silence compiler warning about mismatch signedness in ?:.
31751         Reported by Robert Millan.
31752
31753         intprops: add double-inclusion guard
31754         * lib/intprops.h: Allow idempotent includes.
31755         Suggested by Bruce Korb.
31756
31757         openat: detect Solaris fchownat bug
31758         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
31759         penalizing glibc chownat when only lchownat is broken.
31760         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
31761         trailing slash bugs.
31762         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
31763         * modules/openat-tests (Files): Include more files.
31764         (Depends-on): Add mgetgroups, sleep, stat-time.
31765         (configure.ac): Add additional checks.
31766         (Makefile.am): Build new test.
31767         * tests/test-fchownat.c: New file.
31768
31769         lchown: detect Solaris and FreeBSD bug
31770         * lib/lchown.c (rpl_lchown): Work around bug.
31771         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
31772         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
31773         * modules/unistd (Makefile.am): Populate it.
31774         * lib/unistd.in.h (lchown): Update declaration.
31775         * doc/posix-functions/lchown.texi (lchown): Document the bug.
31776         * modules/lchown-tests: New file.
31777         * tests/test-lchown.h (test_lchown): Likewise.
31778         * tests/test-lchown.c (main): Likewise.
31779
31780         chown: detect Solaris and FreeBSD bug
31781         * lib/chown.c (rpl_chown): Work around bug.
31782         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
31783         (gl_PREREQ_CHOWN): Delete.
31784         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
31785         * modules/unistd (Makefile.am): Populate it.
31786         * lib/unistd.in.h (chown): Update declaration.
31787         * lib/lchown.c (chown): Update client.
31788         * modules/lchown (Depends-on): Add lstat.
31789         * doc/posix-functions/chown.texi (chown): Document the bug.
31790         * doc/posix-functions/getgroups.texi (getgroups): Document
31791         getgroups pitfall.
31792         * modules/chown-tests: New file.
31793         * tests/test-chown.h (test_chown): Likewise.
31794         * tests/test-chown.c (main): Likewise.
31795
31796 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
31797
31798         gnulib-tool: correctly detect absence of m4 directories
31799         * gnulib-tool: Avoid extra newline on data passed to wc -l.
31800
31801 2009-11-14  Jim Meyering  <meyering@redhat.com>
31802
31803         maint.mk: Prohibit inclusion of "xalloc.h" without use.
31804         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
31805
31806 2009-11-14  John W. Eaton  <jwe@gnu.org>
31807
31808         strftime.h: wrap funtion declaration in extern "C" block
31809         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
31810
31811 2009-11-13  Eric Blake  <ebb9@byu.net>
31812
31813         getgroups: avoid compiler warning
31814         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
31815
31816         getgroups: work around FreeBSD bug
31817         * lib/getgroups.c (rpl_getgroups): Work around the bug.
31818         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
31819         * doc/posix-functions/getgroups.texi (getgroups): Document it.
31820         * tests/test-getgroups.c (main): Fix buffer overrun.
31821
31822         getgroups: avoid compilation failure
31823         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
31824         * modules/getgroups (Depends-on): Add stdint.
31825
31826 2009-11-13  Jim Meyering  <meyering@redhat.com>
31827
31828         test-getgroups: avoid compilation failure
31829         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
31830
31831 2009-11-13  Eric Blake  <ebb9@byu.net>
31832
31833         mgetgroups: new module, taken from coreutils
31834         * modules/mgetgroups: New file.
31835         * lib/mgetgroups.h: Likewise.
31836         * lib/mgetgroups.c (mgetgroups): Likewise.
31837         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
31838         * MODULES.html.sh (Users and groups): Mention it.
31839
31840         getgroups: don't expose GETGROUPS_T to user
31841         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
31842         an element at a time if GETGROUPS_T is wrong size.
31843         * lib/getugroups.h (getugroups): Change signature.
31844         * lib/unistd.in.h (getgroups): Likewise.
31845         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
31846         signature needs fixing.
31847         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
31848         AC_TYPE_GETGROUPS.
31849         * modules/group-member (Depends-on): Add getgroups.
31850         * lib/group-member.c (group_info, get_group_info): Use gid_t.
31851         (group_member): Rely on getgroups replacement.
31852         * lib/getugroups.c (getugroups): Use gid_t.
31853         * tests/test-getgroups.c (main): Likewise.
31854         * NEWS: Mention the signature change.
31855         * doc/posix-functions/getgroups.texi (getgroups): Mention the
31856         problem with signature.
31857         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
31858         GETGROUPS_T is still useful for setgroups.
31859
31860         getgroups, getugroups: provide stubs for mingw
31861         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
31862         * lib/getugroups.c (getugroups): Likewise.
31863         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
31864         function.  Modernize replacement scheme.
31865         (gl_PREREQ_GETGROUPS): Delete.
31866         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
31867         * modules/getgroups (configure.ac): Declare witness.
31868         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
31869         * modules/unistd (Depends-on): Substitute witness.
31870         * lib/unistd.in.h (getgroups): Declare replacement.
31871
31872         getgroups: avoid calling exit
31873         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
31874         drop xalloc.
31875         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
31876         dependencies.
31877         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
31878         exiting, in the rare case of malloc failure.
31879
31880         getgroups: fix logic error
31881         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
31882         has more than 20 groups.
31883         * modules/getgroups-tests: New test.
31884         * tests/test-getgroups.c: New file.
31885
31886 2009-11-13  Simon Josefsson  <simon@josefsson.org>
31887
31888         * tests/test-base64.c: Improve.
31889
31890 2009-11-13  Simon Josefsson  <simon@josefsson.org>
31891
31892         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
31893         Blake <ebb9@byu.net>.
31894
31895 2009-11-13  Simon Josefsson  <simon@josefsson.org>
31896
31897         * tests/test-xvasprintf.c: Add %s%s related checks.
31898
31899 2009-11-12  Eric Blake  <ebb9@byu.net>
31900
31901         version-etc: match standards.texi style
31902         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
31903         and use <> only for URLs.
31904
31905 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
31906
31907         fts: do not fail on a submount during traversal
31908         * lib/fts.c (fts_build): Read the stat info again after opening
31909         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
31910         Original report at http://bugzilla.redhat.com/501848.
31911
31912 2009-11-12  Jim Meyering  <meyering@redhat.com>
31913
31914         bootstrap: sync from coreutils
31915         * build-aux/bootstrap (bootstrap_epilogue): New function.
31916         Use git_modules_config in one more place.  This make bootstrap's
31917         --gnulib-srcdir option more useful for testing.
31918
31919         bootstrap: generalize autoheader check
31920         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
31921         AC_CONFIG_HEADERS.
31922
31923 2009-11-11  Eric Blake  <ebb9@byu.net>
31924
31925         mkfifoat: use new modules for Solaris and BSD bugs
31926         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
31927         * lib/mkfifoat.c (mknodat): Split...
31928         * lib/mknodat.c (mknodat): ...into new file.
31929         * modules/mkfifoat (Files): Ship new file.
31930         (Depends-on): Add mkfifo, mknod.
31931         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
31932         (Depends-on): Add symlink.
31933         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
31934         redundant with test_mkfifo.h.
31935         (do_mkfifoat, do_mknodat): New helpers.
31936
31937         mknod: new module
31938         * modules/mknod: New file.
31939         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
31940         * lib/mknod.c (mknod): Likewise.
31941         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
31942         defaults.
31943         * modules/sys_stat (Makefile.am): Substitute them.
31944         * lib/sys_stat.in.h (mknod): Declare replacement.
31945         * MODULES.html.sh (Support for systems lacking POSIX:2008):
31946         Document it.
31947         * doc/posix-functions/mknod.texi (mknod): Likewise.
31948         * modules/mknod-tests: New test.
31949         * tests/test-mknod.c: Likewise.
31950
31951         mkfifo: new module
31952         * modules/mkfifo: New file.
31953         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
31954         * lib/mkfifo.c (mkfifo): Likewise.
31955         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
31956         defaults.
31957         * modules/sys_stat (Makefile.am): Substitute them.
31958         * lib/sys_stat.in.h (mkfifo): Declare replacement.
31959         * MODULES.html.sh (Support for systems lacking POSIX:2008):
31960         Document it.
31961         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
31962         * modules/mkfifo-tests: New test.
31963         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
31964         from test-mkfifoat.c.
31965         * tests/test-mkfifo.c: New file.
31966
31967         readlink: detect FreeBSD bug
31968         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
31969         slash on symlink.
31970         * doc/posix-functions/readlink.texi (readlink): Document the bug.
31971         * tests/test-readlink.h (test_readlink): Enhance test.
31972
31973         symlink: detect FreeBSD bug
31974         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
31975         slash on symlink.
31976         * doc/posix-functions/symlink.texi (symlink): Document the bug.
31977         * tests/test-symlink.h (test_symlink): Enhance test.
31978
31979 2009-11-10  Eric Blake  <ebb9@byu.net>
31980
31981         link: detect FreeBSD bug
31982         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
31983         symlink.
31984         * doc/posix-functions/link.texi (link): Document the bug.
31985         * tests/test-link.h (test_link): Enhance test.
31986         * tests/test-linkat.c (main): Update caller.
31987
31988         unlink, remove: detect FreeBSD bug
31989         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
31990         slash on symlink.
31991         * doc/posix-functions/unlink.texi (unlink): Document the bug.
31992         * doc/posix-functions/remove.texi (remove): Likewise.
31993         * tests/test-unlink.h (test_unlink): Enhance test.
31994         * tests/test-remove.c (main): Likewise.
31995
31996 2009-11-09  Eric Blake  <ebb9@byu.net>
31997
31998         rename: detect FreeBSD bug
31999         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
32000         slash on symlink.
32001         * modules/renameat-tests (Depends-on): Add filenamecat.
32002         * tests/test-rename.h (test_rename): Allow one more errno.
32003         * tests/test-renameat.c (main): Likewise.
32004         * doc/posix-functions/rename.texi (rename): Document the bug.
32005
32006         open: detect FreeBSD bug
32007         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
32008         symlink.
32009         * doc/posix-functions/open.texi (open): Document the bug.
32010         * doc/posix-functions/utimes.texi (utimes): Likewise.
32011         * tests/test-open.h (test_open): Add parameters, and test symlink
32012         handling.
32013         * tests/test-open.c (main): Adjust caller.
32014         * tests/test-fcntl-safer.c (main): Likewise.
32015         * modules/open-tests (Depends-on): Add stdbool, symlink.
32016         * modules/fcntl-safer-tests (Depends-on): Likewise.
32017         * tests/test-openat.c (main): Add test-open tests.
32018
32019         stat: detect FreeBSD bug
32020         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
32021         symlink.
32022         * doc/posix-functions/stat.texi (stat): Document the bug.
32023         * tests/test-stat.h (test_stat_func): Add argument.
32024         * tests/test-stat.c (main): Adjust caller.
32025         * tests/test-fstatat.c (main): Likewise.
32026         * modules/stat-tests (Depends-on): Add stdbool, symlink.
32027         Reported by Jim Meyering.
32028
32029 2009-11-09  James Youngman  <jay@gnu.org>
32030
32031         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
32032         * lib/strftime.c: Correct placement of #include "ignore-value.h".
32033
32034 2009-11-08  Jim Meyering  <meyering@redhat.com>
32035
32036         utimens: remove invalid futimesat call
32037         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
32038         It used the file descriptor of the target file as the DIR_FD
32039         parameter and NULL as the file name.  That caused failure with
32040         errno == EFAULT on FreeBSD-8.0-rc2
32041
32042 2009-11-07  Eric Blake  <ebb9@byu.net>
32043
32044         fflush, freadseek: use fseeko, not fseek
32045         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
32046         (clear_ungetc_buffer): Avoid potential problems on large files.
32047         * lib/freadseek.c (freadseek): Likewise.
32048         * modules/freadseek (Depends-on): Add fseeko.
32049         * modules/fseek (configure.ac): Set a witness.
32050         * tests/test-fflush.c (main): Use fseeko.
32051         * tests/test-fpurge.c (fseek): Disable link warning.
32052         * tests/test-freadable.c (fseek): Likewise.
32053         * tests/test-freading.c (fseek): Likewise.
32054         * tests/test-fseeko.c (fseek): Likewise.
32055         * tests/test-ftell.c (fseek): Likewise.
32056         * tests/test-ftello.c (fseek): Likewise.
32057         * tests/test-fwritable.c (fseek): Likewise.
32058         * tests/test-fwriting.c (fseek): Likewise.
32059
32060 2009-11-06  Simon Josefsson  <simon@josefsson.org>
32061
32062         * modules/memchr (Depends-on): Drop getpagesize dependency.
32063
32064 2009-11-06  Simon Josefsson  <simon@josefsson.org>
32065
32066         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
32067         Reported by Ludovic Courtès.
32068         * build-aux/pmccabe2html: Improve example usage.
32069         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
32070
32071 2009-11-06  Jim Meyering  <meyering@redhat.com>
32072
32073         do-release-commit-and-tag: New module.
32074         Automate the release-commit and tag process.
32075         * build-aux/do-release-commit-and-tag: New script, from coreutils.
32076         * modules/do-release-commit-and-tag: New file.
32077         * MODULES.html.sh (Support for maintaining and releasing): Add it.
32078
32079 2009-11-06  Simon Josefsson  <simon@josefsson.org>
32080
32081         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
32082         because test-select.c uses inet_pton.
32083
32084 2009-11-06  Simon Josefsson  <simon@josefsson.org>
32085
32086         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
32087         GETADDRINFO_LIB.  Bump serial number.
32088         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
32089         Suggested by Eric Blake <ebb9@byu.net>.
32090
32091 2009-11-05  Eric Blake  <ebb9@byu.net>
32092
32093         strtod: detect darwin bug
32094         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
32095         Reported by Leo Davis.
32096
32097         freopen-safer: new module
32098         * modules/freopen-safer: New module.
32099         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
32100         * lib/freopen-safer.c (freopen_safer): New file.
32101         * lib/stdio-safer.h (freopen_safer): New declaration.
32102         * lib/stdio--.h (freopen): New override.
32103         * MODULES.html.sh (File stream based Input/Output): Mention it.
32104         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
32105         freopen-safer module.
32106         * doc/posix-functions/stderr.texi (stderr): Likewise.
32107         * doc/posix-functions/stdin.texi (stdin): Likewise.
32108         * doc/posix-functions/stdout.texi (stdout): Likewise.
32109         * modules/freopen-safer-tests: New test.
32110         * tests/test-reopen-safer.c: New file.
32111
32112 2009-11-05  Jim Meyering  <meyering@redhat.com>
32113
32114         maint.mk: Prohibit inclusion of "close-stream.h" without use.
32115         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
32116
32117 2009-11-05  Simon Josefsson  <simon@josefsson.org>
32118
32119         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
32120
32121 2009-11-05  Simon Josefsson  <simon@josefsson.org>
32122
32123         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
32124
32125 2009-11-05  Simon Josefsson  <simon@josefsson.org>
32126
32127         Fix link error.
32128         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
32129         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
32130
32131 2009-11-05  Simon Josefsson  <simon@josefsson.org>
32132
32133         * tests/test-func.c: Also test value of __func__.
32134
32135 2009-11-05  Simon Josefsson  <simon@josefsson.org>
32136
32137         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
32138         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
32139
32140 2009-11-05  Bruno Haible  <bruno@clisp.org>
32141
32142         Fix link error.
32143         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
32144         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
32145         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
32146
32147 2009-11-05  Bruno Haible  <bruno@clisp.org>
32148
32149         Tests for module 'inet_pton'.
32150         * modules/inet_pton-tests: New file.
32151         * tests/test-inet_pton.c: New file.
32152
32153 2009-11-05  Bruno Haible  <bruno@clisp.org>
32154
32155         Tests for module 'inet_ntop'.
32156         * modules/inet_ntop-tests: New file.
32157         * tests/test-inet_ntop.c: New file.
32158
32159 2009-11-04  Eric Blake  <ebb9@byu.net>
32160
32161         stdlib-safer: wrap all mkstemp variants
32162         * modules/mkostemp (configure.ac): Set witness.
32163         * modules/mkostemps (configure.ac): Likewise.
32164         * modules/mkstemps (configure.ac): Likewise.
32165         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
32166         (mkstemps_safer): Wrap more functions.
32167         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
32168         wrapping.
32169         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
32170         (mkstemps_safer): Implement the wrappers.
32171
32172         mkstemps, mkostemps: new modules
32173         * modules/mkostemps: New module.
32174         * modules/mkstemps: Likewise.
32175         * lib/mkostemps.c (mkostemps): New file.
32176         * lib/mkstemps.c (mkstemps): Likewise.
32177         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
32178         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
32179         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
32180         * modules/stdlib (Makefile.am): Substitute them.
32181         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
32182         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
32183         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
32184         * doc/gnulib.texi (Glibc stdlib.h): Include them.
32185         * MODULES.html.sh (File system functions): Mention them.
32186
32187         tempname: resync from glibc
32188         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
32189         same values for __GT_FILE as glibc.  Abort even when assertions
32190         are disabled.
32191         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
32192         match its value otherwise.  Allow idempotent inclusion.
32193         * lib/mkdtemp.c (mkdtemp): Adjust caller.
32194         * lib/mkostemp.c (mkostemp): Likewise.
32195         * lib/mkstemp.c (mkstemp): Likewise.
32196         * lib/tmpfile.c (tmpfile): Likewise.
32197         * NEWS: Document this.
32198
32199         utimens: fix use of futimens on older Linux
32200         * lib/utimens.c (fdutimens): Use updated, rather than original,
32201         timespec to avoid bug in older Linux kernel.
32202         Reported by Simon Josefsson.
32203
32204 2009-11-04  Bruno Haible  <bruno@clisp.org>
32205
32206         Make num_processors more flexible and consistent.
32207         * lib/nproc.h (enum nproc_query): New type.
32208         (num_processors): Add a 'query' argument.
32209         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
32210         (num_processors): Add a 'query' argument. Test the value of the
32211         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
32212         mingw, count the number of CPUs available for the current process.
32213         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
32214         Check for sched_getaffinity and sched_getaffinity_np.
32215         * modules/nproc (Depends-on): Add c-ctype, extensions.
32216         * NEWS: Mention the change.
32217
32218 2009-11-03  Bruno Haible  <bruno@clisp.org>
32219
32220         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
32221
32222 2009-11-03  Jim Meyering  <meyering@redhat.com>
32223
32224         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
32225         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
32226         if it is defined.
32227
32228 2009-11-02  Eric Blake  <ebb9@byu.net>
32229
32230         mktime, timegm: share common declaration
32231         * lib/mktime-internal.h: New file.
32232         * lib/mktime.c: Use it rather than open-coding a declaration.
32233         * lib/timegm.c: Likewise.
32234         * modules/mktime (Files): Ship it.
32235         * modules/timegm (Files): Likewise.
32236         Suggested by Bruno Haible.
32237
32238         test-update-copyright: update test to match script changes
32239         * tests/test-update-copyright.sh: Avoid hard-coding perl
32240         location.  Don't update *.bak created by earlier runs.
32241
32242 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
32243             Simon Josefsson  <simon@josefsson.org>
32244             Bruno Haible  <bruno@clisp.org>
32245
32246         Fix link error on Solaris 8.
32247         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
32248         also in libnsl. Define also INET_PTON_LIB.
32249         * modules/inet_pton (Link): New section.
32250
32251 2009-11-02  Simon Josefsson  <simon@josefsson.org>
32252             Bruno Haible  <bruno@clisp.org>
32253
32254         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
32255         * modules/inet_ntop (Link): New section.
32256         Reported by Boyan Kasarov <bkasarov@gmail.com>.
32257
32258 2009-11-02  Eric Blake  <ebb9@byu.net>
32259
32260         maint: avoid compiler warnings in m4 macros
32261         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
32262         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
32263
32264 2009-11-02  Simon Josefsson  <simon@josefsson.org>
32265
32266         * m4/pmccabe2html.m4: Remove file.
32267         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
32268         function.  Change maintainer.
32269         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
32270         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
32271         Courtès).
32272
32273 2009-10-31  Eric Blake  <ebb9@byu.net>
32274
32275         fseeko: fix m4 regression
32276         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
32277         regression from 2009-10-27.
32278         Reported by Ralf Wildenhues.
32279
32280 2009-10-31  Jim Meyering  <meyering@redhat.com>
32281
32282         inttostr: aesthetics and improved (compile-time) safety
32283         Define inttype_is_signed rather than inttype_is_unsigned,
32284         since the sole use is via "#if inttype_is_signed".
32285         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
32286         inttype_is_unsigned.
32287         * lib/offtostr.c (inttype_is_signed): Likewise.
32288         * lib/uinttostr.c (inttype_is_signed): Likewise.
32289         * lib/umaxtostr.c (inttype_is_signed): Likewise.
32290         * lib/inttostr.c (inttostr): Use verify to cross-check the
32291         inttype_is_signed value and the signedness of the actual type.
32292         * modules/inttostr (Depends-on): Add verify.
32293
32294 2009-10-30  Eric Blake  <ebb9@byu.net>
32295
32296         build: avoid compiler warnings
32297         * lib/fchmodat.c (lchmod): Mark unused variables.
32298         * lib/getopt.c (_getopt_initialize): Likewise.
32299         * lib/mktime.c (__mktime_internal): Provide prototype.
32300         * lib/inttostr.c (inttostr): Avoid compiler warning even with
32301         older gcc that do not understand #pragma GCC diagnostic.
32302         * lib/uinttostr.c (inttype_is_unsigned): Define.
32303         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
32304
32305 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
32306
32307         stat: fix compilation on AIX
32308         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
32309         only see struct stat64.
32310
32311 2009-10-30  Eric Blake  <ebb9@byu.net>
32312
32313         exclude: make more robust
32314         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
32315         rather than masking a coding bug.
32316         Suggested by Bruno Haible.
32317
32318 2009-10-30  Jim Meyering  <meyering@redhat.com>
32319
32320         perl scripts: remove #!/usr/bin/perl in favor of more portable...
32321         Rather than putting #!/usr/bin/perl on the first line,
32322         start with a variant of what's recommended by "man perlrun" that
32323         invokes the first "perl" program from your shell's search path.
32324         * build-aux/gitlog-to-changelog: Replace #!... as above.
32325         Add a "Local Variables" perl mode setting.
32326         Prompted by a patch from Ludovic Courtès.
32327         Improved by Eric Blake.
32328         * build-aux/useless-if-before-free: Likewise.
32329         * build-aux/announce-gen: Likewise.
32330         * build-aux/update-copyright: Likewise.
32331
32332 2009-10-29  Eric Blake  <ebb9@byu.net>
32333
32334         filenamecat-lgpl: adjust clients
32335         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
32336         filenamecat.
32337         * modules/renameat (Depends-on): Likewise.
32338
32339         filenamecat: split into filenamecat-lgpl
32340         * modules/filenamecat-lgpl: New module.
32341         * modules/filenamecat (Files): Move library-safe files into
32342         filenamecat-lgpl.
32343         (Depends-on): Add filenamecat-lgpl.
32344         (configure.ac): Declare witness.
32345         * lib/filenamecat.h (file_name_concat): Only declare when using
32346         GPL module.
32347         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
32348         Move...
32349         * lib/filenamecat-lgpl.c: ...into new file.
32350         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
32351         (gl_FILE_NAME_CONCAT): Use it.
32352         * MODULES.html.sh (File system functions): Mention new module.
32353
32354         argp: avoid memory leak
32355         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
32356         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
32357         base_name, since the latter malloc()s and can call exit().
32358         Leak introduced 2006-07-03.
32359
32360         dirname-lgpl: adjust clients that don't need full dirname
32361         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
32362         * modules/filenamecat (Depends-on): Likewise.
32363         * modules/linkat (Depends-on): Likewise.
32364         * modules/mkancesdirs (Depends-on): Likewise.
32365         * modules/mkdir (Depends-on): Likewise.
32366         * modules/openat (Depends-on): Likewise.
32367         * modules/savewd (Depends-on): Likewise.
32368         * modules/rename (Depends-on): Likewise.
32369         (License): Relax license.
32370         * modules/mkdir-tests (Depends-on): Drop progname.
32371         (Makefile.am): Delete unneeded LDADD.
32372         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
32373
32374         dirname: split into dirname-lgpl
32375         * modules/dirname-lgpl: New module.
32376         * modules/dirname (Files): Move library-safe files into
32377         dirname-lgpl.
32378         (Depends-on): Add dirname-lgpl.
32379         (configure.ac): Declare witness.
32380         * modules/double-slash-root (License): Relax license.
32381         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
32382         module.
32383         * lib/dirname.c (dir_len, mdir_name): Move...
32384         * lib/dirname-lgpl.c: ...into new file.
32385         * lib/basename.c (last_component, base_len): Move...
32386         * lib/basename-lgpl.c: ...into new file.
32387         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
32388         (gl_DIRNAME): Use it.
32389         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
32390         Mention new module.
32391         * modules/dirname-tests (Depends-on): Add progname.
32392         * tests/test-dirname.c (program_name): Delete.
32393
32394         mkdir: make safe for libraries
32395         * modules/mkdir (Depends-on): Drop xalloc.
32396         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
32397         exit.
32398
32399         tests: avoid some compiler warnings
32400         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
32401         literals.
32402         * tests/test-memchr.c (main): Avoid type mismatch.
32403         * tests/test-arpa_inet.c (main): Avoid unused parameters.
32404         * tests/test-base64.c (main): Likewise.
32405         * tests/test-getdelim.c (main): Likewise.
32406         * tests/test-gethostname.c (main): Likewise.
32407         * tests/test-getline.c (main): Likewise.
32408         * tests/test-netinet_in.c (main): Likewise.
32409         * tests/test-select.c (open_server_socket, main): Likewise.
32410         * tests/test-select-stdin.c (main): Likewise.
32411         * tests/test-sockets.c (main): Likewise.
32412         * tests/test-strsignal.c (main): Likewise.
32413         * tests/test-sys_select.c (main): Likewise.
32414         * tests/test-sys_socket.c (main): Likewise.
32415         * tests/test-u64.c (main): Likewise.
32416         * tests/test-xfprintf-posix.c (main): Likewise.
32417         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
32418
32419         sockets: avoid compiler warning
32420         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
32421
32422         maint: detect usage(1) and other suspicious exits
32423         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
32424
32425 2009-10-29  Jim Meyering  <meyering@redhat.com>
32426
32427         timespec: long-to-int truncation could make timespec_cmp malfunction
32428         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
32429         a multiple of 2^32 nanoseconds as no difference.
32430
32431 2009-10-28  Jim Meyering  <meyering@redhat.com>
32432
32433         fprintftime: wrap macro code argument in "do {...} while(0)"
32434         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
32435         cpy macro must be a statement that can be followed by a semicolon.
32436         Now that the else clause contains a comment and is hence longer
32437         than one line, I require curly braces.  That in turn requires
32438         that we wrap this code block in the standard do...while(0).
32439
32440         fprintftime: remove stray semicolon from previous change
32441         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
32442
32443         fprintftime: avoid a warning about ignored fwrite return value
32444         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
32445         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
32446         that is unsafe.
32447         * modules/fprintftime (Depends-on): Add ignore-value.
32448
32449         exclude: avoid an unwarranted warning
32450         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
32451
32452 2009-10-27  Eric Blake  <ebb9@byu.net>
32453
32454         fseek: avoid compilation failure when fflush is replaced
32455         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
32456         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
32457         module is in use.
32458         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
32459         module is not in use; since REPLACE_FSEEK worked otherwise.
32460         (GNULIB_FTELLO): Likewise for ftell.
32461         Reported by Ian Beckwith and others.
32462
32463 2009-10-27  Bruno Haible  <bruno@clisp.org>
32464
32465         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
32466         Reported by Jim Meyering.
32467
32468 2009-10-27  Jim Meyering  <jim@meyering.net>
32469             Bruno Haible  <bruno@clisp.org>
32470
32471         Avoid warning despite dropping the return value of fwrite.
32472         * lib/unicodeio.c: Include ignore-value.h.
32473         (fwrite_success_callback): Explicitly ignore fwrite's return value.
32474         * modules/unicodeio (Depends-on): Add ignore-value.
32475
32476 2009-10-26  Eric Blake  <ebb9@byu.net>
32477
32478         areadlinkat: fix fallback path
32479         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
32480         pointer and zero.
32481
32482 2009-10-22  Pádraig Brady  <P@draigBrady.com>
32483
32484         Use a better IO block size for modern systems
32485         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
32486         * lib/md2.c: Likewise.
32487         * lib/md4.c: Likewise.
32488         * lib/md5.c: Likewise.
32489         * lib/sha1.c: Likewise.
32490         * lib/sha256.c: Likewise.
32491         * lib/sha512.c: Likewise.
32492
32493 2009-10-22  Eric Blake  <ebb9@byu.net>
32494
32495         tests: avoid several compiler warnings
32496         * tests/test-getcwd.c (main): Avoid buffer underflow.
32497         * tests/test-getdate.c (main): String literals are not safe with
32498         putenv, so use setenv.  Declare unused argument.
32499         * modules/getdate-tests (Depends-on): Add setenv.
32500         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
32501         problems with string literals in char *.
32502         * tests/test-hash.c (main): Avoid shadowing declaration.
32503         (insert_new): Treat string literals as char const *.
32504         * tests/test-getopt.h (test_getopt): Likewise.
32505         (getopt_loop): Alter types to minimize casting elsewhere.
32506         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
32507         (test_getopt_long_posix): Likewise.
32508         (do_getopt_long): Add wrapper to minimize casting.
32509         * tests/test-atexit.c (clear_temp_file): Use void.
32510         * tests/test-areadlink-with-size.c (main): Declare unused
32511         arguments.
32512         * tests/test-areadlink.c (main): Likewise.
32513         * tests/test-areadlinkat-with-size.c (main): Likewise.
32514         * tests/test-areadlinkat.c (main): Likewise.
32515         * tests/test-canonicalize-lgpl.c (main): Likewise.
32516         * tests/test-canonicalize.c (main): Likewise.
32517         * tests/test-dirent-safer.c (main): Likewise.
32518         * tests/test-dirname.c (main): Likewise.
32519         * tests/test-dup2.c (main): Likewise.
32520         * tests/test-fchdir.c (main): Likewise.
32521         * tests/test-fcntl-h.c (main): Likewise.
32522         * tests/test-fcntl-safer.c (main): Likewise.
32523         * tests/test-fdopendir.c (main): Likewise.
32524         * tests/test-fdutimensat.c (main): Likewise.
32525         * tests/test-fflush.c (main): Likewise.
32526         * tests/test-filenamecat.c (main): Likewise.
32527         * tests/test-filevercmp.c (main): Likewise.
32528         * tests/test-fopen-safer.c (main): Likewise.
32529         * tests/test-fopen.c (main): Likewise.
32530         * tests/test-fpending.c (main): Likewise.
32531         * tests/test-fpurge.c (main): Likewise.
32532         * tests/test-freading.c (main): Likewise.
32533         * tests/test-fstatat.c (main): Likewise.
32534         * tests/test-fsync.c (main): Likewise.
32535         * tests/test-futimens.c (main): Likewise.
32536         * tests/test-getndelim2.c (main): Likewise.
32537         * tests/test-gettimeofday.c (main): Likewise.
32538         * tests/test-getopt.c (main): Likewise.
32539         * tests/test-i-ring.c (main): Likewise.
32540         * tests/test-inttypes.c (main): Likewise.
32541         * tests/test-link.c (main): Likewise.
32542         * tests/test-lstat.c (main): Likewise.
32543         * tests/test-math.c (main): Likewise.
32544         * tests/test-md5.c (main): Likewise.
32545         * tests/test-memchr2.c (main): Likewise.
32546         * tests/test-memrchr.c (main): Likewise.
32547         * tests/test-mkdir.c (main): Likewise.
32548         * tests/test-mkdirat.c (main): Likewise.
32549         * tests/test-mkfifoat.c (main): Likewise.
32550         * tests/test-open.c (main): Likewise.
32551         * tests/test-openat-safer.c (main): Likewise.
32552         * tests/test-openat.c (main): Likewise.
32553         * tests/test-quotearg.c (main): Likewise.
32554         * tests/test-rawmemchr.c (main): Likewise.
32555         * tests/test-readlink.c (main): Likewise.
32556         * tests/test-remove.c (main): Likewise.
32557         * tests/test-rename.c (main): Likewise.
32558         * tests/test-renameat.c (main): Likewise.
32559         * tests/test-rmdir.c (main): Likewise.
32560         * tests/test-sha1.c (main): Likewise.
32561         * tests/test-signal.c (main): Likewise.
32562         * tests/test-sigaction.c (main): Likewise.
32563         * tests/test-stat.c (main): Likewise.
32564         * tests/test-stat-time.c (main): Likewise.
32565         * tests/test-stddef.c (main): Likewise.
32566         * tests/test-stdint.c (main): Likewise.
32567         * tests/test-stdio.c (main): Likewise.
32568         * tests/test-stdlib.c (main): Likewise.
32569         * tests/test-strchrnul.c (main): Likewise.
32570         * tests/test-strerror.c (main): Likewise.
32571         * tests/test-string.c (main): Likewise.
32572         * tests/test-strtod.c (main): Likewise.
32573         * tests/test-strverscmp.c (main): Likewise.
32574         * tests/test-symlink.c (main): Likewise.
32575         * tests/test-symlinkat.c (main): Likewise.
32576         * tests/test-sys_stat.c (main): Likewise.
32577         * tests/test-sys_time.c (main): Likewise.
32578         * tests/test-time.c (main): Likewise.
32579         * tests/test-unistd.c (main): Likewise.
32580         * tests/test-unlink.c (main): Likewise.
32581         * tests/test-unlinkat.c (main): Likewise.
32582         * tests/test-utimens.c (main): Likewise.
32583         * tests/test-utimensat.c (main): Likewise.
32584         * tests/test-version-etc.c (main): Likewise.
32585         * tests/test-wchar.c (main): Likewise.
32586         * tests/test-wctype.c (main): Likewise.
32587         * tests/test-xprintf-posix.c (main): Likewise.
32588         * tests/test-posixtm.c (main): Likewise.
32589         (STREQ): Delete unused macro.
32590         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
32591         shadowed variables.
32592         * tests/test-memchr.c (main): Likewise.
32593
32594 2009-10-21  Eric Blake  <ebb9@byu.net>
32595
32596         areadlinkat: avoid failure on older glibc
32597         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
32598         rather than mis-comparing 0 against FUNC_RESULT of char*.
32599
32600 2009-10-21  Bruno Haible  <bruno@clisp.org>
32601
32602         * modules/stpncpy (License): Relicense under LGPLv2+.
32603         Reported by David Lutterkort <lutter@redhat.com>.
32604
32605 2009-10-20  Eric Blake  <ebb9@byu.net>
32606
32607         utimensat: work around Solaris 9 bug
32608         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
32609         has trailing slash bugs.
32610         * tests/test-lutimens.h (test_lutimens): Enhance test.
32611         * tests/test-utimens.h (test_utimens): Likewise.
32612         * doc/posix-functions/utime.texi (utime): Enhance documentation.
32613         * doc/posix-functions/utimes.texi (utimes): Likewise.
32614         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
32615         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
32616         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
32617         * doc/posix-functions/futimens.texi (futimens): Likewise.
32618
32619         fdutimensat: new module
32620         * modules/fdutimensat: New file.
32621         * lib/fdutimensat.c (fdutimensat): Likewise.
32622         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
32623         * MODULES.html.sh (File system functions): Mention module.
32624         * modules/fdutimensat-tests: New test.
32625         * tests/test-fdutimensat.c: Likewise.
32626
32627         doc: regenerate INSTALL
32628         * doc/INSTALL: Reflect recent autoconf update.
32629         * doc/INSTALL.ISO: Likewise.
32630         * doc/INSTALL.UTF-8: Likewise.
32631
32632 2009-10-20  Pádraig Brady  <P@draigBrady.com>
32633
32634         acl: warn if ACL support is not detected
32635         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
32636
32637 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
32638
32639         * lib/nproc.h: Add extern "C" block for C++.
32640
32641 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
32642             Bruno Haible  <bruno@clisp.org>
32643
32644         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
32645         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
32646         * doc/posix-functions/isalpha.texi: Likewise.
32647         * doc/posix-functions/isblank.texi: Likewise.
32648         * doc/posix-functions/iscntrl.texi: Likewise.
32649         * doc/posix-functions/isdigit.texi: Likewise.
32650         * doc/posix-functions/isgraph.texi: Likewise.
32651         * doc/posix-functions/islower.texi: Likewise.
32652         * doc/posix-functions/isprint.texi: Likewise.
32653         * doc/posix-functions/ispunct.texi: Likewise.
32654         * doc/posix-functions/isspace.texi: Likewise.
32655         * doc/posix-functions/isupper.texi: Likewise.
32656         * doc/posix-functions/isxdigit.texi: Likewise.
32657
32658 2009-10-18  Bruno Haible  <bruno@clisp.org>
32659
32660         Tests for module 'isblank'.
32661         * modules/isblank-tests: New file.
32662         * tests/test-isblank.c: New file.
32663
32664         New module 'isblank'.
32665         * lib/isblank.c: New file.
32666         * m4/isblank.m4: New file.
32667         * modules/isblank: New file.
32668         * doc/posix-functions/isblank.texi: Mention the new module.
32669
32670 2009-10-18  Bruno Haible  <bruno@clisp.org>
32671
32672         New module 'ctype'.
32673         * lib/ctype.in.h: New file.
32674         * m4/ctype.m4: New file.
32675         * modules/ctype: New file.
32676         * doc/posix-headers/ctype.texi: Mention the new module.
32677
32678 2009-10-18  Jim Meyering  <meyering@redhat.com>
32679
32680         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
32681         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
32682         right after its initialization, rather than farther down.
32683         Keeping these in close proximity makes it easier to ensure
32684         that each such variable is initialized.  E.g.,
32685
32686             LIB_CLOCK_GETTIME=
32687             AC_SUBST([LIB_CLOCK_GETTIME])
32688
32689         This change also increments these serial numbers.
32690         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
32691         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
32692         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
32693
32694 2009-10-18  Bruno Haible  <bruno@clisp.org>
32695
32696         Don't let environment variables perturb build.
32697         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
32698         (gl_PREREQ_GETHRXTIME): ... not here.
32699
32700 2009-10-18  Bruno Haible  <bruno@clisp.org>
32701
32702         Avoid symlink attack in localcharset module.
32703         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
32704         (O_NOFOLLOW): Define fallback.
32705         (get_charset_aliases): Don't open the file if it is a symbolic link.
32706         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
32707         gl_FCNTL_H.
32708         (gl_FCNTL_H): Require it.
32709         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
32710         * modules/localcharset (Files): Add m4/fcntl_h.m4.
32711         Reported by Fergal Glynn <fglynn@veracode.com>.
32712
32713 2009-10-18  Bruno Haible  <bruno@clisp.org>
32714
32715         Implement nproc for mingw.
32716         * lib/nproc.c: Include <windows.h>
32717         (num_processors): On native Windows platforms, try GetSystemInfo.
32718
32719 2009-10-18  Bruno Haible  <bruno@clisp.org>
32720
32721         Implement nproc for IRIX.
32722         * lib/nproc.c: Include <sys/sysmp.h>.
32723         (num_processors): On IRIX systems, try sysmp.
32724         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
32725
32726 2009-10-18  Bruno Haible  <bruno@clisp.org>
32727
32728         Implement nproc for HP-UX.
32729         * lib/nproc.c: Include <sys/pstat.h>
32730         (num_processors): On HP-UX systems, try pstat_getdynamic.
32731         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
32732         pstat_getdynamic.
32733
32734 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
32735             Bruno Haible  <bruno@clisp.org>
32736
32737         Implement nproc for NetBSD, OpenBSD.
32738         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
32739         (ARRAY_SIZE): New macro.
32740         (num_processors): On BSD systems, try sysctl of HW_NCPU.
32741         * m4/nproc.m4: New file.
32742         * modules/nproc (Files): Add m4/nproc.m4.
32743         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
32744         (Makefile.am): Instead, augment lib_SOURCES.
32745
32746 2009-10-18  Bruno Haible  <bruno@clisp.org>
32747
32748         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
32749         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
32750         sys/param.h.
32751
32752 2009-10-16  Eric Blake  <ebb9@byu.net>
32753
32754         utimensat: new module
32755         * modules/utimensat: New file.
32756         * lib/utimensat.c (utimensat): Likewise.
32757         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
32758         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
32759         so we can work around Linux bugs.
32760         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
32761         * modules/sys_stat (Makefile.am): Substitute them.
32762         * lib/sys_stat.in.h (utimensat): Declare it.
32763         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
32764         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
32765         * modules/utimensat-tests: New test.
32766         * tests/test-utimensat.c: Likewise.
32767
32768         utimens: let lutimens work on non-symlinks
32769         * lib/utimens.c (lutimens): Fall back to utimens rather than
32770         failing with ENOSYS, when file is not a symlink.
32771         (utimens): Reduce redirection.
32772         * tests/test-lutimens.h (test_lutimens): Update test to cover
32773         non-symlinks.
32774         * tests/test-utimens.h (test_utimens): Update test to cover
32775         symlinks.
32776         * tests/test-utimens.c (main): Update caller.
32777
32778         utimens: cache whether utimensat syscall works
32779         * lib/utimens.c (utimensat_works_really): New cache variable.
32780         (fdutimens, lutimens): Use it to avoid failing syscall.
32781
32782         test-stat-time, test-utimens: improve portability
32783         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
32784         ext4 on alpha, and for cygwin.
32785         * tests/test-utimens-common.h: New file.
32786         (nap): Factor delays into single function.
32787         * tests/test-lutimens.h (test_lutimens): Use new header.
32788         * tests/test-futimens.h (test_futimens): Likewise.
32789         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
32790         timestamps to occur from same machine, as was done previously for
32791         test_utimens.
32792         * modules/utimens-tests (Files): Ship new file.
32793         * modules/futimens-tests (Files): Likewise.
32794         Reported in part by Jim Meyering.
32795
32796         sys_stat: sort replacement declarations
32797         * lib/sys_stat.in.h: Sort declarations.
32798         * lib/futimens.c (futimens): Fix typo.
32799
32800 2009-10-15  Jim Meyering  <meyering@redhat.com>
32801
32802         don't let environment settings perturb build
32803         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
32804         could cause a configure-time and/or build-time malfunction.
32805         Typically, a configure-time function-in-library test is performed
32806         via code like this:
32807
32808           LIB_VAR=
32809           AC_SUBST([LIB_VAR])
32810           prefix_saved_LIBS=$LIBS
32811             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
32812                        [test "$ac_cv_search_FUNC" = "none required" ||
32813                         LIB_VAR=$ac_cv_search_FUNC])
32814           LIBS=$prefix_saved_LIBS
32815
32816         However, in each of the files affected by this change, the LIB_VAR=
32817         initialization was omitted.  Thus, when set in the environment, its
32818         value would propagate into generated Makefiles when FUNC is not found
32819         in LIB_NAME.
32820         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
32821         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
32822         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
32823
32824 2009-10-14  Eric Blake  <ebb9@byu.net>
32825
32826         fchdir: avoid infinite recursion in mingw
32827         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
32828         recursing.
32829
32830         test-stat-time: port to mingw
32831         * tests/test-stat-time.c (force_unlink): Return a value.
32832         (test_ctime) [W32]: Fix compilation error.
32833         (nap): Don't call usleep with too large an argument.  Use
32834         force_unlink.
32835         * doc/pastposix-functions/usleep.texi (usleep): Document the
32836         portability issue.
32837
32838 2009-10-13  Jim Meyering  <meyering@redhat.com>
32839
32840         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
32841         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
32842         * modules/pipe-filter-ii: Likewise.
32843         * modules/sys_socket-tests: Likewise.
32844         * modules/tsearch-tests: Likewise.
32845         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
32846         (check): Depend on it.
32847
32848 2009-10-12  Eric Blake  <ebb9@byu.net>
32849
32850         utimens-tests: port to NFS file systems
32851         * tests/test-utimens.h (test_utimens): Refactor utimecmp
32852         comparisons to avoid spurious failures from timestamp drift
32853         between NFS machines.
32854
32855 2009-10-12  Eric Blake  <ebb9@byu.net>
32856
32857         stat-time-tests: minor cleanups
32858         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
32859         * tests/test-stat-time.c (nap): Separate assignment from call.
32860         Suggested by Paolo Bonzini and Bruno Haible.
32861
32862         sys_stat: guarantee struct timespec
32863         * lib/sys_stat.in.h (includes): Always include <time.h>
32864         * modules/sys_stat (Depends-on): Add time.
32865         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
32866         mode_t permission values.
32867         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
32868         get at subsecond timestamps.
32869
32870 2009-10-10  Eric Blake  <ebb9@byu.net>
32871
32872         futimens: new module
32873         * modules/futimens: New file.
32874         * lib/futimens.c (futimens): Likewise.
32875         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
32876         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
32877         we can work around Linux bugs.
32878         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
32879         * modules/sys_stat (Makefile.am): Substitute them.
32880         * lib/sys_stat.in.h (futimens): Declare it.
32881         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
32882         * doc/posix-functions/futimens.texi (futimens): Likewise.
32883         * modules/futimens-tests: New test.
32884         * tests/test-futimens.c: Likewise.
32885
32886         utimens: introduce fdutimens
32887         * lib/utimens.h (fdutimens): New prototype.
32888         * lib/utimens.c (gl_futimens): Move guts...
32889         (fdutimens): ...to new interface.
32890         * tests/test-utimens.c (do_fdutimens): Use it.
32891
32892         utimens: add UTIME_NOW and UTIME_OMIT support
32893         * lib/utimens.c (validate_timespec, update_timespec): New helper
32894         functions.
32895         (gl_futimens, lutimens): Use them.
32896         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
32897         stdbool, sys_stat.
32898         (Link): Mention resulting library dependency.
32899         * modules/utimecmp (Link): Likewise.
32900         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
32901         (Makefile.am): Pick up library dependency.
32902         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
32903         definition.
32904         * tests/test-sys_stat.c: Test the definitions.
32905         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
32906         * NEWS: Document library dependency.
32907
32908         utimecmp: support symlink timestamps
32909         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
32910         hashing when possible.  Use pathconf when available.
32911         (SYSCALL_RESOLUTION): Recognize tighter resolution.
32912         * modules/utimecmp (Depends-on): Add lstat.
32913
32914         utimens: add lutimens interface
32915         * lib/utimens.c (lutimens): New function.
32916         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
32917         * lib/utimens.h (lutimens): Declare new interface.
32918         * tests/test-utimens.c (main): Enhance test.
32919         * tests/test-lutimens.h (test_lutimens): New file.
32920         * modules/utimens-tests (Files): Distribute it.
32921         (Depends-on): Add symlink.
32922         (configure.ac): Check for usleep.
32923
32924         utimens: validate futimens usage
32925         * lib/utimens.c (gl_futimens): Require valid fd up front, using
32926         fewer syscalls on failure later on.  Avoid compiler warning on
32927         mingw.
32928         * modules/utimens (Depends-on): Add dup2.
32929
32930         utimens: add test
32931         * modules/utimens-tests: New test.
32932         * tests/test-utimens.h: New file.
32933         * tests/test-futimens.h: Likewise.
32934         * tests/test-utimens.c: Likewise.
32935
32936         doc: mention timestamp portability issues
32937         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
32938         instead.
32939         * doc/posix-functions/utime.texi (utime): Likewise.
32940         * doc/posix-functions/utimes.texi (utimes): Likewise.
32941         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
32942         instead.
32943         * doc/posix-functions/futimens.texi (futimens): Mention utimens
32944         module.
32945         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
32946         Mention weakness with symlink timestamps.
32947         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
32948         to utimensat/futimens instead.
32949         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
32950
32951         test-dup2: enhance test
32952         * tests/test-dup2.c (main): Also check AT_FDCWD.
32953
32954         test-stat-time: avoid more spurious failures
32955         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
32956         xfs; and avoid race if the two timestamps cross quantization edge.
32957
32958         relocatable: prefer 'file system' over 'filesystem'
32959         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
32960         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
32961         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
32962         * doc/relocatable.texi (Enabling Relocatability): Likewise.
32963         * lib/relocatable.c (compute_curr_prefix): Likewise.
32964
32965 2009-10-10  Jim Meyering  <meyering@redhat.com>
32966
32967         stat-time-tests: check for the usleep function
32968         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
32969
32970 2009-10-10  Bruno Haible  <bruno@clisp.org>
32971
32972         * modules/xnanosleep: Put the Link section after the Include section.
32973
32974 2009-10-09  Eric Blake  <ebb9@byu.net>
32975
32976         dup2: work around FreeBSD 6.1 bug
32977         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
32978         * doc/posix-functions/dup2.texi (dup2): Document it.
32979         Reported by Nelson H. F. Beebe and Jim Meyering.
32980
32981         test-stat-time: port to buggy NFS clients
32982         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
32983         (test_ctime): Also skip test if mtime and ctime are skewed.
32984
32985         maint: prefer 'file system' over 'filesystem'
32986         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
32987         * doc/posix-functions/lstat.texi (lstat): Likewise.
32988         * lib/file-has-acl.c (file_has_acl): Likewise.
32989         * lib/fwriteerror.c [TEST]: Likewise.
32990         * tests/test-areadlink.h (test_areadlink): Likewise.
32991         * tests/test-areadlinkat-with-size.c (main): Likewise.
32992         * tests/test-areadlinkat.c (main): Likewise.
32993         * tests/test-canonicalize-lgpl.c (main): Likewise.
32994         * tests/test-canonicalize.c (main): Likewise.
32995         * tests/test-fstatat.c (main): Likewise.
32996         * tests/test-linkat.c (main): Likewise.
32997         * tests/test-lstat.h (test_lstat_func): Likewise.
32998         * tests/test-mkdir.h (test_mkdir): Likewise.
32999         * tests/test-readlink.h (test_readlink): Likewise.
33000         * tests/test-remove.c (main): Likewise.
33001         * tests/test-rename.h (test_rename): Likewise.
33002         * tests/test-renameat.c (main): Likewise.
33003         * tests/test-rmdir.h (test_rmdir_func): Likewise.
33004         * tests/test-symlink.h (test_symlink): Likewise.
33005         * tests/test-symlinkat.c (main): Likewise.
33006         * tests/test-unlink.h (test_unlink_func): Likewise.
33007         * tests/test-unlinkat.c (main): Likewise.
33008
33009         maint: make realtime library usage explicit
33010         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
33011         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
33012         * modules/settime (Link): Likewise.
33013         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
33014
33015         test-stat-time: speed up execution
33016         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
33017         warning on mingw.
33018         (nap): New helper function.
33019         (prepare_test): Use it to reduce sleep time.
33020         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
33021         execution.
33022         * modules/stat-time-tests (configure.ac): Check for usleep.
33023
33024 2009-10-09  Jim Meyering  <meyering@redhat.com>
33025
33026         selinux-h: always use getfilecon wrappers
33027         * lib/getfilecon.c: New file.
33028         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
33029         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
33030         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
33031         (fgetfilecon): Provide a stub.
33032         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
33033         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
33034         file unconditionally.
33035         When <selinux/selinux.h> is found, arrange to use wrappers.
33036         * modules/selinux-h (Files): Add getfilecon.c.
33037         (Makefile.am): Substitute include-next-related bits
33038         into the now-always-generated selinux/selinux.h file.
33039         * doc/glibc-functions/lgetfilecon.texi: New file.
33040         * doc/glibc-functions/fgetfilecon.texi: New file.
33041         * doc/glibc-functions/getfilecon.texi: New file.
33042         * doc/glibc-functions/getfilecon-desc.texi: New file.
33043         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
33044         which to pull in the new files.
33045         * MODULES.html.sh (Misc): Add selinux-h.
33046
33047 2009-10-08  Jim Meyering  <meyering@redhat.com>
33048
33049         unistd: fix comment typo
33050         * lib/unistd.in.h (euidaccess): Fix a comment typo.
33051
33052 2009-10-08  Eric Blake  <ebb9@byu.net>
33053
33054         areadlink: use SIZE_MAX consistently
33055         * modules/areadlink (Depends-on): Add stdint.
33056         * modules/areadlink-with-size (Depends-on): Likewise.
33057         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
33058         gives NULL; drop sys/types, since unistd gives size_t; and add
33059         stdint for SIZE_MAX.
33060         (SIZE_MAX): Rely on headers.
33061         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
33062         and add stdint.
33063         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
33064         (SIZE_MAX): Likewise.
33065         (INITIAL_BUF_SIZE): Turn into enum.
33066         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
33067
33068 2009-10-08  Jim Meyering  <meyering@redhat.com>
33069
33070         areadlinkat: avoid compilation failure
33071         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
33072         Fix typo in comment.
33073
33074 2009-10-07  Eric Blake  <ebb9@byu.net>
33075
33076         areadlinkat-with-size: new module
33077         * modules/areadlinkat-with-size: New module.
33078         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
33079         * lib/areadlink.h (areadlinkat): Declare it.
33080         * MODULES.html.sh (File system functions): Mention it.
33081         * modules/areadlinkat-with-size-tests: New test.
33082         * tests/test-areadlinkat-with-size.c: New file.
33083
33084         xreadlinkat: new module
33085         * modules/xreadlinkat: New module.
33086         * lib/xreadlinkat.c (xreadlinkat): New file.
33087         * lib/xreadlink.h (xreadlinkat): Declare it.
33088         * MODULES.html.sh (File system functions): Mention it.
33089
33090         areadlinkat: new module
33091         * lib/at-func.c (FUNC_FAIL): New define.
33092         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
33093         * modules/areadlinkat: New module.
33094         * lib/linkat.c (areadlinkat): Move...
33095         * lib/areadlinkat.c (areadlinkat): ...to new file.
33096         * lib/areadlink.h (areadlinkat): Declare it.
33097         * modules/linkat (Depends-on): Add areadlinkat.
33098         * MODULES.html.sh (File system functions): Mention it.
33099         * modules/areadlinkat-tests: New test.
33100         * tests/test-areadlinkat.c: New file.
33101
33102         areadlink, areadlink-with-size: add tests
33103         * modules/areadlink-tests: New test.
33104         * modules/areadlink-with-size-tests: Likewise.
33105         * tests/test-areadlink.h: New file.
33106         * tests/test-areadlink.c: Likewise.
33107         * tests/test-areadlink-with-size.c: Likewise.
33108
33109         maint: minor cleanups
33110         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
33111         _UNUSED_PARAMETER_ instead.
33112         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
33113         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
33114         * modules/linkat-tests (Files): Distribute test-link.h.
33115
33116         openat, utimens: whitespace cleanup
33117         * lib/openat.c: Prefer space throughout, rather than mix of 8
33118         spaces vs. tabs.
33119         * lib/at-func.c: Likewise.
33120         * lib/utimens.c: Likewise.
33121
33122         openat: avoid using wrong fd
33123         * lib/openat.c (openat_permissive): Reject user's fd if saving the
33124         working directory chooses same fd.
33125         * lib/at-func.c (AT_FUNC_NAME): Likewise.
33126
33127         mkdir, mkdirat: fix cygwin 1.5.x bug
33128         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
33129         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
33130         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
33131         bug.
33132         (gl_PREREQ_MKDIR): Delete unused macro.
33133         * modules/mkdir (Files): Track file rename.
33134         (configure.ac): Update macro name.
33135         * modules/openat (Depends-on): Add mkdir.
33136         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
33137
33138         mkdir, mkdirat: add tests
33139         * modules/mkdir-tests: New test.
33140         * tests/test-mkdir.h: New file.
33141         * tests/test-mkdir.c: Likewise.
33142         * tests/test-mkdirat.c: Likewise.
33143         * modules/openat-tests (Files): Add new files.
33144         (Makefile.am): Run new test.
33145
33146 2009-10-06  Eric Blake  <ebb9@byu.net>
33147
33148         doc: tweak *at function documentation
33149         * doc/posix-functions/faccessat.texi (faccessat): Mention
33150         known issue with replacement.
33151         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
33152         * doc/posix-functions/linkat.texi (linkat): Likewise.
33153         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
33154         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
33155         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
33156         * doc/posix-functions/renameat.texi (renameat): Likewise.
33157         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
33158
33159         openat: fix GNU/Hurd bug in unlinkat
33160         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
33161         broken.
33162         * doc/posix-functions/unlink.texi (unlink): Document this.
33163         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
33164
33165         fdopendir: fix GNU/Hurd bug
33166         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
33167         allowing non-directory fds.
33168         * lib/fdopendir.c (rpl_fdopendir): Work around it.
33169         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
33170         * modules/dirent (Makefile.am): Substitute it.
33171         * lib/dirent.in.h (fdopendir): Declare replacement.
33172         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
33173         * tests/test-fdopendir.c (main): Test something other than
33174         /dev/null, since on Hurd that behaves like a directory.
33175
33176         test-symlink: port to GNU/Hurd
33177         * tests/test-symlink.h (test_symlink): Relax expected errno.
33178
33179         doc: tweak more cygwin information
33180         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
33181         now compatible with glibc.
33182         * doc/posix-functions/getopt.texi (getopt): Likewise.
33183
33184         getopt-gnu: add another test
33185         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
33186         guarantee behavior relied on by m4.
33187         * tests/test-getopt.c (main): Use it.
33188         * modules/getopt-posix-tests (Depends-on): Add setenv.
33189         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
33190
33191         getopt: fix compilation on darwin
33192         * lib/getopt.in.h (includes): Leave breadcrumbs during system
33193         include.
33194         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
33195         Reported by Ludovic Courtès.
33196
33197 2009-10-06  Bruno Haible  <bruno@clisp.org>
33198
33199         * modules/size_max (Description): Discourage its use.
33200         Reported by Simon Josefsson.
33201
33202 2009-10-06  Jim Meyering  <meyering@redhat.com>
33203
33204         linkat: avoid compilation failure
33205         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
33206
33207 2009-10-05  Eric Blake  <ebb9@byu.net>
33208
33209         linkat: support Linux 2.6.17
33210         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
33211         linkat on Linux, but allow cache variable override.
33212         * lib/linkat.c (rpl_linkat): Define override.
33213         * modules/linkat (Depends-on): Add symlinkat.
33214         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
33215         * modules/unistd (Makefile.am): Substitute it.
33216         * lib/unistd.in.h (linkat): Declare replacement.
33217         Reported by Pádraig Brady.
33218
33219         quotearg: port test to systems with C.UTF-8 locale
33220         * tests/test-quotearg.c (struct result_strings): Add another
33221         member, differentiating between C.ASCII and C.UTF-8 handling.
33222         (compare_strings): Add parameter.
33223         (main): Adjust all callers.
33224
33225         getopt: avoid clash with FreeBSD _getopt_internal
33226         * lib/getopt.in.h (_getopt_internal): Override the name.
33227         * lib/getopt_int.h (includes): Pick up any overrides.
33228         Reported by Reuben Thomas.
33229
33230         hash: allow C89 compilation
33231         * lib/hash.c (check_tuning): Move declaration before statement.
33232         Reported by Reuben Thomas.
33233
33234 2009-10-05  Karl Berry  <karl@gnu.org>
33235
33236         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
33237
33238 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
33239             Bruno Haible  <bruno@clisp.org>
33240
33241         * lib/uname.c (uname): Use a table-driven algorithm to compute
33242         Windows NT versions.
33243
33244 2009-10-04  Bruno Haible  <bruno@clisp.org>
33245
33246         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
33247         program_invocation_short_name.
33248         * modules/progname (configure.ac): Test for presence of
33249         program_invocation_short_name.
33250         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
33251
33252 2009-10-04  Bruno Haible  <bruno@clisp.org>
33253
33254         * lib/progname.c (set_program_name): Fix comment.
33255         Reported by Jim Meyering.
33256
33257 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
33258             Bruno Haible  <bruno@clisp.org>
33259
33260         * lib/uname.c: Include <string.h>.
33261         (uname): Do only one call to GetVersionEx in the common case.
33262
33263 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
33264             Bruno Haible  <bruno@clisp.org>
33265
33266         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
33267         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
33268         (uname): Add support for Windows CE and various non-x86 CPU types.
33269
33270 2009-10-03  Bruno Haible  <bruno@clisp.org>
33271
33272         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
33273         invocation to tests/configure.ac.
33274         Reported by Ian Beckwith <ianb@erislabs.net>.
33275
33276 2009-10-02  Eric Blake  <ebb9@byu.net>
33277
33278         fchdir: avoid compiler warning
33279         * lib/fchdir.c (canonicalize_file_name)
33280         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
33281
33282         test-open: support mingw errno values
33283         * tests/test-open.h (test_open): Relax test.
33284         * tests/test-fopen.h (test_fopen): Likewise.
33285         * tests/test-openat-safer.c (main): Likewise.
33286
33287         open: fix opening directory on mingw
33288         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
33289
33290         test-open: on GNU/Hurd, /dev/null is a directory
33291         * tests/test-fopen.h (main): Rename...
33292         (test_fopen): ...to this.  Use a guaranteed non-directory when
33293         confirming open behavior on trailing slash.
33294         * tests/test-openat-safer.c (main): Likewise.
33295         * tests/test-open.h (main): Likewise....
33296         (test_open): ...to this.
33297         * tests/test-fopen.c (main): Adjust caller.
33298         * tests/test-fopen-safer.c (main): Likewise.
33299         * tests/test-open.c (main): Likewise.
33300         * tests/test-fcntl-safer.c (main): Likewise.
33301         Reported by Samuel Thibault.
33302
33303         rename, fchdir: don't ignore chdir failure
33304         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
33305         * lib/rename.c (rpl_rename) [W32]: Likewise.
33306         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
33307         an empty destination directory if source cannot be renamed,
33308         although there is still possibility for failure.
33309         * doc/posix-functions/rename.texi (rename): Document the race.
33310         Reported by Jim Meyering.
33311
33312         maint: cleanup whitespace in recent commits
33313         * lib/rename.c (rpl_rename): Remove tabs.
33314         * tests/test-link.h (test_link): Likewise.
33315         * lib/fchdir.c (get_name): Likewise.
33316         Reported by Jim Meyering.
33317
33318 2009-10-02  Ben Pfaff  <blp@gnu.org>
33319
33320         relocatable-prog-wrapper: Add missing dependency on
33321         double-slash-root.
33322         * modules/relocatable-prog-wrapper: Add dependency.
33323         Reported by Ian Beckwith <ianb@erislabs.net>.
33324
33325 2009-10-02  Eric Blake  <ebb9@byu.net>
33326
33327         renameat: fix Solaris bugs
33328         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
33329         needed fixing.
33330         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
33331         * modules/stdio (Makefile.am): Substitute it.
33332         * lib/stdio.in.h (renameat): Declare replacement.
33333         * lib/renameat.c (rpl_renameat): Implement fix.
33334
33335         renameat: new module
33336         * modules/renameat: New file.
33337         * lib/renameat.c (renameat): Likewise.
33338         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
33339         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
33340         * modules/stdio (Makefile.am): Substitute them.
33341         * lib/stdio.in.h (renameat): Declare it.
33342         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33343         * doc/posix-functions/renameat.texi (renameat): Likewise.
33344         * modules/renameat-tests: New test.
33345         * tests/test-renameat.c: Likewise.
33346
33347         rename: fix mingw bugs
33348         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
33349         directory overwrite bugs.
33350
33351         rename: fix another cygwin 1.5 bug
33352         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
33353         checks.
33354         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
33355         unnecessary cygwin workarounds.  Also work around bug with moving
33356         full directory onto an empty one.
33357         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
33358
33359         rename-dest-slash: merge into rename module
33360         * modules/rename-dest-slash (Status): Mark obsolete.
33361         (Depends-on): Add rename.
33362         (Files): Let rename do it all.
33363         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
33364         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
33365         * m4/rename-dest-slash.m4: ...so this file can be deleted.
33366         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
33367         * lib/rename.c (rpl_rename): Update comments.
33368
33369         rename: fix cygwin 1.5.x bugs
33370         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
33371         * lib/rename.c (rpl_rename): Work around them.
33372         * modules/rename (Depends-on): Add same-inode.
33373
33374         rename: fix Solaris 10 bug
33375         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
33376         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
33377         was the only bug.
33378
33379         rename: fix Solaris 9 bug
33380         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
33381         on non-directory.  Avoid calling exit.
33382         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
33383         strdup.
33384         * modules/rename-tests (Depends-on): Drop lstat.
33385         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
33386         (gl_PREREQ_RENAME): Delete unused macro.
33387
33388         rename-dest-slash: fix NetBSD bug
33389         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
33390         links.
33391         * modules/rename-dest-slash (Depends-on): Add same-inode.
33392
33393         rename-tests: new test, exposes several platform bugs
33394         * modules/rename-tests: New file.
33395         * tests/test-rename.h: Likewise.
33396         * tests/test-rename.c: Likewise.
33397         * doc/posix-functions/rename.texi (rename): Improve documentation,
33398         including bugs that will eventually be fixed in gnulib.
33399
33400 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
33401
33402         * lib/uname.c: Include <stdlib.h>
33403         (uname): Assume version info is available.
33404
33405 2009-10-02  Jim Meyering  <meyering@redhat.com>
33406
33407         gnu-web-doc-update: correct --help output
33408         * build-aux/gnu-web-doc-update: Make --help output relevant.
33409
33410         gnu-web-doc-update: add standard options
33411         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
33412
33413         gnu-web-doc-update: New module.
33414         Use this script to automatically update the on-line web documentation
33415         for your GNU project at http://www.gnu.org/software/$pkg/manual/
33416         * modules/gnu-web-doc-update: New file, from coreutils.
33417         * build-aux/gnu-web-doc-update: New script.
33418
33419 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
33420
33421         link: LoadLibrary is not needed.
33422         * lib/link.c: Use GetModuleHandle.
33423
33424 2009-10-01  Eric Blake  <ebb9@byu.net>
33425
33426         getopt: bump serial number
33427         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
33428         change.
33429
33430         tests: tighten link, rmdir, and remove tests
33431         * tests/test-link.h (includes): No need to use <config.h> here.
33432         Clean up if directory hard link was created, otherwise test for
33433         trailing '.'.
33434         * tests/test-linkat.c (main): Simplify.
33435         * tests/test-remove.c (main): Enhance test for trailing '.'.
33436         * tests/test-rmdir.h (test_rmdir_func): Likewise.
33437
33438 2009-10-01  Jim Meyering  <meyering@redhat.com>
33439
33440         maint.mk: requiring "make major" was annoying, for a "minor" release.
33441         What is intended is "stable", to contrast with alpha and beta,
33442         so require "make stable", not "make major".
33443         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
33444         (get_tool_versions): Likewise.
33445         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
33446
33447 2009-09-30  Ben Pfaff  <blp@gnu.org>
33448
33449         Fix broken build of replacement for Windows tmpfile().
33450         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
33451         flags argument added along with the 'mkostemp' module.
33452
33453 2009-09-28  Bruno Haible  <bruno@clisp.org>
33454
33455         Avoid identifier clash with POSIX function 'remove' defined as a macro.
33456         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
33457         to 'remove_elt'.
33458         (gl_list_remove): Update.
33459         * lib/gl_list.c (gl_list_remove): Update.
33460         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
33461         to 'remove_elt'.
33462         (gl_oset_remove): Update.
33463         * lib/gl_list.c (gl_oset_remove): Update.
33464         Reported by Eric Blake.
33465
33466 2009-09-28  Eric Blake  <ebb9@byu.net>
33467
33468         doc: mention yet more cygwin 1.7 status
33469         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
33470         cygwin.
33471         * doc/glibc-functions/execvpe.texi (execvpe): New file.
33472         * doc/gnulib.texi (Glibc unistd.h): Mention it.
33473
33474         argp: fix test failure
33475         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
33476         that are not upper-case.  Pass correct range to tolower.
33477
33478 2009-09-27  Jim Meyering  <meyering@redhat.com>
33479
33480         test-yesno: work around sparc-dash here-document infelicity
33481         Without this change, the literal \177 byte in a here document
33482         would make dash 0.5.5.1-3 access uninitialized memory.
33483         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
33484         Instead, use a marker, "@", and filter through tr to create the desired
33485         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
33486
33487 2009-09-27  Bruno Haible  <bruno@clisp.org>
33488
33489         Disable untested support for new flavours of ACLs on AIX.
33490         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
33491         progress.
33492         * lib/set-mode-acl.c (qset_acl): Likewise.
33493
33494 2008-12-07  Bruno Haible  <bruno@clisp.org>
33495
33496         Add support for new flavours of ACLs on AIX. (Untested.)
33497         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
33498         (file_has_acl): Add support for newer AIX.
33499         * lib/set-mode-acl.c (qset_acl): Likewise.
33500         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
33501         Rainer Tammer <tammer@tammer.net>.
33502
33503 2009-09-26  Eric Blake  <ebb9@byu.net>
33504
33505         argp: fix compilation of getopt
33506         * lib/getopt.in.h (includes): Use different guard than glibc.
33507         Reported by Sergey Poznyakoff.
33508
33509         doc: mention more cygwin 1.7 status
33510         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
33511         bug.
33512         * doc/posix-functions/execl.texi (execl): Likewise.
33513         * doc/posix-functions/execle.texi (execle): Likewise.
33514         * doc/posix-functions/execlp.texi (execlp): Likewise.
33515         * doc/posix-functions/execv.texi (execv): Likewise.
33516         * doc/posix-functions/execve.texi (execve): Likewise.
33517         * doc/posix-functions/execvp.texi (execvp): Likewise.
33518         * doc/glibc-functions/canonicalize_file_name.texi
33519         (canonicalize_file_name): Cygwin 1.7 now provides this.
33520         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
33521         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
33522         on AT_SYMLINK_NOFOLLOW.
33523
33524 2009-09-24  Eric Blake  <ebb9@byu.net>
33525
33526         test-linkat: make test more robust
33527         * tests/test-linkat.c (main): Avoid collision with EEXIST.
33528
33529         getopt: fix inclusion guards for cygwin
33530         * modules/getopt-posix (Depends-on): Add include-next.
33531         (Makefile.am): Substitute more items in replacement header.
33532         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
33533         <getopt.h>.
33534         * lib/getopt.in.h (includes): Use split inclusion guard, and
33535         prefer <getopt.h> over include <unistd.h> when one is present.
33536         (option): Also override name of 'struct option'.
33537
33538         same-inode: revert prior change; it is not yet ready
33539         * NEWS: Undo mention of this change.
33540         * lib/same-inode.h (same-inode.h): Undo tri-state change.
33541         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
33542         * lib/cycle-check.c (cycle_check): Likewise.
33543         * lib/same.c (same_name): Likewise.
33544         * lib/at-func2.c (at_func2): Likewise.
33545
33546 2009-09-23  Eric Blake  <ebb9@byu.net>
33547
33548         linkat: new module
33549         * modules/linkat: New file.
33550         * lib/at-func2.c (at_func2): Likewise.
33551         * lib/linkat.c (linkat): Likewise.
33552         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
33553         * lib/openat-priv.h (at_func2): Add declaration.
33554         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
33555         * modules/unistd (Makefile.am): Substitute them.
33556         * lib/unistd.in.h (linkat): Declare it.
33557         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33558         * doc/posix-functions/linkat.texi (linkat): Likewise.
33559         * doc/posix-functions/link.texi (link): Tweak wording.
33560         * tests/test-link.c (main): Move guts...
33561         * tests/test-link.h (test_link): ...into new file.
33562         * modules/linkat-tests: New test.
33563         * tests/test-linkat.c: Likewise.
33564         * modules/link-tests (Files): Ship new file.
33565         (Depends-on): Add stdbool.
33566
33567         dirname: add library-safe mdir_name
33568         * lib/dirname.h (mdir_name): New prototype.
33569         * lib/dirname.c (dir_name): Move guts...
33570         (mdir_name): ...to new function that avoids xalloc_die.
33571
33572         fchdir: another mingw fix
33573         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
33574         * lib/fchdir.c (get_name): New helper method; skips canonicalize
33575         on mingw (where it has not yet been ported), and make it optional
33576         elsewhere.
33577         (_gl_register_fd): Use it.
33578
33579         same-inode: make SAME_INODE tri-state, to port to mingw
33580         * NEWS: Mention this change.
33581         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
33582         st_ino always being 0.
33583         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
33584         * lib/cycle-check.c (cycle_check): Likewise.
33585         * lib/same.c (same_name): Likewise.
33586
33587         lstat: avoid mingw compilation error
33588         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
33589         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
33590         lstat ourselves.
33591         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
33592         was adequate.
33593         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
33594         the checks for lstat.
33595         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
33596
33597         link: fix test failure on Solaris 9
33598         * lib/link.c (rpl_link): Don't assume link will catch bogus
33599         trailing slash on source.
33600
33601         test-symlinkat: enhance test
33602         * tests/test-readlink.c (main): Move guts...
33603         * tests/test-readlink.h (test_readlink): ...into new file.
33604         * tests/test-symlink.c (main): Move guts...
33605         * tests/test-symlink.h (test_symlink): ...into new file.
33606         * tests/test-symlinkat.c (main): Use new files for further
33607         coverage.
33608         (do_symlink, do_readlink): New helper functions.
33609         * modules/symlink-tests (Files): Ship new file.
33610         (Depends-on): Add stdbool.
33611         * modules/readlink-tests (Files): Ship new file.
33612         (Depends-on): Add stdbool.
33613         * modules/symlinkat-tests (Files): Use new files.
33614
33615 2009-09-23  Eric Blake  <ebb9@byu.net>
33616
33617         readlink: document portability issue with symlink length
33618         * doc/posix-functions/lstat.texi (lstat): Mention that some file
33619         systems have bogus st_size on symlinks, and mention the
33620         areadlink-with-size module.
33621         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
33622         * doc/posix-functions/readlink.texi (readlink): Mention the
33623         areadlink module, and ERANGE failure.
33624         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
33625         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
33626
33627         readlink: fix Solaris 9 bug with trailing slash
33628         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
33629         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
33630         * doc/posix-functions/readlink.texi (readlink): Document this.
33631         * modules/readlink-tests: New test.
33632         * tests/test-readlink.c: Likewise.
33633
33634         readlink: fix cygwin 1.5.x bug with return type
33635         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
33636         * lib/unistd.in.h (readlink): Use ssize_t.
33637         * lib/readlink.c (readlink): Likewise.
33638         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33639         * modules/unistd (Makefile.am): Substitute it.
33640         * lib/unistd.in.h (readlink): Declare replacement.
33641         * doc/posix-functions/readlink.texi (readlink): Document this.
33642
33643         symlink: use throughout gnulib
33644         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
33645         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
33646         symlink is not used.
33647         * modules/symlinkat (Depends-on): Add symlink.
33648         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
33649         * modules/canonicalize-tests (Depends-on): Likewise.
33650         * modules/lstat-tests (Depends-on): Likewise.
33651         * modules/openat-tests (Depends-on): Likewise.
33652         * modules/remove-tests (Depends-on): Likewise.
33653         * modules/rmdir-tests (Depends-on): Likewise.
33654         * modules/unlink-tests (Depends-on): Likewise.
33655         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
33656         * tests/test-canonicalize.c (symlink): Likewise.
33657         * tests/test-fstatat.c (symlink): Likewise.
33658         * tests/test-lstat.c (symlink): Likewise.
33659         * tests/test-remove.c (symlink): Likewise.
33660         * tests/test-rmdir.c (symlink): Likewise.
33661         * tests/test-unlink.c (symlink): Likewise.
33662         * tests/test-unlinkat.c (symlink): Likewise.
33663
33664         symlink: new module, for Solaris 9 bug
33665         * modules/symlink: New file.
33666         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
33667         * lib/symlink.c: Likewise.
33668         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
33669         * modules/unistd (Makefile.am): Substitute them.
33670         * lib/unistd.in.h (symlink): Declare replacement.
33671         * MODULES.html.sh (File system functions): Mention it.
33672         * doc/posix-functions/symlink.texi (symlink): Likewise.
33673         * modules/symlink-tests: New test.
33674         * tests/test-symlink.c: Likewise.
33675
33676 2009-09-23  Bruno Haible  <bruno@clisp.org>
33677
33678         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
33679         when needed.
33680         Test case: gnulib-tool --import --with-tests atexit inttypes.
33681         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
33682
33683 2009-09-23  Bruno Haible  <bruno@clisp.org>
33684
33685         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
33686         subcommand, not in a subshell.
33687
33688 2009-09-22  Eric Blake  <ebb9@byu.net>
33689
33690         unistd: sort replacement declarations
33691         * lib/unistd.in.h: Sort declarations.
33692
33693         open, openat: minor optimization
33694         * lib/open.c (open): If open succeeded, len is non-zero.
33695         * lib/openat.c (rpl_openat): Likewise.
33696
33697         link-follow: ensure correct result
33698         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
33699         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
33700         distinguish between possible failures.
33701
33702 2009-09-21  Eric Blake  <ebb9@byu.net>
33703
33704         fts: avoid compiler warning
33705         * lib/fts.c (dirent_inode_sort_may_be_useful)
33706         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
33707
33708 2009-09-19  Bruno Haible  <bruno@clisp.org>
33709
33710         * lib/progreloc.c (canonicalize_file_name): New declaration.
33711
33712 2009-09-19  Eric Blake  <ebb9@byu.net>
33713
33714         link: fix quoting
33715         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
33716
33717         openat: fix openat bugs on Solaris 9
33718         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
33719         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
33720         * modules/openat (Depends-on): Add open.
33721         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
33722         * modules/fcntl-h (Makefile.am): Substitute it.
33723         * lib/fcntl.in.h (openat): Declare replacement.
33724         * doc/posix-functions/openat.texi (openat): Document this.
33725
33726         openat: move fstatat and unlinkat into correct files
33727         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
33728         compiled.
33729         * lib/openat.c (fstatat, unlinkat): Move...
33730         * lib/fstatat.c (fstatat): ...into correct files.
33731         * lib/unlinkat.c (unlinkat): Likewise.
33732
33733         openat: fix unlinkat bugs on Solaris 9
33734         * lib/unlinkat.c (unlinkat): New file.
33735         * modules/openat (Depends-on): Add unlink.
33736         (Files): Distribute it.
33737         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
33738         trailing slash behavior is broken.
33739         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33740         * modules/unistd (Makefile.am): Substitute it.
33741         * lib/unistd.in.h (unlinkat): Declare replacement.
33742         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
33743
33744         openat: fix fstatat bugs on Solaris 9
33745         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
33746         stat.
33747         * doc/posix-functions/fstatat.texi (fstatat): Document this.
33748
33749         test-unlinkat: enhance test, to expose Solaris 9 bug
33750         * tests/test-unlink.c (main): Factor guts...
33751         * tests/test-unlink.h (test_rmdir_func): ...into new file.
33752         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
33753         * tests/test-rmdir.c (main): Adjust caller.
33754         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
33755         (unlinker): New helper function.
33756         (rmdirat): Enhance check.
33757         * modules/rmdir-tests (Depends-on): Add stdbool.
33758         * modules/unlink-tests (Depends-on): Likewise.
33759         (Files): Add test-unlink.h.
33760         * modules/openat-tests (Files): Likewise.
33761         (Depends-on): Add unlinkdir.
33762
33763         test-fstatat: new test, to expose Solaris 9 bugs
33764         * tests/test-stat.c (main): Factor guts...
33765         * tests/test-stat.h (test_stat_func): ...into new file.
33766         * tests/test-lstat.c (main): Factor guts...
33767         * tests/test-lstat.h (test_lstat_func): ...into new file.
33768         * tests/test-fstatat.c: New file.
33769         * modules/stat-tests (Files): Add test-stat.h.
33770         * modules/lstat-tests (Files): Add test-lstat.h.
33771         (Depends-on): Add stdbool.
33772         * modules/openat-tests (Depends-on): Add pathmax.
33773         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
33774         (Makefile.am): Run new test.
33775
33776         remove: new module, for mingw and Solaris 9 bugs
33777         * modules/remove: New file.
33778         * lib/remove.c: Likewise.
33779         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
33780         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
33781         * modules/stdio (Makefile.am): Use them.
33782         * lib/stdio.in.h (remove): Declare replacement.
33783         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33784         * doc/posix-functions/remove.texi (remove): Likewise.
33785         * modules/remove-tests: New test.
33786         * tests/test-remove.c: Likewise.
33787
33788         unlink: new module, for Solaris 9 bug
33789         * modules/unlink: New file.
33790         * lib/unlink.c: Likewise.
33791         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
33792         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
33793         * modules/unistd (Makefile.am): Use them.
33794         * lib/unistd.in.h (stat): Declare replacement.
33795         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33796         * doc/posix-functions/unlink.texi (unlink): Likewise.
33797         * modules/unlink-tests: New test.
33798         * tests/test-unlink.c: Likewise.
33799
33800         lstat: fix Solaris 9 bug
33801         * lib/lstat.c (lstat): Also check for trailing slash on
33802         non-symlink, non-directories.  Use stat module to simplify logic.
33803         * doc/posix-functions/lstat.texi (lstat): Document it.
33804         * modules/lstat-tests (Depends-on): Add errno, same-inode.
33805         (configure.ac): Check for symlink.
33806         * tests/test-lstat.c (main): Add more tests.
33807
33808         stat: add as dependency to other modules
33809         * modules/chown (Depends-on): Add stat.
33810         * modules/euidaccess (Depends-on): Likewise.
33811         * modules/fchdir (Depends-on): Likewise.
33812         * modules/isdir (Depends-on): Likewise.
33813         * modules/link (Depends-on): Likewise.
33814         * modules/lstat (Depends-on): Likewise.
33815         * modules/mkdir-p (Depends-on): Likewise.
33816         * modules/modechange (Depends-on): Likewise.
33817         * modules/open (Depends-on): Likewise.
33818         * modules/readlink (Depends-on): Likewise.
33819         * modules/same (Depends-on): Likewise.
33820
33821         stat: fix Solaris 9 bug
33822         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
33823         slash.
33824         * lib/stat.c (rpl_stat): Work around it.
33825         * doc/posix-functions/stat.texi (stat): Update documentation.
33826
33827         stat: new module, for mingw bug
33828         * modules/stat: New file.
33829         * lib/stat.c: Likewise.
33830         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
33831         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
33832         * modules/sys_stat (Makefile.am): Use them.
33833         * lib/sys_stat.in.h (stat): Declare replacement.
33834         * lib/openat.c (fstatat): Deal with lstat and stat being function
33835         macros.
33836         * modules/openat (Depends-on): Add inline.
33837         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33838         * doc/posix-functions/stat.texi (stat): Likewise.
33839         * modules/stat-tests: New test.
33840         * tests/test-stat.c: Likewise.
33841
33842 2009-09-19  Jim Meyering  <meyering@redhat.com>
33843
33844         syntax-check: detect unnecessary inclusion of canonicalize.h
33845         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
33846
33847 2009-09-19  Eric Blake  <ebb9@byu.net>
33848
33849         canonicalize-lgpl: adjust clients to use correct header
33850         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
33851         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
33852         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
33853         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
33854         * lib/progreloc.c (includes): Likewise.
33855
33856 2009-09-19  Jim Meyering  <meyering@redhat.com>
33857
33858         test-posixtm.c: correct a comment
33859         * tests/test-posixtm.c: Correct first-line comment.
33860         Spotted by Eric Blake.
33861
33862 2009-09-16  Jim Meyering  <meyering@redhat.com>
33863
33864         posixtm-tests: make T const-correct; add a test case
33865         * tests/test-posixtm.c (T): Declare const.
33866         Add a test for -(2^31+1).
33867         Remove useless can-succeed-only-in-2002 test.
33868
33869         posixtm-tests: adjust the sole failing test
33870         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
33871         expected output matches what mktime now produces.  Cross-checked via
33872         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
33873
33874         posixtm: move #ifdef'd tests into a new module
33875         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
33876         * tests/test-posixtm.c: ... this new file.
33877         * modules/posixtm-tests: New module.
33878
33879 2009-09-19  Eric Blake  <ebb9@byu.net>
33880
33881         openat: simplify use of at-func.c
33882         * lib/at-func.c (includes): Include prerequisites here, to
33883         simplify requirements on client files.
33884         * lib/openat-priv.h: Add double-inclusion guard.
33885         * lib/faccessat.c (includes): Simplify.
33886         * lib/fchmodat.c (includes): Likewise.
33887         * lib/fchownat.c (includes): Likewise.
33888         * lib/mkdirat.c (includes): Likewise.
33889         * lib/mkfifoat.c (includes): Likewise.
33890         * lib/symlinkat.c (includes): Likewise.
33891
33892         openat: allow return of fd 0
33893         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
33894         * modules/save-cwd (Depends-on): Replace fcntl-safer with
33895         unistd-safer.
33896         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
33897         <fcntl.h>; this module does not leak fds.
33898         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
33899         must be allowed to return 0, leaving openat_safer to add the
33900         safety.
33901         (openat_permissive): Avoid writing to just-opened fd 2 if
33902         restoring the current directory fails.
33903         * lib/openat-die.c (openat_restore_fail): Add comment.
33904         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
33905         (save_cwd): Guarantee safe fd, but without use of open_safer.
33906         * tests/test-openat.c: New test.
33907         * modules/openat-tests (Files, Makefile.am): Distribute and build
33908         new file.
33909
33910         relocatable-prog-wrapper: fix build
33911         * modules/relocatable-prog-wrapper (Files): Update name of
33912         canonicalize m4 file, broken on 2009-09-17.
33913         Reported by emad hajjar <aleppos@hotmail.com>.
33914
33915 2009-09-19  Bruno Haible  <bruno@clisp.org>
33916
33917         * lib/safe-alloc.h: Use the standard header with GPL copyright.
33918         * lib/safe-alloc.c: Likewise.
33919         Reported by Ian Beckwith <ianb@erislabs.net>.
33920
33921 2009-09-18  Bruno Haible  <bruno@clisp.org>
33922
33923         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
33924         Reported by <erobles@sensacd.com.mx>.
33925
33926 2009-09-17  Eric Blake  <ebb9@byu.net>
33927
33928         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
33929         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
33930         slashes when checking if last component is missing.
33931         * tests/test-canonicalize.c (main): Test this.
33932
33933         canonicalize, canonicalize-lgpl: honor // if distinct from /
33934         * modules/canonicalize (Files): Add double-slash-root.m4.
33935         * modules/canonicalize-lgpl (Files): Likewise.
33936         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
33937         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
33938         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
33939         fallback definition.
33940         (canonicalize_filename_mode): Use it to protect //.
33941         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
33942         (__realpath): Likewise.
33943         * tests/test-canonicalize.c (main): Test this.
33944         * tests/test-canonicalize-lgpl.c (main): Likewise.
33945         * modules/canonicalize-tests (Depends-on): Add same-inode.
33946         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
33947
33948         canonicalize-lgpl: fix glibc bug with trailing slash
33949         * m4/canonicalize-lgpl.m4: Move contents...
33950         * m4/canonicalize.m4: ...here.
33951         (gl_CANONICALIZE_LGPL): Factor realpath check...
33952         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
33953         glibc 2.3.5 bug, fixed 2005-04-27.
33954         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
33955         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
33956         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
33957         * modules/canonicalize-lgpl (Files): Manage file rename.
33958         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
33959         * modules/stdlib (Makefile.am): Substitute witness.
33960         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
33961         is needed.
33962         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
33963         replacement is required.
33964         * lib/canonicalize.c (canonicalize_file_name): Likewise.
33965         * doc/glibc-functions/canonicalize_file_name.texi
33966         (canonicalize_file_name): Document this.
33967         * doc/posix-functions/realpath.texi (realpath): Likewise.
33968
33969         canonicalize-lgpl: reject non-directory with trailing slash
33970         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
33971         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
33972         catches failures in glibc 2.3.5.
33973         * tests/test-canonicalize.c (main): Likewise.
33974
33975         canonicalize-lgpl: use native realpath if it works
33976         * lib/canonicalize-lgpl.c (realpath): Guard with
33977         FUNC_REALPATH_WORKS.
33978         * lib/stdlib.in.h (realpath): Make declaration optional based on
33979         HAVE_REALPATH.
33980         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
33981         native realpath works.
33982         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
33983         * modules/stdlib (Makefile.am): Substitute witness.
33984
33985         canonicalize, canonicalize-lgpl: use <stdlib.h>
33986         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
33987         (Include): Mention <stdlib.h>.
33988         (configure.ac): Mention functions we provide.
33989         * modules/canonicalize (configure.ac): Likewise.
33990         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
33991         realpath if canonicalize_file_name is missing.
33992         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
33993         * modules/stdlib (Makefile.am): Substitute witnesses.
33994         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
33995         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
33996         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
33997         * NEWS: Document this.
33998         * doc/glibc-functions/canonicalize_file_name.texi
33999         (canonicalize_file_name): Likewise.
34000         * doc/posix-functions/realpath.texi (realpath): Likewise.
34001         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
34002
34003         test-canonicalize: consolidate into single C program
34004         * tests/test-canonicalize.sh: Delete; move setup into...
34005         * tests/test-canonicalize.c (main): ...the program, making it
34006         easier to run in debugger.  Add some tests.
34007         * modules/canonicalize-tests (Files): Remove unused file.
34008         (Depends-on): Add progname.
34009         (configure.ac, Makefile.am): Simplify.
34010
34011         test-canonicalize-lgpl: consolidate into single C program
34012         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
34013         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
34014         easier to run in debugger.  Add some tests.
34015         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
34016         (configure.ac, Makefile.am): Simplify.
34017
34018         canonicalize: avoid resolvepath
34019         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
34020         unnecessary checks.
34021         * lib/canonicalize.c (includes): Simplify.
34022         (canonicalize_file_name): Drop resolvepath implementation.
34023         * modules/canonicalize (Depends-on): Drop filenamecat.
34024
34025         canonicalize: don't lose errno
34026         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
34027         over calls to free.
34028
34029         canonicalize: simplify errno handling
34030         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
34031         assignment.
34032
34033         canonicalize, canonicalize-lgpl: update module dependencies
34034         * modules/canonicalize (Depends-on): Add extensions, lstat,
34035         pathmax, stdlib.
34036         (Files): Drop pathmax.h.
34037         (configure.ac): Adjust macro name.
34038         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
34039         lstat, stdlib, sys_stat.
34040         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
34041         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
34042         extensions.
34043         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
34044         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
34045         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
34046         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
34047         declaration, if available.
34048         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
34049         we can rely on the readlink module.
34050         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
34051         (includes): Use <unistd.h> unconditionally.
34052
34053 2009-09-17  Eric Blake  <ebb9@byu.net>
34054
34055         maint: make Include sections of modules consistent
34056         * modules/alloca: Use only header name; no need to list #include.
34057         * modules/alloca-opt: Likewise.
34058         * modules/arpa_inet: Likewise.
34059         * modules/canon-host: Likewise.
34060         * modules/configmake: Likewise.
34061         * modules/dirent: Likewise.
34062         * modules/eealloc: Likewise.
34063         * modules/environ: Likewise.
34064         * modules/fchdir: Likewise.
34065         * modules/fcntl: Likewise.
34066         * modules/fcntl-h: Likewise.
34067         * modules/gethrxtime: Likewise.
34068         * modules/gettime: Likewise.
34069         * modules/ignore-value: Likewise.
34070         * modules/inet_ntop: Likewise.
34071         * modules/inet_pton: Likewise.
34072         * modules/inttypes: Likewise.
34073         * modules/isnand-nolibm: Likewise.
34074         * modules/isnanf-nolibm: Likewise.
34075         * modules/mbchar: Likewise.
34076         * modules/mbfile: Likewise.
34077         * modules/mbiter: Likewise.
34078         * modules/mbuiter: Likewise.
34079         * modules/netdb: Likewise.
34080         * modules/netinet_in: Likewise.
34081         * modules/nproc: Likewise.
34082         * modules/pagealign_alloc: Likewise.
34083         * modules/poll: Likewise.
34084         * modules/printf-frexp: Likewise.
34085         * modules/pthread: Likewise.
34086         * modules/putenv: Likewise.
34087         * modules/random_r: Likewise.
34088         * modules/relocatable-prog: Likewise.
34089         * modules/search: Likewise.
34090         * modules/select: Likewise.
34091         * modules/selinux-h: Likewise.
34092         * modules/settime: Likewise.
34093         * modules/signal: Likewise.
34094         * modules/size_max: Likewise.
34095         * modules/socklen: Likewise.
34096         * modules/ssize_t: Likewise.
34097         * modules/stdarg: Likewise.
34098         * modules/stdbool: Likewise.
34099         * modules/stddef: Likewise.
34100         * modules/stdint: Likewise.
34101         * modules/stdio: Likewise.
34102         * modules/stdlib: Likewise.
34103         * modules/string: Likewise.
34104         * modules/strings: Likewise.
34105         * modules/sys_file: Likewise.
34106         * modules/sys_ioctl: Likewise.
34107         * modules/sys_select: Likewise.
34108         * modules/sys_socket: Likewise.
34109         * modules/sys_stat: Likewise.
34110         * modules/sys_time: Likewise.
34111         * modules/sys_times: Likewise.
34112         * modules/sys_utsname: Likewise.
34113         * modules/sys_wait: Likewise.
34114         * modules/sysexits: Likewise.
34115         * modules/time: Likewise.
34116         * modules/times: Likewise.
34117         * modules/tmpfile: Likewise.
34118         * modules/trim: Likewise.
34119         * modules/unistd: Likewise.
34120         * modules/wchar: Likewise.
34121         * modules/wctype: Likewise.
34122
34123 2009-09-17  Bruno Haible  <bruno@clisp.org>
34124
34125         Make getdate.y compile on QNX and NetBSD 5 / i386.
34126         * m4/getdate.m4 (gl_GETDATE): Conditionally define
34127         TIME_T_FITS_IN_LONG_INT.
34128         * lib/getdate.y (long_time_t): New type.
34129         (relative_time): Change type of 'seconds' field to long_time_t.
34130         (get_date): Update types of local variables. Check against overflow
34131         during conversion from long_time_t to time_t.
34132         Reported by Matt Kraai <kraai@ftbfs.org>
34133         and Hasso Tepper <hasso@netbsd.org>.
34134
34135 2009-09-17  Bruno Haible  <bruno@clisp.org>
34136
34137         * modules/COPYING: Update copyright years.
34138         * modules/README: Likeiwse.
34139         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
34140         Reported by Ian Beckwith <ianb@erislabs.net>.
34141
34142 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
34143
34144         * users.txt: Update references for gnuit package.
34145
34146 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
34147
34148         * m4/getdelim.m4: Fix typo in copyright line.
34149
34150 2009-09-17  Bruno Haible  <bruno@clisp.org>
34151
34152         * lib/atoll.c: Use the standard header with GPL copyright.
34153         * lib/argz.in.h: Likewise.
34154         * lib/glob.c: Likewise.
34155         * lib/glob-libc.h: Likewise.
34156         * lib/random_r.c: Likewise.
34157         * lib/siglist.h: Likewise.
34158         * lib/strsignal.c: Likewise.
34159         Reported by Ian Beckwith <ianb@erislabs.net>.
34160
34161 2009-09-17  Eric Blake  <ebb9@byu.net>
34162
34163         rmdir: ensure correct dependency order
34164         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
34165
34166 2009-09-17  Bruno Haible  <bruno@clisp.org>
34167
34168         Disable assertion that fails on NetBSD 5 / i386.
34169         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
34170         Reported by Sam Steingold <sds@gnu.org>
34171         and Hasso Tepper <hasso@netbsd.org>.
34172
34173 2009-09-16  Eric Blake  <ebb9@byu.net>
34174
34175         unlinkdir: port to mingw
34176         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
34177         on which no one can unlink a directory.
34178
34179         stdlib: sort witness names
34180         * modules/stdlib (Makefile.am): Sort replacements.
34181         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
34182         * lib/stdlib.in.h: Likewise.
34183
34184         parse-duration-tests: avoid link failure
34185         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
34186         LIBINTL.
34187         Reported by Tom G. Christensen.
34188
34189         openat-tests: ensure unlinkat behaves like rmdir
34190         * tests/test-rmdir.c (main): Factor guts...
34191         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
34192         * modules/rmdir-tests (Files): Ship new file.
34193         * modules/openat-tests: New test.
34194         * tests/test-unlinkat.c: Likewise.
34195
34196         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
34197         * modules/rmdir-errno (Status, Notice): Now obsolete.
34198
34199         rmdir: work around cygwin 1.5.x and mingw bugs
34200         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
34201         * lib/rmdir.c (rmdir): Work around it.
34202         * modules/rmdir (Status, Notice): No longer obsolete.
34203         (Files): Add dos.m4.
34204         (Depends-on): Add unistd.
34205         (configure.ac): Set witnesses.
34206         (License): Relax to LGPLv2+.
34207         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
34208         * modules/unistd (Makefile.am): Substitute witnesses.
34209         * lib/unistd.in.h (rmdir): Declare replacement.
34210         * doc/posix-functions/rmdir.texi (rmdir): Document this.
34211         * modules/rmdir-tests: New tests.
34212         * tests/test-rmdir.c: Likewise.
34213
34214 2009-09-15  Eric Blake  <ebb9@byu.net>
34215
34216         fchdir: improve use of replacement functions
34217         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
34218         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
34219         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
34220         REPLACE_CLOSEDIR.
34221         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
34222         * modules/sys_stat (Makefile.am): Substitute correct witness.
34223         * modules/dirent (Makefile.am): Likewise.
34224         * modules/unistd (Makefile.am): Likewise.
34225         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
34226         * lib/unistd.in.h (dup): Likewise.
34227         * lib/sys_stat.in.h (fstat): Likewise.
34228
34229         maint: ignore gnulib-tool temp files
34230         * .gitignore: Ignore files created during gnulib-tool --test.
34231
34232 2009-09-13  Jim Meyering  <meyering@redhat.com>
34233
34234         posixtm: don't reject a time that specify "60" as the number of seconds
34235         * lib/posixtm.c (posixtime): The code to reject invalid dates
34236         would also reject a time specified with the .60 suffix.
34237         But POSIX allows that, in order to accommodate leap seconds.
34238         So don't reject it.
34239         (main): Adjust tests accordingly.
34240         * modules/posixtm (Depends-on): Add stpcpy.
34241
34242 2009-09-11  Jim Meyering  <meyering@redhat.com>
34243
34244         announce-gen: include [$release_type] in emitted Subject:
34245         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
34246         e.g., [stable] in the emitted Subject: line.
34247
34248 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34249
34250         Remove obsolete macros from several modules.
34251         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
34252         obsolete Autoconf macros with their modern counterparts.
34253         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
34254         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
34255         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
34256         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
34257         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
34258         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
34259         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
34260         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
34261         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
34262         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
34263         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
34264         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
34265         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
34266         * m4/sockets.m4 (gl_SOCKETS): Likewise.
34267         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
34268         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
34269         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
34270         * m4/time_r.m4 (gl_TIME_R): Likewise.
34271         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
34272         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
34273         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
34274
34275         Fix copyright header in build-aux scripts.
34276         * build-aux/git-version-gen: Fix copyright header to match GPLv3
34277         recommendation.
34278         * build-aux/ncftpput-ftp: Likewise.
34279         * build-aux/update-copyright: Likewise.
34280
34281 2009-09-09  Eric Blake  <ebb9@byu.net>
34282
34283         test-link: allow Linux choice of errno
34284         * tests/test-link.c (main): Relax test for alternate error.
34285
34286         strndup: fix improper m4 caching
34287         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
34288         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
34289         (gl_PREREQ_STRNDUP): Delete.
34290         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
34291         * modules/string (Makefile.am): Substitute it.
34292         * lib/string.in.h (strndup): Modernize prototype.
34293
34294         getcwd: port to mingw
34295         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
34296         different from the POSIX assumptions made throughout the getcwd
34297         module; fortunately, the mingw getcwd does not need replacement.
34298         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
34299         * modules/getcwd-tests: New test.
34300         * tests/test-getcwd.c: Likewise.
34301
34302         link: fix platform bugs
34303         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
34304         * lib/link.c (link): Work around them.  Fix related mingw bug.
34305         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
34306         * modules/unistd (Makefile.am): Substitute it.
34307         * lib/unistd.in.h (link): Declare replacement.
34308         * doc/posix-functions/link.texi (link): Document this.
34309         * modules/link (Depends-on): Add strdup-posix, sys_stat.
34310
34311         test-link: consolidate into single C program, test more cases
34312         * tests/test-link.sh: Delete.
34313         * tests/test-link.c: Test more error conditions.  Exposes bugs on
34314         at least Cygwin and Solaris.
34315         * modules/link-tests (Files): Remove unused file.
34316         (Depends-on): Add errno, sys_stat.
34317         (Makefile.am): Simplify.
34318
34319 2009-09-08  Bruno Haible  <bruno@clisp.org>
34320
34321         Work around towlower, towupper bug on mingw.
34322         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
34323         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
34324         * doc/posix-functions/towlower.texi: Mention the mingw bug.
34325         * doc/posix-functions/towupper.texi: Likewise.
34326         Reported by Eric Blake.
34327
34328 2009-09-08  Jim Meyering  <meyering@redhat.com>
34329
34330         build: don't try to run autoheader if we don't use it
34331         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
34332         is not used in configure.ac.
34333
34334 2009-09-08  Eric Blake  <ebb9@byu.net>
34335
34336         euidaccess: fix compilation error
34337         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
34338
34339         rawmemchr: relax license
34340         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
34341         okay.
34342         Reported by Jim Meyering.
34343
34344         mkfifoat: new module
34345         * modules/mkfifoat: New file.
34346         * lib/mkfifoat.c: Likewise.
34347         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
34348         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
34349         * modules/sys_stat (Makefile.am): Use them.
34350         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
34351         * MODULES.html.sh (File system functions): Mention module.
34352         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
34353         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
34354         * modules/mkfifoat-tests: New test.
34355         * tests/test-mkfifoat.c: Likewise.
34356
34357         strchrnul: relax license
34358         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
34359         okay.
34360         Reported by Jim Meyering.
34361
34362 2009-09-08  Eric Blake  <ebb9@byu.net>
34363
34364         fstatat: fix compilation on Solaris
34365         * lib/fstatat.c (includes): Add fcntl.h.
34366         Reported by Pádraig Brady.
34367
34368 2009-09-07  Eric Blake  <ebb9@byu.net>
34369
34370         rename: modernize replacement
34371         * modules/rename (Depends-on): Add stdio.
34372         (configure.ac): Declare witness.
34373         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
34374         stdio take care of replacement.
34375         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
34376         * modules/stdio (Makefile.am): Substitute them.
34377         * lib/stdio.in.h (rename): Declare replacement.
34378         * lib/rename.c (includes): Allow cross-compilation to non-windows
34379         machines.
34380         * doc/posix-functions/rename.texi (rename): Improve
34381         documentation.
34382
34383         stdio: sort witness names
34384         * modules/stdio (Makefile.am): Sort replacements.
34385         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
34386         * lib/stdio.in.h: Likewise.
34387
34388         getcwd: minor cleanups
34389         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
34390         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
34391
34392         openat: provide more convenience names
34393         * modules/faccessat (configure.ac): Add C witness.
34394         * lib/unistd.in.h (readlinkat): Fix typo.
34395         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
34396         convenience wrappers.
34397         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
34398         wrappers in syntax checks.
34399
34400 2009-09-06  Eric Blake  <ebb9@byu.net>
34401
34402         doc: fix comments in recent patches
34403         * lib/faccessat.c: Mention correct function.
34404         * lib/fchmodat.c: Likewise.
34405         * lib/fchownat.c: Likewise.
34406         * lib/symlinkat.c: Likewise.
34407         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
34408         constants.
34409
34410         faccessat, symlinkat: continue cleanup of previous patch
34411         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
34412         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
34413         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
34414         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
34415         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
34416         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
34417         set.
34418
34419 2009-09-06  Bruno Haible  <bruno@clisp.org>
34420
34421         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
34422         (fstatat): Declare if GNULIB_FSTATAT is set.
34423         (mkdirat): Declare if GNULIB_MKDIRAT is set.
34424         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
34425         (unlinkat): Declare if GNULIB_UNLINKAT is set.
34426         * modules/fcntl-h (Files): Remove m4/openat.m4.
34427         * modules/sys_stat (Files): Remove m4/openat.m4.
34428         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
34429         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
34430         * modules/unistd (Files): Remove m4/openat.m4.
34431         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
34432         GNULIB_OPENAT.
34433         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
34434         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
34435         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
34436         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
34437         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
34438         gl_OPENAT_DEFAULTS.
34439         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
34440         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
34441         Don't require gl_OPENAT_DEFAULTS.
34442         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
34443         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
34444         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
34445         (gl_OPENAT_DEFAULTS): Remove macro.
34446
34447 2009-09-06  Bruno Haible  <bruno@clisp.org>
34448
34449         * modules/openat (configure.ac): Remove unneeded witness.
34450
34451 2009-09-06  Bruno Haible  <bruno@clisp.org>
34452
34453         Set errno to ENOSYS when a function is entirely unsupported.
34454         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
34455         EOPNOTSUPP.
34456         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
34457         * modules/chown (Depends-on): Remove errno.
34458
34459 2009-09-06  Bruno Haible  <bruno@clisp.org>
34460
34461         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
34462
34463 2009-09-06  Bruno Haible  <bruno@clisp.org>
34464
34465         * lib/sys_stat.in.h: Fix preprocessor command indentation.
34466
34467 2009-09-06  Ben Pfaff  <blp@gnu.org>
34468             Bruno Haible  <bruno@clisp.org>
34469
34470         Work around a glibc bug in strtok_r.
34471         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
34472         Undefine if UNDEFINE_STRTOK_R is set.
34473         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
34474         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
34475         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
34476         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
34477         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
34478         UNDEFINE_STRTOK_R.
34479         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
34480
34481 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
34482
34483         exclude: minor fix
34484         * lib/exclude.c: Include wctype.h
34485
34486 2009-09-06  Akim Demaille  <demaille@gostai.com>
34487
34488         bootstrap: improve error message
34489         * build-aux/bootstrap (find_tool): Upon failure, report the list
34490         of candidates.
34491         Honor the initial value of the envvar.
34492
34493 2009-09-05  Eric Blake  <ebb9@byu.net>
34494
34495         symlinkat: new module
34496         * modules/symlinkat: New file.
34497         * lib/symlinkat.c: Likewise.
34498         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
34499         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
34500         * modules/unistd (Makefile.am): Use them.
34501         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
34502         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
34503         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
34504         * MODULES.html.sh (File system functions): Mention module.
34505         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
34506         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
34507         * modules/symlinkat-tests: New test.
34508         * tests/test-symlinkat.c: Likewise.
34509
34510         test-openat-safer: add more checks
34511         * tests/test-openat-safer.c (main): Check more code paths.
34512
34513 2009-09-05  Jim Meyering  <meyering@redhat.com>
34514
34515         syntax-check: detect unnecessary inclusion of openat.h
34516         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
34517
34518 2009-09-05  Bruno Haible  <bruno@clisp.org>
34519
34520         Support towlower, towupper.
34521         * doc/posix-functions/towlower.texi: Mention module wctype.
34522         * doc/posix-functions/towupper.texi: Likewise.
34523         * lib/wctype.in.h (towlower, towupper): New functions.
34524         * tests/test-wctype.c: Include stdio.h, stdlib.h.
34525         (ASSERT): New macro.
34526         (e): New variable.
34527         (main): Test also towlower, towupper. Test WEOF argument.
34528         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
34529
34530 2009-09-05  Bruno Haible  <bruno@clisp.org>
34531
34532         Fix conversion behaviour when the input is invalid.
34533         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
34534         mark occurring in first pass of indirect conversion.
34535         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
34536         input.
34537         Found by clang's static analyzer.
34538
34539 2009-09-05  Bruno Haible  <bruno@clisp.org>
34540
34541         * tests/test-striconveh.c (main): Test indirect conversion on platforms
34542         where direct conversion is possible.
34543
34544 2009-09-04  Eric Blake  <ebb9@byu.net>
34545
34546         openat: fail with ENOENT on empty name
34547         * lib/openat-proc.c (openat_proc_name): Special-case the empty
34548         buffer.
34549
34550         link-follow: fix logic bug in prior patch
34551         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
34552         reversed sense of yes and no in prior patch.  Avoid confusing
34553         compilation failure with desired semantics.
34554
34555         link-follow: accomodate mingw and cross-compilation
34556         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
34557         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
34558         cross-compilation results to -1, to make linkat easier to
34559         implement when cross-compiling.  Trivially support mingw.
34560         * modules/link-follow (configure.ac): Call new name.
34561         * NEWS: Mention this.
34562
34563 2009-09-03  Eric Blake  <ebb9@byu.net>
34564
34565         faccessat: compile replacement
34566         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
34567         needed.
34568
34569         fts: fix compilation error
34570         * lib/fts.c (includes): Re-add "openat.h", for
34571         openat_needs_fchdir.
34572
34573         faccessat: new module
34574         * modules/faccessat: New file.
34575         * lib/faccessat.c: Likewise.
34576         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
34577         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34578         * modules/unistd (Makefile.am): Use it.
34579         * lib/unistd.in.h (faccessat): Declare it.
34580         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
34581         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
34582         * MODULES.html.sh (File system functions): Mention it.
34583         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
34584         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
34585
34586         euidaccess: prefer POSIX over non-standard implementation
34587         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
34588         * lib/euidaccess.c (euidaccess): Use it if available.
34589
34590         openat: make template easier to use
34591         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
34592         AT_FUNC_F2 to be undefined.
34593         (VALIDATE_FLAG): New macro; use it to reject bad flags.
34594         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
34595         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
34596         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
34597         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
34598         Likewise.
34599         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
34600         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
34601         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
34602         Likewise.
34603
34604         openat: declare in POSIX headers
34605         * NEWS: Mention this.
34606         * modules/openat (configure.ac): Declare witnesses.
34607         (Depends-on): Add fcntl-h, sys_stat, unistd.
34608         (Include): Mention correct headers.
34609         * modules/fcntl-h (Depends-on): Add link-warning.
34610         (Files): Add openat.m4.
34611         (Makefile.am): Substitute witnesses.
34612         * modules/sys_stat (Files, Makefile.am): Likewise.
34613         * modules/unistd (Files, Makefile.am): Likewise.
34614         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
34615         (gl_OPENAT_DEFAULTS): New macro.
34616         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
34617         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
34618         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
34619         (SYS_STAT_H): Remove unused variable.
34620         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
34621         * lib/fcntl--.h (includes): Remove unneeded header.
34622         * lib/openat-safer.c (includes): Likewise.
34623         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
34624         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
34625         appropriate headers.
34626         (__OPENAT_PREFIX): Delete.
34627         * lib/fcntl.in.h (openat): Provide declaration.
34628         (AT_FDCWD): Fix Solaris bug.
34629         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
34630         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
34631         * lib/fchmodat.c (includes):  Adjust to find declaration.
34632         * lib/fchownat.c (includes): Likewise.
34633         * lib/mkdirat.c (includes): Likewise.
34634         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
34635         still visible.
34636
34637 2009-09-02  Eric Blake  <ebb9@byu.net>
34638
34639         errno: use consistently
34640         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
34641         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
34642         * lib/canonicalize.c (ELOOP): Likewise.
34643         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
34644         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
34645         * lib/lchown.c (EOPNOTSUPP): Likewise.
34646         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
34647         * lib/savewd.c (ESTALE): Likewise.
34648         * lib/settime.c (ENOSYS): Likewise.
34649         * lib/utimens.c (ENOSYS): Likewise.
34650         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
34651         * lib/chdir-safer.c (ELOOP): Likewise.
34652         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
34653         * modules/c-stack (Depends-on): Add errno.
34654         * modules/canonicalize (Depends-on): Likewise.
34655         * modules/chdir-safer (Depends-on): Likewise.
34656         * modules/fdopendir (Depends-on): Likewise.
34657         * modules/inet_ntop (Depends-on): Likewise.
34658         * modules/inet_pton (Depends-on): Likewise.
34659         * modules/lchown (Depends-on): Likewise.
34660         * modules/openat (Depends-on): Likewise.
34661         * modules/savewd (Depends-on): Likewise.
34662         * modules/settime (Depends-on): Likewise.
34663         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
34664
34665         fts: avoid leaking fds
34666         * modules/fts (Depends-on): Add cloexec.
34667         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
34668         flag.
34669
34670         fts: make directory fds more robust
34671         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
34672         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
34673
34674         backupfile, chdir-long, fts, savedir: make safer
34675         * lib/backupfile.c (includes): Use "dirent--.h", since
34676         numbered_backup can write to stderr during readdir.
34677         * lib/savedir.c (includes): Likewise.
34678         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
34679         emulation can write to stderr on failure.
34680         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
34681         * lib/getcwd.c: Document why opendir_safer is unused.
34682         * lib/glob.c: Likewise.
34683         * lib/scandir.c: Likewise.
34684         * lib/openat-proc.c: Likewise, for open_safer.
34685         * modules/backupfile (Depends-on): Add dirent-safer.
34686         * modules/savedir (Depends-on): Likewise.
34687         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
34688         * modules/chdir-long (Depends-on): Add openat-safer.
34689
34690         openat-safer: new module
34691         * modules/openat-safer: New file.
34692         * lib/openat-safer.c: Likewise.
34693         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
34694         * lib/fcntl-safer.h (openat_safer): Declare.
34695         * lib/fcntl--.h (openat): Override.
34696         * MODULES.html.sh (File descriptor based I/O): Mention it.
34697         * lib/openat.h: Add double-inclusion guards.
34698         * lib/openat.c (includes): Only include "fcntl-safer.h", not
34699         "fcntl--.h", so we can implement openat.
34700         * modules/openat-safer-tests: New test.
34701         * tests/test-openat-safer.c: New file.
34702
34703         dirent-safer: new module
34704         * modules/dirent-safer: New file.
34705         * lib/dirent--.h: Likewise.
34706         * lib/dirent-safer.h: Likewise.
34707         * lib/opendir-safer.c: Likewise.
34708         * m4/dirent-safer.m4: Likewise.
34709         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
34710         * modules/dirent-safer-tests: New test.
34711         * tests/test-dirent-safer.c: New file.
34712         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
34713
34714         fdopendir: optimize on mingw
34715         * lib/unistd.in.h (_gl_directory_name): New prototype.
34716         * lib/fchdir.c (_gl_directory_name): Implement it.
34717         (fchdir): Use it to simplify implementation.
34718         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
34719         fchdir, when available, to avoid calling [f]chdir().
34720
34721         fdopendir: split into its own module
34722         * lib/openat.c (fdopendir): Move...
34723         * lib/fdopendir.c: ...into new file.
34724         * modules/fdopendir: New module.
34725         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
34726         * modules/openat (Depends-on): Add fdopendir.
34727         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
34728         fdopendir here.
34729         * modules/savedir (Depends-on): Only need fdopendir, not full
34730         openat.
34731         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
34732         * lib/openat.h (fdopendir): Drop prototype.
34733         * lib/dirent.in.h (fdopendir): Provide prototype.
34734         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
34735         * modules/dirent (Makefile.am): Substitute them.
34736         * MODULES.html.sh (File system functions): Mention it.
34737         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
34738         * modules/fdopendir-tests: New file.
34739         * tests/test-fdopendir.c: Likewise.
34740
34741         fchdir: use more consistent macro convention
34742         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
34743         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
34744         REPLACE_FCHDIR, rather than relying on config.h macros.
34745         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
34746         inside a single make-time REPLACE_FCHDIR block, rather than using
34747         the config.h FCHDIR_REPLACEMENT.
34748         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
34749         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
34750         Manage fstat replacement.
34751         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
34752         REPLACE_FCHDIR.
34753         * modules/sys_stat (Files): Add m4/unistd_h.m4.
34754         (Makefile.am): Substitute REPLACE_FCHDIR.
34755         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
34756         FCHDIR_REPLACEMENT.
34757         * lib/dup-safer.c (dup_safer): Likewise.
34758         * lib/dup2.c (rpl_dup2): Likewise.
34759         * lib/dup3.c (rpl_dup3): Likewise.
34760         * lib/open.c (rpl_open): Likewise.
34761
34762         fchdir: simplify error handling, and support dup3
34763         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
34764         stdbool, malloc-posix, realloc-posix.
34765         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
34766         (ensure_dirs_slot): Return false on allocation failure.
34767         (rpl_dup2): Delete.
34768         (_gl_register_dup): New function.
34769         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
34770         (_gl_register_fd): Close fd on allocation failure.
34771         * lib/fcntl.in.h (_gl_register_fd): Update signature.
34772         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
34773         prototype.
34774         (rpl_dup2_fchdir): Delete prototype.
34775         * lib/open.c (open): Update caller.
34776         * lib/dup2.c (dup2): Track fchdir metadata.
34777         * lib/dup3.c (dup3): Likewise.
34778         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
34779         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
34780
34781 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34782
34783         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
34784         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
34785         don't pass arguments to AC_OUTPUT.
34786
34787 2009-09-02  Bruno Haible  <bruno@clisp.org>
34788
34789         * modules/mkdtemp (License): Relicense under LGPLv2+.
34790         Reported by Paolo Bonzini.
34791
34792 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34793
34794         Replace uses of obsolete autoconf macros in Jim's modules.
34795         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
34796         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
34797         can evoke a warning from autoconf when run with -Wobsolete
34798         enabled.  They were declared obsolete for good reasons (see
34799         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
34800         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
34801         should not continue using the deprecated macros.
34802         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
34803         obsolete Autoconf macros with modern counterparts.
34804         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
34805         * m4/dos.m4 (gl_AC_DOS): Likewise.
34806         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
34807         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
34808         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
34809         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
34810         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
34811         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
34812         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
34813         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
34814         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
34815         Likewise.
34816         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
34817         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
34818         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
34819         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
34820         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
34821         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
34822
34823 2009-09-01  Eric Blake  <ebb9@byu.net>
34824
34825         fchdir: fix off-by-one bug in previous patch
34826         * lib/fchdir.c (rpl_fstat): Use correct bounds.
34827         (_gl_unregister_fd): Delete useless if.
34828
34829 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
34830
34831         maint.mk: sort the list of syntax-check rules
34832         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
34833         easier to get a sense of progress when the rules are run sequentially
34834         and take a long time.
34835
34836 2009-09-01  Simon Josefsson  <simon@josefsson.org>
34837
34838         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
34839         * modules/netinet_in: Likewise.
34840         * modules/sys_file: Likewise.
34841         * modules/sys_ioctl: Likewise.
34842         * modules/sys_select: Likewise.
34843         * modules/sys_socket: Likewise.
34844         * modules/sys_stat: Likewise.
34845         * modules/sys_time: Likewise.
34846         * modules/sys_times: Likewise.
34847         * modules/sys_utsname: Likewise.
34848         * modules/sys_wait: Likewise.
34849
34850 2009-09-01  Jim Meyering  <meyering@redhat.com>
34851
34852         fts: help ensure that return values are not ignored
34853         * lib/fts_.h (__GNUC_PREREQ): Define.
34854         (__attribute_warn_unused_result__): Define.
34855         (fts_children, fts_close, fts_open, fts_read): Declare with
34856         __attribute_warn_unused_result__.
34857
34858         fts: fts_close now fails also when closing a dir file descriptor fails
34859         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
34860         and propagate to caller, along with errno.
34861
34862         announce-gen: correct formatting in --help output
34863         * build-aux/announce-gen (usage): Move the one-line description in
34864         --help output "up", to where it belongs, just after Usage:.
34865
34866 2009-08-31  Eric Blake  <ebb9@byu.net>
34867
34868         fchdir: port to mingw
34869         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
34870         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
34871         opened, then use a substitute.
34872         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
34873         replacement.
34874         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
34875         (_gl_register_fd): No need to check stat if open already filters
34876         all directories.
34877         (fchdir): Fix error condition to match POSIX.
34878         * modules/fchdir (Depends-on): Add sys_stat.
34879         * doc/posix-functions/open.texi (open): Document the limitation.
34880         * modules/fchdir-tests: New file.
34881         * tests/test-fchdir.c: Likewise.
34882
34883         canonicalize: allow cross-testing from cygwin to mingw
34884         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
34885         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
34886         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
34887         Likewise.
34888         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
34889         target does not support symlinks.
34890         * tests/test-canonicalize-lgpl.sh: Likewise.
34891
34892         chown: avoid compilation warning on mingw
34893         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
34894         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
34895         mingw.
34896         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
34897         * modules/chown (Depends-on): Add errno.
34898
34899 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
34900
34901         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
34902         command.
34903
34904 2009-08-31  Jim Meyering  <meyering@redhat.com>
34905
34906         canonicalize: remove useless initialization
34907         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
34908         initialization of local, "end".
34909
34910 2009-08-30  Bruno Haible  <bruno@clisp.org>
34911
34912         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
34913         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
34914         ENOSYS.
34915
34916 2009-08-30  Bruno Haible  <bruno@clisp.org>
34917
34918         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
34919         /usr/xpg4/bin/tr when it exists.
34920         * tests/test-pipe-filter-gi1.sh: Likewise.
34921
34922 2009-08-30  Bruno Haible  <bruno@clisp.org>
34923
34924         Work around deficient /usr/bin/id program on Solaris.
34925         * tests/test-file-has-acl.sh (ID): New variable.
34926         * tests/test-set-mode-acl.sh (ID): Likewise.
34927         * tests/test-copy-acl.sh (ID): Likewise.
34928         * tests/test-copy-file.sh (ID): Likewise.
34929
34930 2009-08-30  Bruno Haible  <bruno@clisp.org>
34931
34932         New module 'xstriconveh'.
34933         * lib/xstriconveh.h: New file.
34934         * lib/xstriconveh.c: New file.
34935         * modules/xstriconveh: New file.
34936
34937 2009-08-30  Bruno Haible  <bruno@clisp.org>
34938
34939         Make it easier to use mem_cd_iconveh.
34940         * lib/striconveh.h (iconveh_t): New type.
34941         (iconveh_open, iconveh_close): New declarations.
34942         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
34943         with a single 'const iconveh_t *' argument.
34944         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
34945         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
34946         with a single 'const iconveh_t *' argument.
34947         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
34948         * tests/test-striconveh.c (main): Update.
34949         * NEWS: Mention the change.
34950
34951 2009-08-30  Bruno Haible  <bruno@clisp.org>
34952
34953         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
34954         problem.
34955
34956 2009-08-30  Bruno Haible  <bruno@clisp.org>
34957
34958         Work around iconv_open problem on Solaris.
34959         * lib/iconv_open-solaris.gperf: New file.
34960         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
34961         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
34962         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
34963         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
34964         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
34965         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
34966
34967 2009-08-29  Jim Meyering  <meyering@redhat.com>
34968
34969         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
34970         * top/maint.mk (cvs-check): Remove target; it was just an alias
34971         to the better-named vc-diff-check.
34972         (maintainer-distcheck): Remove rule.  It was used only from
34973         the (alpha/beta/major) target, and all of its commands but one
34974         were coreutils-specific.
34975         (vc-dist): Remove rule.
34976         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
34977         Run vc-diff-check, not vc-dist.
34978         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
34979
34980 2009-08-27  Bruno Haible  <bruno@clisp.org>
34981
34982         * tests/test-bitrotate.c (main): Remove test that uses a shift count
34983         of 0.
34984
34985 2009-08-27  Bruno Haible  <bruno@clisp.org>
34986
34987         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
34988         compilers.
34989         * doc/func.texi: Document the SunPRO C bug.
34990
34991 2009-08-27  Bruno Haible  <bruno@clisp.org>
34992
34993         Fix link error on Solaris.
34994         * tests/test-parse-duration.c (xstrdup): Remove function.
34995
34996 2009-08-26  Pádraig Brady  <P@draigbrady.com>
34997
34998         ignore-value: handle pointer types, too
34999         * lib/ignore-value.h (__attribute__): Remove definition.
35000         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
35001         of a more concise and more-often effective "(void) i" statement.
35002         (ignore_ptr): New function to suppress warnings from functions that
35003         return pointers, and to make it explicit that one function doesn't
35004         handle all cases.
35005
35006 2009-08-25  Bruno Haible  <bruno@clisp.org>
35007
35008         dup2: work around a Linux bug.
35009         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
35010         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
35011         * doc/posix-functions/dup2.texi: Mention the Linux bug.
35012         Reported by Simon Josefsson.
35013
35014 2009-08-25  Jim Meyering  <meyering@redhat.com>
35015
35016         libguestfs uses gnulib
35017         * users.txt: Add libguestfs.
35018
35019 2009-08-24  Eric Blake  <ebb9@byu.net>
35020
35021         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
35022         * lib/pipe2.c (includes): Add binary-io.h.
35023         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
35024
35025 2009-08-24  Bruno Haible  <bruno@clisp.org>
35026
35027         Tolerate declared but missing accept4 syscall.
35028         * lib/accept4.c (accept4): Invoke original accept4 function first, if
35029         available.
35030         * lib/sys_socket.in.h (accept4): If the function is already present,
35031         override it.
35032         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
35033         * modules/accept4 (Makefile.am): Compile accept4.c always.
35034         Reported by Paolo Bonzini and Eric Blake.
35035
35036 2009-08-23  Bruno Haible  <bruno@clisp.org>
35037
35038         New module 'accept4'.
35039         * lib/sys_socket.in.h (accept4): New declaration.
35040         * lib/accept4.c: New file.
35041         * m4/accept4.m4: New file.
35042         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
35043         GNULIB_ACCEPT4, HAVE_ACCEPT4.
35044         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
35045         HAVE_ACCEPT4.
35046         * modules/accept4: New file.
35047         * doc/glibc-functions/accept4.texi: Mention the new module.
35048
35049 2009-08-24  Jim Meyering  <meyering@redhat.com>
35050
35051         progname: also set global program_invocation_name, when possible
35052         Before this change, a libtool-enabled program that calls glibc's
35053         error function would report the program name as
35054         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
35055         * modules/progname (configure.ac): Check for a declaration of
35056         program_invocation_name.
35057         * lib/progname.c:  Include <errno.h>.
35058         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
35059         Set program_invocation_name.
35060
35061 2009-08-23  Bruno Haible  <bruno@clisp.org>
35062
35063         * lib/dup3.c: Include <string.h>.
35064
35065 2009-08-23  Bruno Haible  <bruno@clisp.org>
35066
35067         * lib/dup3.c (dup3): Test only once whether the system actually exists.
35068         * lib/pipe2.c (pipe2): Likewise.
35069         Suggested by Eric Blake.
35070
35071 2009-08-23  Bruno Haible  <bruno@clisp.org>
35072
35073         Tolerate declared but missing dup3 syscall.
35074         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
35075         * lib/unistd.in.h (dup3): If the function is already present,
35076         override it.
35077         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
35078         * modules/dup3 (Makefile.am): Compile dup3.c always.
35079         Reported by Paolo Bonzini.
35080
35081 2009-08-23  Bruno Haible  <bruno@clisp.org>
35082
35083         Tolerate declared but missing pipe2 syscall.
35084         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
35085         available.
35086         * lib/unistd.in.h (pipe2): If the function is already present,
35087         override it.
35088         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
35089         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
35090         Reported by Paolo Bonzini.
35091
35092 2009-08-23  Bruno Haible  <bruno@clisp.org>
35093
35094         * lib/pipe2.c (pipe2): Move #ifs inside function.
35095
35096 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
35097
35098         quotearg: document limitations of quote_these_too
35099         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
35100         those limitations are created.
35101         * lib/quotearg.h (set_char_quoting): Document that digits and
35102         letters that are special after backslash are not permitted.
35103         (quotearg_char): Cross-reference set_char_quoting documentation.
35104
35105 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
35106
35107         quotearg: implement custom_quoting_style
35108         * lib/quotearg.c: (struct quoting_options): Add left_quote and
35109         right_quote fields.
35110         (set_custom_quoting): New public function.
35111         (quotearg_buffer_restyled): Add left_quote and right_quote
35112         arguments, handle them very much like locale quoting, and update
35113         all uses.
35114         (quotearg_n_custom): New public function.
35115         (quotearg_n_custom_mem): New public function.
35116         (quotearg_custom): New public function.
35117         (quotearg_custom_mem): New public function.
35118         * lib/quotearg.h: Prototype and document new public functions.
35119         (enum quoting_style): For escape_quoting_style and
35120         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
35121         ignored even though they're otherwise like c_quoting_style.
35122         Add custom_quoting_style member and document with comparison to
35123         clocale_quoting_style.
35124         * tests/test-quotearg.c (custom_quotes): New array.
35125         (custom_results): New array.
35126         (main): Extend to test custom quoting.
35127
35128 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
35129
35130         quotearg: fix right quote escaping when it's in quote_these_too
35131         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
35132         quote, be sure to prepend only one backslash.
35133         * tests/test-quotearg.c (use_quote_double_quotes): New function.
35134         (main): Test it.
35135
35136 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
35137
35138         quotearg-tests: test escaping of embedded locale quotes
35139         * tests/test-quotearg.c (struct result_strings): Add member for
35140         new input.
35141         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
35142         (inputs): Add new input.
35143         (results_g): Add expected results.
35144         (flag_results): Likewise.
35145         (locale_results): Likewise.
35146         (compare_strings): Check those.
35147
35148 2009-08-23  Bruno Haible  <bruno@clisp.org>
35149
35150         Tests for module 'dup3'.
35151         * modules/dup3-tests: New file.
35152         * tests/test-dup3.c: New file.
35153
35154         New module 'dup3'.
35155         * lib/unistd.in.h (dup3): New declaration.
35156         * lib/dup3.c: New file.
35157         * m4/dup3.m4: New file.
35158         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
35159         HAVE_DUP3.
35160         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
35161         * modules/dup3: New file.
35162         * doc/glibc-functions/dup3.texi: Mention the new module.
35163
35164 2009-08-23  Bruno Haible  <bruno@clisp.org>
35165
35166         Tweak the dup2 test.
35167         * tests/test-dup2.c (main): Create the test file empty. Verify that an
35168         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
35169         the test file is still empty. Fix argument order of lseek.
35170
35171 2009-08-23  Bruno Haible  <bruno@clisp.org>
35172
35173         Avoid test link errors when the modules getopt-gnu, gettext are used.
35174         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
35175         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35176
35177 2009-08-23  Bruno Haible  <bruno@clisp.org>
35178
35179         Fix getdtablesize() on mingw.
35180         * lib/getdtablesize.c (getdtablesize): Implement differently.
35181         * lib/unistd.in.h (getdtablesize): Improve comment.
35182
35183 2009-08-23  Bruno Haible  <bruno@clisp.org>
35184
35185         New module 'mkostemp'.
35186         Based on Ulrich Drepper's 2007-08-10 change in glibc.
35187         * lib/stdlib.in.h (mksotemp): New declaration.
35188         * lib/mkostemp.c: New file, from glibc with modifications.
35189         * lib/tempname.h (GT_FILE): Remove outdated comment.
35190         (gen_tempname): Add flags argument.
35191         * lib/tempname.c (__GT_BIGFILE): Remove macro.
35192         (__GT_FILE): Map to 1.
35193         (small_open, large_open): Remove macros.
35194         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
35195         * lib/mkstemp.c (mkstemp): Update.
35196         * lib/mkdtemp.c (mkdtemp): Likewise.
35197         * m4/mkostemp.m4: New file.
35198         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
35199         HAVE_MKOSTEMP.
35200         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
35201         HAVE_MKOSTEMP.
35202         * modules/mkostemp: New file, based on modules/mkstemp.
35203         * doc/glibc-functions/mkostemp.texi: Mention the new module.
35204         * NEWS: Mention the change.
35205
35206 2009-08-23  Bruno Haible  <bruno@clisp.org>
35207
35208         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
35209         Reported by Eric Blake.
35210
35211 2009-08-23  Bruno Haible  <bruno@clisp.org>
35212
35213         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
35214         Reported by Eric Blake.
35215
35216 2009-08-23  Bruno Haible  <bruno@clisp.org>
35217
35218         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
35219         * modules/pipe2 (Depends-on): Likewise.
35220
35221 2009-08-23  Eric Blake  <ebb9@byu.net>
35222
35223         fcntl-h: add O_TTY_INIT support
35224         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
35225         * tests/test-fcntl-h.c (o): Test it.
35226         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
35227
35228         fcntl-h: rename from fcntl, in preparation for fcntl(2)
35229         * modules/fcntl: Move <fcntl.h> header replacement...
35230         * modules/fcntl-h: ...to new name, so as not to collide with
35231         like-named function.
35232         * tests/test-fcntl.c: Rename...
35233         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
35234         * modules/fcntl-tests: Rename...
35235         * modules/fcntl-h-tests: ...to this.  Update test file name.
35236         * modules/chdir-long (Depends-on): Update clients.
35237         * modules/chdir-safer (Depends-on): Likewise.
35238         * modules/fcntl-safer (Depends-on): Likewise.
35239         * modules/fts (Depends-on): Likewise.
35240         * modules/mkancesdirs (Depends-on): Likewise.
35241         * modules/mkdir-p (Depends-on): Likewise.
35242         * modules/open (Depends-on): Likewise.
35243         * modules/savewd (Depends-on): Likewise.
35244         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
35245         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
35246
35247 2009-08-22  Bruno Haible  <bruno@clisp.org>
35248
35249         * modules/binary-io (License): Relicense under LGPL.
35250         * modules/pipe2 (License): Likewise.
35251
35252 2009-08-22  Bruno Haible  <bruno@clisp.org>
35253
35254         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
35255         return value.
35256         * lib/pipe-filter-gi.c (filter_init): Likewise.
35257         Reported by Eric Blake.
35258
35259 2009-08-22  Bruno Haible  <bruno@clisp.org>
35260
35261         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
35262         * modules/pipe (Depends-on): Add pipe2.
35263
35264 2009-08-22  Bruno Haible  <bruno@clisp.org>
35265
35266         Tests for module 'pipe2'.
35267         * modules/pipe2-tests: New file.
35268         * tests/test-pipe2.c: New file.
35269
35270         New module 'pipe2'.
35271         * lib/unistd.in.h (pipe2): New declaration.
35272         * lib/pipe2.c: New file.
35273         * m4/pipe2.m4: New file.
35274         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
35275         HAVE_PIPE2.
35276         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
35277         * modules/pipe2: New file.
35278         * doc/glibc-functions/pipe2.texi: Mention the new module.
35279
35280 2009-08-22  Bruno Haible  <bruno@clisp.org>
35281
35282         Reference some new glibc functions.
35283         * doc/glibc-functions/accept4.texi: New file.
35284         * doc/glibc-functions/dup3.texi: New file.
35285         * doc/glibc-functions/mkostemp.texi: New file.
35286         * doc/glibc-functions/pipe2.texi: New file.
35287         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
35288         (Glibc sys/socket.h): Refer to accept4.
35289         (Glibc unistd.h): Refer to dup3, pipe2.
35290         Reported by Eric Blake.
35291
35292 2009-08-22  Jim Meyering  <meyering@redhat.com>
35293             Bruno Haible  <bruno@clisp.org>
35294
35295         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
35296         This makes it so packages using automake-1.11's silent-rules option
35297         can print e.g., a single "GEN    configmake.h" line, rather than
35298         the 30+ statements that perform the job.  If you want to see the
35299         actual commands, you can still run "make V=1".
35300         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
35301         so that make output is abbreviated when those variables are defined
35302         appropriately.
35303         * modules/argz: Likewise.
35304         * modules/arpa_inet: Likewise.
35305         * modules/byteswap: Likewise.
35306         * modules/configmake: Likewise.
35307         * modules/dirent: Likewise.
35308         * modules/errno: Likewise.
35309         * modules/fcntl: Likewise.
35310         * modules/float: Likewise.
35311         * modules/fnmatch: Likewise.
35312         * modules/getopt-posix: Likewise.
35313         * modules/glob: Likewise.
35314         * modules/iconv_open: Likewise.
35315         * modules/inttypes: Likewise.
35316         * modules/localcharset: Likewise.
35317         * modules/locale: Likewise.
35318         * modules/math: Likewise.
35319         * modules/netdb: Likewise.
35320         * modules/netinet_in: Likewise.
35321         * modules/poll: Likewise.
35322         * modules/posix_spawnp-tests: Likewise.
35323         * modules/sched: Likewise.
35324         * modules/search: Likewise.
35325         * modules/selinux-h: Likewise.
35326         * modules/signal: Likewise.
35327         * modules/spawn: Likewise.
35328         * modules/stdarg: Likewise.
35329         * modules/stdbool: Likewise.
35330         * modules/stddef: Likewise.
35331         * modules/stdint: Likewise.
35332         * modules/stdio: Likewise.
35333         * modules/stdlib: Likewise.
35334         * modules/string: Likewise.
35335         * modules/strings: Likewise.
35336         * modules/sys_file: Likewise.
35337         * modules/sys_ioctl: Likewise.
35338         * modules/sys_select: Likewise.
35339         * modules/sys_socket: Likewise.
35340         * modules/sys_stat: Likewise.
35341         * modules/sys_time: Likewise.
35342         * modules/sys_times: Likewise.
35343         * modules/sys_utsname: Likewise.
35344         * modules/sys_wait: Likewise.
35345         * modules/sysexits: Likewise.
35346         * modules/time: Likewise.
35347         * modules/unistd: Likewise.
35348         * modules/wchar: Likewise.
35349         * modules/wctype: Likewise.
35350
35351 2009-08-22  Jim Meyering  <meyering@redhat.com>
35352
35353         announce-gen: detect write failure
35354         * build-aux/announce-gen: Add Coda at end.
35355         Remove equivalent-but-more-verbose block at top.
35356
35357 2009-08-19  Akim Demaille  <demaille@gostai.com>
35358
35359         bootstrap: --help to stdout.
35360         * bootstrap (usage): Don't send --help to stderr.
35361         Use a here doc instead of a long string.
35362
35363 2009-08-21  Eric Blake  <ebb9@byu.net>
35364
35365         test-popen-safer: split from test-popen
35366         * tests/test-popen.c (main): Move...
35367         * tests/test-popen.h: ...into new file.
35368         * tests/test-popen-safer2.c: New file.
35369         * modules/popen-tests (Files): Add test-popen.h.
35370         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
35371         Suggested by Bruno Haible.
35372
35373         test-fcntl-safer: split from test-open
35374         * tests/test-open.c (main): Move...
35375         * tests/test-open.h: ...into new file.
35376         * tests/test-fcntl-safer.c: New file.
35377         * modules/open-tests (Files): Add test-open.h.
35378         * modules/fcntl-safer-tests: New file.
35379         Suggested by Bruno Haible.
35380
35381         test-fopen-safer: split from test-fopen
35382         * tests/test-fopen.c (main): Move...
35383         * tests/test-fopen.h: ...into new file.
35384         * tests/test-fopen-safer.c: New file.
35385         * modules/fopen-tests (Files): Add test-fopen.h.
35386         * modules/fopen-safer-tests: New file.
35387         Suggested by Bruno Haible.
35388
35389 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
35390
35391         popen-safer: test O_CLOEXEC at run-time.
35392         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
35393
35394 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
35395
35396         fcntl: move more flags to the header
35397         * lib/cloexec.c: Do not define FD_CLOEXEC here.
35398         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
35399         * lib/fcntl.in.h: Do both things here.
35400
35401 2009-08-21  Jim Meyering  <meyering@redhat.com>
35402
35403         consistently remove $@-t before redirecting to it
35404         * modules/argz: Remove $@-t and $@ before redirecting to the former.
35405         * modules/alloca-opt: Likewise.
35406         * modules/byteswap: Likewise.
35407         * modules/fnmatch: Likewise.
35408         * modules/getopt-posix: Likewise.
35409         * modules/glob: Likewise.
35410         * modules/poll: Likewise.
35411         * modules/posix_spawnp-tests: Likewise.
35412         * modules/sys_socket: Likewise.
35413         * modules/sysexits: Likewise.
35414
35415 2009-08-21  Eric Blake  <ebb9@byu.net>
35416
35417         popen: simplify access to original popen
35418         * lib/popen.c (rpl_popen): No need to worry about popen being a
35419         macro.
35420         Reported by Bruno Haible.
35421
35422 2009-08-20  Eric Blake  <ebb9@byu.net>
35423
35424         build: avoid some compiler warnings
35425         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
35426         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
35427         type.
35428         (new_exclude_segment, excluded_file_pattern_p)
35429         (excluded_file_name_p): Reduce scope.
35430         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
35431         old-style declaration.
35432
35433 2009-08-20  Simon Josefsson  <simon@josefsson.org>
35434
35435         * tests/test-exclude1.sh: Handle Windows EOL.
35436         * tests/test-exclude2.sh: Likewise.
35437         * tests/test-exclude3.sh: Likewise.
35438         * tests/test-exclude4.sh: Likewise.
35439         * tests/test-exclude5.sh: Likewise.
35440         * tests/test-exclude6.sh: Likewise.
35441         * tests/test-exclude7.sh: Likewise.
35442
35443 2009-08-19  Akim Demaille  <demaille@gostai.com>
35444
35445         bootstrap: find sha1sum when named gsha1sum.
35446         * bootstrap (find_tool): New.
35447         ($SHA1SUM): New.
35448         Use it.
35449
35450 2009-08-20  Jim Meyering  <meyering@redhat.com>
35451
35452         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
35453         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
35454         expression that converts "." in a file name to "\." in the resulting
35455         regexp.  Start with a dummy statement, so that prior shell variable
35456         definitions are expanded portably.  Reported by Simon Josefsson.
35457
35458 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
35459
35460         Fix polling for writeability of a screen buffer.
35461         * lib/poll.c: Distinguish input and screen buffers for the
35462         Win32 implementation.
35463         * lib/select.c: Likewise.
35464
35465 2009-08-19  Eric Blake  <ebb9@byu.net>
35466
35467         popen-safer: prevent popen from clobbering std descriptors
35468         * modules/popen-safer: New file.
35469         * lib/popen-safer.c: Likewise.
35470         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
35471         * lib/stdio--.h (popen): Provide override.
35472         * lib/stdio-safer.h (popen_safer): Provide declaration.
35473         * tests/test-popen.c (includes): Partially test this.
35474         * modules/popen-safer-tests: New file, for more tests.
35475         * tests/test-popen-safer.c: Likewise.
35476         * MODULES.html.sh (file stream based Input/Output): Mention it.
35477
35478         tests: test some of the *-safer modules
35479         * modules/fopen-safer (Depends-on): Add fopen.
35480         * modules/fcntl-safer (Depends-on): Add fcntl.
35481         * modules/stdlib-safer (Depends-on): Add stdlib.
35482         (configure.ac): Set indicator.
35483         * modules/unistd-safer (configure.ac): Likewise.
35484         * modules/tmpfile-safer (configure.ac): Likewise.
35485         (Depends-on): Add tmpfile.
35486         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
35487         active.
35488         * tests/test-fopen.c (includes): Test safer versions when they are
35489         in use.
35490         * tests/test-open.c (includes): Likewise.
35491
35492         popen: fix cygwin 1.5 bug when stdin closed
35493         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
35494         * modules/popen: New file.
35495         * modules/popen-tests: Likewise.
35496         * tests/test-popen.c: Likewise.
35497         * m4/popen.m4: Likewise.
35498         * lib/popen.c: Likewise.
35499         * lib/stdio.in.h (popen): New declaration.
35500         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
35501         * modules/stdio (Makefile.am): Likewise.
35502         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
35503
35504 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
35505
35506         maint.mk: give full control over update-copyright exclusions
35507         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
35508         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
35509         (update-copyright): Don't force inclusion of top-level
35510         ChangeLog.  Don't force exclusion of all COPYING files, but make
35511         them the default exclusion instead.
35512
35513 2009-08-16  Bruno Haible  <bruno@clisp.org>
35514
35515         Fix test failures on Solaris 10.
35516         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
35517         tests when Solaris iconv() is used.
35518         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
35519         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
35520         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
35521         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
35522         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
35523
35524 2009-08-16  Bruno Haible  <bruno@clisp.org>
35525
35526         Fix test failures on Solaris 10.
35527         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
35528         'tr' program and pass it as first argument.
35529         * tests/test-pipe-filter-gi1.sh: Likewise.
35530         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
35531         program as first argument.
35532         * tests/test-pipe-filter-gi1.c (main): Likewise.
35533
35534 2009-08-16  Eric Blake  <ebb9@byu.net>
35535
35536         fpurge: fix previous commits
35537         * modules/fpurge (Makefile.am): Make replacement conditional,
35538         partially reverting 2007-04-29 change; missed in previous
35539         attempt.
35540         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
35541         is missing.
35542
35543 2009-08-16  Bruno Haible  <bruno@clisp.org>
35544
35545         Clarify fpurge's effect on the file position.
35546         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
35547         * tests/test-fpurge.c (main): Make a second pass for checking the file
35548         position.
35549
35550 2009-08-16  Bruno Haible  <bruno@clisp.org>
35551
35552         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
35553         declaration of fpurge is missing.
35554         * tests/test-fpurge.c (main): Check that the file has not more contents
35555         than expected. Close the file before removing it.
35556
35557 2009-08-15  Eric Blake  <ebb9@byu.net>
35558
35559         fpurge: don't wrap working cygwin implementation
35560         * lib/fpurge.c (fpurge): Fix comment typo.
35561         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
35562         1.7 to avoid replacement.
35563         * tests/test-fpurge.c (main): Enhance test.
35564
35565 2009-08-15  Eric Blake  <ebb9@byu.net>
35566         and Jim Meyering  <meyering@redhat.com>
35567
35568         test-update-copyright: skip if perl is insufficient
35569         * tests/test-update-copyright.sh: Failure to run maintainer tool
35570         should not cause testsuite failure on cygwin 1.5.
35571
35572 2009-08-14  Eric Blake  <ebb9@byu.net>
35573
35574         doc: mention more functions added in cygwin 1.7.0
35575         * doc/posix-headers/limits.texi (limits.h): Update for recent
35576         cygwin additions.
35577         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
35578         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
35579         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
35580         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
35581         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
35582
35583 2009-08-14  Eric Blake  <ebb9@byu.net>
35584
35585         maint.mk: simplify update-copyright rule
35586         * top/maint.mk (update-copyright-local): Delete, and document how
35587         to do it in cfg.mk instead.
35588         (update-copyright-exclude-regexp): Delete, and document how to do
35589         it in .x-update-copyright instead.
35590         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
35591         exclude ChangeLog.
35592
35593 2009-08-14  Bruno Haible  <bruno@clisp.org>
35594
35595         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
35596
35597 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
35598
35599         maint.mk: support update-copyright-env
35600         * top/maint.mk (update-copyright-env): Define place-holder.
35601         (update-copyright): Expand $(update-copyright-env) before
35602         invoking update-copyright.
35603
35604 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
35605
35606         update-copyright: implement forced reformatting
35607         * build-aux/update-copyright: Implement and document
35608         UPDATE_COPYRIGHT_FORCE.
35609         * tests/test-update-copyright.sh: Test it.
35610
35611 2009-08-14  Eric Blake  <ebb9@byu.net>
35612         and Bruno Haible  <bruno@clisp.org>
35613
35614         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
35615         * tests/test-locale.c: Revert previous patch related to NULL.
35616         * tests/test-stdio.c: Likewise.
35617         * tests/test-stdlib.c: Likewise.
35618         * tests/test-string.c: Likewise.
35619         * tests/test-unistd.c: Likewise.
35620         * modules/time-tests (Depends-on): Add verify.
35621         * modules/wchar-tests (Depends-on): Likewise.
35622         * tests/test-time.c: Test for NULL compliance.
35623         * tests/test-wchar.c: Likewise.
35624         * modules/locale (Depends-on): Add stddef.
35625         * modules/stdio (Depends-on): Likewise.
35626         * modules/stdlib (Depends-on): Likewise.
35627         * modules/string (Depends-on): Likewise.
35628         * modules/time (Depends-on): Likewise.
35629         * modules/unistd (Depends-on): Likewise.
35630         * modules/wchar (Depends-on): Likewise.
35631         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
35632         * lib/stdlib.in.h (includes): Likewise.
35633         * lib/string.in.h (includes): Likewise.
35634         * lib/time.in.h (includes): Likewise.
35635         * lib/unistd.in.h (includes): Likewise.
35636         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
35637         replaced.
35638         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
35639         * m4/stddef_h.m4: New file.
35640         * modules/stddef: Likewise.
35641         * lib/stddef.in.h: Likewise.
35642         * modules/stddef-tests: Likewise.
35643         * tests/test-stddef.c: Likewise.
35644         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
35645         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
35646         * doc/posix-headers/locale.texi (locale.h): Likewise.
35647         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
35648         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
35649         * doc/posix-headers/string.texi (string.h): Likewise.
35650         * doc/posix-headers/time.texi (time.h): Likewise.
35651         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
35652         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
35653
35654 2009-08-14  Eric Blake  <ebb9@byu.net>
35655
35656         doc: improve git diff of texinfo files
35657         * .gitattributes: Add rule for *.texi files, with hint on how to
35658         use it.
35659         Copied from m4, and based on a report by Bruno Haible.
35660
35661 2009-08-14  Bruno Haible  <bruno@clisp.org>
35662
35663         Disable multithread support by default on Cygwin 1.5.x for real.
35664         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
35665
35666 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
35667
35668         update-copyright: much ado about intervals
35669         * build-aux/update-copyright: Implement and document
35670         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
35671         of copyright year intervals.
35672         Also, document UPDATE_COPYRIGHT_YEAR.
35673         * tests/test-update-copyright.sh: Test it.
35674
35675         update-copyright: convert 2-digit to 4-digit years
35676         * build-aux/update-copyright: Implement and document.
35677         * tests/test-update-copyright.sh: Update.
35678
35679 2009-08-14  Jim Meyering  <meyering@redhat.com>
35680
35681         test-exclude: avoid coreutils "make check" failure
35682         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
35683         just as in test-argmatch.c.
35684
35685 2009-08-13  Eric Blake  <ebb9@byu.net>
35686
35687         test-dup2: fix bad assumption
35688         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
35689         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
35690
35691         test-version-etc: fix CRLF portability issue
35692         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
35693         recognize \r.
35694         * tests/test-argp-version-etc-1.sh: Likewise.
35695
35696         getopt: update client modules
35697         * modules/argp (Depends-on): Use getopt-gnu.
35698         * modules/git-merge-changelog (Depends-on): Likewise.
35699         * modules/long-options (Depends-on): Likewise.
35700         * modules/xstrtol (Depends-on): Likewise.
35701
35702 2009-08-13  Simon Josefsson  <simon@josefsson.org>
35703
35704         * tests/test-version-etc.sh: Don't fail on different
35705         project/version.  Don't fail on CRLF differences.  Rewrite to use
35706         multiple -e instead of multiple sed forks, suggested by Eric Blake
35707         <ebb9@byu.net>.
35708         * tests/test-argp-version-etc-1.sh: Likewise.
35709
35710 2009-08-13  Simon Josefsson  <simon@josefsson.org>
35711
35712         * tests/test-version-etc.sh: Don't fail on different
35713         project/version.
35714
35715 2009-08-12  Bruno Haible  <bruno@clisp.org>
35716
35717         Tests for modules 'getopt-posix', 'getopt-gnu'.
35718         * modules/getopt-posix-tests: New file.
35719         * tests/test-getopt.c: New file.
35720         * tests/test-getopt.h: New file.
35721         * tests/test-getopt_long.h: New file.
35722
35723         New modules 'getopt-posix', 'getopt-gnu'.
35724         * modules/getopt-gnu: New file, renamed from modules/getopt.
35725         * modules/getopt-posix: New file.
35726         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
35727         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
35728         (gl_GETOPT): Remove macro.
35729         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
35730         Disable the test against BSD systems that declare optreset. Test
35731         against mingw bug. Test against lack of support of optional arguments
35732         on many platforms.
35733         * doc/glibc-headers/getopt.texi: Update module name and list of
35734         relevant platforms.
35735         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
35736         'getopt-gnu' and more portability problems.
35737         * NEWS: Mention the changes.
35738
35739 2009-08-12  Bruno Haible  <bruno@clisp.org>
35740
35741         Ensure that optarg etc. get declared by <unistd.h>.
35742         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
35743         AC_USE_SYSTEM_EXTENSIONS.
35744         * modules/getopt (Depends-on): Add 'extensions'.
35745
35746 2009-08-12  Bruno Haible  <bruno@clisp.org>
35747
35748         Avoid test link errors.
35749         * modules/pipe-filter-ii-tests (Makefile.am): Define
35750         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
35751         * modules/pipe-filter-gi-tests (Makefile.am): Define
35752         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
35753         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35754
35755 2009-08-12  Bruno Haible  <bruno@clisp.org>
35756
35757         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
35758         gl_GETOPT_SUBSTITUTE before.
35759         (gl_GETOPT): Use it.
35760         * m4/argp.m4 (gl_ARGP): Update.
35761         Reported by Sergey Poznyakoff.
35762
35763         * m4/getopt.m4: Reorder macros.
35764         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
35765         (gl_GETOPT_SUBSTITUTE): Remove macro.
35766
35767 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
35768
35769         Minor improvement in gitlog-to-changelog
35770
35771         * build-aux/gitlog-to-changelog: New option `--format' makes
35772         output format string configurable.
35773
35774 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
35775
35776         Optimize exclude: use hash tables for non-wildcard patterns.
35777
35778         * lib/exclude.c: Include hash.h and mbuiter.h
35779         (struct exclude_pattern, exclude_segment): New data types.
35780         (struct exclude): Rewrite.
35781         (fnmatch_pattern_has_wildcards): New function.
35782         (new_exclude_segment, free_exclude_segment): New functions.
35783         (excluded_file_pattern_p, excluded_file_name_p): New functions.
35784         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
35785         * lib/exclude.h (is_fnmatch_pattern): New prototype.
35786         * modules/exclude: Depend on hash and mbuiter.
35787
35788         * modules/exclude-tests: New file.
35789         * tests/test-exclude.c: New file.
35790         * tests/test-exclude1.sh: New file.
35791         * tests/test-exclude2.sh: New file.
35792         * tests/test-exclude3.sh: New file.
35793         * tests/test-exclude4.sh: New file.
35794         * tests/test-exclude5.sh: New file.
35795         * tests/test-exclude6.sh: New file.
35796         * tests/test-exclude7.sh: New file.
35797
35798 2009-08-12  Bruno Haible  <bruno@clisp.org>
35799
35800         Ensure that getopt() gets declared by <unistd.h>.
35801         * lib/unistd.in.h: Conditionally include getopt.h.
35802         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
35803         Set GNULIB_UNISTD_H_GETOPT.
35804         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35805         GNULIB_UNISTD_H_GETOPT.
35806         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
35807
35808 2009-08-12  Bruno Haible  <bruno@clisp.org>
35809
35810         Clarify logic.
35811         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
35812         gl_replace_getopt instead of GETOPT_H.
35813
35814 2009-08-12  Bruno Haible  <bruno@clisp.org>
35815
35816         * m4/getopt.m4: Add comments.
35817
35818 2009-08-12  Bruno Haible  <bruno@clisp.org>
35819
35820         Disable multithread support by default on Cygwin 1.5.x.
35821         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
35822         set gl_use_threads=no if not specified otherwise.
35823
35824 2009-08-11  Bruno Haible  <bruno@clisp.org>
35825
35826         Avoid compilation error on NetBSD 5.0.
35827         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
35828         * tests/test-stdio.c: Likewise.
35829         * tests/test-stdlib.c: Likewise.
35830         * tests/test-string.c: Likewise.
35831         * tests/test-unistd.c: Likewise.
35832         Reported by Greg Troxel <gdt@ir.bbn.com>
35833         at <https://savannah.gnu.org/support/?106973>.
35834
35835 2009-08-11  Bruno Haible  <bruno@clisp.org>
35836
35837         * modules/dup2-tests (Depends-on): Remove close.
35838
35839         Undo 2009-07-19 commit.
35840         * modules/acl-tests (Depends-on): Remove close.
35841         * modules/binary-io-tests (Depends-on): Likewise.
35842         * modules/closein-tests (Depends-on): Likewise.
35843         * modules/flock-tests (Depends-on): Likewise.
35844         * modules/fsync-tests (Depends-on): Likewise.
35845         * modules/lseek-tests (Depends-on): Likewise.
35846         * modules/pipe-tests (Depends-on): Likewise.
35847         * modules/posix_spawn-tests (Depends-on): Likewise.
35848         * modules/posix_spawnp-tests (Depends-on): Likewise.
35849         * modules/stat-time-tests (Depends-on): Likewise.
35850         * modules/yesno-tests (Depends-on): Likewise.
35851
35852 2009-08-10  Bruno Haible  <bruno@clisp.org>
35853
35854         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
35855
35856 2009-08-10  Bruno Haible  <bruno@clisp.org>
35857
35858         Fix a gcc warning.
35859         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
35860
35861 2009-08-10  Bruno Haible  <bruno@clisp.org>
35862
35863         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
35864         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
35865         not only the first time.
35866         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
35867         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
35868         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
35869         is 1, not only the the first time.
35870
35871 2009-08-10  Bruno Haible  <bruno@clisp.org>
35872
35873         Make it possible to use module 'gethostname' without module 'close'.
35874         * lib/unistd.in.h (close): Evoke a link error only if
35875         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
35876         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35877         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
35878         * modules/unistd (Makefile.am): Substitute
35879         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
35880         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
35881         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
35882         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
35883         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
35884         * modules/sys_ioctl (Makefile.am): Substitute
35885         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
35886         * modules/socket (configure.ac): On native Windows, set
35887         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
35888         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
35889         Reported by Sam Steingold <sds@gnu.org>.
35890
35891 2009-08-10  Bruno Haible  <bruno@clisp.org>
35892
35893         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
35894         * modules/ioctl (configure.ac): Likewise.
35895
35896 2009-08-10  Bruno Haible  <bruno@clisp.org>
35897
35898         Avoid collision between gnulib wrapper and libintl wrapper.
35899         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
35900         already defined in intl/printf.c.
35901         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
35902         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
35903
35904 2009-08-09  Bruno Haible  <bruno@clisp.org>
35905
35906         Make <sys/select.h> really self-contained, also on Solaris 10.
35907         * lib/sys_select.in.h: Include <string.h>.
35908         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
35909         Solaris 10 problem.
35910         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
35911         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
35912         Reported by Jim Meyering.
35913
35914 2009-08-09  Bruno Haible  <bruno@clisp.org>
35915
35916         Avoid warnings from 'aclocal' that are due to a use of macro name
35917         AM_XGETTEXT_OPTION that is not defined in automake.
35918         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
35919         automake.
35920         * modules/error (configure.ac): Likewise.
35921         * modules/propername (configure.ac): Likewise.
35922         * modules/vasprintf (configure.ac): Likewise.
35923         * modules/verror (configure.ac): Likewise.
35924         * modules/xprintf (configure.ac): Likewise.
35925         * modules/xvasprintf (configure.ac): Likewise.
35926
35927 2009-08-08  Bruno Haible  <bruno@clisp.org>
35928
35929         Avoid compilation error in C++ mode.
35930         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
35931         Reported by Sam Steingold <sds@gnu.org>.
35932
35933 2009-08-08  Bruno Haible  <bruno@clisp.org>
35934
35935         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
35936         for the various Unix platforms.
35937         * doc/posix-headers/limits.texi: Update platforms list regarding
35938         HOST_NAME_MAX.
35939         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35940
35941 2009-08-07  Jim Meyering  <meyering@redhat.com>
35942
35943         selinux-at: fix typo in a comment
35944         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
35945         Spotted by Paolo Bonzini.
35946
35947         selinux-at: remove redundant m4 code, add documentation
35948         * modules/selinux-at (configure.ac): Remove redundant code.
35949         LIB_SELINUX is already set via the dependent module, selinux-h.
35950         (Include): Add quotes around selinux-at.h.
35951         * lib/selinux-at.h: Add documentation.
35952         Reported by Bruno Haible in
35953         http://marc.info/?l=gnulib-bug&m=124958988300749
35954
35955 2009-08-07  Bruno Haible  <bruno@clisp.org>
35956
35957         Avoid link error on MacOS X 10.3 and 10.4.
35958         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
35959         on non-ELF systems.
35960         * lib/argp-pv.c (argp_program_version): Likewise.
35961         Reported by Simon Josefsson.
35962
35963 2009-08-07  Simon Josefsson  <simon@josefsson.org>
35964
35965         * tests/test-version-etc.sh: Use $EXEEXT.
35966
35967 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
35968
35969         update-copyright: update documentation to point to maint.mk
35970         * build-aux/update-copyright: Here.
35971
35972 2009-08-06  Jim Meyering  <meyering@redhat.com>
35973
35974         maint.mk: support update-copyright-local
35975         * top/maint.mk (update-copyright-local): Define place-holder.
35976         (update-copyright): Depend on $(update-copyright-local).
35977
35978 2009-08-06  Jim Meyering  <meyering@redhat.com>
35979
35980         selinux-at: new module
35981         Initially written for coreutils, this module will soon be
35982         used by findutils, too.
35983         * MODULES.html.sh [Misc]: Add selinux-at.
35984         * lib/selinux-at.h: New file, from coreutils.
35985         * lib/selinux-at.c: Likewise.
35986         * modules/selinux-at: Likewise.
35987         (License): Change from LGPL to GPL, since it depends
35988         on the GPL'd openat module.
35989
35990         doc: update README
35991         * README: Remove references to cogito.
35992         Remove cvs-repo-updating instructions from 2007.
35993         Don't imply that CVS is better if you have limited disk space.
35994
35995 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
35996
35997         update-copyright: support C-style comments
35998         * build-aux/update-copyright: Implement and document.
35999         * tests/test-update-copyright.sh: Test.
36000
36001 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
36002
36003         update-copyright: support omitted "(C)"
36004         * build-aux/update-copyright: Implement and document.  Also,
36005         allow variable whitespace before "(C)".
36006         * tests/test-update-copyright.sh: Test.
36007
36008 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
36009
36010         update-copyright: don't trip on non-FSF copyright statements
36011         * build-aux/update-copyright: Fix so that the first correctly
36012         formatted FSF copyright statement is recognized no matter what
36013         appears before it.  Update documentation.
36014         * tests/test-update-copyright.sh: Test that.
36015
36016 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
36017
36018         update-copyright: clean up code a little
36019         * build-aux/update-copyright: Append "_re" to the name of any
36020         variable holding a regular expression.
36021         Replace "old" and "new" with "stmt" in variable names.
36022         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
36023         handled correctly.
36024         Format code more consistently.
36025
36026 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
36027
36028         update-copyright-tests: improve portability
36029         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
36030         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
36031
36032 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
36033
36034         update-copyright: support @copyright{} and &copy;
36035         * build-aux/update-copyright: Implement and document.
36036         * tests/test-update-copyright.sh: Test.
36037
36038 2009-08-04  Jim Meyering  <meyering@redhat.com>
36039
36040         update-copyright-tests: correctly test EOL=\r\n handling
36041         * tests/test-update-copyright.sh: Put \r at the end of some lines
36042         for the dos-eol tests.  Based on a patch by Joel E. Denny.
36043
36044         maint.mk: make update-copyright exclusion list more configurable
36045         * top/maint.mk (update-copyright): Default to excluding COPYING,
36046         but allow an override, in case someone does want to update that file.
36047
36048         maint.mk: don't update copyright date in COPYING
36049         * top/maint.mk (update-copyright): Exclude COPYING.
36050
36051         maint.mk: add a copyright-updating rule
36052         * top/maint.mk (update-copyright): New rule.
36053         Derived from coreutils/Makefile.am.
36054
36055         update-copyright: rename some variables
36056         * build-aux/update-copyright: Rename a few variables for clarity.
36057         Tweak syntax.  List Joel E. Denny as coauthor.
36058
36059 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
36060
36061         update-copyright: fix bug for 2-digit last year and add tests
36062         * build-aux/update-copyright: Fix bug.
36063         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
36064         specified.
36065         * modules/update-copyright-tests: New
36066         * tests/test-update-copyright.sh: New.
36067
36068 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
36069
36070         update-copyright: handle leading tabs in line prefix
36071         * build-aux/update-copyright: Count leading tabs as 8 spaces
36072         when computing margin.  This helps with the formatting of
36073         ChangeLogs, for example.
36074         Fix documentation a little.
36075
36076 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
36077
36078         update-copyright: support EOL=\r\n
36079         * build-aux/update-copyright: Implement that.
36080
36081 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
36082
36083         update-copyright: automatically format copyright statements
36084         * build-aux/update-copyright: Implement that.
36085         Also, be a little more predictable and safer by always failing
36086         when the full copyright format is not perfectly recognized as an
36087         unbroken whole.  Discussed at
36088         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
36089         Rewrite documentation.
36090
36091 2009-08-03  Bruno Haible  <bruno@clisp.org>
36092
36093         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
36094
36095 2009-08-02  Bruno Haible  <bruno@clisp.org>
36096
36097         Tests for module 'uname'.
36098         * modules/uname-tests: New file.
36099         * tests/test-uname.c: New file.
36100
36101         New module 'uname'.
36102         * lib/uname.c: New file.
36103         * m4/uname.m4: New file.
36104         * modules/uname: New file.
36105         * doc/posix-functions/uname.texi: Mention the new module.
36106
36107 2009-08-02  Bruno Haible  <bruno@clisp.org>
36108
36109         Tests for module 'sys_utsname'.
36110         * modules/sys_utsname-tests: New file.
36111         * tests/test-sys_utsname.c: New file.
36112
36113         New module 'sys_utsname'.
36114         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
36115         * m4/sys_utsname_h.m4: New file.
36116         * modules/sys_utsname: New file.
36117         * doc/posix-headers/sys_utsname.texi: Mention the new module.
36118
36119 2009-08-02  Bruno Haible  <bruno@clisp.org>
36120
36121         Implicitly initialize the sockets library.
36122         * lib/gethostname.c: Include sockets.h.
36123         (rpl_gethostname): Invoke gl_sockets_startup.
36124         * lib/socket.c: Include sockets.h.
36125         (rpl_socket): Invoke gl_sockets_startup.
36126         * modules/gethostname (Depends-on): Add sockets.
36127         * modules/socket (Depends-on): Likewise.
36128         * tests/test-poll.c: Don't include sockets.h.
36129         (main): Don't invoke gl_sockets_startup.
36130         * tests/test-select.c: Don't include sockets.h.
36131         (main): Don't invoke gl_sockets_startup.
36132
36133 2009-08-02  Bruno Haible  <bruno@clisp.org>
36134
36135         Allow multiple calls to gl_sockets_startup.
36136         * lib/sockets.c (initialized_sockets_version): New variable.
36137         (gl_sockets_startup): Do nothing if already called for this or a higher
36138         version.
36139         (gl_sockets_cleanup): Reset initialized_sockets_version.
36140
36141 2009-08-03  Simon Josefsson  <simon@josefsson.org>
36142
36143         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
36144         different project/version.
36145
36146 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
36147             Bruno Haible  <bruno@clisp.org>
36148
36149         Tests for module 'pipe-filter-gi'.
36150         * modules/pipe-filter-gi-tests: New file.
36151         * tests/test-pipe-filter-gi1.sh: New file.
36152         * tests/test-pipe-filter-gi1.c: New file.
36153         * tests/test-pipe-filter-gi2.sh: New file.
36154         * tests/test-pipe-filter-gi2-main.c: New file.
36155         * tests/test-pipe-filter-gi2-child.c: New file.
36156
36157         New module 'pipe-filter-gi'.
36158         * lib/pipe-filter-gi.c: New file.
36159         * modules/pipe-filter-gi: New file.
36160
36161 2009-08-02  Bruno Haible  <bruno@clisp.org>
36162             Paolo Bonzini  <bonzini@gnu.org>
36163
36164         Tests for module 'pipe-filter-ii'.
36165         * modules/pipe-filter-ii-tests: New file.
36166         * tests/test-pipe-filter-ii1.sh: New file.
36167         * tests/test-pipe-filter-ii1.c: New file.
36168         * tests/test-pipe-filter-ii2.sh: New file.
36169         * tests/test-pipe-filter-ii2-main.c: New file.
36170         * tests/test-pipe-filter-ii2-child.c: New file.
36171
36172         New module 'pipe-filter-ii'.
36173         * lib/pipe-filter.h: New file.
36174         * lib/pipe-filter-ii.c: New file.
36175         * lib/pipe-filter-aux.h: New file.
36176         * modules/pipe-filter-ii: New file.
36177
36178 2009-08-02  Simon Josefsson  <simon@josefsson.org>
36179
36180         * lib/gc-libgcrypt.c: Change copyright to FSF.
36181         * lib/gc-gnulib.c: Likewise.
36182
36183 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
36184
36185         * lib/gethostname.c: Include limits.h.
36186
36187 2009-08-02  Simon Josefsson  <simon@josefsson.org>
36188             Bruno Haible  <bruno@clisp.org>
36189
36190         Ensure HOST_NAME_MAX as part of the gethostname module.
36191         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
36192         define also HOST_NAME_MAX.
36193         * tests/test-gethostname.c: Include <limits.h>.
36194         (main): Check also HOST_NAME_MAX.
36195         * doc/posix-headers/limits.texi: Document the mingw problem.
36196
36197 2009-08-02  Bruno Haible  <bruno@clisp.org>
36198
36199         * lib/gethostname.c (gethostname): Fix handling of large len argument.
36200         Add comments.
36201
36202 2009-03-31  Simon Josefsson  <simon@josefsson.org>
36203
36204         * lib/gethostname.c: Add Windows wrapper.
36205         * m4/gethostname.m4: Look for gethostname in -lws2_32.
36206         * modules/gethostname: Depend on sys_socket & errno, for also
36207         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
36208         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
36209
36210 2009-07-31  Jim Meyering  <meyering@redhat.com>
36211
36212         getloadavg: fix symbol name in comment
36213         * lib/getloadavg.c: Correct a typo I introduced when adding
36214         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
36215         Matt Kraai spotted the problem.
36216
36217 2009-07-29  Matt Kraai  <mkraai@beckman.com>
36218
36219         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
36220         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
36221         code also if ! defined N_NAME_POINTER.
36222         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
36223         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
36224         but the n_name member is a 12-byte array.
36225
36226 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
36227
36228         update-copyright: generalize comment handling
36229         * build-aux/update-copyright: Handle copyright statements
36230         within more comment styles.
36231         Document usage.
36232         Report any file with an external copyright holder or parse failure.
36233
36234 2009-07-29  Jim Meyering  <meyering@redhat.com>
36235
36236         mktime: correct setting of REPLACE_MKTIME
36237         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
36238
36239         update-copyright: new module
36240         * modules/update-copyright: New file.
36241         * build-aux/update-copyright: New file.
36242         * MODULES.html.sh (maint+release support): Add update-copyright.
36243
36244 2009-07-27  Bruno Haible  <bruno@clisp.org>
36245
36246         Fix compilation error when <ctime> is used and mktime is replaced.
36247         * lib/time.in.h (mktime): New declaration.
36248         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
36249         REPLACE_MKTIME instead of defining mktime in config.h.
36250         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
36251         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
36252         Reported by Ross McFarland <rwmcfa1@neces.com>.
36253
36254 2009-07-27  Bruno Haible  <bruno@clisp.org>
36255
36256         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
36257         Reported by Matt Kraai <mkraai@beckman.com>.
36258
36259 2009-07-25  Jim Meyering  <meyering@redhat.com>
36260
36261         maint.mk: avoid warnings about missing files
36262         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
36263         diagnostic when .prev-version does not exist.
36264         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
36265         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
36266         nonexistent cfg.mk.
36267         Suggestions from Simon Josefsson.
36268
36269 2009-07-25  Bruno Haible  <bruno@clisp.org>
36270
36271         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
36272         defined as macros. Needed on QNX 6.4.1.
36273         Reported by Matt Kraai <mkraai@beckman.com>.
36274
36275 2009-07-23  Jim Meyering  <meyering@redhat.com>
36276
36277         maint.mk: invoke "make dist" with a working value of XZ_OPT
36278         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
36279
36280 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
36281
36282         Make fseeko.c compile on QNX.
36283         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
36284
36285 2009-07-22  Peter Simons  <simons@cryp.to>
36286
36287         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
36288         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
36289         * lib/md4.h: Likewise.
36290         * lib/md5.h: Likewise.
36291         * lib/sha1.h: Likewise.
36292         * lib/sha256.h: Likewise.
36293         * lib/sha512.h: Likewise.
36294
36295         tests-sha1: don't assign literal string to 'char *' variable
36296         * tests/test-sha1.c (main): Declare locals with "const" to match
36297         attributes of the right hand side.
36298
36299 2009-07-21  Eric Blake  <ebb9@byu.net>
36300
36301         dup2: fix more mingw problems
36302         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
36303         fd to itself.
36304         * doc/posix-functions/dup2.texi (dup2): Document the bug.
36305         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
36306         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
36307         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
36308         care of mingw bugs.
36309
36310 2009-07-21  Jim Meyering  <meyering@redhat.com>
36311
36312         vc-list-files: avoid failure when /bin/sh is dash
36313         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
36314         On some Debian based systems, /bin/sh is a symlink to dash, and running
36315         this command would omit the "/" following each 'tests' prefix:
36316           dash -x build-aux/vc-list-files -C . tests
36317         That is because bash and dash work differently:
36318           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
36319           bash ok
36320           dash odd
36321
36322 2009-07-21  Eric Blake  <ebb9@byu.net>
36323
36324         dup2-tests: test previous patch
36325         * modules/dup2-tests: New file.
36326         * tests/test-dup2.c: Likewise.
36327         * tests/test-open.c (main): Avoid unspecified behavior.
36328         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
36329         test.
36330
36331         dup2: work around mingw and cygwin 1.5 bug
36332         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
36333         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
36334         * modules/unistd (Makefile.am): Substitute it.
36335         * lib/unistd.in.h (dup2): Declare the replacement.
36336         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
36337         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
36338         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
36339         * modules/execute (Depends-on): Add dup2.
36340         * modules/fseterr (Depends-on): Likewise.
36341         * modules/pipe (Depends-on): Likewise.
36342         * modules/posix_spawn-internal (Depends-on): Likewise.
36343
36344 2009-07-21  Bruno Haible  <bruno@clisp.org>
36345
36346         * modules/.gitattributes: New file.
36347
36348 2009-07-20  Bruno Haible  <bruno@clisp.org>
36349
36350         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
36351         (main): Use it.
36352
36353 2009-07-20  Eric Blake  <ebb9@byu.net>
36354
36355         test-pipe: make a bit more robust.
36356         * tests/test-pipe.c (myerr): Allow error messages regardless of
36357         what we do to stderr.
36358         (test_pipe): Rearrange to avoid deadlock.
36359         (child_main): Try a larger read, to ensure we avoided deadlock.
36360         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
36361         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
36362         if misused.
36363
36364 2009-07-19  Jim Meyering  <meyering@redhat.com>
36365
36366         fts: avoid false-positive cycle-detection
36367         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
36368         for each new command line argument.
36369
36370 2009-07-19  Bruno Haible  <bruno@clisp.org>
36371
36372         Fix build error on mingw with the modules sys_select and unistd.
36373         * modules/acl-tests (Depends-on): Add close.
36374         * modules/binary-io-tests (Depends-on): Likewise.
36375         * modules/closein-tests (Depends-on): Likewise.
36376         * modules/flock-tests (Depends-on): Likewise.
36377         * modules/fsync-tests (Depends-on): Likewise.
36378         * modules/lseek-tests (Depends-on): Likewise.
36379         * modules/pipe-tests (Depends-on): Likewise.
36380         * modules/posix_spawn-tests (Depends-on): Likewise.
36381         * modules/posix_spawnp-tests (Depends-on): Likewise.
36382         * modules/stat-time-tests (Depends-on): Likewise.
36383         * modules/yesno-tests (Depends-on): Likewise.
36384
36385 2009-07-19  Bruno Haible  <bruno@clisp.org>
36386
36387         Unify conditionals.
36388         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
36389         macros, not at the compiler macros.
36390         * lib/pipe.c: Likewise.
36391         * lib/execute.c: Likewise.
36392         * lib/spawni.c: Likewise.
36393
36394 2009-07-19  Bruno Haible  <bruno@clisp.org>
36395
36396         Fix handling of closed stdin/stdout/stderr on mingw.
36397         * lib/w32spawn.h: Include unistd.h.
36398         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
36399         file descriptor with O_NOINHERIT flag.
36400         (fd_safer_noinherit): New function, based on fd-safer.c.
36401         (dup_safer_noinherit): New function, based on dup-safer.c.
36402         (undup_safer_noinherit): New function.
36403         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
36404         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
36405         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
36406         instead of fd_safer.
36407         * tests/test-pipe.c: Include <windows.h>.
36408         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
36409         result.
36410
36411         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
36412         from main.
36413         (test_pipe): Pass an extra argument for disambiguation.
36414         (main): Invoke parent_main or child_main.
36415
36416         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
36417         consistently.
36418
36419 2009-07-18  Eric Blake  <ebb9@byu.net>
36420
36421         test-pipe: fix mingw build
36422         * tests/test-pipe.c (main): Avoid fcntl on mingw.
36423
36424 2009-07-18  Bruno Haible  <bruno@clisp.org>
36425
36426         * modules/pipe-tests (Makefile.am): Fix typo.
36427
36428 2009-07-18  Eric Blake  <ebb9@byu.net>
36429
36430         error: fix mingw build
36431         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
36432         Reported by Bruno Haible.
36433
36434         error: avoid undefined use of stdout
36435         * lib/error.c (error, error_at_line): Check that fd 1 is open
36436         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
36437         is handling faults and the close_stdout module wants to report the
36438         detection of closed stdout as an error.
36439
36440 2009-07-17  Eric Blake  <ebb9@byu.net>
36441
36442         pipe: be robust in face of closed fds
36443         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
36444         should cause child to misbehave.
36445         * modules/pipe-tests: New module.
36446         * tests/test-pipe.c: New file.
36447         * tests/test-pipe.sh: New file.
36448         Reported by Akim Demaille.
36449
36450 2009-07-14  Bruno Haible  <bruno@clisp.org>
36451
36452         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
36453         Reported by anonymous kc.
36454
36455 2009-07-07  Jim Meyering  <meyering@redhat.com>
36456
36457         maint.mk: don't look for translatable strings in *.m4 or *.mk
36458         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
36459         when searching for translatable strings.
36460
36461 2009-07-05  Jim Meyering  <meyering@redhat.com>
36462
36463         remove superfluous parentheses in STREQ definition
36464         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
36465         * lib/getugroups.c (STREQ): Likewise.
36466         * lib/fnmatch.c (STREQ): Likewise.
36467         Spotted by Bruno Haible.
36468
36469 2009-07-04  Jim Meyering  <meyering@redhat.com>
36470
36471         argv-iter: new module
36472         * MODULES.html.sh: Add argv-iter.
36473         * lib/argv-iter.c, lib/argv-iter.h: New files.
36474         * modules/argv-iter: New file.
36475         * modules/argv-iter-tests: New file.
36476         * tests/test-argv-iter.c: Test it.
36477
36478 2009-07-04  Bruno Haible  <bruno@clisp.org>
36479
36480         Fix assertion.
36481         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
36482         contains more exact copies of a given entry than file2, leave the extra
36483         copies unpaired rather than aborting.
36484         Reported by Eric Blake.
36485
36486 2009-07-02  Bruno Haible  <bruno@clisp.org>
36487
36488         Speedup git-merge-changelog for git cherry-pick.
36489         * lib/git-merge-changelog.c (struct entries_mapping): New type.
36490         (entries_mapping_get): New function, extracted from compute_mapping.
36491         (entries_mapping_reverse_get): New function.
36492         (compute_mapping): Add a 'full' argument. Return the result in a
36493         'struct entries_mapping'.
36494         (main): Update. Access the mappings through entries_mapping_get.
36495         Reported by Eric Blake.
36496
36497 2009-07-02  Bruno Haible  <bruno@clisp.org>
36498
36499         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
36500         best_i.
36501
36502 2009-07-02  Bruno Haible  <bruno@clisp.org>
36503
36504         Speed up approximate search for matching ChangeLog entries.
36505         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
36506         argument. Call fstrcmp_bounded instead of fstrcmp.
36507         (compute_mapping, try_split_merged_entry, main): Update callers.
36508
36509 2009-07-02  Bruno Haible  <bruno@clisp.org>
36510
36511         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
36512
36513 2009-06-30  Bruno Haible  <bruno@clisp.org>
36514
36515         Reduce the number of uc_is_cased calls.
36516         * lib/unicase.h (casing_suffix_context_t): Add
36517         'first_char_except_ignorable' field.
36518         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
36519         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
36520         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
36521         Update initializer.
36522         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
36523         case-ignorable characters.
36524         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
36525         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
36526         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
36527         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
36528         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
36529
36530 2009-06-30  Bruno Haible  <bruno@clisp.org>
36531
36532         Tests for module 'unicase/ignorable'.
36533         * modules/unicase/ignorable-tests: New file.
36534         * tests/unicase/test-ignorable.c: New file, generated by
36535         gen-uni-tables.
36536
36537         Tests for module 'unicase/cased'.
36538         * modules/unicase/cased-tests: New file.
36539         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
36540         * tests/unicase/test-predicate-part1.h: New file, derived from
36541         tests/unictype/test-predicate-part1.h.
36542         * tests/unicase/test-predicate-part2.h: New file, same as
36543         tests/unictype/test-predicate-part2.h.
36544
36545         Fix evaluation of "Before C" condition of FINAL_SIGMA.
36546         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
36547         (output_casing_properties): New function.
36548         (main): Call it.
36549         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
36550         * lib/unicase/cased.c: Include unictype/bitmap.h.
36551         (uc_is_cased): Define through a bitmap lookup.
36552         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
36553         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
36554         (uc_is_case_ignorable): Define through a bitmap lookup.
36555         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
36556         lib/unictype/bitmap.h.
36557         (Depends-on): Add inline. Clean up.
36558         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
36559         lib/unictype/bitmap.h.
36560         (Depends-on): Add inline. Clean up.
36561         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
36562         recognition.
36563         * tests/unicase/test-u16-tolower.c (main): Likewise.
36564         * tests/unicase/test-u32-tolower.c (main): Likewise.
36565
36566 2009-06-30  Bruno Haible  <bruno@clisp.org>
36567
36568         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
36569         * lib/unicase/u16-casemap.c: Likewise.
36570         * lib/unicase/u32-casemap.c: Likewise.
36571
36572 2009-06-29  Bruno Haible  <bruno@clisp.org>
36573
36574         Define u32_casefold as a wrapper around u32_ct_casefold.
36575         * lib/unicase/u32-casefold.c: Update.
36576         * modules/unicase/u32-casefold (Depends-on): Add
36577         unicase/u32-ct-casefold, unicase/empty-prefix-context,
36578         unicase/empty-suffix-context. Clean up.
36579
36580         Define u16_casefold as a wrapper around u16_ct_casefold.
36581         * lib/unicase/u16-casefold.c: Update.
36582         * modules/unicase/u16-casefold (Depends-on): Add
36583         unicase/u16-ct-casefold, unicase/empty-prefix-context,
36584         unicase/empty-suffix-context. Clean up.
36585
36586         Define u8_casefold as a wrapper around u8_ct_casefold.
36587         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
36588         * lib/unicase/u8-casefold.c: Update.
36589         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
36590         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
36591
36592         Define u32_totitle as a wrapper around u32_ct_totitle.
36593         * lib/unicase/u32-totitle.c: Update.
36594         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
36595         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
36596
36597         Define u16_totitle as a wrapper around u16_ct_totitle.
36598         * lib/unicase/u16-totitle.c: Update.
36599         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
36600         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
36601
36602         Define u8_totitle as a wrapper around u8_ct_totitle.
36603         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
36604         functions.
36605         (FUNC): Delegate to U_CT_TOTITLE.
36606         * lib/unicase/u8-totitle.c: Update.
36607         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
36608         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
36609
36610         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
36611         invocation.
36612         * modules/unicase/u32-tolower (Depends-on): Add
36613         unicase/empty-prefix-context, unicase/empty-suffix-context.
36614
36615         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
36616         invocation.
36617         * modules/unicase/u16-tolower (Depends-on): Add
36618         unicase/empty-prefix-context, unicase/empty-suffix-context.
36619
36620         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
36621         * modules/unicase/u8-tolower (Depends-on): Add
36622         unicase/empty-prefix-context, unicase/empty-suffix-context.
36623
36624         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
36625         invocation.
36626         * modules/unicase/u32-toupper (Depends-on): Add
36627         unicase/empty-prefix-context, unicase/empty-suffix-context.
36628
36629         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
36630         invocation.
36631         * modules/unicase/u16-toupper (Depends-on): Add
36632         unicase/empty-prefix-context, unicase/empty-suffix-context.
36633
36634         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
36635         * modules/unicase/u8-toupper (Depends-on): Add
36636         unicase/empty-prefix-context, unicase/empty-suffix-context.
36637
36638         New module 'unicase/u32-ct-casefold'.
36639         * lib/unicase/u32-ct-casefold.c: New file.
36640         * modules/unicase/u32-ct-casefold: New file.
36641
36642         New module 'unicase/u16-ct-casefold'.
36643         * lib/unicase/u16-ct-casefold.c: New file.
36644         * modules/unicase/u16-ct-casefold: New file.
36645
36646         New module 'unicase/u8-ct-casefold'.
36647         * lib/unicase/u8-ct-casefold.c: New file.
36648         * lib/unicase/u-ct-casefold.h: New file, derived from
36649         lib/unicase/u-casefold.h.
36650         * modules/unicase/u8-ct-casefold: New file.
36651
36652         New module 'unicase/u32-ct-totitle'.
36653         * lib/unicase/u32-ct-totitle.c: New file.
36654         * modules/unicase/u32-ct-totitle: New file.
36655
36656         New module 'unicase/u16-ct-totitle'.
36657         * lib/unicase/u16-ct-totitle.c: New file.
36658         * modules/unicase/u16-ct-totitle: New file.
36659
36660         New module 'unicase/u8-ct-totitle'.
36661         * lib/unicase/u8-ct-totitle.c: New file.
36662         * lib/unicase/u-ct-totitle.h: New file, derived from
36663         lib/unicase/u-totitle.h.
36664         * modules/unicase/u8-ct-totitle: New file.
36665
36666         New module 'unicase/u32-ct-tolower'.
36667         * lib/unicase/u32-ct-tolower.c: New file.
36668         * modules/unicase/u32-ct-tolower: New file.
36669
36670         New module 'unicase/u16-ct-tolower'.
36671         * lib/unicase/u16-ct-tolower.c: New file.
36672         * modules/unicase/u16-ct-tolower: New file.
36673
36674         New module 'unicase/u8-ct-tolower'.
36675         * lib/unicase/u8-ct-tolower.c: New file.
36676         * modules/unicase/u8-ct-tolower: New file.
36677
36678         New module 'unicase/u32-ct-toupper'.
36679         * lib/unicase/u32-ct-toupper.c: New file.
36680         * modules/unicase/u32-ct-toupper: New file.
36681
36682         New module 'unicase/u16-ct-toupper'.
36683         * lib/unicase/u16-ct-toupper.c: New file.
36684         * modules/unicase/u16-ct-toupper: New file.
36685
36686         New module 'unicase/u8-ct-toupper'.
36687         * lib/unicase/u8-ct-toupper.c: New file.
36688         * modules/unicase/u8-ct-toupper: New file.
36689
36690         Add context arguments to u*_casemap functions.
36691         * lib/unicase/unicasemap.h: Include unicase.h.
36692         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
36693         suffix_context arguments.
36694         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
36695         functions.
36696         (FUNC): Add prefix_context and suffix_context arguments. Use
36697         uc_is_cased and uc_is_case_ignorable.
36698         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
36699         * lib/unicase/u16-casemap.c: Likewise.
36700         * lib/unicase/u32-casemap.c: Likewise.
36701         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
36702         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
36703         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
36704         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
36705         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
36706         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
36707
36708         New module 'unicase/u32-suffix-context'.
36709         * lib/unicase/u32-suffix-context.c: New file.
36710         * modules/unicase/u32-suffix-context: New file.
36711
36712         New module 'unicase/u16-suffix-context'.
36713         * lib/unicase/u16-suffix-context.c: New file.
36714         * modules/unicase/u16-suffix-context: New file.
36715
36716         New module 'unicase/u8-suffix-context'.
36717         * lib/unicase/u8-suffix-context.c: New file.
36718         * lib/unicase/u-suffix-context.h: New file.
36719         * modules/unicase/u8-suffix-context: New file.
36720
36721         New module 'unicase/empty-suffix-context'.
36722         * lib/unicase/empty-suffix-context.c: New file.
36723         * modules/unicase/empty-suffix-context: New file.
36724
36725         New module 'unicase/u32-prefix-context'.
36726         * lib/unicase/u32-prefix-context.c: New file.
36727         * modules/unicase/u32-prefix-context: New file.
36728
36729         New module 'unicase/u16-prefix-context'.
36730         * lib/unicase/u16-prefix-context.c: New file.
36731         * modules/unicase/u16-prefix-context: New file.
36732
36733         New module 'unicase/u8-prefix-context'.
36734         * lib/unicase/u8-prefix-context.c: New file.
36735         * lib/unicase/u-prefix-context.h: New file.
36736         * lib/unicase/context.h: New file.
36737         * modules/unicase/u8-prefix-context: New file.
36738
36739         New module 'unicase/empty-prefix-context'.
36740         * lib/unicase/empty-prefix-context.c: New file.
36741         * modules/unicase/empty-prefix-context: New file.
36742
36743         New module 'unicase/ignorable'.
36744         * lib/unicase/ignorable.c: New file.
36745         * modules/unicase/ignorable: New file.
36746
36747         New module 'unicase/cased'.
36748         * lib/unicase/caseprop.h: New file.
36749         * lib/unicase/cased.c: New file.
36750         * modules/unicase/cased: New file.
36751
36752         New functions for case mapping of substrings.
36753         * lib/unicase.h (casing_prefix_context_t): New type.
36754         (unicase_empty_prefix_context): New variable.
36755         (u8_casing_prefix_context, u16_casing_prefix_context,
36756         u32_casing_prefix_context, u8_casing_prefixes_context,
36757         u16_casing_prefixes_context, u32_casing_prefixes_context): New
36758         declarations.
36759         (casing_suffix_context_t): New type.
36760         (unicase_empty_suffix_context): New variable.
36761         (u8_casing_suffix_context, u16_casing_suffix_context,
36762         u32_casing_suffix_context, u8_casing_suffixes_context,
36763         u16_casing_suffixes_context, u32_casing_suffixes_context,
36764         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
36765         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
36766         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
36767         declarations.
36768
36769 2009-06-28  Jim Meyering  <meyering@redhat.com>
36770
36771         boostrap: indent only with spaces
36772         * build-aux/bootstrap: Indent only with spaces, never TABs.
36773
36774         bootstrap: split long lines
36775         * build-aux/bootstrap: Keep line length < 80.
36776
36777         bootstrap: sync from coreutils
36778         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
36779         just as autoreconf does.  Verify a list of prerequisite
36780         package-name,version-number pairs if defined in bootstrap.conf.
36781         Refer to README-prereq, if prerequisites are not satisfied.
36782
36783 2009-06-27  Eric Blake  <ebb9@byu.net>
36784
36785         tests: add test for bogus NULL definition
36786         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
36787         * tests/test-stdlib.c: Likewise.
36788         * tests/test-string.c: Likewise.
36789         * tests/test-locale.c: Likewise.
36790         * tests/test-unistd.c: Likewise.
36791         * modules/stdio-tests (Depends-on): Add verify.
36792         * modules/stdlib-tests (Depends-on): Likewise.
36793         * modules/string-tests (Depends-on): Likewise.
36794         * modules/locale-tests (Depends-on): Likewise.
36795         * modules/unistd-tests (Depends-on): Likewise.
36796
36797 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
36798
36799         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
36800         self-explaining comment.
36801         * m4/selinux-selinux-h: Update serial.
36802         (gl_LIBSELINUX): New macro, adding a warning for missing development
36803         packages to code extracted from...
36804         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
36805         Add warning for missing development packages here, too.
36806
36807 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
36808
36809         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
36810
36811 2009-06-25  Eric Blake  <ebb9@byu.net>
36812
36813         version-etc: fix regression
36814         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
36815         gcc.
36816         (version_etc): Use it, to catch bugs with trailing NULL.
36817         * lib/version-etc.c (version_etc_arn): Delete unused argument.
36818         (version_etc_va): Fix logic bug.
36819         * modules/version-etc-tests: Add test.
36820         * tests/test-version-etc.c: New file.
36821         * tests/test-version-etc.sh: Likewise.
36822
36823 2009-06-25  Sam Steingold  <sds@gnu.org>
36824
36825         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
36826         mbtowc declaration.
36827
36828 2009-06-25  Eric Blake  <ebb9@byu.net>
36829
36830         fpurge: migrate into <stdio.h>
36831         * lib/fpurge.h: Delete...
36832         * lib/stdio.in.h (fpurge): ...and declare here, instead.
36833         * lib/fpurge.c (fpurge): Change declaring header.
36834         * modules/fpurge (Files): Drop deleted file.
36835         (Depends-on): Add stdio.
36836         (configure.ac): Set witness.
36837         * modules/stdio (Makefile.am): Support fpurge macros.
36838         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
36839         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
36840         * lib/fflush.c: Update client.
36841         * tests/test-fpurge.c: Likewise.
36842         * NEWS: Mention the change.
36843
36844 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
36845
36846         * lib/argp-version-etc.c (program_authors): Add const
36847         qualifier.
36848         * lib/version-etc.c: Fix typos in the comments.
36849         * modules/argp-version-etc: Depends on version-etc.
36850
36851 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
36852
36853         argp-version-etc: new module.
36854
36855         * lib/argp-version-etc.c: New file.
36856         * lib/argp-version-etc.h: New file.
36857         * modules/argp-version-etc: New file.
36858         * modules/argp-version-etc-tests: New file.
36859         * tests/test-argp-version-etc.c: New test.
36860         * tests/test-argp-version-etc-1.sh: New test.
36861
36862 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
36863
36864         Provide additional interfaces and documentation for version-etc
36865         module.
36866
36867         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
36868         interfaces.
36869         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
36870         prototypes.
36871
36872 2009-06-24  Bruno Haible  <bruno@clisp.org>
36873
36874         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
36875         HAVE_LIB${NAME} macro.
36876         Reported by Sam Steingold <sds@gnu.org>.
36877
36878 2009-06-23  Simon Josefsson  <simon@josefsson.org>
36879
36880         * modules/hash-tests (test_hash_LDADD): Link to libintl when
36881         needed.
36882
36883 2009-06-21  Bruno Haible  <bruno@clisp.org>
36884
36885         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
36886         work.
36887         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
36888         together with LIB${NAME}, LTLIB${NAME}.
36889         Reported by Sam Steingold <sds@gnu.org>.
36890
36891 2009-06-20  Jim Meyering  <meyering@redhat.com>
36892
36893         tests: make sc_require_test_exit_idiom more generic
36894         * top/maint.mk (Exit_witness_file): New overridable variable.
36895         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
36896         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
36897
36898 2009-06-19  Jim Meyering  <meyering@redhat.com>
36899
36900         hash: reverse order of src/dst parameters in an internal interface
36901         * lib/hash.c (transfer_entries): Reverse order of parameters to
36902         put DST before SRC.  Adjust callers.
36903
36904         tests: test-hash: avoid wholesale duplication
36905         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
36906         Instead, use a loop and add a single conditional.
36907
36908         tests: test-hash: allow seed selection via a command line argument
36909         * tests/test-hash.c (get_seed): New function.
36910         (main): Use it.
36911
36912 2009-06-19  Eric Blake  <ebb9@byu.net>
36913
36914         hash: avoid memory leak on allocation failure
36915         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
36916         failure.  Factor repeated algorithm...
36917         (transfer_entries): ...into new helper routine.
36918         (hash_delete): React to hash_rehash return value.
36919
36920         hash: reduce memory pressure in hash_rehash no-op case
36921         * lib/hash.c (next_prime): Avoid overflow.
36922         (hash_initialize): Factor bucket size computation...
36923         (compute_bucket_size): ...into new helper function.
36924         (hash_rehash): Use new function and open coding to reduce memory
36925         pressure, and avoid a memory leak in USE_OBSTACK code.
36926         Reported by Jim Meyering.
36927
36928 2009-06-18  Eric Blake  <ebb9@byu.net>
36929
36930         hash: make rotation more obvious
36931         * modules/hash (Depends-on): Add bitrotate and stdint.
36932         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
36933         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
36934         (SIZE_MAX): Rely on headers for definition.
36935         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
36936         (raw_hasher): Use rotr_sz.
36937         Suggested by Jim Meyering.
36938
36939         hash: fix memory leak in last patch
36940         * lib/hash.c (hash_rehash): Avoid memory leak.
36941
36942         hash: avoid no-op rehashing
36943         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
36944
36945         hash: provide default callback functions
36946         * lib/hash.c (raw_hasher, raw_comparator): New functions.
36947         (hash_initialize): Use them as defaults.
36948         * tests/test-hash.c (main): Test this.
36949
36950         hash: minor optimization
36951         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
36952         when possible.
36953         (hash_initialize): Document this promise.
36954         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
36955         * tests/test-hash.c (hash_compare_strings): Test this.
36956
36957 2009-06-18  Bruno Haible  <bruno@clisp.org>
36958
36959         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
36960         going to be replaced anyway.
36961
36962 2009-06-18  Bruno Haible  <bruno@clisp.org>
36963
36964         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
36965         in one place.
36966         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
36967         be replaced anyway.
36968
36969 2009-06-18  Eric Blake  <ebb9@byu.net>
36970
36971         hash: check for resize before insertion
36972         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
36973         threshold before insertion, so that a pathological hash_rehash
36974         that fills every bucket can still trigger another rehash.
36975
36976 2009-06-18  Jim Meyering  <meyering@redhat.com>
36977
36978         hash-tests: add a loop around the small tests
36979         * tests/test-hash.c (main): Repeat small tests with selected
36980         small initial table sizes.
36981
36982 2009-06-17  Eric Blake  <ebb9@byu.net>
36983
36984         hash: minor cleanups
36985         * lib/hash.h (hash_entry): Make opaque, by moving...
36986         * lib/hash.c (hash_entry): ...here.
36987         (hash_insert): Clarify restrictions on what can be inserted.
36988         (hash_get_next): Clarify when it is safe to remove an element
36989         during traversal.
36990         (check_tuning): Skip verification when tuning is known safe.
36991         (hash_initialize): Clarify restrictions on tuning.
36992
36993 2009-06-17  Jim Meyering  <jim@meyering.net>
36994         and Eric Blake  <ebb9@byu.net>
36995
36996         hash-tests: new module
36997         * modules/hash-tests: New file.
36998         * tests/test-hash.c: New file.
36999
37000 2009-06-17  Eric Blake  <ebb9@byu.net>
37001
37002         strstr-simple: document new module
37003         * MODULES.html.sh: Document new module.
37004
37005         strstr, strcasestr: replace on platforms with broken memchr
37006         * modules/strstr: Split into...
37007         * modules/strstr-simple: ...new module that does not care about
37008         performance, but does care about glibc bug.
37009         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
37010         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
37011         if platform memchr is broken, per Debian bug 521737.
37012         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
37013         memchr.
37014         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
37015         * doc/posix-functions/strstr.texi (strstr): Document the fix.
37016         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
37017         * modules/mountlist (Depends-on): Add strstr-simple.
37018         * modules/gen-uni-tables (Depends-on): Likewise.
37019         * modules/argz (Depends-on): Add strstr.
37020
37021 2009-06-17  Bruno Haible  <bruno@clisp.org>
37022
37023         * modules/posix_spawn-internal (Depends-on): Add errno.
37024
37025 2009-06-17  Bruno Haible  <bruno@clisp.org>
37026
37027         Define missing ESTALE on Interix 3.5.
37028         * lib/errno.in.h (ESTALE): Assign a value if missing.
37029         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
37030         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
37031         missing.
37032         * doc/posix-headers/errno.texi: Mention the Interix bug.
37033         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
37034
37035 2009-06-15  Eric Blake  <ebb9@byu.net>
37036
37037         memchr, memchr2: add valgrind exception
37038         * lib/memchr.valgrind: New file.
37039         * lib/memchr2.valgrind: New file.
37040         * modules/memchr (Files): Distribute valgrind file.
37041         * modules/memchr2 (Files): Likewise.
37042
37043         docs: memchr is no longer obsolete
37044         * MODULES.html.sh: Move memchr from obsolete to string.h section.
37045         * lib/string.in.h (memchr): Simplify logic.
37046
37047 2009-06-14  Jim Meyering  <meyering@redhat.com>
37048
37049         link-follow: fix the "checking..." message to not mention trailing slash
37050         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
37051         never considered trailing slashes.
37052
37053 2009-06-14  Bruno Haible  <bruno@clisp.org>
37054
37055         * m4/memchr.m4: Mention also the bug on IA-64.
37056         * doc/posix-functions/memchr.texi: Likewise.
37057
37058 2009-06-12  Eric Blake  <ebb9@byu.net>
37059
37060         memchr: detect broken x86_64 and alpha implementations
37061         * modules/memchr-tests (Depends-on): Move mmap detection...
37062         * modules/memchr (Depends-on): ...here.
37063         (configure.ac): Set indicator.
37064         * lib/string.in.h (memchr): Declare replacement.
37065         * modules/string (Makefile.am): Trigger replacement.
37066         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
37067         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
37068         bugs.
37069         * doc/posix-functions/memchr.texi (memchr): Document the bug.
37070         * modules/getpagesize (License): Relax license.
37071
37072 2009-06-11  Bruno Haible  <bruno@clisp.org>
37073
37074         * lib/idpriv.h: Add more references.
37075
37076 2009-06-08  Bruno Haible  <bruno@clisp.org>
37077
37078         Tests for module 'idpriv-droptemp'.
37079         * modules/idpriv-droptemp-tests: New file.
37080         * tests/test-idpriv-droptemp.sh: New file.
37081         * tests/test-idpriv-droptemp.su.sh: New file.
37082         * tests/test-idpriv-droptemp.c: New file.
37083
37084         New module 'idpriv-droptemp'.
37085         * lib/idpriv-droptemp.c: New file.
37086         * modules/idpriv-droptemp: New file.
37087
37088 2009-06-08  Bruno Haible  <bruno@clisp.org>
37089
37090         Tests for module 'idpriv-drop'.
37091         * modules/idpriv-drop-tests: New file.
37092         * tests/test-idpriv-drop.sh: New file.
37093         * tests/test-idpriv-drop.su.sh: New file.
37094         * tests/test-idpriv-drop.c: New file.
37095
37096         New module 'idpriv-drop'.
37097         * lib/idpriv.h: New file.
37098         * lib-idpriv-drop.c: New file.
37099         * m4/idpriv.m4: New file.
37100         * modules/idpriv-drop: New file.
37101
37102 2009-06-08  Bruno Haible  <bruno@clisp.org>
37103
37104         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
37105         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
37106         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
37107         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
37108         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
37109         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
37110         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
37111
37112 2009-06-08  Eric Blake  <ebb9@byu.net>
37113
37114         test-strstr: use memory fence, when possible
37115         * tests/test-strstr.c (main): Use memory fence, in order to be
37116         more likely to trigger Debian bug 521737.
37117         * modules/strstr-tests (Files): Pull in additional files.
37118
37119         memchr: no longer obsolete, for wider field testing
37120         * modules/memchr (Status, Notice): Delete, this module is no
37121         longer obsolete.
37122         * modules/vasnprintf (Depends-on): Add memchr.
37123
37124 2009-06-07  Jim Meyering  <meyering@redhat.com>
37125
37126         hash: declare some functions with the warn_unused_result attribute
37127         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
37128
37129 2009-06-07  Bruno Haible  <bruno@clisp.org>
37130
37131         * tests/test-alignof.c: Don't test int64_t if it does not exist.
37132         Reported by Eric Blake.
37133
37134 2009-06-06  Eric Blake  <ebb9@byu.net>
37135
37136         test-alignof: fix typo with long double
37137         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
37138         compiler error.
37139
37140 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
37141
37142         Escape non-texinfo { and }s.
37143         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
37144         markup error.
37145
37146 2009-06-04  Jim Meyering  <meyering@redhat.com>
37147
37148         gitlog-to-changelog: don't infloop on an empty commit log
37149         * build-aux/gitlog-to-changelog: Warn about an empty log message.
37150         Reported by Boris Petersen <transacid@centerim.org>.
37151
37152 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
37153
37154         version-etc: extend for packagers
37155         Add three new configure options, intended for packagers:
37156           --with-packager="packager name"
37157           --with-packager-version="packager-specific version"
37158           --with-packager-bug-reports="packager bug reporting"
37159         An example with coreutils:
37160           $ ./configure \
37161             --with-packager=Gentoo \
37162             --with-packager-bug-report=http://bugs.gentoo.org/ \
37163             --with-packager-version="patchset 1.6"
37164           $ ./src/ls --version | head -n2
37165           ls (GNU coreutils) 7.1-dirty
37166           Packaged by Gentoo (patchset 1.6)
37167         Note that the bug reporting info via --help doesn't show up because
37168         coreutils uses its own custom emit_bug_reporting_address() implementation
37169         in src/system.h.  If it didn't, it'd look like:
37170           $ ./src/ls --help | tail -n4
37171           Report bugs to <bug-coreutils@gnu.org>.
37172           Report Gentoo bugs to <http://bugs.gentoo.org/>.
37173           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
37174           General help using GNU software: <http://www.gnu.org/gethelp/>.
37175         * lib/version-etc.c: Print new information, if provided.
37176         * m4/version-etc.m4: New file.
37177         * modules/version-etc (Files): Add m4/version-etc.m4.
37178         (configure.ac): Add gl_VERSION_ETC.
37179
37180 2009-05-31  Bruno Haible  <bruno@clisp.org>
37181
37182         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
37183         and 'int64_t'.
37184         * modules/alignof-tests (Dependencies): Add stdint.
37185         Reported by Eric Blake.
37186
37187 2009-05-31  Bruno Haible  <bruno@clisp.org>
37188
37189         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
37190         restriction due to compiler bugs.
37191         Reported by Eric Blake.
37192
37193 2009-05-31  Simon Josefsson  <simon@josefsson.org>
37194             Bruno Haible  <bruno@clisp.org>
37195
37196         Fix test-alignof failure.
37197         * lib/alignof.h (alignof_slot): New macro.
37198         (alignof_type): New macro, with the same semantics as the previous
37199         'alignof'.
37200         (alignof): Alias to alignof_slot.
37201         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
37202         check that the results are usable as constant expressions.
37203
37204 2009-05-31  Bruno Haible  <bruno@clisp.org>
37205
37206         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
37207         * tests/test-memchr.c (main): Check that memchr does not read past the
37208         first occurrence of the byte.
37209         * tests/test-strstr.c (main): Update comment.
37210         Suggested by Eric Blake.
37211
37212 2009-05-30  Bruno Haible  <bruno@clisp.org>
37213
37214         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
37215         detail how to use dumpbin.
37216         Reported by David Byron <dbyron@dbyron.com>.
37217
37218 2009-06-02  Simon Josefsson  <simon@josefsson.org>
37219
37220         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
37221
37222 2009-06-02  Simon Josefsson  <simon@josefsson.org>
37223
37224         * m4/manywarnings.m4: Add GCC 4.4 warnings.
37225
37226 2009-05-28  Bruno Haible  <bruno@clisp.org>
37227
37228         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
37229         build-aux/ files.
37230
37231 2009-05-28  Simon Josefsson  <simon@josefsson.org>
37232
37233         * gnulib-tool (func_import): Transform license on build-aux/ files too.
37234
37235 2009-05-27  Simon Josefsson  <simon@josefsson.org>
37236
37237         * gnulib-tool (sed_transform_main_lib_file)
37238         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
37239         regexps.
37240
37241 2009-05-26  Simon Josefsson  <simon@josefsson.org>
37242
37243         * tests/test-strstr.c: Add another self-test.
37244         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
37245         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
37246
37247 2009-05-23  Bruno Haible  <bruno@clisp.org>
37248
37249         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
37250         change.
37251
37252 2009-05-21  Bruno Haible  <bruno@clisp.org>
37253
37254         Simplify use of mode_t varargs.
37255         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
37256         uses 'mode_t' or 'int'.
37257         * lib/openat.c (openat): Likewise.
37258         * lib/open-safer.c (open_safer): Likewise.
37259         * m4/mode_t.m4: New file.
37260         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
37261         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
37262         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
37263         * modules/open (Files): Add m4/mode_t.m4.
37264         * modules/openat (Files): Likewise.
37265         * modules/fcntl-safer (Files): Likewise.
37266         Suggested by Eric Blake.
37267
37268 2009-05-21  Pádraig Brady  <P@draigbrady.com>
37269
37270         * doc/glibc-functions/fallocate.texi: New file.
37271         * doc/gnulib.texi: Include it.
37272
37273 2009-05-21  Eric Blake  <ebb9@byu.net>
37274             Bruno Haible  <bruno@clisp.org>
37275
37276         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
37277         invocations.
37278         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
37279
37280 2009-05-21  Eric Blake  <ebb9@byu.net>
37281             Bruno Haible  <bruno@clisp.org>
37282
37283         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
37284         include_next. Fix of 2008-11-20 commit.
37285         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
37286         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
37287         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
37288         NEXT_MATH_H.
37289         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
37290         instead of NEXT_MATH_H.
37291
37292 2009-05-21  Bruno Haible  <bruno@clisp.org>
37293
37294         Avoid redefinition warnings for SIZE_MAX.
37295         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
37296         Reported by Simon Josefsson.
37297
37298 2009-05-21  Bruno Haible  <bruno@clisp.org>
37299
37300         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
37301         AC_CACHE_VAL.
37302
37303 2009-05-20  Bruno Haible  <bruno@clisp.org>
37304
37305         Make zeroptr.h work on mingw.
37306         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
37307         mprotect.
37308         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
37309         * modules/memchr2-tests (configure.ac): Likewise.
37310         * modules/memcmp-tests (configure.ac): Likewise.
37311         * modules/memmem-tests (configure.ac): Likewise.
37312         * modules/memrchr-tests (configure.ac): Likewise.
37313         Reported by Simon Josefsson.
37314
37315 2009-05-20  Simon Josefsson  <simon@josefsson.org>
37316
37317         * tests/test-glob.c: Include string.h for strcmp prototype.
37318
37319 2009-05-20  Simon Josefsson  <simon@josefsson.org>
37320
37321         * modules/getdelim (Depends-on): Add explicit stdint, although it
37322         was implicitly already pulled in via realloc-posix.
37323         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
37324
37325 2009-05-20  Simon Josefsson  <simon@josefsson.org>
37326
37327         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
37328         G. Christensen" <tgc@jupiterrise.com>.
37329         * m4/sys_socket_h.m4: Check for sa_family_t.
37330         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
37331         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
37332         * tests/test-sys_socket.c: Check that sa_family_t works.
37333
37334 2009-05-18  Eric Blake  <ebb9@byu.net>
37335
37336         maint.mk: allow gnulib_dir in VPATH build
37337         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
37338
37339 2009-05-15  Jim Meyering  <meyering@redhat.com>
37340
37341         maint.mk: Give gnulib_dir a default definition.
37342         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
37343         Thus, most packages no longer need to specify this variable in cfg.mk
37344
37345 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
37346
37347         rename.m4: fix typos that would make non-mingw cross-configure fail
37348         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
37349
37350 2009-05-13  Eric Blake  <ebb9@byu.net>
37351
37352         mmap-anon: avoid out-of-order autoconf expansion
37353         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
37354         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
37355         * modules/memchr-tests (Depends-on): Add extensions.
37356         * modules/memchr2-tests (Depends-on): Add extensions.
37357         * modules/memcmp-tests (Depends-on): Add extensions.
37358         * modules/memmem-tests (Depends-on): Add extensions.
37359         * modules/memrchr-tests (Depends-on): Add extensions.
37360
37361 2009-05-13  Bruno Haible  <bruno@clisp.org>
37362
37363         Make some tests ISO C 99 compliant.
37364         * tests/zerosize-ptr.h: New file.
37365         * tests/test-memchr.c: Include zerosize-ptr.h.
37366         (main): Use a zero-size object pointer instead of NULL.
37367         * tests/test-memchr2.c: Include zerosize-ptr.h.
37368         (main): Use a zero-size object pointer instead of NULL.
37369         * tests/test-memcmp.c: Include zerosize-ptr.h.
37370         (main): Use a zero-size object pointer instead of NULL.
37371         * tests/test-memmem.c: Include zerosize-ptr.h.
37372         (main): Use a zero-size object pointer instead of NULL.
37373         * tests/test-memrchr.c: Include zerosize-ptr.h.
37374         (main): Use a zero-size object pointer instead of NULL.
37375         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
37376         m4/mmap-anon.m4.
37377         (Depends-on): Add getpagesize.
37378         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
37379         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
37380         m4/mmap-anon.m4.
37381         (Depends-on): Add getpagesize.
37382         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
37383         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
37384         m4/mmap-anon.m4.
37385         (Depends-on): Add getpagesize.
37386         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
37387         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
37388         m4/mmap-anon.m4.
37389         (Depends-on): Add getpagesize.
37390         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
37391         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
37392         m4/mmap-anon.m4.
37393         (Depends-on): Add getpagesize.
37394         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
37395
37396 2009-05-12  Bruno Haible  <bruno@clisp.org>
37397
37398         Tests for module 'alignof'.
37399         * modules/alignof-tests: New file.
37400         * tests/test-alignof.c: New file.
37401
37402 2009-05-12  Bruno Haible  <bruno@clisp.org>
37403
37404         Fix alignof macro.
37405         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
37406         vendor compilers that are always correct.
37407
37408 2009-05-12  Bruno Haible  <bruno@clisp.org>
37409
37410         Make the MAP_ANONYMOUS detection work on HP-UX 11.
37411         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
37412         not whether its fully works.
37413
37414 2009-05-12  Bruno Haible  <bruno@clisp.org>
37415
37416         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
37417
37418 2009-05-12  Jim Meyering  <meyering@redhat.com>
37419
37420         * top/maint.mk: Adjust backslash alignment.
37421
37422 2009-05-11  Simon Josefsson  <simon@josefsson.org>
37423
37424         * top/maint.mk: Make $(srcdir)/build-aux configurable.
37425
37426 2009-05-11  Eric Blake  <ebb9@byu.net>
37427
37428         argp: avoid undefined behavior
37429         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
37430         macros.
37431
37432 2009-05-08  Simon Josefsson  <simon@josefsson.org>
37433
37434         * tests/test-vc-list-files-git.sh: Do git config of user.email and
37435         user.name to prevent git commit from complaining.
37436
37437 2009-05-10  Bruno Haible  <bruno@clisp.org>
37438
37439         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
37440         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
37441         it rewrites every file name only once.
37442         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
37443
37444 2009-05-08  Bruno Haible  <bruno@clisp.org>
37445
37446         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
37447         instead of 'max'.
37448
37449 2009-05-08  Simon Josefsson  <simon@josefsson.org>
37450
37451         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
37452         sockaddr_storage test.
37453
37454 2009-05-07  Simon Josefsson  <simon@josefsson.org>
37455
37456         * modules/sys_socket (Makefile.am): Substitute
37457         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
37458         * m4/sys_socket_h.m4: Check for sockaddr_storage.
37459         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
37460         * tests/test-sys_socket.c: Check sockaddr_storage.
37461
37462 2009-05-08  Bruno Haible  <bruno@clisp.org>
37463
37464         New module 'alignof'.
37465         * lib/alignof.h: New file.
37466         * modules/alignof: New file.
37467
37468 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
37469             Bruno Haible  <bruno@clisp.org>
37470
37471         Fix test-file-has-acl on FreeBSD.
37472         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
37473         mask is implicitly added.
37474         * tests/test-file-has-acl.c: Include <signal.h>.
37475         (main): Terminate the test after 5 seconds.
37476         * modules/acl-tests (configure.ac): Check for alarm function.
37477
37478 2009-05-04  Bruno Haible  <bruno@clisp.org>
37479
37480         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
37481         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
37482         * modules/errno (configure.ac): Drop AC_REQUIRE.
37483         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
37484         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
37485
37486 2009-05-04  Simon Josefsson  <simon@josefsson.org>
37487
37488         * modules/glob-tests: New module.
37489         * tests/test-glob.c: Add.
37490
37491 2009-05-04  Simon Josefsson  <simon@josefsson.org>
37492
37493         * modules/fnmatch-tests: New module.
37494         * tests/test-fnmatch.c: Add.
37495
37496 2009-05-04  Eric Blake  <ebb9@byu.net>
37497
37498         maint: make the new no-submodule-changes rule VPATH-safe
37499         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
37500
37501 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
37502             Bruno Haible  <bruno@clisp.org>
37503
37504         acl: Fix infinite loop on FreeBSD.
37505         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
37506         of return value from acl_get_entry.
37507         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
37508         Likewise.
37509
37510 2009-05-03  Bruno Haible  <bruno@clisp.org>
37511
37512         * lib/acl-internal.h (acl_entries): Clarify return value.
37513         * lib/acl_entries.c (acl_entries): Likewise.
37514
37515 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
37516
37517         Bug fix in acl module.
37518         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
37519
37520 2009-05-03  Bruno Haible  <bruno@clisp.org>
37521
37522         Create gperf-generated file in the source dir, not in the build dir.
37523         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
37524         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
37525         * modules/unicase/locale-language (unicase/locale-languages.h):
37526         Likewise.
37527         * modules/unicase/special-casing (unicase/special-casing-table.h):
37528         Likewise.
37529         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
37530         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
37531         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
37532         Reported by Ralf Wildenhues.
37533
37534 2009-05-03  Bruno Haible  <bruno@clisp.org>
37535
37536         * modules/fnmatch (Description, configure.ac): Taken from
37537         fnmatch-posix.
37538         * modules/fnmatch-posix: Turn into a symbolic reference to the
37539         'fnmatch' module, and deprecate.
37540         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
37541
37542 2009-05-03  Bruno Haible  <bruno@clisp.org>
37543
37544         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
37545         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
37546         Reported by Ralf Wildenhues.
37547
37548 2009-05-04  Simon Josefsson  <simon@josefsson.org>
37549
37550         * m4/fnmatch.m4: Fix fnmatch re-define.
37551
37552 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
37553
37554         priv-set: new module and tests; adapt write-any-file
37555         * lib/priv-set.c: New file.
37556         * lib/priv-set.h: New file.
37557         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
37558         * lib/write-any-file.c: Simplify by using priv-set module.
37559         * m4/priv-set.m4: New file.
37560         * modules/priv-set: New file.
37561         * modules/unlinkdir: Add dependency on priv-set module.
37562         * modules/write-any-file: Likewise.
37563
37564         Tests for module 'priv-set'.
37565         * modules/priv-set-tests: New file.
37566         * tests/test-priv-set.c: New file.
37567
37568 2009-05-03  Jim Meyering  <meyering@redhat.com>
37569             Bruno Haible  <bruno@clisp.org>
37570
37571         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
37572         use the converted UTF-8 variant of the name instead.
37573
37574 2009-05-03  Jim Meyering  <meyering@redhat.com>
37575
37576         tests: tighten some getdate tests
37577         * tests/test-getdate.c (main): Tighten tests: require equality,
37578         not just greater than.  Set TZ envvar to UTC0.
37579
37580 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
37581
37582         getdate: correctly interpret "next monday" when run on a Monday
37583         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
37584         that e.g., "next tues" (when run on a tuesday) results in a date
37585         that is one week in the future, and not today's date.
37586         I.e., add a week when the wday is the same as the current one.
37587         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
37588         and earlier by Martin Bernreuther and Jan Minář.
37589         * tests/test-getdate.c (main): Check that "next DAY" is always in
37590         the future and that "last DAY" is always in the past.
37591
37592 2009-05-02  Jim Meyering  <meyering@redhat.com>
37593
37594         build: ensure that a release build fails when a submodule is unclean
37595         * top/maint.mk (no-submodule-changes): New rule.
37596         (alpha beta major): Depend on it.
37597
37598 2009-05-02  Bruno Haible  <bruno@clisp.org>
37599
37600         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
37601         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
37602         shell variable gl_fnmatch_required to detect which variant is
37603         requested.
37604         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
37605         gl_FUNC_FNMATCH_POSIX.
37606         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
37607         exclude fnmatch-posix.
37608
37609 2009-05-02  Bruno Haible  <bruno@clisp.org>
37610
37611         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
37612         * modules/mbsrtowcs (License): Change to LGPLv2+.
37613         * modules/strnlen1 (License): Likewise.
37614         Reported by Simon Josefsson.
37615
37616 2009-05-02  Bruno Haible  <bruno@clisp.org>
37617
37618         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
37619         "cross".
37620         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
37621         gnulib-tool was called with option --source-base=lib.
37622
37623 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37624
37625         Use automake *-local hooks without commands, for extensibility.
37626         * modules/localcharset (Makefile.am): Rename install-exec-local
37627         rule to install-exec-localcharset, and make it a prerequisite of
37628         install-exec-local.  Likewise, rename the uninstall-local rule to
37629         uninstall-localcharset, and make it a prerequisite of the former.
37630
37631 2009-05-01  Bruno Haible  <bruno@clisp.org>
37632
37633         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
37634         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
37635         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
37636         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
37637         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
37638         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
37639         m4/locale-zh.m4, m4/codeset.m4.
37640
37641         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
37642         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
37643         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
37644         m4/locale-zh.m4.
37645
37646         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
37647         REPLACE_WCRTOMB if mbstate_t must be replaced.
37648         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
37649         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
37650
37651 2009-05-01  Bruno Haible  <bruno@clisp.org>
37652
37653         Avoid compiler warnings when redefining macros defined by <libintl.h>.
37654         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
37655         dngettext, dcngettext, textdomain, bindtextdomain,
37656         bind_textdomain_codeset): Undefine before redefining.
37657
37658 2009-04-30  Bruno Haible  <bruno@clisp.org>
37659
37660         Fix bug introduced on 2009-04-25.
37661         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
37662         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
37663         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
37664         is defined.
37665         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
37666         is defined.
37667         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
37668         is defined.
37669         Reported by Elbert_Pol <elbert.pol@gmail.com>.
37670
37671 2009-04-28  Bruno Haible  <bruno@clisp.org>
37672
37673         Comment tweaks.
37674         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
37675         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
37676         * lib/unicase.h (u*_casexfrm): Likewise.
37677         Reported by Paolo Bonzini.
37678
37679 2009-04-28  Bruno Haible  <bruno@clisp.org>
37680
37681         Fix a compilation error.
37682         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
37683         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
37684         Reported by Jim Meyering.
37685
37686 2009-04-27  Bruno Haible  <bruno@clisp.org>
37687
37688         New module 'libunistring'.
37689         * modules/libunistring: New file.
37690         * m4/libunistring.m4: New file.
37691         * MODULES.html.sh (Unicode string functions): Add it.
37692
37693 2009-04-27  Eric Blake  <ebb9@byu.net>
37694
37695         maint.mk: allow package-specific header to provide <config.h>
37696         * top/maint.mk (sc_require_config_h): New variable.
37697         (sc_require_config_h, sc_require_config_h_first): Use it.
37698
37699 2009-04-27  Simon Josefsson  <simon@josefsson.org>
37700
37701         * top/maint.mk (sc_avoid_if_before_free): Except
37702         useless-if-before-free script.
37703
37704 2009-04-27  Eric Blake  <ebb9@byu.net>
37705
37706         maintainer-makefile: depend on all required helper scripts
37707         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
37708         useless-if-before-free.
37709         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
37710         version, rather than assuming gnulib checkout is available.
37711         Reported by Simen Josefsson.
37712
37713 2009-04-26  Bruno Haible  <bruno@clisp.org>
37714
37715         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
37716         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
37717         "../" or "..".
37718
37719 2009-04-26  Bruno Haible  <bruno@clisp.org>
37720
37721         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
37722         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
37723         AC_LIB_HAVE_LINKFLAGS.
37724
37725 2009-04-26  Bruno Haible  <bruno@clisp.org>
37726
37727         Simplify calling convention of u*_conv_from_encoding.
37728         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
37729         u32_conv_from_encoding): Expect a resultbuf argument and return the
37730         result directly as a pointer.
37731         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
37732         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
37733         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
37734         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
37735         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
37736         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
37737         Update.
37738         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
37739         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
37740         * lib/vasnprintf.c (VASNPRINTF): Update.
37741         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
37742         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
37743         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
37744         * NEWS: Mention the change.
37745
37746 2009-04-26  Bruno Haible  <bruno@clisp.org>
37747
37748         Simplify calling convention of u*_conv_to_encoding.
37749         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
37750         u32_conv_to_encoding): Expect a resultbuf argument and return the
37751         result directly as a pointer.
37752         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
37753         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
37754         freeing scaled_offsets if mem_iconveha failed.
37755         * lib/unicase/u-casexfrm.h (FUNC): Update.
37756         * lib/uninorm/u-normxfrm.h (FUNC): Update.
37757         * lib/vasnprintf.c (VASNPRINTF): Update.
37758         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
37759         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
37760         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
37761         * NEWS: Mention the change.
37762
37763 2009-04-26  Bruno Haible  <bruno@clisp.org>
37764
37765         Avoid test failures on AIX and OSF/1.
37766         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
37767         malloc(0).
37768         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
37769         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
37770         Likewise.
37771         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
37772         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
37773         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
37774         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
37775         * doc/posix-functions/malloc.texi: Document the portability problem
37776         related to malloc(0).
37777
37778 2009-04-26  Bruno Haible  <bruno@clisp.org>
37779
37780         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
37781         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
37782         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
37783
37784 2009-04-25  Bruno Haible  <bruno@clisp.org>
37785
37786         Avoid link error when creating a namespace clean library.
37787         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
37788         as macro with arguments if already defined as an alias.
37789         * lib/signbitf.c (gl_signbitf): Don't undefine.
37790         * lib/signbitd.c (gl_signbitd): Don't undefine.
37791         * lib/signbitl.c (gl_signbitl): Don't undefine.
37792
37793 2009-04-25  Jim Meyering  <meyering@redhat.com>
37794
37795         vc-list-files: fix another quoting bug
37796         * build-aux/vc-list-files: Avoid sed backslash expansion
37797         of pathological directory names.
37798
37799 2009-04-25  Eric Blake  <ebb9@byu.net>
37800
37801         vc-list-files: fix shell quoting error
37802         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
37803         timestamp.
37804
37805 2009-04-25  Jim Meyering  <meyering@redhat.com>
37806
37807         vc-list-files: restore lost functionality with subdir argument
37808         * build-aux/vc-list-files: When given a non-"." sub-directory
37809         argument, substitute the $dir/ prefix back onto each resulting name.
37810         Otherwise, coreutils' root_tests check would fail.
37811
37812 2009-04-24  Eric Blake  <ebb9@byu.net>
37813
37814         vc-list-files: ignore git symlinks
37815         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
37816         than ls-files, to ignore git symlinks.
37817
37818         maint.mk: import improvements from m4
37819         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
37820         (move_if_change): Delete unused macro.
37821         (news-date-check, vc-diff-check): Support VPATH builds.
37822         (announcement): Likewise.  Split --bootstrap-tools list...
37823         (boostrap-tools): ...into separate list, which can be overridden
37824         in cfg.mk.
37825         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
37826         requiring dependency on useless-if-before-free module.
37827         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
37828         Support VPATH builds.
37829
37830 2009-04-24  Jim Meyering  <meyering@redhat.com>
37831
37832         maint.mk: remove coreutils-specific rules and variables
37833         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
37834         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
37835         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
37836
37837         maint.mk: remove obsolete rule
37838         * top/maint.mk (rel-check): Remove rule.
37839         (WGET, WGETFLAGS): Remove now-unused variables.
37840
37841 2009-04-24  Simon Josefsson  <simon@josefsson.org>
37842
37843         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
37844         consistency.
37845
37846         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
37847         '$(PATH_SEPARATOR)' instead of ':'.
37848
37849 2009-04-24  Simon Josefsson  <simon@josefsson.org>
37850
37851         * lib/getopt1.c (main): Use 'const' for static array.
37852
37853 2009-04-24  Simon Josefsson  <simon@josefsson.org>
37854
37855         * top/maint.mk: Sync with coreutils.
37856         * NEWS: Explain incompatibilities.
37857
37858 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37859             Bruno Haible  <bruno@clisp.org>
37860
37861         Fix cross-compilation results.
37862         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
37863         statement, as third argument of AC_TRY_RUN.
37864         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
37865         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
37866         Likewise.
37867         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
37868         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
37869         Likewise.
37870         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
37871         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
37872         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
37873
37874 2009-04-20  Bruno Haible  <bruno@clisp.org>
37875
37876         Avoid test failure on mingw.
37877         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
37878
37879 2009-04-20  Bruno Haible  <bruno@clisp.org>
37880
37881         Avoid compilation error on mingw.
37882         * modules/localename-tests (Depends-on): Add locale.
37883
37884 2009-04-19  Bruno Haible  <bruno@clisp.org>
37885
37886         Support for building a shared library on Windows platforms.
37887         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
37888         (main): Test the presence of UNINORM_NFC here.
37889         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
37890         (main): Test the presence of UNINORM_NFD here.
37891         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
37892         (main): Test the presence of UNINORM_NFKC here.
37893         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
37894         (main): Test the presence of UNINORM_NFKD here.
37895
37896 2009-04-19  Bruno Haible  <bruno@clisp.org>
37897
37898         Avoid a compiler warning.
37899         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
37900         Change type of variable 'sequence'.
37901
37902 2009-04-19  Bruno Haible  <bruno@clisp.org>
37903
37904         * modules/configmake (Makefile.am): When the contents of configmake.h
37905         does not change, arrange to preserve its modification time.
37906
37907 2009-04-17  Simon Josefsson  <simon@josefsson.org>
37908
37909         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
37910         gettext domain.
37911
37912 2009-04-16  Jim Meyering  <meyering@redhat.com>
37913
37914         useless-if-before-free: improve conversion code
37915         * build-aux/useless-if-before-free: Adjust code-in-comment to match
37916         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
37917
37918 2009-04-14  Bruno Haible  <bruno@clisp.org>
37919
37920         * modules/fcntl (Depends-on): Add extensions.
37921         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
37922
37923 2009-04-12  Ben Pfaff  <blp@gnu.org>
37924
37925         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
37926         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
37927
37928 2009-03-20  Ben Pfaff  <blp@gnu.org>
37929
37930         Make rename replace existing destinations on Windows.
37931         * m4/rename.m4: Add test for Mingw.
37932         * lib/rename.c: Add rename replacement that uses MoveFileEx with
37933         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
37934         * doc/posix-functions/rename.texi: Document.
37935
37936 2009-04-10  Bruno Haible  <bruno@clisp.org>
37937
37938         New include file "iconveh.h".
37939         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
37940         * lib/striconveh.h: Include it.
37941         (enum iconv_ilseq_handler): Remove definition.
37942         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
37943         striconveh.h.
37944         * lib/striconveha.c: Include striconveh.h.
37945         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
37946         * modules/striconveh (Files): Add lib/iconveh.h.
37947         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
37948         lib/striconveh.h.
37949
37950 2009-04-10  Bruno Haible  <bruno@clisp.org>
37951
37952         * lib/uniconv.h: Update comment.
37953
37954 2009-04-10  Bruno Haible  <bruno@clisp.org>
37955
37956         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
37957         always.
37958         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
37959         * lib/unistr/u16-mbtouc-aux.c: Likewise.
37960         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
37961         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
37962         "unistring-notinline.h", so that the function gets defined always.
37963         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
37964         * lib/unistr/u8-uctomb.c: Likewise.
37965         * lib/unistr/u16-mbtouc.c: Likewise.
37966         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
37967         * lib/unistr/u16-uctomb.c: Likewise.
37968         * lib/unistr/u32-mbtouc.c: Likewise.
37969         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
37970         * lib/unistr/u32-uctomb.c: Likewise.
37971
37972 2009-04-10  Bruno Haible  <bruno@clisp.org>
37973
37974         Mark 'utime' obsolete.
37975         * modules/utime (Status, Notice): New sections.
37976         Suggested by Jim Meyering.
37977
37978         Fix cross-compile guess for utime test.
37979         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
37980         autoconf.
37981         * doc/posix-functions/utime.texi: Give more precisions.
37982         Reported by Jan <ipif@ymail.com>.
37983
37984 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
37985
37986         filevercmp: correct today's change
37987         * lib/filevercmp.c: Also handle coreutils' test inputs.
37988         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
37989
37990         Fix regression in 'filevercmp' module. Thanks Sven Joachim
37991         for reporting it.
37992         * lib/filevercmp.c: Special handle for "", "." and "..".
37993         * tests/test-filevercmp.c: Enlarge the set suite.
37994
37995 2009-04-07  Jim Meyering  <meyering@redhat.com>
37996
37997         useless-if-before-free: show how to remove braced useless free, too
37998         * build-aux/useless-if-before-free: still only in a comment, though.
37999
38000 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
38001
38002         maint.mk: import changes to syntax-check macros from coreutils
38003         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
38004         Use them in the relevant macros.
38005
38006 2009-04-06  Bruno Haible  <bruno@clisp.org>
38007
38008         Fix unportable use of bit-fields.
38009         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
38010         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
38011         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
38012
38013 2009-04-06  Bruno Haible  <bruno@clisp.org>
38014
38015         Avoid test failures on AIX and OSF/1.
38016         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
38017         that malloc(0) = NULL.
38018         * tests/unicase/test-u8-tolower.c (check): Likewise.
38019         * tests/unicase/test-u8-totitle.c (check): Likewise.
38020         * tests/unicase/test-u8-toupper.c (check): Likewise.
38021         * tests/unicase/test-u16-casefold.c (check): Likewise.
38022         * tests/unicase/test-u16-tolower.c (check): Likewise.
38023         * tests/unicase/test-u16-totitle.c (check): Likewise.
38024         * tests/unicase/test-u16-toupper.c (check): Likewise.
38025         * tests/unicase/test-u32-casefold.c (check): Likewise.
38026         * tests/unicase/test-u32-tolower.c (check): Likewise.
38027         * tests/unicase/test-u32-totitle.c (check): Likewise.
38028         * tests/unicase/test-u32-toupper.c (check): Likewise.
38029         * tests/uninorm/test-u8-nfc.c (check): Likewise.
38030         * tests/uninorm/test-u8-nfd.c (check): Likewise.
38031         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
38032         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
38033         * tests/uninorm/test-u16-nfc.c (check): Likewise.
38034         * tests/uninorm/test-u16-nfd.c (check): Likewise.
38035         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
38036         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
38037         * tests/uninorm/test-u32-nfc.c (check): Likewise.
38038         * tests/uninorm/test-u32-nfd.c (check): Likewise.
38039         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
38040         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
38041
38042 2009-04-05  Bruno Haible  <bruno@clisp.org>
38043
38044         Work around an autoconf limitation.
38045         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
38046         comment line if it would be longer than 3 KB.
38047
38048 2009-04-05  Bruno Haible  <bruno@clisp.org>
38049
38050         Avoid test failure with libiconv-1.13.
38051         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
38052         of the expected test results.
38053
38054 2009-04-05  Bruno Haible  <bruno@clisp.org>
38055
38056         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
38057         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
38058         that it should be installed.
38059
38060 2009-04-05  Bruno Haible  <bruno@clisp.org>
38061
38062         * gnulib-tool: New option --copy-file.
38063         (func_usage): Document it.
38064         (func_dest_tmpfilename): Moved out of func_import.
38065         (func_add_file, func_update_file): New functions, extracted from
38066         func_import.
38067         (func_import): Update.
38068
38069 2009-04-05  Karl Berry  <karl@gnu.org>
38070
38071         * README: prominently mention gnulib-tool.
38072         Rearrange sections so getting the code is near the top.
38073
38074 2009-04-05  Bruno Haible  <bruno@clisp.org>
38075
38076         * lib/unicase.h: Mention u*_cmp2.
38077         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
38078         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
38079         * lib/unicase/ulc-casecmp.c: Likewise.
38080         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
38081         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
38082         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
38083         unistr/u8-cmp.
38084         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
38085         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
38086         unistr/u16-cmp.
38087         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
38088         unistr/u32-cmp.
38089
38090         * lib/uninorm.h: Mention u*_cmp2.
38091         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
38092         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
38093         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
38094         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
38095         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
38096         unistr/u8-cmp.
38097         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
38098         unistr/u16-cmp.
38099         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
38100         unistr/u32-cmp.
38101
38102         New module 'unistr/u32-cmp2'.
38103         * lib/unistr/u32-cmp2.c: New file.
38104         * modules/unistr/u32-cmp2: New file.
38105
38106         New module 'unistr/u16-cmp2'.
38107         * lib/unistr/u16-cmp2.c: New file.
38108         * modules/unistr/u16-cmp2: New file.
38109
38110         New module 'unistr/u8-cmp2'.
38111         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
38112         * lib/unistr/u8-cmp2.c: New file.
38113         * lib/unistr/u-cmp2.h: New file.
38114         * modules/unistr/u8-cmp2: New file.
38115
38116 2009-04-05  Bruno Haible  <bruno@clisp.org>
38117
38118         * lib/unictype.h (uc_property_is_valid): New macro.
38119         * tests/unictype/test-pr_byname.c (main): Use it.
38120
38121         * lib/unistr.h: Doc fixes.
38122         * lib/uniconv.h: Doc fixes.
38123         * lib/unictype.h: Doc fixes.
38124
38125 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
38126
38127         Port coreutils 7.2 to Solaris 8.
38128
38129         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
38130         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
38131         for Solaris 8.  This is a bit of a hack, as it means it's the
38132         caller's responsibility to add -lnsl if needed, but most likely it
38133         won't be needed since only getaddrinfo uses this and getaddrinfo
38134         isn't needed on Solaris 8.
38135
38136         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
38137         problem to Solaris 8 encountered with coreutils 7.2, which
38138         resulted in a message "fnmatch.c:292: warning: passing argument 4
38139         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
38140         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
38141
38142 2009-04-03  Simon Josefsson  <simon@josefsson.org>
38143
38144         * m4/ld-version-script.m4: Add FIXME comment.
38145
38146 2009-04-02  Simon Josefsson  <simon@josefsson.org>
38147
38148         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
38149         SOVERSION variable.
38150
38151 2009-04-02  Bruno Haible  <bruno@clisp.org>
38152
38153         * Makefile (info, html, dvi, pdf): Combine the rules.
38154         Suggested by Jim Meyering.
38155
38156 2009-04-01  Bruno Haible  <bruno@clisp.org>
38157
38158         * Makefile (info, html, dvi, pdf): New targets.
38159         Reported by Reuben Thomas <rrt@sc3d.org>.
38160
38161 2009-04-01  Bruno Haible  <bruno@clisp.org>
38162
38163         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
38164         can be put into PATH.
38165         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
38166
38167 2009-04-01  Bruno Haible  <bruno@clisp.org>
38168
38169         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
38170
38171 2009-04-01  Bruno Haible  <bruno@clisp.org>
38172
38173         Rename module 'visibility'.
38174         * modules/lib-symbol-visibility: Renamed from modules/visibility.
38175         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
38176         * doc/gnulib.texi: Update.
38177         * MODULES.html.sh (Misc): Update.
38178         * NEWS: Mention the change.
38179
38180 2009-04-01  Simon Josefsson  <simon@josefsson.org>
38181
38182         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
38183         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
38184         Eric Blake <ebb9@byu.net> for review.
38185         * MODULES.html.sh: Add lib-msvc-compat.
38186         * doc/gnulib.texi: Link to new section.
38187         * m4/ld-output-def.m4: New file.
38188         * doc/ld-output-def.texi: New file.
38189
38190 2009-04-01  Simon Josefsson  <simon@josefsson.org>
38191
38192         Rename ld-version-script to lib-symbol-versions.  Suggested by
38193         Bruno Haible <bruno@clisp.org>.
38194         * modules/ld-version-script: Renamed to lib-symbol-versions.
38195         * doc/ld-version-script.texi: Fix module name.
38196         * MODULES.html.sh: Add lib-symbol-versions.
38197
38198 2009-03-31  Simon Josefsson  <simon@josefsson.org>
38199
38200         * modules/u64-tests: New file.
38201         * tests/test-u64.c: New file.
38202
38203 2009-03-04  Simon Josefsson  <simon@josefsson.org>
38204
38205         * MODULES.html.sh: Mention u64.
38206         * modules/u64: New module.
38207         * modules/crypto/sha512: Depend on u64 module instead of providing
38208         u64.h.
38209
38210 2009-03-27  Eric Blake  <ebb9@byu.net>
38211
38212         test-strerror: make debugging EAI_SYSTEM easier
38213         * modules/getaddrinfo-tests (Depends-on): Add strerror.
38214         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
38215         failure was EAI_SYSTEM.
38216
38217 2009-03-25  Bruno Haible  <bruno@clisp.org>
38218
38219         Fix a problem with --enable-relocatable on Solaris 7.
38220         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
38221         since 2008-02-24.
38222
38223 2009-03-25  Eric Blake  <ebb9@byu.net>
38224
38225         test-sockets: avoid gcc warning
38226         * tests/test-sockets.c (main): Silence compiler warning.
38227
38228 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
38229
38230         New modules nproc, pthread, contributed by Glen Lenker.
38231
38232         * MODULES.html.sh: Add pthread, nproc.
38233         * lib/nproc.c: New file.
38234         * lib/nproc.h: New file.
38235         * lib/pthread.in.h: New file.
38236         * m4/pthread.m4: New file.
38237         * modules/nproc: New file.
38238         * modules/pthread: New file.
38239
38240 2009-03-24  Simon Josefsson  <simon@josefsson.org>
38241
38242         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
38243         New variable.
38244
38245 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
38246
38247         filevercmp: handle simple~ and numbered.~3~ backup suffixes
38248         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
38249         * tests/test-filevercmp.c: Add tests for backup suffixes.
38250
38251 2009-03-24  Simon Josefsson  <simon@josefsson.org>
38252
38253         * modules/stdlib (Depends-on): Add stdint, needed when defining
38254         struct random_data on, for example, HP-UX 10.20.  Reported by
38255         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38256
38257 2009-03-24  Simon Josefsson  <simon@josefsson.org>
38258
38259         * lib/readline.c (readline): Call fflush on stdout after printing
38260         prompt.
38261
38262 2009-03-20  Bruno Haible  <bruno@clisp.org>
38263
38264         Remove dependency from 'close' module to -lws2_32 on native Windows.
38265         * lib/close-hook.h: New file.
38266         * lib/close-hook.c: New file.
38267         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
38268         w32sock.h.
38269         (_gl_close_fd_maybe_socket): Remove function.
38270         (rpl_close): Invoke execute_all_close_hooks instead of
38271         _gl_close_fd_maybe_socket.
38272         * lib/sockets.c: Include close-hook.h, w32sock.h.
38273         (close_fd_maybe_socket): New function, essentially from lib/close.c.
38274         (close_sockets_hook): New variable.
38275         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
38276         (gl_sockets_cleanup): Unregister it.
38277         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
38278         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
38279         * modules/close-hook: New file.
38280         * modules/close (Files): Remove lib/w32sock.h.
38281         (Depends-on): Add close-hook.
38282         (Link): Remove section.
38283         * modules/sockets (Files): Add lib/w32sock.h.
38284         (Depends-on): Add close-hook.
38285         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
38286         invocation.
38287         * NEWS: Mention that LIB_CLOSE is gone.
38288
38289 2009-03-23  Eric Blake  <ebb9@byu.net>
38290
38291         signal-tests: test previous patch
38292         * tests/test-signal.c: New file.
38293         * modules/signal-tests: Likewise.
38294
38295         signal.h: always support 'volatile sig_atomic_t'
38296         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
38297         (gl_SIGNAL_H_DEFAULTS): Add a default.
38298         * modules/signal (Makefile.am): Substitute if needed.
38299         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
38300         users can blindly add volatile.
38301         * doc/posix-headers/signal.texi (signal.h): Document it.
38302         Reported by Matthew Woehlke.
38303
38304 2009-03-23  Jim Meyering  <meyering@redhat.com>
38305
38306         pathmax: PATH_MAX: use pathconf only when available
38307         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
38308         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
38309         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
38310         This avoids a link failure in a PSP cross-compilation environment
38311         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
38312
38313         * lib/vasnprintf.c (divide): Fix typo in comment.
38314
38315 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38316
38317         * gnulib-tool (func_filter_filelist): Fix comment.
38318
38319 2009-03-20  Bruno Haible  <bruno@clisp.org>
38320
38321         Make sockets.h self-contained.
38322         * lib/sockets.c: Include sockets.h first.
38323         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
38324
38325 2009-03-19  Eric Blake  <ebb9@byu.net>
38326
38327         doc: mention more functions added in cygwin 1.7.0
38328         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
38329         addition.
38330         * doc/posix-functions/log2f.texi: Likewise.
38331
38332 2009-03-19  Jim Meyering  <meyering@redhat.com>
38333
38334         fsusage: avoid syntax error due to statement-before-declaration
38335         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
38336         after all declarations.  Reported by Matthew Woehlke in
38337         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
38338
38339 2009-03-18  Eric Blake  <ebb9@byu.net>
38340
38341         build-aux/compile: sync from automake
38342         * build-aux/compile: New file, from automake.
38343         * config/srclist.txt: Mention build-aux/compile.
38344
38345 2009-03-17  Bruno Haible  <bruno@clisp.org>
38346
38347         * lib/git-merge-changelog.c: Fix typo in comment.
38348         Reported by Reuben Thomas <rrt@sc3d.org>.
38349
38350 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
38351
38352         * m4/regex.m4: update and improve help for
38353         --without-included-regex.
38354
38355 2009-03-17  Simon Josefsson  <simon@josefsson.org>
38356
38357         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
38358         failure on missing include files.
38359
38360 2009-03-17  Eric Blake  <ebb9@byu.net>
38361
38362         doc: mention more functions added in cygwin 1.7.0
38363         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
38364         addition.
38365         * doc/posix-functions/fwscanf.texi: Likewise.
38366         * doc/posix-functions/swprintf.texi: Likewise.
38367         * doc/posix-functions/swscanf.texi: Likewise.
38368         * doc/posix-functions/vfwprintf.texi: Likewise.
38369         * doc/posix-functions/vfwscanf.texi: Likewise.
38370         * doc/posix-functions/vswprintf.texi: Likewise.
38371         * doc/posix-functions/vswscanf.texi: Likewise.
38372         * doc/posix-functions/vwprintf.texi: Likewise.
38373         * doc/posix-functions/vwscanf.texi: Likewise.
38374         * doc/posix-functions/wcscasecmp.texi: Likewise.
38375         * doc/posix-functions/wcsdup.texi: Likewise.
38376         * doc/posix-functions/wcsftime.texi: Likewise.
38377         * doc/posix-functions/wcsncasecmp.texi: Likewise.
38378         * doc/posix-functions/wprintf.texi: Likewise.
38379         * doc/posix-functions/wscanf.texi: Likewise.
38380         * doc/glibc-functions/gethostbyname2.texi: Likewise.
38381
38382 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38383
38384         maint.mk: really add $(AM_MAKEFLAGS)
38385         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
38386         was inadvertently omitted in the last commit.
38387         Spotted by Bruno Haible.
38388
38389         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
38390         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
38391         $(AM_MAKEFLAGS)' rather than plain `make'.
38392
38393         gnulib-tool: execute $MAKE not make
38394         * gnulib-tool: Default $MAKE to 'make'.
38395         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
38396         than make.  Initialize $MAKE in the do-autobuild script.
38397
38398         gnulib-tool: use $MAKE not make in generated files
38399         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
38400         make, in generated files.  Initialize $MAKE in the do-autobuild
38401         script.
38402
38403         * top/GNUmakefile (_have-git-version-gen): Fix typo.
38404
38405         GNUmakefile: disable parallelism only for multiple, recursive targets
38406         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
38407         additions in the Makefile.
38408         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
38409         by Automake.
38410         (.NOTPARALLEL): Only disable parallel builds if multiple targets
38411         are listed on the command line and at least one of them is
38412         listed in $(ALL_RECURSIVE_TARGETS).
38413
38414 2009-03-14  Bruno Haible  <bruno@clisp.org>
38415
38416         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
38417         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
38418         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
38419         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
38420         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
38421         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
38422         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
38423         unistr/u8-uctomb.
38424         * modules/unistr/u8-strchr (Depends-on): Likewise.
38425         * modules/unistr/u8-strrchr (Depends-on): Likewise.
38426         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
38427         unistr/u16-uctomb.
38428         * modules/unistr/u16-strchr (Depends-on): Likewise.
38429         * modules/unistr/u16-strrchr (Depends-on): Likewise.
38430
38431 2009-03-12  Bruno Haible  <bruno@clisp.org>
38432
38433         Work around select() bug on Interix 3.5.
38434         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
38435         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
38436         * m4/select.m4: New file.
38437         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
38438         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
38439         * modules/select (Files): Add m4/select.m4.
38440         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
38441         * modules/nanosleep (Depends-on): Add select.
38442         * modules/poll (Depends-on): Likewise.
38443         * doc/posix-functions/select.texi: Mention the Interix bug.
38444         Reported by Markus Duft <mduft@gentoo.org>.
38445
38446         * lib/select.c: Renamed from lib/winsock-select.c.
38447         * modules/select (Files): Add lib/select.c, remove
38448         lib/winsock-select.c.
38449         (configure.ac): Update.
38450
38451 2009-03-12  Jim Meyering  <meyering@redhat.com>
38452
38453         avoid gcc warnings about unused macro definitions
38454         * lib/readtokens.c (STREQ): Remove unused definition.
38455         * lib/xmalloc.c (SIZE_MAX): Likewise.
38456         * lib/openat-die.c (N_): Likewise.
38457         * lib/mountlist.c (SIZE_MAX): Remove definition.
38458         Instead, include <stdint.h>.
38459         * lib/readutmp.c: Likewise.
38460         * modules/readutmp (Depends-on): Add stdint.
38461         * modules/mountlist (Depends-on): Add stdint.
38462         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
38463
38464 2009-03-10  Bruno Haible  <bruno@clisp.org>
38465
38466         Tests for module 'mbmemcasecoll'.
38467         * modules/mbmemcasecoll-tests: New file.
38468         * tests/test-mbmemcasecoll1.sh: New file.
38469         * tests/test-mbmemcasecoll2.sh: New file.
38470         * tests/test-mbmemcasecoll3.sh: New file.
38471         * tests/test-mbmemcasecoll.c: New file.
38472
38473         New module 'mbmemcasecoll'.
38474         * lib/mbmemcasecoll.h: New file.
38475         * lib/mbmemcasecoll.c: New file.
38476         * modules/mbmemcasecoll: New file.
38477
38478         * tests/test-mbmemcasecmp.h: New file, extracted from
38479         tests/test-mbmemcasecmp.c.
38480         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
38481         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
38482         (main): Update.
38483         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
38484
38485 2009-03-09  Bruno Haible  <bruno@clisp.org>
38486
38487         Tests for module 'mbmemcasecmp'.
38488         * modules/mbmemcasecmp-tests: New file.
38489         * tests/test-mbmemcasecmp1.sh: New file.
38490         * tests/test-mbmemcasecmp2.sh: New file.
38491         * tests/test-mbmemcasecmp3.sh: New file.
38492         * tests/test-mbmemcasecmp.c: New file.
38493
38494         New module 'mbmemcasecmp'.
38495         * lib/mbmemcasecmp.h: New file.
38496         * lib/mbmemcasecmp.c: New file.
38497         * modules/mbmemcasecmp: New file.
38498
38499 2009-03-09  Bruno Haible  <bruno@clisp.org>
38500
38501         Tests for module 'unicase/ulc-casecoll'.
38502         * modules/unicase/ulc-casecoll-tests: New file.
38503         * tests/unicase/test-ulc-casecoll1.sh: New file.
38504         * tests/unicase/test-ulc-casecoll2.sh: New file.
38505         * tests/unicase/test-ulc-casecoll.c: New file.
38506
38507         New module 'unicase/ulc-casecoll'.
38508         * lib/unicase.h (ulc_casecoll): New declaration.
38509         * lib/unicase/ulc-casecoll.c: New file.
38510         * modules/unicase/ulc-casecoll: New file.
38511
38512         New module 'unicase/ulc-casexfrm'.
38513         * lib/unicase.h (ulc_casexfrm): New declaration.
38514         * lib/unicase/ulc-casexfrm.c: New file.
38515         * modules/unicase/ulc-casexfrm: New file.
38516
38517 2009-03-09  Bruno Haible  <bruno@clisp.org>
38518
38519         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
38520         invocations.
38521
38522         * m4/mbscasecmp.m4: Remove file.
38523         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
38524         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
38525
38526         * m4/mbscasestr.m4: Remove file.
38527         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
38528         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
38529
38530         * m4/mbschr.m4: Remove file.
38531         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
38532         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
38533
38534         * m4/mbscspn.m4: Remove file.
38535         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
38536         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
38537
38538         * m4/mbslen.m4: Remove file.
38539         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
38540         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
38541
38542         * m4/mbsncasecmp.m4: Remove file.
38543         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
38544         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
38545
38546         * m4/mbsnlen.m4: Remove file.
38547         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
38548         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
38549
38550         * m4/mbspbrk.m4: Remove file.
38551         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
38552         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
38553
38554         * m4/mbspcasecmp.m4: Remove file.
38555         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
38556         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
38557
38558         * m4/mbsrchr.m4: Remove file.
38559         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
38560         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
38561
38562         * m4/mbssep.m4: Remove file.
38563         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
38564         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
38565
38566         * m4/mbsspn.m4: Remove file.
38567         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
38568         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
38569
38570         * m4/mbsstr.m4: Remove file.
38571         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
38572         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
38573
38574         * m4/mbstok_r.m4: Remove file.
38575         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
38576         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
38577
38578         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
38579
38580         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
38581         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
38582
38583         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
38584
38585 2009-03-08  Bruno Haible  <bruno@clisp.org>
38586
38587         Tests for module 'unicase/ulc-casecmp'.
38588         * modules/unicase/ulc-casecmp-tests: New file.
38589         * tests/unicase/test-ulc-casecmp1.sh: New file.
38590         * tests/unicase/test-ulc-casecmp2.sh: New file.
38591         * tests/unicase/test-ulc-casecmp.c: New file.
38592
38593         New module 'unicase/ulc-casecmp'.
38594         * lib/unicase.h (ulc_casecmp): New declaration.
38595         * lib/unicase/ulc-casecmp.c: New file.
38596         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
38597         'const SRC_UNIT *'.
38598         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
38599         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
38600         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
38601         * modules/unicase/ulc-casecmp: New file.
38602
38603         Tests for module 'unicase/u32-is-cased'.
38604         * modules/unicase/u32-is-cased-tests: New file.
38605         * tests/unicase/test-u32-is-cased.c: New file.
38606
38607         Tests for module 'unicase/u16-is-cased'.
38608         * modules/unicase/u16-is-cased-tests: New file.
38609         * tests/unicase/test-u16-is-cased.c: New file.
38610
38611         Tests for module 'unicase/u8-is-cased'.
38612         * modules/unicase/u8-is-cased-tests: New file.
38613         * tests/unicase/test-u8-is-cased.c: New file.
38614         * tests/unicase/test-is-cased.h: New file.
38615
38616         New module 'unicase/u32-is-cased'.
38617         * lib/unicase/u32-is-cased.c: New file.
38618         * modules/unicase/u32-is-cased: New file.
38619
38620         New module 'unicase/u16-is-cased'.
38621         * lib/unicase/u16-is-cased.c: New file.
38622         * modules/unicase/u16-is-cased: New file.
38623
38624         New module 'unicase/u8-is-cased'.
38625         * lib/unicase/u8-is-cased.c: New file.
38626         * lib/unicase/u-is-cased.h: New file.
38627         * modules/unicase/u8-is-cased: New file.
38628
38629         Tests for module 'unicase/u32-is-casefolded'.
38630         * modules/unicase/u32-is-casefolded-tests: New file.
38631         * tests/unicase/test-u32-is-casefolded.c: New file.
38632
38633         Tests for module 'unicase/u16-is-casefolded'.
38634         * modules/unicase/u16-is-casefolded-tests: New file.
38635         * tests/unicase/test-u16-is-casefolded.c: New file.
38636
38637         Tests for module 'unicase/u8-is-casefolded'.
38638         * modules/unicase/u8-is-casefolded-tests: New file.
38639         * tests/unicase/test-u8-is-casefolded.c: New file.
38640         * tests/unicase/test-is-casefolded.h: New file.
38641
38642         New module 'unicase/u32-is-casefolded'.
38643         * lib/unicase/u32-is-casefolded.c: New file.
38644         * modules/unicase/u32-is-casefolded: New file.
38645
38646         New module 'unicase/u16-is-casefolded'.
38647         * lib/unicase/u16-is-casefolded.c: New file.
38648         * modules/unicase/u16-is-casefolded: New file.
38649
38650         New module 'unicase/u8-is-casefolded'.
38651         * lib/unicase/u8-is-casefolded.c: New file.
38652         * modules/unicase/u8-is-casefolded: New file.
38653
38654         Tests for module 'unicase/u32-is-titlecase'.
38655         * modules/unicase/u32-is-titlecase-tests: New file.
38656         * tests/unicase/test-u32-is-titlecase.c: New file.
38657
38658         Tests for module 'unicase/u16-is-titlecase'.
38659         * modules/unicase/u16-is-titlecase-tests: New file.
38660         * tests/unicase/test-u16-is-titlecase.c: New file.
38661
38662         Tests for module 'unicase/u8-is-titlecase'.
38663         * modules/unicase/u8-is-titlecase-tests: New file.
38664         * tests/unicase/test-u8-is-titlecase.c: New file.
38665         * tests/unicase/test-is-titlecase.h: New file.
38666
38667         New module 'unicase/u32-is-titlecase'.
38668         * lib/unicase/u32-is-titlecase.c: New file.
38669         * modules/unicase/u32-is-titlecase: New file.
38670
38671         New module 'unicase/u16-is-titlecase'.
38672         * lib/unicase/u16-is-titlecase.c: New file.
38673         * modules/unicase/u16-is-titlecase: New file.
38674
38675         New module 'unicase/u8-is-titlecase'.
38676         * lib/unicase/u8-is-titlecase.c: New file.
38677         * modules/unicase/u8-is-titlecase: New file.
38678
38679         Tests for module 'unicase/u32-is-lowercase'.
38680         * modules/unicase/u32-is-lowercase-tests: New file.
38681         * tests/unicase/test-u32-is-lowercase.c: New file.
38682
38683         Tests for module 'unicase/u16-is-lowercase'.
38684         * modules/unicase/u16-is-lowercase-tests: New file.
38685         * tests/unicase/test-u16-is-lowercase.c: New file.
38686
38687         Tests for module 'unicase/u8-is-lowercase'.
38688         * modules/unicase/u8-is-lowercase-tests: New file.
38689         * tests/unicase/test-u8-is-lowercase.c: New file.
38690         * tests/unicase/test-is-lowercase.h: New file.
38691
38692         New module 'unicase/u32-is-lowercase'.
38693         * lib/unicase/u32-is-lowercase.c: New file.
38694         * modules/unicase/u32-is-lowercase: New file.
38695
38696         New module 'unicase/u16-is-lowercase'.
38697         * lib/unicase/u16-is-lowercase.c: New file.
38698         * modules/unicase/u16-is-lowercase: New file.
38699
38700         New module 'unicase/u8-is-lowercase'.
38701         * lib/unicase/u8-is-lowercase.c: New file.
38702         * modules/unicase/u8-is-lowercase: New file.
38703
38704         Tests for module 'unicase/u32-is-uppercase'.
38705         * modules/unicase/u32-is-uppercase-tests: New file.
38706         * tests/unicase/test-u32-is-uppercase.c: New file.
38707
38708         Tests for module 'unicase/u16-is-uppercase'.
38709         * modules/unicase/u16-is-uppercase-tests: New file.
38710         * tests/unicase/test-u16-is-uppercase.c: New file.
38711
38712         Tests for module 'unicase/u8-is-uppercase'.
38713         * modules/unicase/u8-is-uppercase-tests: New file.
38714         * tests/unicase/test-u8-is-uppercase.c: New file.
38715         * tests/unicase/test-is-uppercase.h: New file.
38716
38717         New module 'unicase/u32-is-uppercase'.
38718         * lib/unicase/u32-is-uppercase.c: New file.
38719         * modules/unicase/u32-is-uppercase: New file.
38720
38721         New module 'unicase/u16-is-uppercase'.
38722         * lib/unicase/u16-is-uppercase.c: New file.
38723         * modules/unicase/u16-is-uppercase: New file.
38724
38725         New module 'unicase/u8-is-uppercase'.
38726         * lib/unicase/u8-is-uppercase.c: New file.
38727         * modules/unicase/u8-is-uppercase: New file.
38728
38729         New module 'unicase/u32-is-invariant'.
38730         * lib/unicase/u32-is-invariant.c: New file.
38731         * modules/unicase/u32-is-invariant: New file.
38732
38733         New module 'unicase/u16-is-invariant'.
38734         * lib/unicase/u16-is-invariant.c: New file.
38735         * modules/unicase/u16-is-invariant: New file.
38736
38737         New module 'unicase/u8-is-invariant'.
38738         * lib/unicase/u8-is-invariant.c: New file.
38739         * lib/unicase/invariant.h: New file.
38740         * lib/unicase/u-is-invariant.h: New file.
38741         * modules/unicase/u8-is-invariant: New file.
38742
38743         Tests for module 'unicase/u32-casecoll'.
38744         * modules/unicase/u32-casecoll-tests: New file.
38745         * tests/unicase/test-u32-casecoll.c: New file.
38746
38747         Tests for module 'unicase/u16-casecoll'.
38748         * modules/unicase/u16-casecoll-tests: New file.
38749         * tests/unicase/test-u16-casecoll.c: New file.
38750
38751         Tests for module 'unicase/u8-casecoll'.
38752         * modules/unicase/u8-casecoll-tests: New file.
38753         * tests/unicase/test-u8-casecoll.c: New file.
38754
38755         New module 'unicase/u32-casecoll'.
38756         * lib/unicase/u32-casecoll.c: New file.
38757         * modules/unicase/u32-casecoll: New file.
38758
38759         New module 'unicase/u16-casecoll'.
38760         * lib/unicase/u16-casecoll.c: New file.
38761         * modules/unicase/u16-casecoll: New file.
38762
38763         New module 'unicase/u8-casecoll'.
38764         * lib/unicase/u8-casecoll.c: New file.
38765         * lib/unicase/u-casecoll.h: New file.
38766         * modules/unicase/u8-casecoll: New file.
38767
38768         New module 'unicase/u32-casexfrm'.
38769         * lib/unicase/u32-casexfrm.c: New file.
38770         * modules/unicase/u32-casexfrm: New file.
38771
38772         New module 'unicase/u16-casexfrm'.
38773         * lib/unicase/u16-casexfrm.c: New file.
38774         * modules/unicase/u16-casexfrm: New file.
38775
38776         New module 'unicase/u8-casexfrm'.
38777         * lib/unicase/u8-casexfrm.c: New file.
38778         * lib/unicase/u-casexfrm.h: New file.
38779         * modules/unicase/u8-casexfrm: New file.
38780
38781         Tests for module 'unicase/u32-casecmp'.
38782         * modules/unicase/u32-casecmp-tests: New file.
38783         * tests/unicase/test-u32-casecmp.c: New file.
38784
38785         Tests for module 'unicase/u16-casecmp'.
38786         * modules/unicase/u16-casecmp-tests: New file.
38787         * tests/unicase/test-u16-casecmp.c: New file.
38788
38789         Tests for module 'unicase/u8-casecmp'.
38790         * modules/unicase/u8-casecmp-tests: New file.
38791         * tests/unicase/test-u8-casecmp.c: New file.
38792         * tests/unicase/test-casecmp.h: New file.
38793
38794         New module 'unicase/u32-casecmp'.
38795         * lib/unicase/u32-casecmp.c: New file.
38796         * modules/unicase/u32-casecmp: New file.
38797
38798         New module 'unicase/u16-casecmp'.
38799         * lib/unicase/u16-casecmp.c: New file.
38800         * modules/unicase/u16-casecmp: New file.
38801
38802         New module 'unicase/u8-casecmp'.
38803         * lib/unicase/u8-casecmp.c: New file.
38804         * lib/unicase/u-casecmp.h: New file.
38805         * modules/unicase/u8-casecmp: New file.
38806
38807         Tests for module 'unicase/u32-casefold'.
38808         * modules/unicase/u32-casefold-tests: New file.
38809         * tests/unicase/test-u32-casefold.c: New file.
38810
38811         Tests for module 'unicase/u16-casefold'.
38812         * modules/unicase/u16-casefold-tests: New file.
38813         * tests/unicase/test-u16-casefold.c: New file.
38814
38815         Tests for module 'unicase/u8-casefold'.
38816         * modules/unicase/u8-casefold-tests: New file.
38817         * tests/unicase/test-u8-casefold.c: New file.
38818
38819         New module 'unicase/u32-casefold'.
38820         * lib/unicase/u32-casefold.c: New file.
38821         * modules/unicase/u32-casefold: New file.
38822
38823         New module 'unicase/u16-casefold'.
38824         * lib/unicase/u16-casefold.c: New file.
38825         * modules/unicase/u16-casefold: New file.
38826
38827         New module 'unicase/u8-casefold'.
38828         * lib/unicase/u8-casefold.c: New file.
38829         * lib/unicase/u-casefold.h: New file.
38830         * modules/unicase/u8-casefold: New file.
38831
38832         New module 'unicase/tocasefold'.
38833         * lib/unicase/casefold.h: New file.
38834         * lib/unicase/tocasefold.c: New file.
38835         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
38836         * modules/unicase/tocasefold: New file.
38837
38838         Tests for module 'unicase/u32-totitle'.
38839         * modules/unicase/u32-totitle-tests: New file.
38840         * tests/unicase/test-u32-totitle.c: New file.
38841
38842         Tests for module 'unicase/u16-totitle'.
38843         * modules/unicase/u16-totitle-tests: New file.
38844         * tests/unicase/test-u16-totitle.c: New file.
38845
38846         Tests for module 'unicase/u8-totitle'.
38847         * modules/unicase/u8-totitle-tests: New file.
38848         * tests/unicase/test-u8-totitle.c: New file.
38849
38850         New module 'unicase/u32-totitle'.
38851         * lib/unicase/u32-totitle.c: New file.
38852         * modules/unicase/u32-totitle: New file.
38853
38854         New module 'unicase/u16-totitle'.
38855         * lib/unicase/u16-totitle.c: New file.
38856         * modules/unicase/u16-totitle: New file.
38857
38858         New module 'unicase/u8-totitle'.
38859         * lib/unicase/u8-totitle.c: New file.
38860         * lib/unicase/u-totitle.h: New file.
38861         * modules/unicase/u8-totitle: New file.
38862
38863         Tests for module 'unicase/u32-tolower'.
38864         * modules/unicase/u32-tolower-tests: New file.
38865         * tests/unicase/test-u32-tolower.c: New file.
38866
38867         Tests for module 'unicase/u16-tolower'.
38868         * modules/unicase/u16-tolower-tests: New file.
38869         * tests/unicase/test-u16-tolower.c: New file.
38870
38871         Tests for module 'unicase/u8-tolower'.
38872         * modules/unicase/u8-tolower-tests: New file.
38873         * tests/unicase/test-u8-tolower.c: New file.
38874
38875         New module 'unicase/u32-tolower'.
38876         * lib/unicase/u32-tolower.c: New file.
38877         * modules/unicase/u32-tolower: New file.
38878
38879         New module 'unicase/u16-tolower'.
38880         * lib/unicase/u16-tolower.c: New file.
38881         * modules/unicase/u16-tolower: New file.
38882
38883         New module 'unicase/u8-tolower'.
38884         * lib/unicase/u8-tolower.c: New file.
38885         * modules/unicase/u8-tolower: New file.
38886
38887         Tests for module 'unicase/u32-toupper'.
38888         * modules/unicase/u32-toupper-tests: New file.
38889         * tests/unicase/test-u32-toupper.c: New file.
38890
38891         Tests for module 'unicase/u16-toupper'.
38892         * modules/unicase/u16-toupper-tests: New file.
38893         * tests/unicase/test-u16-toupper.c: New file.
38894
38895         Tests for module 'unicase/u8-toupper'.
38896         * modules/unicase/u8-toupper-tests: New file.
38897         * tests/unicase/test-u8-toupper.c: New file.
38898
38899         New module 'unicase/u32-toupper'.
38900         * lib/unicase/u32-toupper.c: New file.
38901         * modules/unicase/u32-toupper: New file.
38902
38903         New module 'unicase/u16-toupper'.
38904         * lib/unicase/u16-toupper.c: New file.
38905         * modules/unicase/u16-toupper: New file.
38906
38907         New module 'unicase/u8-toupper'.
38908         * lib/unicase/u8-toupper.c: New file.
38909         * modules/unicase/u8-toupper: New file.
38910
38911         New module 'unicase/u32-casemap'.
38912         * lib/unicase/u32-casemap.c: New file.
38913         * modules/unicase/u32-casemap: New file.
38914
38915         New module 'unicase/u16-casemap'.
38916         * lib/unicase/u16-casemap.c: New file.
38917         * modules/unicase/u16-casemap: New file.
38918
38919         New module 'unicase/u8-casemap'.
38920         * lib/unicase/unicasemap.h: New file.
38921         * lib/unicase/u8-casemap.c: New file.
38922         * lib/unicase/u-casemap.h: New file.
38923         * modules/unicase/u8-casemap: New file.
38924
38925         New module 'unicase/special-casing'.
38926         * lib/unicase/special-casing.h: New file.
38927         * lib/unicase/special-casing.c: New file.
38928         * lib/unicase/special-casing-table.gperf: New file, generated by
38929         gen-uni-tables.c.
38930         * modules/unicase/special-casing: New file.
38931
38932         Tests for module 'unicase/locale-language'.
38933         * modules/unicase/locale-language-tests: New file.
38934         * tests/unicase/test-locale-language.sh: New file.
38935         * tests/unicase/test-locale-language.c: New file.
38936
38937         New module 'unicase/locale-language'.
38938         * lib/unicase/locale-language.c: New file.
38939         * lib/unicase/locale-languages.gperf: New file.
38940         * modules/unicase/locale-language: New file.
38941
38942         Generate more tables for case conversion and case folding.
38943         * lib/gen-uni-tables.c (SCC_*): New enum items.
38944         (struct special_casing_rule): New type.
38945         (casing_rules, num_casing_rules, allocated_casing_rules): New
38946         variables.
38947         (add_casing_rule, fill_casing_rules): New functions.
38948         (struct casefold_rule): New type.
38949         (casefolding_rules, num_casefolding_rules,
38950         allocated_casefolding_rules): New variables.
38951         (fill_casefolding_rules): New function.
38952         (unicode_casefold): New variable.
38953         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
38954         sort_casing_rules, output_casing_rules): New functions.
38955         (main): Accept to more arguments: SpecialCasing.txt and
38956         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
38957         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
38958         Output mapping for casefolding.
38959
38960         * lib/unicase.h: Include stdbool.h, uninorm.h.
38961         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
38962         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
38963         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
38964         arguments.
38965         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
38966         resultp arguments.
38967         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
38968         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
38969         resultp arguments.
38970         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
38971         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
38972         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
38973         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
38974         declarations.
38975         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
38976
38977 2009-03-08  Bruno Haible  <bruno@clisp.org>
38978
38979         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
38980         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
38981         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
38982         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
38983
38984 2009-03-07  Bruno Haible  <bruno@clisp.org>
38985
38986         Adjust u*_normcmp, u*_normcoll API.
38987         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
38988         u16_normcoll, u32_normcoll): Change failure conventions.
38989         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
38990         errno and return -1.
38991         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
38992
38993 2009-03-07  Bruno Haible  <bruno@clisp.org>
38994
38995         Tests for module 'uninorm/u32-normcoll'.
38996         * modules/uninorm/u32-normcoll-tests: New file.
38997         * tests/uninorm/test-u32-normcoll.c: New file.
38998
38999         Tests for module 'uninorm/u16-normcoll'.
39000         * modules/uninorm/u16-normcoll-tests: New file.
39001         * tests/uninorm/test-u16-normcoll.c: New file.
39002
39003         Tests for module 'uninorm/u8-normcoll'.
39004         * modules/uninorm/u8-normcoll-tests: New file.
39005         * tests/uninorm/test-u8-normcoll.c: New file.
39006
39007 2009-03-07  Bruno Haible  <bruno@clisp.org>
39008
39009         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
39010         tests/uninorm/test-u32-normcmp.c.
39011         * tests/uninorm/test-u32-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/u32-normcmp-tests (Files): Add
39016         tests/uninorm/test-u32-normcmp.h.
39017         (Depends-on): Remove uninorm/u32-normcmp.
39018
39019         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
39020         tests/uninorm/test-u16-normcmp.c.
39021         * tests/uninorm/test-u16-normcmp.c: Include it.
39022         (test_nonascii): New function, extracted from main. Add some more
39023         tests.
39024         (main): Invoke test_ascii and test_nonascii.
39025         * modules/uninorm/u16-normcmp-tests (Files): Add
39026         tests/uninorm/test-u16-normcmp.h.
39027         (Depends-on): Remove uninorm/u16-normcmp.
39028
39029         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
39030         tests/uninorm/test-u8-normcmp.c.
39031         * tests/uninorm/test-u8-normcmp.c: Include it.
39032         (test_nonascii): New function, extracted from main. Add some more
39033         tests.
39034         (main): Invoke test_ascii and test_nonascii.
39035         * modules/uninorm/u8-normcmp-tests (Files): Add
39036         tests/uninorm/test-u8-normcmp.h.
39037         (Depends-on): Remove uninorm/u8-normcmp.
39038
39039 2009-03-07  Bruno Haible  <bruno@clisp.org>
39040
39041         New module 'uninorm/u32-normcoll'.
39042         * lib/uninorm/u32-normcoll.c: New file.
39043         * modules/uninorm/u32-normcoll: New file.
39044
39045         New module 'uninorm/u16-normcoll'.
39046         * lib/uninorm/u16-normcoll.c: New file.
39047         * modules/uninorm/u16-normcoll: New file.
39048
39049         New module 'uninorm/u8-normcoll'.
39050         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
39051         declarations.
39052         * lib/uninorm/u8-normcoll.c: New file.
39053         * lib/uninorm/u-normcoll.h: New file.
39054         * modules/uninorm/u8-normcoll: New file.
39055
39056         New module 'uninorm/u32-normxfrm'.
39057         * lib/uninorm/u32-normxfrm.c: New file.
39058         * modules/uninorm/u32-normxfrm: New file.
39059
39060         New module 'uninorm/u16-normxfrm'.
39061         * lib/uninorm/u16-normxfrm.c: New file.
39062         * modules/uninorm/u16-normxfrm: New file.
39063
39064         New module 'uninorm/u8-normxfrm'.
39065         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
39066         declarations.
39067         * lib/uninorm/u8-normxfrm.c: New file.
39068         * lib/uninorm/u-normxfrm.h: New file.
39069         * modules/uninorm/u8-normxfrm: New file.
39070
39071 2009-03-07  Bruno Haible  <bruno@clisp.org>
39072
39073         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
39074         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
39075         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
39076
39077 2009-03-07  Bruno Haible  <bruno@clisp.org>
39078
39079         New module 'memxfrm'.
39080         * lib/memxfrm.h: New file.
39081         * lib/memxfrm.c: New file.
39082         * modules/memxfrm: New file.
39083
39084 2009-03-07  Bruno Haible  <bruno@clisp.org>
39085
39086         New module 'memcmp2'.
39087         * lib/memcmp2.h: New file.
39088         * lib/memcmp2.c: New file.
39089         * modules/memcmp2: New file.
39090
39091 2009-03-07  Bruno Haible  <bruno@clisp.org>
39092
39093         Tests for module 'uninorm/decomposing-form'.
39094         * modules/uninorm/decomposing-form-tests: New file.
39095         * tests/uninorm/test-decomposing-form.c: New file.
39096
39097         New module 'uninorm/decomposing-form'.
39098         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
39099         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
39100         Add 'decomposing_variant' field.
39101         * lib/uninorm/decomposing-form.c: New file.
39102         * lib/uninorm/nfc.c (uninorm_nfc): Update.
39103         * lib/uninorm/nfd.c (uninorm_nfd): Update.
39104         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
39105         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
39106         * modules/uninorm/decomposing-form: New file.
39107         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
39108         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
39109
39110 2009-03-07  Bruno Haible  <bruno@clisp.org>
39111
39112         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
39113         strings.
39114
39115 2009-03-06  Bruno Haible  <bruno@clisp.org>
39116
39117         Tests for module 'uninorm/u32-normcmp'.
39118         * tests/uninorm/test-u32-normcmp.c: New file.
39119         * modules/uninorm/u32-normcmp-tests: New file.
39120
39121         Tests for module 'uninorm/u16-normcmp'.
39122         * tests/uninorm/test-u16-normcmp.c: New file.
39123         * modules/uninorm/u16-normcmp-tests: New file.
39124
39125         Tests for module 'uninorm/u8-normcmp'.
39126         * tests/uninorm/test-u8-normcmp.c: New file.
39127         * modules/uninorm/u8-normcmp-tests: New file.
39128
39129         New module 'uninorm/u32-normcmp'.
39130         * lib/uninorm/u32-normcmp.c: New file.
39131         * modules/uninorm/u32-normcmp: New file.
39132
39133         New module 'uninorm/u16-normcmp'.
39134         * lib/uninorm/u16-normcmp.c: New file.
39135         * modules/uninorm/u16-normcmp: New file.
39136
39137         New module 'uninorm/u8-normcmp'.
39138         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
39139         declarations.
39140         * lib/uninorm/u8-normcmp.c: New file.
39141         * lib/uninorm/u-normcmp.h: New file.
39142         * modules/uninorm/u8-normcmp: New file.
39143
39144 2009-03-06  Bruno Haible  <bruno@clisp.org>
39145
39146         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
39147         Reported by Eric Blake.
39148
39149 2009-03-06  Eric Blake  <ebb9@byu.net>
39150             Bruno Haible  <bruno@clisp.org>
39151
39152         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
39153         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
39154         condition.
39155         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
39156         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
39157         condition.
39158         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
39159
39160 2009-03-06  Eric Blake  <ebb9@byu.net>
39161
39162         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
39163         to avoid compiler warnings.
39164         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
39165
39166 2009-03-05  Bruno Haible  <bruno@clisp.org>
39167
39168         * tests/test-ftell.c (main): Disable test beyond end of file on
39169         FreeMiNT.
39170         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
39171
39172 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
39173
39174         * lib/filevercmp.c: Move hidden files up in ordering.
39175         * tests/test-filevercmp.c: Add tests for hidden files.
39176
39177 2009-03-04  Bruno Haible  <bruno@clisp.org>
39178
39179         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
39180         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
39181         AM_CFLAGS.
39182         Reported by Simon Josefsson.
39183
39184 2009-03-03  Bruno Haible  <bruno@clisp.org>
39185
39186         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
39187         Reported by Simon Josefsson.
39188
39189         * doc/ld-version-script.texi: Update node reference.
39190
39191 2009-03-03  Bruno Haible  <bruno@clisp.org>
39192
39193         * modules/visibility (License): Change to 'unlimited'.
39194         Suggested by Simon Josefsson.
39195
39196 2009-03-03  Jim Meyering  <meyering@redhat.com>
39197
39198         unlinkdir: cannot_unlink_dir may modify process state
39199         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
39200         it's neither thread-safe nor appropriate for use in a library.
39201
39202 2009-03-03  Eric Blake  <ebb9@byu.net>
39203
39204         test-closein: silence test under Darwin
39205         * tests/test-closein.sh: Ignore stderr from cat, since we don't
39206         care if it dies from EPIPE or EBADF.
39207
39208 2009-03-03  Bruno Haible  <bruno@clisp.org>
39209
39210         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
39211         earlier.
39212         * doc/visibility.texi: Fix @node and @section.
39213
39214 2009-03-03  Simon Josefsson  <simon@josefsson.org>
39215
39216         * doc/gnulib.texi: Link to sections for ld version script and
39217         visibility.
39218         * doc/visibility.texi: Add @node and @section.
39219         * modules/ld-version-script: New module.
39220         * m4/ld-version-script.m4: New file.
39221         * doc/ld-version-script.texi: New file.
39222
39223 2009-03-02  David Lutterkort  <lutter@redhat.com>
39224
39225         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
39226         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39227
39228 2009-03-02  Bruno Haible  <bruno@clisp.org>
39229
39230         * doc/visibility.texi: Mention libtool's -export-symbols option.
39231
39232 2009-03-02  Jim Meyering  <meyering@redhat.com>
39233
39234         announce-gen: new option: --no-print-checksums
39235         * build-aux/announce-gen (usage): Describe it.
39236         (print_checksums): Print a newline here, not in the [*] footnote.
39237         (main): Honor it.
39238
39239 2009-03-01  Bruno Haible  <bruno@clisp.org>
39240
39241         Use socklen_t in the native Windows replacements prototypes.
39242         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
39243         instead of 'int'.
39244         * lib/getsockopt.c (rpl_getsockopt): Likewise.
39245         * lib/setsockopt.c (rpl_setsockopt): Likewise.
39246         * modules/getsockopt (Depends-on): Add socklen.
39247         * modules/setsockopt (Depends-on): Add socklen.
39248
39249 2009-03-01  Bruno Haible  <bruno@clisp.org>
39250
39251         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
39252         least 4.2.
39253
39254 2009-03-01  Eric Blake  <ebb9@byu.net>
39255             Bruno Haible  <bruno@clisp.org>
39256
39257         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
39258         error messages.
39259         * lib/wait-process.c (wait_subprocess): Omit error message about
39260         deadly signal sent to the child of termsigp != NULL.
39261
39262 2009-03-01  Eric Blake  <ebb9@byu.net>
39263
39264         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
39265
39266 2009-03-01  Bruno Haible  <bruno@clisp.org>
39267
39268         Avoid a gcc warning.
39269         * tests/test-sched.c (b): Make global.
39270         Reported by Eric Blake.
39271
39272 2009-01-19  Martin Lambers  <marlam@marlam.de>
39273
39274         Provide POSIX semantics for socket timeout options on W32.
39275         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
39276         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
39277         * modules/setsockopt: Depend on sys_time module for struct timeval.
39278         * modules/getsockopt: Depend on sys_time module for struct timeval.
39279
39280 2009-03-01  Simon Josefsson  <simon@josefsson.org>
39281
39282         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
39283         __USE_GNU, for consistency with netdb.in.h.
39284         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
39285
39286 2009-03-01  Bruno Haible  <bruno@clisp.org>
39287
39288         More support for FreeMiNT.
39289         * lib/fseeko.c (rpl_fseeko): Complete last commit.
39290         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
39291
39292 2009-03-01  Bruno Haible  <bruno@clisp.org>
39293
39294         More support for FreeMiNT.
39295         * lib/fpurge.c (fpurge): Correct last commit.
39296         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
39297
39298 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39299
39300         Fix unportable awk script in vc-list-files.
39301         * build-aux/vc-list-files: In the replacement awk script, use
39302         substr with a second argument of 1, not zero.
39303         Report by Simon Josefsson.
39304
39305 2009-02-28  Bruno Haible  <bruno@clisp.org>
39306
39307         More support for FreeMiNT.
39308         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
39309         to FreeMiNT today.
39310         * lib/fwriting.c (fwriting): Likewise.
39311         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
39312
39313 2009-02-28  Bruno Haible  <bruno@clisp.org>
39314
39315         * tests/test-freadseek.c (main): Disable test beyond end of file on
39316         FreeMiNT.
39317         * tests/test-ftello.c (main): Likewise.
39318         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
39319
39320 2009-02-28  Bruno Haible  <bruno@clisp.org>
39321
39322         Add tentative support for FreeMiNT.
39323         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
39324         * lib/fpurge.c (fpurge): Likewise.
39325         * lib/freadable.c (freadable): Likewise.
39326         * lib/freading.c (freading): Likewise.
39327         * lib/freadptr.c (freadptr): Likewise.
39328         * lib/freadseek.c (freadptrinc): Likewise.
39329         * lib/fseeko.c (rpl_fseeko): Likewise.
39330         * lib/fseterr.c (fseterr): Likewise.
39331         * lib/fwritable.c (fwritable): Likewise.
39332         * lib/fwriting.c (fwriting): Likewise.
39333         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
39334         Hourihane.
39335         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
39336
39337 2009-02-28  Bruno Haible  <bruno@clisp.org>
39338
39339         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
39340         SIGCHLD.
39341         Reported by Jim Meyering.
39342
39343 2009-02-28  Bruno Haible  <bruno@clisp.org>
39344
39345         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
39346         Mention the results of these tests on various platforms.
39347         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
39348         order.
39349         * doc/posix-functions/printf.texi: Likewise.
39350         * doc/posix-functions/snprintf.texi: Likewise.
39351         * doc/posix-functions/sprintf.texi: Likewise.
39352         * doc/posix-functions/vfprintf.texi: Likewise.
39353         * doc/posix-functions/vprintf.texi: Likewise.
39354         * doc/posix-functions/vsnprintf.texi: Likewise.
39355         * doc/posix-functions/vsprintf.texi: Likewise.
39356         * doc/glibc-functions/obstack_printf.texi: Likewise.
39357         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
39358
39359 2009-02-28  Bruno Haible  <bruno@clisp.org>
39360
39361         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
39362         Reported by Loïc Minier <lool@dooz.org>.
39363
39364 2009-02-27  Bruno Haible  <bruno@clisp.org>
39365
39366         * gnulib-tool (func_import): Make the sed expression used to create the
39367         sed script for updating the .gitignore file POSIX compliant.
39368         Reported by Eric Blake.
39369
39370 2009-02-27  Bruno Haible  <bruno@clisp.org>
39371
39372         * gnulib-tool (sed): Don't alias as "sed --posix".
39373         Reported by Eric Blake.
39374
39375 2009-02-27  Bruno Haible  <bruno@clisp.org>
39376
39377         Avoid test link errors.
39378         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
39379         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
39380         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
39381         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
39382         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39383
39384 2009-02-27  Bruno Haible  <bruno@clisp.org>
39385
39386         Avoid spurious "(cached)" in configure output.
39387         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
39388         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
39389         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
39390         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
39391         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
39392         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
39393         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
39394         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
39395         Reported by Eric Blake.
39396
39397 2009-02-27  Eric Blake  <ebb9@byu.net>
39398
39399         printf: fix regression in previous patch
39400         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
39401
39402 2009-02-27  Bruno Haible  <bruno@clisp.org>
39403
39404         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
39405         value.
39406         * lib/stdint.in.h: Likewise.
39407         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
39408
39409 2009-02-27  Eric Blake  <ebb9@byu.net>
39410
39411         doc: mention more functions added in cygwin 1.7.0
39412         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
39413         addition.
39414         * doc/posix-functions/open_wmemstream.texi: Likewise.
39415         * doc/posix-functions/wcsnlen.texi: Likewise.
39416         * doc/posix-functions/wcsnrtombs.texi: Likewise.
39417         * doc/posix-functions/wcstod.texi: Likewise.
39418         * doc/posix-functions/wcstof.texi: Likewise.
39419         * doc/posix-functions/wcstoimax.texi: Likewise.
39420         * doc/posix-functions/wcstok.texi: Likewise.
39421         * doc/posix-functions/wcstoumax.texi: Likewise.
39422
39423         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
39424         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
39425         * doc/posix-functions/fprintf.texi: Update.
39426         * doc/posix-functions/printf.texi: Update.
39427         * doc/posix-functions/snprintf.texi: Update.
39428         * doc/posix-functions/sprintf.texi: Update.
39429         * doc/posix-functions/vfprintf.texi: Update.
39430         * doc/posix-functions/vprintf.texi: Update.
39431         * doc/posix-functions/vsnprintf.texi: Update.
39432         * doc/posix-functions/vsprintf.texi: Update.
39433         * doc/glibc-functions/obstack_printf.texi: Update.
39434         * doc/glibc-functions/obstack_vprintf.texi: Update.
39435
39436 2009-02-26  Eric Blake  <ebb9@byu.net>
39437
39438         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
39439         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
39440         compilation bug by using runtime conversion.
39441         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
39442         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
39443         * modules/ceill-tests (Files): Use nan.h.
39444         * modules/floorl-tests (Files): Likewise.
39445         * modules/frexpl-tests (Files): Likewise.
39446         * modules/isnanl-tests (Files): Likewise.
39447         * modules/ldexpl-tests (Files): Likewise.
39448         * modules/roundl-tests (Files): Likewise.
39449         * modules/truncl-tests (Files): Likewise.
39450         * tests/test-ceill.c (main): Use a working NaN.
39451         * tests/test-floorl.c (main): Likewise.
39452         * tests/test-frexpl.c (main): Likewise.
39453         * tests/test-isnan.c (test_long_double): Likewise.
39454         * tests/test-isnanl.h (main): Likewise.
39455         * tests/test-ldexpl.h (main): Likewise.
39456         * tests/test-roundl.h (main): Likewise.
39457         * tests/test-truncl.h (main): Likewise.
39458         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
39459
39460 2009-02-26  Eric Blake  <ebb9@byu.net>
39461             Bruno Haible  <bruno@clisp.org>
39462
39463         Work around a *printf bug with %ls on Solaris.
39464         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
39465         precision is specified, sprintf stops converting the wide string
39466         argument when the number of bytes that have been produced by this
39467         conversion equals or exceeds the precision.
39468         * doc/posix-functions/fprintf.texi: Update.
39469         * doc/posix-functions/printf.texi: Update.
39470         * doc/posix-functions/snprintf.texi: Update.
39471         * doc/posix-functions/sprintf.texi: Update.
39472         * doc/posix-functions/vfprintf.texi: Update.
39473         * doc/posix-functions/vprintf.texi: Update.
39474         * doc/posix-functions/vsnprintf.texi: Update.
39475         * doc/posix-functions/vsprintf.texi: Update.
39476         * doc/glibc-functions/obstack_printf.texi: Update.
39477         * doc/glibc-functions/obstack_vprintf.texi: Update.
39478
39479 2009-02-26  Eric Blake  <ebb9@byu.net>
39480
39481         stdlib: favor compiler check of random.h
39482         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
39483         to avoid an ObjC random.h installed by Swarm.
39484
39485 2009-02-26  Bruno Haible  <bruno@clisp.org>
39486
39487         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
39488         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
39489         Reported by Gary V. Vaughan <gary@gnu.org>.
39490
39491 2009-02-26  Bruno Haible  <bruno@clisp.org>
39492
39493         Fix *printf behaviour regarding the %ls directive.
39494         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
39495         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
39496         NEED_PRINTF_DIRECTIVE_LS.
39497         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
39498         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
39499         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
39500         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
39501         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
39502         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
39503         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
39504         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
39505         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39506         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39507         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39508         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
39509         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39510         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39511         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39512         * doc/posix-functions/fprintf.texi: Update.
39513         * doc/posix-functions/printf.texi: Update.
39514         * doc/posix-functions/snprintf.texi: Update.
39515         * doc/posix-functions/sprintf.texi: Update.
39516         * doc/posix-functions/vfprintf.texi: Update.
39517         * doc/posix-functions/vprintf.texi: Update.
39518         * doc/posix-functions/vsnprintf.texi: Update.
39519         * doc/posix-functions/vsprintf.texi: Update.
39520         * doc/glibc-functions/obstack_printf.texi: Update.
39521         * doc/glibc-functions/obstack_vprintf.texi: Update.
39522         Reported by Eric Blake.
39523
39524 2009-02-25  Bruno Haible  <bruno@clisp.org>
39525
39526         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
39527         with known value.
39528         Reported by Gary V. Vaughan <gary@gnu.org>.
39529
39530 2009-02-25  Bruno Haible  <bruno@clisp.org>
39531
39532         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
39533         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
39534         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
39535         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
39536         Reported by Gary V. Vaughan <gary@gnu.org>.
39537
39538 2009-02-25  Bruno Haible  <bruno@clisp.org>
39539
39540         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
39541         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
39542         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
39543         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
39544         Reported by Gary V. Vaughan <gary@gnu.org>.
39545
39546 2009-02-25  Eric Blake  <ebb9@byu.net>
39547
39548         tests: skip fseek/ftell tests if ungetc is broken
39549         * m4/ungetc.m4: New file.
39550         * modules/fseek-tests: Split test, so ungetc dependency is
39551         separate from rest of test.
39552         * modules/fseeko-tests: Likewise.
39553         * modules/ftell-tests: Likewise.
39554         * modules/ftello-tests: Likewise.
39555         * tests/test-fseek.c (main): Isolate ungetc dependency.
39556         * tests/test-fseeko.c (main): Likewise.
39557         * tests/test-ftell.c (main): Likewise.
39558         * tests/test-ftello.c (main): Likewise.
39559         * tests/test-fseek2.sh: New file.
39560         * tests/test-fseeko2.sh: Likewise.
39561         * tests/test-ftell2.sh: Likewise.
39562         * tests/test-ftello2.sh: Likewise.
39563
39564 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
39565
39566         test-getaddrinfo: fix usage of skip return code 77
39567         * tests/test-gettaddrinfo.c: Return skip code 77 only
39568         for first occurance of skip (4x77 is not 77)
39569
39570 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
39571
39572         strtod: avoid C99 decl-after-statement
39573         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
39574
39575 2009-02-24  Eric Blake  <ebb9@byu.net>
39576
39577         strtod: detect HP-UX 11.31 bug
39578         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
39579         Reported by Gary V. Vaughan.
39580
39581 2009-02-23  Bruno Haible  <bruno@clisp.org>
39582
39583         Fix invalid read past end of memory block.
39584         * lib/vasnprintf.c (DCHAR_SET): Define.
39585         (local_wcslen): Define only when needed.
39586         (local_strnlen, local_wcsnlen): New functions.
39587         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
39588         directives that involve a conversion ourselves.
39589         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
39590         wcsnlen, mbrtowc, wcrtomb.
39591         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
39592         * tests/test-vasprintf-posix.c (test_function): Likewise.
39593         * tests/test-snprintf-posix.h (test_function): Likewise.
39594         * tests/test-sprintf-posix.h (test_function): Likewise.
39595         Reported by Ben Pfaff <blp@cs.stanford.edu>.
39596
39597 2009-02-22  Bruno Haible  <bruno@clisp.org>
39598
39599         Implement new clarified decomposition of Hangul syllables.
39600         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
39601         of type LTV, return only a pairwise decomposition.
39602         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
39603         Likewise.
39604         * tests/uninorm/test-decomposition.c (main): Updated expected result.
39605         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
39606         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
39607
39608 2009-02-22  Bruno Haible  <bruno@clisp.org>
39609
39610         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
39611         zero-length results and shrink excess allocated memory.
39612         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
39613         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
39614         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
39615         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
39616         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
39617         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
39618         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
39619         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
39620         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
39621         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
39622         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
39623         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
39624
39625 2009-02-21  Bruno Haible  <bruno@clisp.org>
39626
39627         * doc/gnulib.texi: Include safe-alloc.texi earlier.
39628         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
39629         spaces after a period. Put a space between a macro name and its
39630         argument list. Trivial rewordings.
39631         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
39632         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
39633         (main): Return 0 explicitly.
39634
39635 2009-02-21  Bruno Haible  <bruno@clisp.org>
39636
39637         Tests for module 'uninorm/filter'.
39638         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
39639         * modules/uninorm/filter-tests: New file.
39640
39641         New module 'uninorm/filter'.
39642         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
39643         uninorm_filter_flush, uninorm_filter_free): New declarations.
39644         * lib/uninorm/uninorm-filter.c: New file.
39645         * modules/uninorm/filter: New file.
39646
39647 2009-02-21  Bruno Haible  <bruno@clisp.org>
39648
39649         Tests for module 'uninorm/nfkc'.
39650         * tests/uninorm/test-nfkc.c: New file.
39651         * tests/uninorm/test-u8-nfkc.c: New file.
39652         * tests/uninorm/test-u16-nfkc.c: New file.
39653         * tests/uninorm/test-u32-nfkc.c: New file.
39654         * tests/uninorm/test-u32-nfkc-big.sh: New file.
39655         * tests/uninorm/test-u32-nfkc-big.c: New file.
39656         * modules/uninorm/nfkc-tests: New file.
39657
39658         New module 'uninorm/nfkc'.
39659         * lib/uninorm/nfkc.c: New file.
39660         * modules/uninorm/nfkc: New file.
39661
39662         Tests for module 'uninorm/nfkd'.
39663         * tests/uninorm/test-nfkd.c: New file.
39664         * tests/uninorm/test-u8-nfkd.c: New file.
39665         * tests/uninorm/test-u16-nfkd.c: New file.
39666         * tests/uninorm/test-u32-nfkd.c: New file.
39667         * tests/uninorm/test-u32-nfkd-big.sh: New file.
39668         * tests/uninorm/test-u32-nfkd-big.c: New file.
39669         * modules/uninorm/nfkd-tests: New file.
39670
39671         New module 'uninorm/nfkd'.
39672         * lib/uninorm/nfkd.c: New file.
39673         * modules/uninorm/nfkd: New file.
39674
39675         Tests for module 'uninorm/nfc'.
39676         * tests/uninorm/test-nfc.c: New file.
39677         * tests/uninorm/test-u8-nfc.c: New file.
39678         * tests/uninorm/test-u16-nfc.c: New file.
39679         * tests/uninorm/test-u32-nfc.c: New file.
39680         * tests/uninorm/test-u32-nfc-big.sh: New file.
39681         * tests/uninorm/test-u32-nfc-big.c: New file.
39682         * modules/uninorm/nfc-tests: New file.
39683
39684         New module 'uninorm/nfc'.
39685         * lib/uninorm/nfc.c: New file.
39686         * modules/uninorm/nfc: New file.
39687
39688         Tests for module 'uninorm/nfd'.
39689         * tests/uninorm/test-nfd.c: New file.
39690         * tests/uninorm/test-u8-nfd.c: New file.
39691         * tests/uninorm/test-u16-nfd.c: New file.
39692         * tests/uninorm/test-u32-nfd.c: New file.
39693         * tests/uninorm/test-u32-nfd-big.sh: New file.
39694         * tests/uninorm/test-u32-nfd-big.c: New file.
39695         * tests/uninorm/test-u32-normalize-big.h: New file.
39696         * tests/uninorm/test-u32-normalize-big.c: New file.
39697         * tests/uninorm/NormalizationTest.txt: New file, created from
39698         Unicode 5.1.0 NormalizationTest.txt.
39699         * modules/uninorm/nfd-tests: New file.
39700
39701         New module 'uninorm/nfd'.
39702         * lib/uninorm/nfd.c: New file.
39703         * modules/uninorm/nfd: New file.
39704
39705         New module 'uninorm/u32-normalize'.
39706         * lib/uninorm/u32-normalize.c: New file.
39707         * modules/uninorm/u32-normalize: New file.
39708
39709         New module 'uninorm/u16-normalize'.
39710         * lib/uninorm/u16-normalize.c: New file.
39711         * modules/uninorm/u16-normalize: New file.
39712
39713         New module 'uninorm/u8-normalize'.
39714         * lib/uninorm/u8-normalize.c: New file.
39715         * lib/uninorm/normalize-internal.h: New file.
39716         * lib/uninorm/u-normalize-internal.h: New file.
39717         * modules/uninorm/u8-normalize: New file.
39718
39719         New module 'uninorm/decompose-internal'.
39720         * lib/uninorm/decompose-internal.c: New file.
39721         * modules/uninorm/decompose-internal: New file.
39722
39723         Tests for module 'uninorm/composition'.
39724         * tests/uninorm/test-composition.c: New file.
39725         * modules/uninorm/composition-tests: New file.
39726
39727         New module 'uninorm/composition'.
39728         * lib/uninorm/composition.c: New file.
39729         * lib/uninorm/composition-table.gperf: New file, generated by
39730         gen-uni-tables.
39731         * modules/uninorm/composition: New file.
39732
39733         Tests for module 'uninorm/compat-decomposition'.
39734         * tests/uninorm/test-compat-decomposition.c: New file.
39735         * modules/uninorm/compat-decomposition-tests: New file.
39736
39737         New module 'uninorm/compat-decomposition'.
39738         * lib/uninorm/decompose-internal.h: New file.
39739         * lib/uninorm/compat-decomposition.c: New file.
39740         * modules/uninorm/compat-decomposition: New file.
39741
39742         Tests for module 'uninorm/canonical-decomposition'.
39743         * tests/uninorm/test-canonical-decomposition.c: New file.
39744         * modules/uninorm/canonical-decomposition-tests: New file.
39745
39746         New module 'uninorm/canonical-decomposition'.
39747         * lib/uninorm/canonical-decomposition.c: New file.
39748         * modules/uninorm/canonical-decomposition: New file.
39749
39750         Tests for module 'uninorm/decomposition'.
39751         * tests/uninorm/test-decomposition.c: New file.
39752         * modules/uninorm/decomposition-tests: New file.
39753
39754         New module 'uninorm/decomposition'.
39755         * lib/uninorm/decomposition.c: New file.
39756         * modules/uninorm/decomposition: New file.
39757
39758         New module 'uninorm/decomposition-table'.
39759         * lib/uninorm/decomposition-table.h: New file.
39760         * lib/uninorm/decomposition-table.c: New file.
39761         * lib/uninorm/decomposition-table1.h: New file, generated by
39762         gen-uni-tables.
39763         * lib/uninorm/decomposition-table2.h: New file, generated by
39764         gen-uni-tables.
39765         * modules/uninorm/decomposition-table: New file.
39766
39767         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
39768         (UC_DECOMP_*): New enumeration items.
39769         (get_decomposition): New function.
39770         (struct decomp_table): New type.
39771         (output_decomposition, output_decomposition_tables): New functions.
39772         (unicode_composition_exclusions): New variable.
39773         (fill_composition_exclusions, debug_output_composition_tables): New
39774         functions.
39775         (main): Accept one more argument. Invoke fill_composition_exclusions.
39776         Output decomposition and composition tables.
39777
39778         New module 'uninorm/base'.
39779         * lib/uninorm.h: New file.
39780         * lib/unictype.h: Update comment.
39781         * modules/uninorm/base: New file.
39782
39783 2009-02-21  David Lutterkort  <lutter@redhat.com>
39784
39785         Tests for module 'safe-alloc'.
39786         * tests/test-safe-alloc.c: New file.
39787         * modules/safe-alloc-tests: New file.
39788
39789         New module 'safe-alloc'.
39790         * lib/safe-alloc.h: New file.
39791         * lib/safe-alloc.c: New file.
39792         * m4/safe-alloc.m4: New file.
39793         * modules/safe-alloc: New file.
39794         * doc/safe-alloc.texi: New file.
39795         * doc/gnulib.texi: Include it.
39796         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
39797         safe-alloc.
39798
39799 2009-02-18  Bruno Haible  <bruno@clisp.org>
39800
39801         Fix link error on non-glibc systems.
39802         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
39803         variable.
39804         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39805
39806 2009-02-18  Jim Meyering  <meyering@redhat.com>
39807
39808         fts: avoid used-uninitialized error due to recent change
39809         * lib/fts.c (fts_read): Guard uses of the new member,
39810         parent->fts_n_dirs_remaining, since it's not relevant for
39811         the parent of a directory specified on the command-line.
39812
39813 2009-02-17  James Youngman  <jay@gnu.org>
39814             Bruno Haible  <bruno@clisp.org>
39815
39816         * m4/include_next.m4: Reformulate comment.
39817
39818 2009-02-16  Jim Meyering  <meyering@redhat.com>
39819
39820         fts: add #if guards so that the fts_lgpl module still builds
39821         * lib/fts.c: Guard just-added hash-table-using parts with
39822         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
39823         Reported by Simon Josefsson.
39824
39825 2009-02-15  Bruno Haible  <bruno@clisp.org>
39826
39827         * modules/array-mergesort-tests: New file.
39828         * tests/test-array-mergesort.c: New file.
39829
39830         New module 'array-mergesort'.
39831         * modules/array-mergesort: New file.
39832         * lib/array-mergesort.h: New file.
39833
39834 2009-02-15  Bruno Haible  <bruno@clisp.org>
39835
39836         Fix 2009-02-07 commit.
39837         * lib/gen-uni-tables.c (output_predicate, output_category,
39838         output_combclass, output_bidi_category, output_decimal_digit,
39839         output_digit, output_numeric, output_mirror, output_scripts,
39840         output_ident_category, output_simple_mapping): Fix format directives.
39841         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
39842
39843 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
39844
39845         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
39846         fixes are available from IBM.
39847
39848 2009-02-13  Jim Meyering  <meyering@redhat.com>
39849
39850         fts: arrange not to stat non-directories in more cases
39851         This makes GNU find (when it doesn't need to stat each file)
39852         *much* more efficient at traversing reiserfs file systems.
39853         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
39854         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
39855         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
39856         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
39857         (leaf_optimization_applies): New function.
39858         (LCO_hash, LCO_compare): New helper functions.
39859         (link_count_optimize_ok): New function.
39860         (fts_stat): Initialize new member (if dir).
39861         (fts_read): Decrement parent's fts_n_dirs_remaining count if
39862         we've just stat'ed a directory.  Skip the stat call when possible.
39863         ---
39864         Note this AFS-related exchange:
39865         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
39866         and note find's pioctl call in find/fstype.c.
39867         But that is necessary only if you want to enable the
39868         optimization for AFS, and for now, I don't.
39869
39870         fts: move a function definition "up" (no semantic change)
39871         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
39872         "up" to precede upcoming use of a related function.
39873
39874 2009-02-11  Jim Meyering  <meyering@redhat.com>
39875
39876         fts: correct internal computation of nlinks (optimization-related)
39877         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
39878         whether the current entry is a directory, so don't test it.
39879
39880 2009-02-10  Bruno Haible  <bruno@clisp.org>
39881
39882         Tests for module 'uniwbrk/ulc-wordbreaks'.
39883         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
39884         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
39885         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
39886
39887         Tests for module 'uniwbrk/u32-wordbreaks'.
39888         * modules/uniwbrk/u32-wordbreaks-tests: New file.
39889         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
39890
39891         Tests for module 'uniwbrk/u16-wordbreaks'.
39892         * modules/uniwbrk/u16-wordbreaks-tests: New file.
39893         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
39894
39895         Tests for module 'uniwbrk/u8-wordbreaks'.
39896         * modules/uniwbrk/u8-wordbreaks-tests: New file.
39897         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
39898
39899 2009-02-10  Bruno Haible  <bruno@clisp.org>
39900
39901         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
39902         property.
39903         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
39904         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
39905         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
39906
39907 2009-02-10  Simon Josefsson  <simon@josefsson.org>
39908
39909         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
39910         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
39911
39912 2009-02-10  Bruno Haible  <bruno@clisp.org>
39913
39914         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
39915         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
39916         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
39917         * lib/unilbrk/u8-possible-linebreaks.c: Update.
39918         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
39919         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
39920
39921 2009-02-09  Simon Josefsson  <simon@josefsson.org>
39922
39923         * lib/sockets.h (gl_fd_to_handle): New function.
39924
39925         * tests/test-sockets.c: Call gl_fd_to_handle.
39926
39927 2009-02-09  Bruno Haible  <bruno@clisp.org>
39928
39929         * doc/havelib.texi: Document the conventions on bi-arch systems.
39930
39931 2009-02-08  Bruno Haible  <bruno@clisp.org>
39932
39933         Document the AC_LIB_LINKFLAGS macro.
39934         * doc/havelib.texi: New file, mostly written on 2005-05-24.
39935         * doc/gnulib.texi: Include it.
39936
39937 2009-02-08  Bruno Haible  <bruno@clisp.org>
39938
39939         Fix wrong order of sections, compared to TOC.
39940         * doc/gnulib.texi: Include relocatable-maint.texi after the
39941         "Regular expressions" node, not before.
39942
39943 2009-02-08  Bruno Haible  <bruno@clisp.org>
39944
39945         Tests for module 'unicase/totitle'.
39946         * modules/unicase/totitle-tests: New file.
39947
39948         Tests for module 'unicase/tolower'.
39949         * modules/unicase/tolower-tests: New file.
39950
39951         Tests for module 'unicase/toupper'.
39952         * modules/unicase/toupper-tests: New file.
39953         * tests/unicase/test-mapping-part1.h: New file.
39954         * tests/unicase/test-mapping-part2.h: New file.
39955
39956         New module 'unicase/totitle'.
39957         * modules/unicase/totitle: New file.
39958         * lib/unicase/totitle.c: New file.
39959
39960         New module 'unicase/tolower'.
39961         * modules/unicase/tolower: New file.
39962         * lib/unicase/tolower.c: New file.
39963
39964         New module 'unicase/toupper'.
39965         * modules/unicase/toupper: New file.
39966         * lib/unicase/toupper.c: New file.
39967         * lib/unicase/simple-mapping.h: New file.
39968
39969         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
39970         (mapping_table): New structure.
39971         (output_simple_mapping): New function.
39972         (main): Invoke output_simple_mapping_test and output_simple_mapping.
39973         * modules/gen-uni-tables (Description): Update.
39974         * lib/unicase/toupper.h: New file, automatically generated by
39975         gen-uni-tables.
39976         * lib/unicase/tolower.h: New file, automatically generated by
39977         gen-uni-tables.
39978         * lib/unicase/totitle.h: New file, automatically generated by
39979         gen-uni-tables.
39980         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
39981         gen-uni-tables.
39982         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
39983         gen-uni-tables.
39984         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
39985         gen-uni-tables.
39986
39987         New module 'unicase/base'.
39988         * modules/unicase/base: New file.
39989         * lib/unicase.h: New file.
39990
39991 2009-02-08  Bruno Haible  <bruno@clisp.org>
39992
39993         New module 'uniwbrk/ulc-wordbreaks'.
39994         * modules/uniwbrk/ulc-wordbreaks: New file.
39995         * lib/uniwbrk/ulc-wordbreaks.c: New file.
39996
39997         New module 'uniwbrk/u32-wordbreaks'.
39998         * modules/uniwbrk/u32-wordbreaks: New file.
39999         * lib/uniwbrk/u32-wordbreaks.c: New file.
40000
40001         New module 'uniwbrk/u16-wordbreaks'.
40002         * modules/uniwbrk/u16-wordbreaks: New file.
40003         * lib/uniwbrk/u16-wordbreaks.c: New file.
40004
40005         New module 'uniwbrk/u8-wordbreaks'.
40006         * modules/uniwbrk/u8-wordbreaks: New file.
40007         * lib/uniwbrk/u8-wordbreaks.c: New file.
40008         * lib/uniwbrk/u-wordbreaks.h: New file.
40009
40010         New module 'uniwbrk/table'.
40011         * modules/uniwbrk/table: New file.
40012         * lib/uniwbrk/wbrktable.h: New file.
40013         * lib/uniwbrk/wbrktable.c: New file.
40014
40015         New module 'uniwbrk/wordbreak-property'.
40016         * modules/uniwbrk/wordbreak-property: New file.
40017         * lib/uniwbrk/wordbreak-property.c: New file.
40018
40019         * lib/gen-uni-tables.c (WBP_*): New enum items.
40020         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
40021         (unicode_org_wbp): New variable.
40022         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
40023         New functions.
40024         (wbp_table): New structure.
40025         (output_wbp, output_wbrk_tables): New functions.
40026         (main): Accept additional argument. Invoke fill_org_wbp,
40027         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
40028         output_wbrk_tables.
40029         * modules/gen-uni-tables (Description): Update.
40030         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
40031         gen-uni-tables.
40032
40033         New module 'uniwbrk/base'.
40034         * modules/uniwbrk/base: New file.
40035         * lib/uniwbrk.h: New file.
40036
40037 2009-02-08  Bruno Haible  <bruno@clisp.org>
40038
40039         Update to Unicode 5.1.0.
40040         * lib/gen-uni-tables.c (is_property_alphabetic): Include
40041         U+2185..U+2188.
40042         (is_property_default_ignorable_code_point): Don't include characters
40043         of category Cc or Cs and not-a-characters.
40044         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
40045         U+0D79, U+109E, U+109F, U+A60C.
40046         * lib/unictype/bidi_of.h: Regenerated.
40047         * lib/unictype/blocks.h: Regenerated.
40048         * lib/unictype/categ_C.h: Regenerated.
40049         * lib/unictype/categ_Cf.h: Regenerated.
40050         * lib/unictype/categ_Cn.h: Regenerated.
40051         * lib/unictype/categ_L.h: Regenerated.
40052         * lib/unictype/categ_Ll.h: Regenerated.
40053         * lib/unictype/categ_Lm.h: Regenerated.
40054         * lib/unictype/categ_Lo.h: Regenerated.
40055         * lib/unictype/categ_Lu.h: Regenerated.
40056         * lib/unictype/categ_M.h: Regenerated.
40057         * lib/unictype/categ_Mc.h: Regenerated.
40058         * lib/unictype/categ_Me.h: Regenerated.
40059         * lib/unictype/categ_Mn.h: Regenerated.
40060         * lib/unictype/categ_N.h: Regenerated.
40061         * lib/unictype/categ_Nd.h: Regenerated.
40062         * lib/unictype/categ_Nl.h: Regenerated.
40063         * lib/unictype/categ_No.h: Regenerated.
40064         * lib/unictype/categ_P.h: Regenerated.
40065         * lib/unictype/categ_Pd.h: Regenerated.
40066         * lib/unictype/categ_Pe.h: Regenerated.
40067         * lib/unictype/categ_Pf.h: Regenerated.
40068         * lib/unictype/categ_Pi.h: Regenerated.
40069         * lib/unictype/categ_Po.h: Regenerated.
40070         * lib/unictype/categ_Ps.h: Regenerated.
40071         * lib/unictype/categ_S.h: Regenerated.
40072         * lib/unictype/categ_Sk.h: Regenerated.
40073         * lib/unictype/categ_Sm.h: Regenerated.
40074         * lib/unictype/categ_So.h: Regenerated.
40075         * lib/unictype/categ_of.h: Regenerated.
40076         * lib/unictype/combining.h: Regenerated.
40077         * lib/unictype/ctype_alnum.h: Regenerated.
40078         * lib/unictype/ctype_alpha.h: Regenerated.
40079         * lib/unictype/ctype_graph.h: Regenerated.
40080         * lib/unictype/ctype_lower.h: Regenerated.
40081         * lib/unictype/ctype_print.h: Regenerated.
40082         * lib/unictype/ctype_punct.h: Regenerated.
40083         * lib/unictype/ctype_upper.h: Regenerated.
40084         * lib/unictype/decdigit.h: Regenerated.
40085         * lib/unictype/digit.h: Regenerated.
40086         * lib/unictype/mirror.h: Regenerated.
40087         * lib/unictype/numeric.h: Regenerated.
40088         * lib/unictype/pr_alphabetic.h: Regenerated.
40089         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
40090         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
40091         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
40092         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
40093         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
40094         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
40095         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
40096         * lib/unictype/pr_combining.h: Regenerated.
40097         * lib/unictype/pr_dash.h: Regenerated.
40098         * lib/unictype/pr_decimal_digit.h: Regenerated.
40099         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
40100         * lib/unictype/pr_deprecated.h: Regenerated.
40101         * lib/unictype/pr_diacritic.h: Regenerated.
40102         * lib/unictype/pr_extender.h: Regenerated.
40103         * lib/unictype/pr_format_control.h: Regenerated.
40104         * lib/unictype/pr_grapheme_base.h: Regenerated.
40105         * lib/unictype/pr_grapheme_extend.h: Regenerated.
40106         * lib/unictype/pr_grapheme_link.h: Regenerated.
40107         * lib/unictype/pr_id_continue.h: Regenerated.
40108         * lib/unictype/pr_id_start.h: Regenerated.
40109         * lib/unictype/pr_ideographic.h: Regenerated.
40110         * lib/unictype/pr_ignorable_control.h: Regenerated.
40111         * lib/unictype/pr_lowercase.h: Regenerated.
40112         * lib/unictype/pr_math.h: Regenerated.
40113         * lib/unictype/pr_numeric.h: Regenerated.
40114         * lib/unictype/pr_other_alphabetic.h: Regenerated.
40115         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
40116         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
40117         * lib/unictype/pr_other_id_continue.h: Regenerated.
40118         * lib/unictype/pr_other_lowercase.h: Regenerated.
40119         * lib/unictype/pr_other_math.h: Regenerated.
40120         * lib/unictype/pr_punctuation.h: Regenerated.
40121         * lib/unictype/pr_sentence_terminal.h: Regenerated.
40122         * lib/unictype/pr_soft_dotted.h: Regenerated.
40123         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
40124         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
40125         * lib/unictype/pr_unified_ideograph.h: Regenerated.
40126         * lib/unictype/pr_uppercase.h: Regenerated.
40127         * lib/unictype/pr_xid_continue.h: Regenerated.
40128         * lib/unictype/pr_xid_start.h: Regenerated.
40129         * lib/unictype/pr_zero_width.h: Regenerated.
40130         * lib/unictype/scripts.h: Regenerated.
40131         * lib/unictype/scripts_byname.gperf: Regenerated.
40132         * lib/unictype/sy_java_ident.h: Regenerated.
40133         * lib/unilbrk/lbrkprop1.h: Regenerated.
40134         * lib/unilbrk/lbrkprop2.h: Regenerated.
40135         * tests/unictype/test-categ_C.c: Regenerated.
40136         * tests/unictype/test-categ_Cf.c: Regenerated.
40137         * tests/unictype/test-categ_Cn.c: Regenerated.
40138         * tests/unictype/test-categ_L.c: Regenerated.
40139         * tests/unictype/test-categ_Ll.c: Regenerated.
40140         * tests/unictype/test-categ_Lm.c: Regenerated.
40141         * tests/unictype/test-categ_Lo.c: Regenerated.
40142         * tests/unictype/test-categ_Lu.c: Regenerated.
40143         * tests/unictype/test-categ_M.c: Regenerated.
40144         * tests/unictype/test-categ_Mc.c: Regenerated.
40145         * tests/unictype/test-categ_Me.c: Regenerated.
40146         * tests/unictype/test-categ_Mn.c: Regenerated.
40147         * tests/unictype/test-categ_N.c: Regenerated.
40148         * tests/unictype/test-categ_Nd.c: Regenerated.
40149         * tests/unictype/test-categ_Nl.c: Regenerated.
40150         * tests/unictype/test-categ_No.c: Regenerated.
40151         * tests/unictype/test-categ_P.c: Regenerated.
40152         * tests/unictype/test-categ_Pd.c: Regenerated.
40153         * tests/unictype/test-categ_Pe.c: Regenerated.
40154         * tests/unictype/test-categ_Pf.c: Regenerated.
40155         * tests/unictype/test-categ_Pi.c: Regenerated.
40156         * tests/unictype/test-categ_Po.c: Regenerated.
40157         * tests/unictype/test-categ_Ps.c: Regenerated.
40158         * tests/unictype/test-categ_S.c: Regenerated.
40159         * tests/unictype/test-categ_Sk.c: Regenerated.
40160         * tests/unictype/test-categ_Sm.c: Regenerated.
40161         * tests/unictype/test-categ_So.c: Regenerated.
40162         * tests/unictype/test-ctype_alnum.c: Regenerated.
40163         * tests/unictype/test-ctype_alpha.c: Regenerated.
40164         * tests/unictype/test-ctype_graph.c: Regenerated.
40165         * tests/unictype/test-ctype_lower.c: Regenerated.
40166         * tests/unictype/test-ctype_print.c: Regenerated.
40167         * tests/unictype/test-ctype_punct.c: Regenerated.
40168         * tests/unictype/test-ctype_upper.c: Regenerated.
40169         * tests/unictype/test-decdigit.h: Regenerated.
40170         * tests/unictype/test-digit.h: Regenerated.
40171         * tests/unictype/test-numeric.h: Regenerated.
40172         * tests/unictype/test-pr_alphabetic.c: Regenerated.
40173         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
40174         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
40175         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
40176         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
40177         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
40178         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
40179         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
40180         * tests/unictype/test-pr_combining.c: Regenerated.
40181         * tests/unictype/test-pr_dash.c: Regenerated.
40182         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
40183         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
40184         * tests/unictype/test-pr_deprecated.c: Regenerated.
40185         * tests/unictype/test-pr_diacritic.c: Regenerated.
40186         * tests/unictype/test-pr_extender.c: Regenerated.
40187         * tests/unictype/test-pr_format_control.c: Regenerated.
40188         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
40189         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
40190         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
40191         * tests/unictype/test-pr_id_continue.c: Regenerated.
40192         * tests/unictype/test-pr_id_start.c: Regenerated.
40193         * tests/unictype/test-pr_ideographic.c: Regenerated.
40194         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
40195         * tests/unictype/test-pr_lowercase.c: Regenerated.
40196         * tests/unictype/test-pr_math.c: Regenerated.
40197         * tests/unictype/test-pr_numeric.c: Regenerated.
40198         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
40199         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
40200         Regenerated.
40201         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
40202         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
40203         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
40204         * tests/unictype/test-pr_other_math.c: Regenerated.
40205         * tests/unictype/test-pr_punctuation.c: Regenerated.
40206         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
40207         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
40208         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
40209         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
40210         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
40211         * tests/unictype/test-pr_uppercase.c: Regenerated.
40212         * tests/unictype/test-pr_xid_continue.c: Regenerated.
40213         * tests/unictype/test-pr_xid_start.c: Regenerated.
40214         * tests/unictype/test-pr_zero_width.c: Regenerated.
40215
40216         Update to Unicode 5.1.0.
40217         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
40218         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
40219         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
40220         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
40221         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
40222         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
40223         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
40224         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
40225         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
40226         (nonspacing_table_ind): Update.
40227         * tests/uniwidth/test-uc_width2.sh: Update expected result.
40228
40229         Update to Unicode 5.1.0.
40230         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
40231         code transform.
40232         * lib/uniname/uniname.c (unicode_character_name,
40233         unicode_name_character): Add the range 0x1Fxxx to the code transform.
40234         * lib/uniname/uninames.h: Regenerated.
40235         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
40236
40237 2009-02-07  Bruno Haible  <bruno@clisp.org>
40238
40239         Merge gen-ctype and gen-lbrk into a single program.
40240         * lib/gen-uni-tables.c: New file, incorporating
40241         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
40242         Add directory prefixes to the names of the generated files.
40243         * lib/unictype/gen-ctype.c: Remove file.
40244         * lib/unilbrk/gen-lbrk.c: Remove file.
40245         * modules/gen-uni-tables: New file.
40246         * modules/unictype/gen-ctype: Remove file.
40247         * modules/unilbrk/gen-lbrk: Remove file.
40248
40249 2009-02-07  Bruno Haible  <bruno@clisp.org>
40250
40251         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
40252
40253         New module 'unistr/u32-strcoll'.
40254         * modules/unistr/u32-strcoll: New file.
40255         * lib/unistr/u32-strcoll.c: New file.
40256
40257         New module 'unistr/u16-strcoll'.
40258         * modules/unistr/u16-strcoll: New file.
40259         * lib/unistr/u16-strcoll.c: New file.
40260
40261         New module 'unistr/u8-strcoll'.
40262         * modules/unistr/u8-strcoll: New file.
40263         * lib/unistr/u8-strcoll.c: New file.
40264         * lib/unistr/u-strcoll.h: New file.
40265
40266 2009-02-07  Bruno Haible  <bruno@clisp.org>
40267
40268         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
40269         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
40270         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
40271         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
40272         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
40273         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
40274
40275 2009-02-07  Bruno Haible  <bruno@clisp.org>
40276
40277         Make 64-bit clean.
40278         * lib/unictype/gen-ctype.c (output_predicate, output_category,
40279         output_combclass, output_bidi_category, output_decimal_digit,
40280         output_digit, output_numeric, output_mirror, output_scripts,
40281         output_ident_category): Use proper width specifier in format strings.
40282
40283 2009-02-07  Bruno Haible  <bruno@clisp.org>
40284
40285         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
40286         failure behaviour.
40287
40288 2009-02-07  Jim Meyering  <meyering@redhat.com>
40289
40290         regex: avoid compilation failure with upcoming gcc-4.4
40291         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
40292         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
40293         "... error: integer overflow in preprocessor expression".
40294
40295 2009-02-05  Ben Pfaff  <blp@gnu.org>
40296
40297         Fix link errors on Windows when close module is used.
40298         * modules/close: Add $(LIB_CLOSE) to Link section.
40299         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
40300         $(LIB_CLOSE) on Windows.
40301
40302 2009-02-05  Jim Meyering  <meyering@redhat.com>
40303
40304         still avoid unused-parameter warnings, but do it cleanly
40305         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
40306         (get_fs_usage): Cast to void instead.
40307         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
40308         (dev_from_mount_options, read_file_system_list): Cast to void.
40309         Prompted by Bruno Haible.
40310
40311 2009-02-04  Jim Meyering  <meyering@redhat.com>
40312
40313         fsusage.c: correct copyright year
40314         * lib/fsusage.c: Reflect year in which the change is pushed into
40315
40316         avoid misc. warnings
40317         * lib/fsusage.c (UNUSED_PARAM): Define.
40318         (get_fs_usage): Mark parameter "disk" as unused.
40319         * lib/getugroups.c (getgrent): Use "void" in prototype.
40320         * lib/mountlist.c: Mark unused parameters.
40321         (read_file_system_list): Declare a local with "const".
40322         * lib/nanosleep.c (getnow): Declare static.
40323         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
40324
40325         dirfd: set errno upon failure
40326         * lib/dirfd.c: Include <errno.h>.
40327         Set errno to ENOTSUP when returning -1.
40328         * modules/dirfd (Depends-on): Add errno.
40329         Suggested by John Kodis <kodis@comcast.net>.
40330
40331 2009-02-01  Bruno Haible  <bruno@clisp.org>
40332
40333         Don't assume sizeof (long) >= sizeof (void *).
40334         * lib/memcmp.c: Include stdint.h.
40335         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
40336         srcp2 to 'const byte *'.
40337         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
40338         types to uintptr_t.
40339         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
40340         * modules/memcmp (Depends-on): Add stdint.
40341         Reported by Ozkan Sezer <sezeroz@gmail.com>.
40342
40343 2009-01-30  Eric Blake  <ebb9@byu.net>
40344
40345         fix more require-before-expand issues
40346         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
40347         expand, AC_PROG_AWK.
40348         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
40349
40350 2009-01-28  Eric Blake  <ebb9@byu.net>
40351
40352         version-etc: use consistent URL formatting
40353         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
40354         Improve formatting.  Use fputs for string without %.
40355
40356 2009-01-28  Jim Meyering  <meyering@redhat.com>
40357
40358         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
40359         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
40360         "underquoted definition of NAME" from autoconf-2.59.
40361
40362 2009-01-28  Bruno Haible  <bruno@clisp.org>
40363
40364         * doc/gnulib.texi: Add "Obsolete modules" to index.
40365
40366 2009-01-28  Jim Meyering  <meyering@redhat.com>
40367
40368         useless-if-before-free: recognize more variants
40369         * build-aux/useless-if-before-free: Also recognize e.g.,
40370         if (NULL != p) free (p);
40371
40372 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
40373
40374         test-getaddrinfo: skip (don't fail) this test when there's no network
40375         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
40376         on the presumption that it means you lack network access.
40377
40378 2009-01-26  Jim Meyering  <meyering@redhat.com>
40379
40380         fflush: avoid warnings on modern systems
40381         * lib/fflush.c (rpl_fflush): Move declarations of locals,
40382         pos and result, into scopes where they're used.
40383
40384 2009-01-26  Eric Blake  <ebb9@byu.net>
40385
40386         Silence warning reintroduced by recent extensions patch.
40387         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
40388         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
40389         autoconf.
40390
40391         Backport improved autoconf semantics of AC_DEFUN_ONCE.
40392         * m4/00gnulib.m4: New file.
40393         * gnulib-tool (func_get_filelist): Always use it.
40394         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
40395         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
40396
40397 2009-01-25  Bruno Haible  <bruno@clisp.org>
40398
40399         Make test-quotearg work on MacOS X and AIX.
40400         * tests/test-quotearg.sh: New file.
40401         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
40402         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
40403         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
40404         include <libintl.h>.
40405         (fake_locale): Remove variable.
40406         (gettext, dgettext, dcgettext): Remove functions.
40407         (main): Instead of setting a fake locale, set a real locale. Call
40408         textdomain and bindtextdomain.
40409         * modules/quotearg-tests (Files): Add the new files.
40410         (Depends-on): Add gettext, setenv, unsetenv.
40411         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
40412         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
40413         Augment TESTS_ENVIRONMENT.
40414
40415 2009-01-25  Bruno Haible  <bruno@clisp.org>
40416
40417         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
40418         fr_FR.ISO8859-1 locale on MacOS X.
40419         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
40420         ja_JP.eucJP locale on MacOS X.
40421         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
40422         zh_CN.GB18030 locale on MacOS X.
40423
40424 2009-01-25  Bruno Haible  <bruno@clisp.org>
40425
40426         Avoid link errors on MacOS X 10.3.
40427         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
40428         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
40429
40430 2009-01-25  Bruno Haible  <bruno@clisp.org>
40431
40432         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
40433         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
40434         * modules/pipe (Files): Remove m4/posix_spawn.m4.
40435         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
40436         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
40437         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
40438         posix_spawnattr_init, posix_spawnattr_setsigmask,
40439         posix_spawnattr_setflags, posix_spawnattr_destroy.
40440
40441         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
40442         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
40443         * modules/execute (Files): Remove m4/posix_spawn.m4.
40444         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
40445         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
40446         posix_spawnattr_init, posix_spawnattr_setsigmask,
40447         posix_spawnattr_setflags, posix_spawnattr_destroy.
40448
40449 2009-01-25  Bruno Haible  <bruno@clisp.org>
40450
40451         * lib/glthread/threadlib.c: Include <stdlib.h>.
40452
40453 2009-01-25  Bruno Haible  <bruno@clisp.org>
40454
40455         * lib/glthread/threadlib.c (dummy): New declaration.
40456
40457 2009-01-25  Bruno Haible  <bruno@clisp.org>
40458
40459         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
40460         multibyte characters also for the GB18030 encoding. Don't crash when
40461         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
40462
40463 2009-01-25  Bruno Haible  <bruno@clisp.org>
40464
40465         Avoid redefining 'struct random_data' on OSF/1 5.1.
40466         * lib/stdlib.in.h: Include <random.h> if it exists.
40467         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
40468         HAVE_RANDOM_H. Include <random.h> when testing whether
40469         'struct random_data' exists.
40470         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
40471
40472 2009-01-25  Bruno Haible  <bruno@clisp.org>
40473
40474         Don't install charset.alias on MacOS X >= 10.3.
40475         * lib/localcharset.c (DARWIN7): New macro.
40476         (get_charset_aliases): Hardcode the result for Darwin7.
40477         * modules/localcharset (install-exec-local): Don't install
40478         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
40479
40480 2009-01-25  Bruno Haible  <bruno@clisp.org>
40481
40482         Don't install charset.alias on mingw and Cygwin.
40483         * modules/localcharset (install-exec-local): Don't install
40484         charset.alias on mingw and Cygwin, if the file does not yet exist.
40485         The result for these platforms is hardcoded in localcharset.c.
40486
40487 2009-01-25  Bruno Haible  <bruno@clisp.org>
40488
40489         Make it possible again to use AC_GNU_SOURCE together with gnulib.
40490         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
40491         before requiring AC_USE_SYSTEM_EXTENSIONS.
40492
40493 2009-01-25  Jim Meyering  <meyering@redhat.com>
40494
40495         c-strtod: avoid warnings
40496         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
40497         "assignment discards qualifiers from pointer target type" warnings.
40498
40499 2009-01-24  Bruno Haible  <bruno@clisp.org>
40500
40501         Add support for non-UTF-8 locales on MacOS X.
40502         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
40503         canonical encodings. For Darwin 7 and newer, don't map traditional
40504         encodings to UTF-8.
40505         Reported by Vincent Lefevre <vincent@vinc17.org>
40506         at <http://savannah.gnu.org/bugs/?25235>.
40507
40508 2009-01-24  Bruno Haible  <bruno@clisp.org>
40509
40510         * doc/gnulib.texi (Obsolete modules): New section.
40511         Reported by Mike Frysinger <vapier@gentoo.org>.
40512
40513 2009-01-24  Bruno Haible  <bruno@clisp.org>
40514
40515         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
40516         (%.dvi): New rule.
40517
40518 2009-01-24  Bruno Haible  <bruno@clisp.org>
40519
40520         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
40521         Reported by Eric Blake.
40522
40523 2009-01-24  Bruno Haible  <bruno@clisp.org>
40524
40525         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
40526         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
40527         Reported by Gary V. Vaughan <gary@gnu.org>.
40528
40529 2009-01-24  Bruno Haible  <bruno@clisp.org>
40530
40531         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
40532
40533 2009-01-23  Bruno Haible  <bruno@clisp.org>
40534
40535         Make c-strtod, c-strtold usable in libraries.
40536         * lib/c-strtod.c: Include string.h instead of xalloc.h.
40537         (C_STRTOD): Call strdup instead of xstrdup.
40538         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
40539         * modules/c-strtold (Depends-on): Likewise.
40540         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
40541         * NEWS: Mention the change.
40542         Reported by Michael Gold <mgold@ncf.ca>.
40543
40544 2009-01-23  Jim Meyering  <meyering@redhat.com>
40545
40546         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
40547         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
40548         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
40549
40550 2009-01-23  Simon Josefsson  <simon@josefsson.org>
40551
40552         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
40553         GNU CoreUtils.
40554         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
40555         * modules/version-etc (Description): Update.
40556
40557 2009-01-22  Bruno Haible  <bruno@clisp.org>
40558
40559         Cache the C locale object.
40560         * lib/c-strtod.c (c_locale_cache): New variable.
40561         (c_locale): New function.
40562         (C_STRTOD): Use it, and don't call freelocale.
40563         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
40564         Suggested by Paolo Bonzini.
40565
40566 2009-01-21  Bruno Haible  <bruno@clisp.org>
40567
40568         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
40569         conditions other than overflow.
40570
40571 2009-01-21  Bruno Haible  <bruno@clisp.org>
40572
40573         * lib/c-strtod.c: Include errno.h.
40574         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
40575         value from STRTOD_L and STRTOD.
40576
40577 2009-01-21  Bruno Haible  <bruno@clisp.org>
40578         and Jim Meyering  <meyering@redhat.com>
40579
40580         nanosleep: skip configure test (fail it) for apple universal builds
40581         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
40582         universal builds, assume that nanosleep does not work.
40583         * modules/nanosleep (Depends-on): Add multiarch.
40584
40585         mktime: skip configure test (fail it) for apple universal builds
40586         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
40587         universal builds, assume that mktime does not work.
40588         * modules/mktime (Depends-on): Add multiarch.
40589
40590 2009-01-21  Eric Blake  <ebb9@byu.net>
40591
40592         multiarch: avoid expand-before-require warning
40593         * modules/multiarch (configure.ac): Require, rather than expand,
40594         gl_MULTIARCH.
40595         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
40596         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
40597         enforce that all clients require it.  Partial reversion of
40598         2008-12-29 patch.
40599
40600         error: avoid expand-before-require warning
40601         * modules/errno (configure.ac): Require, rather than expand,
40602         gl_HEADER_ERRNO_H.
40603         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
40604         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
40605         enforce that all clients require it.
40606
40607         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
40608         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
40609         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
40610         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
40611
40612 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
40613
40614         Revert:
40615         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
40616
40617         regex: do not depend on obsolete modules.
40618         * modules/regex: Remove memcmp and memmove.
40619
40620 2009-01-20  Bruno Haible  <bruno@clisp.org>
40621
40622         Make the 'link' module link on Windows NT 4.
40623         * lib/link.c (_WIN32_WINNT): Don't define.
40624         (CreateHardLinkFuncType): New type.
40625         (CreateHardLinkFunc, initialized): New variables.
40626         (initialize): New function.
40627         (link): Invoke CreateHardLink indirectly through the function pointer.
40628
40629 2009-01-20  Bruno Haible  <bruno@clisp.org>
40630
40631         Fix compilation failure on mingw.
40632         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
40633
40634 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
40635
40636         * doc/c-strtod.texi: Mention a couple of restrictions.
40637
40638 2009-01-20  Jim Meyering  <meyering@redhat.com>
40639
40640         gettimeofday: move more declarations out of functions
40641         * lib/gettimeofday.c: Move extern declarations of tzset and
40642         gmtime out of containing functions.  Prompted by Bruno Haible.
40643
40644 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
40645
40646         regex: do not depend on obsolete modules.
40647         * modules/regex: Remove memcmp and memmove.
40648
40649 2009-01-19  Bruno Haible  <bruno@clisp.org>
40650
40651         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
40652         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
40653         gl_BIGENDIAN, not AC_C_BIGENDIAN.
40654         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
40655         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
40656
40657 2009-01-19  Bruno Haible  <bruno@clisp.org>
40658
40659         * tests/test-link.c: Include <errno.h>.
40660         (main): Exit with code 77 when a hard link cannot be created due to
40661         the file system.
40662         * tests/test-link.sh: Skip test when a hard link cannot be created due
40663         to the file system.
40664         Suggested by Eric Blake.
40665
40666 2009-01-19  Martin Lambers  <marlam@marlam.de>
40667
40668         * modules/link-tests: New file.
40669         * tests/test-link.sh: New file.
40670         * tests/test-link.c: New file.
40671
40672 2009-01-19  Eric Blake  <ebb9@byu.net>
40673
40674         doc: mention another function added in cygwin 1.7.0
40675         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
40676         Another new function in cygwin 1.7.
40677
40678 2009-01-19  Bruno Haible  <bruno@clisp.org>
40679
40680         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
40681         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
40682         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
40683         gl_BIGENDIAN, not AC_C_BIGENDIAN.
40684         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
40685         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
40686         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
40687         * m4/md4.m4 (gl_MD4): Likewise.
40688         * m4/md5.m4 (gl_MD5): Likewise.
40689         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
40690         * m4/sha1.m4 (gl_SHA1): Likewise.
40691         * m4/sha256.m4 (gl_SHA256): Likewise.
40692         * m4/sha512.m4 (gl_SHA512): Likewise.
40693
40694 2009-01-19  Bruno Haible  <bruno@clisp.org>
40695
40696         * modules/uniname/uniname-tests (Depends-on): Add progname.
40697         * tests/uniname/test-uninames.c: Include progname.h.
40698         (main): Call set_program_name.
40699
40700         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
40701         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
40702         (main): Call set_program_name.
40703
40704         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
40705         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
40706         (main): Call set_program_name.
40707
40708         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
40709         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
40710         (main): Call set_program_name.
40711
40712         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
40713         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
40714         (main): Call set_program_name.
40715
40716         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
40717         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
40718         (main): Call set_program_name.
40719
40720         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
40721         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
40722         (main): Call set_program_name.
40723
40724         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
40725         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
40726         (main): Call set_program_name.
40727
40728         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
40729         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
40730         (main): Call set_program_name.
40731
40732 2009-01-19  Eric Blake  <ebb9@byu.net>
40733
40734         test-unistd: test previous patch
40735         * tests/test-unistd.c: Test *_FILENO macros.
40736
40737         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
40738         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
40739         Guarantee a definition.
40740         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
40741         * modules/unistd-safer (Depends-on): Add dependency on unistd.
40742         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
40743         * lib/dup-safer.c (STDERR_FILENO): Likewise.
40744         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
40745         Likewise.
40746         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
40747         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
40748         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
40749         Likewise.
40750         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
40751         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
40752         (STDERR_FILENO): Likewise.
40753         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
40754         (STDERR_FILENO): Likewise.
40755         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
40756         (STDERR_FILENO): Likewise.
40757         Reported by Elbert Pol.
40758
40759 2009-01-19  Eric Blake  <ebb9@byu.net>
40760
40761         doc: mention more functions added in cygwin 1.7.0
40762         * doc/posix-functions/abort.texi (abort): Update wording related
40763         to cygwin.
40764         * doc/posix-functions/daylight.texi (daylight): Likewise.
40765         * doc/posix-functions/optarg.texi (optarg): Likewise.
40766         * doc/posix-functions/optarg.texi (opterr): Likewise.
40767         * doc/posix-functions/optarg.texi (optind): Likewise.
40768         * doc/posix-functions/optarg.texi (optopt): Likewise.
40769         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
40770         worked in 1.5.x, and was withdrawn in 1.7.
40771         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
40772         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
40773         cygwin versions.
40774         * doc/posix-functions/perror.texi (perror): Likewise.
40775         * doc/posix-functions/printf.texi (printf): Likewise.
40776         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
40777         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
40778         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
40779         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
40780         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
40781         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
40782         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
40783         Likewise.
40784         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
40785         Likewise.
40786         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
40787         this function.
40788         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
40789         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
40790         Likewise.
40791         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
40792         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
40793         * doc/posix-functions/confstr.texi (confstr): Likewise.
40794         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
40795         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
40796         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
40797         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
40798         * doc/posix-functions/fputws.texi (fputws): Likewise.
40799         * doc/posix-functions/fwide.texi (fwide): Likewise.
40800         * doc/posix-functions/getwc.texi (getwc): Likewise.
40801         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
40802         * doc/posix-functions/putwc.texi (putwc): Likewise.
40803         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
40804         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
40805         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
40806         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
40807         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
40808         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
40809         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
40810         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
40811         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
40812         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
40813         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
40814
40815 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
40816
40817         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
40818         * lib/ioctl.c: Include <sys/ioctl.h>.
40819
40820 2009-01-19  Simon Josefsson  <simon@josefsson.org>
40821
40822         * modules/getdate-tests (Depends-on): Add progname.
40823         * tests/test-getdate.c: Use progname module, to avoid link errors
40824         on non-glibc systems.
40825
40826 2009-01-18  Simon Josefsson  <simon@josefsson.org>
40827
40828         * modules/filenamecat-tests (Depends-on): Add progname.
40829         * modules/fstrcmp-tests (Depends-on): Likewise.
40830
40831         * tests/test-filenamecat.c: Use progname module, to avoid link
40832         errors on non-glibc systems.
40833         * tests/test-fstrcmp.c: Likewise.
40834
40835 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
40836
40837         gettimeofday: avoid warning: nested extern declaration of 'localtime'
40838         * lib/gettimeofday.c: Move extern declaration out of function.
40839
40840 2009-01-18  Bruno Haible  <bruno@clisp.org>
40841
40842         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
40843         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
40844         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
40845
40846 2009-01-18  Bruno Haible  <bruno@clisp.org>
40847
40848         * lib/strftime.c (MEMPCPY): Remove unused macro.
40849         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
40850
40851 2009-01-18  Martin Lambers  <marlam@marlam.de>
40852
40853         New module 'link'.
40854         * lib/unistd.in.h (link): New declaration.
40855         * lib/link.c: New file.
40856         * m4/link.m4: New file.
40857         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
40858         HAVE_LINK.
40859         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
40860         * modules/link: New file.
40861         * doc/posix-functions/link.texi: Mention the new module.
40862
40863 2009-01-18  Bruno Haible  <bruno@clisp.org>
40864
40865         * tests/test-avltree_list.c (main): Call set_program_name.
40866         * tests/test-avltree_oset.c (main): Likewise.
40867         * tests/test-obstack-printf.c: Include progname.h.
40868         (main): Call set_program_name.
40869         * tests/test-quotearg.c: Include progname.h.
40870         (main): Call set_program_name.
40871         * tests/test-xmemdup0.c: Include progname.h.
40872         (main): Call set_program_name.
40873
40874 2009-01-18  Bruno Haible  <bruno@clisp.org>
40875
40876         New module 'alphasort'.
40877         * lib/dirent.in.h (alphasort): New declaration.
40878         * lib/alphasort.c: New file, from glibc with modifications.
40879         * m4/alphasort.m4: New file.
40880         * modules/alphasort: New file.
40881         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
40882         HAVE_ALPHASORT.
40883         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
40884         HAVE_ALPHASORT.
40885         * doc/posix-functions/alphasort.texi: Mention the new module and the
40886         portability problems.
40887
40888 2009-01-18  Bruno Haible  <bruno@clisp.org>
40889
40890         New module 'scandir'.
40891         * lib/dirent.in.h (scandir): New declaration.
40892         * lib/scandir.c: New file, from glibc with modifications.
40893         * m4/scandir.m4: New file.
40894         * modules/scandir: New file.
40895         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
40896         HAVE_SCANDIR.
40897         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
40898         HAVE_SCANDIR.
40899         * doc/posix-functions/scandir.texi: Mention the new module and the
40900         portability problems.
40901
40902 2009-01-17  Bruno Haible  <bruno@clisp.org>
40903
40904         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
40905         Update documentation.
40906         (func_remove_suffix): Escape all dots in the suffix. Update
40907         documentation.
40908         (func_filter_filelist): Update documentation.
40909         Reported by Ralf Wildenhues.
40910
40911 2009-01-17  Bruno Haible  <bruno@clisp.org>
40912
40913         * modules/dprintf-posix-tests: New file.
40914         * tests/test-dprintf-posix.sh: New file.
40915         * tests/test-dprintf-posix.c: New file.
40916
40917         New modules 'dprintf', 'dprintf-posix'.
40918         * lib/stdio.in.h (dprintf): New declaration.
40919         * lib/dprintf.c: New file.
40920         * m4/dprintf.m4: New file.
40921         * m4/dprintf-posix.m4: New file.
40922         * modules/dprintf: New file.
40923         * modules/dprintf-posix: New file.
40924         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
40925         HAVE_DPRINTF, REPLACE_DPRINTF.
40926         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
40927         HAVE_DPRINTF, REPLACE_DPRINTF.
40928         * doc/posix-functions/dprintf.texi: Mention the new modules.
40929
40930 2009-01-17  Bruno Haible  <bruno@clisp.org>
40931
40932         * modules/vdprintf-posix-tests: New file.
40933         * tests/test-vdprintf-posix.sh: New file.
40934         * tests/test-vdprintf-posix.c: New file.
40935
40936         New modules 'vdprintf', 'vdprintf-posix'.
40937         * lib/stdio.in.h (vdprintf): New declaration.
40938         * lib/vdprintf.c: New file.
40939         * m4/vdprintf.m4: New file.
40940         * m4/vdprintf-posix.m4: New file.
40941         * modules/vdprintf: New file.
40942         * modules/vdprintf-posix: New file.
40943         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
40944         HAVE_VDPRINTF, REPLACE_VDPRINTF.
40945         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
40946         HAVE_VDPRINTF, REPLACE_VDPRINTF.
40947         * doc/posix-functions/vdprintf.texi: Mention the new modules.
40948
40949 2009-01-17  Bruno Haible  <bruno@clisp.org>
40950
40951         Fix replacement of fopen on mingw.
40952         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
40953         mingw.
40954
40955 2009-01-17  Bruno Haible  <bruno@clisp.org>
40956
40957         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
40958         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
40959
40960 2009-01-17  Bruno Haible  <bruno@clisp.org>
40961
40962         Avoid test-fflush2.sh failure on mingw.
40963         * tests/test-fflush2.c: Include binary-io.h.
40964         (main): Put standard input into binary mode.
40965         * modules/fflush-tests (Depends-on): Add binary-io.
40966
40967 2009-01-17  Bruno Haible  <bruno@clisp.org>
40968
40969         * lib/wchar.in.h: In another particular situation, include only the
40970         system's <wchar.h> file.
40971         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
40972         Reported by Albert Chin-A-Young <china@thewrittenword.com>
40973         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
40974
40975 2009-01-17  Bruno Haible  <bruno@clisp.org>
40976
40977         Support for stripping executables in --enable-relocatable.
40978         * build-aux/install-reloc: Expect one more argument, or an environment
40979         variable RELOC_STRIP_PROG. If set, strip the destination program and
40980         its wrapper.
40981         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
40982         RELOC_STRIP_PROG.
40983         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
40984         to set RELOCATABLE_STRIP.
40985         * NEWS: Mention the new Makefile requirement.
40986
40987 2009-01-17  Bruno Haible  <bruno@clisp.org>
40988
40989         * build-aux/install-reloc: Remove debugging information left over by
40990         C compiler on MacOS X.
40991
40992 2009-01-17  Bruno Haible  <bruno@clisp.org>
40993
40994         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
40995         * lib/progreloc.c (find_executable): Fix type of pointer passed to
40996         _NSGetExecutablePath.
40997
40998 2009-01-16  Jim Meyering  <meyering@redhat.com>
40999
41000         strerror: avoid warnings about discarding "const"
41001         * lib/strerror.c (rpl_strerror): Instead of returning a const
41002         string from each and every "case", use a variable, and add a single
41003         cast after the switch.
41004
41005 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
41006
41007         * lib/arpa_inet.in.h: Add extern "C" block for C++.
41008
41009 2009-01-16  Bruno Haible  <bruno@clisp.org>
41010
41011         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
41012         array initializer syntax that also works in C++ mode.
41013         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
41014
41015 2009-01-16  Jim Meyering  <meyering@redhat.com>
41016
41017         poll: suppress a warning
41018         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
41019         to ignore "...unsigned expression < 0 is always false" warnings.
41020
41021 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
41022
41023         poll: remove declarations of unused variables
41024         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
41025         sockbuf and optlen.
41026
41027 2009-01-15  Bruno Haible  <bruno@clisp.org>
41028
41029         Make fflush-after-ungetc POSIX compliant on BSD systems.
41030         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
41031         (clear_ungetc_buffer): Implement also for other systems.
41032         (rpl_fflush): On glibc systems, invoke
41033         clear_ungetc_buffer_preserving_position. Otherwise, invoke
41034         clear_ungetc_buffer after fetching the stream's position, not before.
41035
41036 2009-01-15  Bruno Haible  <bruno@clisp.org>
41037
41038         Make fflush-after-ungetc POSIX compliant on glibc systems.
41039         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
41040         after ungetc.
41041         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
41042         (rpl_fflush): On glibc systems, simply call the system's fflush
41043         function after clearing the ungetc buffer.
41044         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
41045         Instead, lseek only to the end of file, then use the system's fseeko
41046         for the rest. On glibc systems, reset the EOF indicator bit.
41047
41048 2009-01-15  Jim Meyering  <meyering@redhat.com>
41049
41050         openmp.m4: revert quote-adding change, for portability to older autoconf
41051         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
41052         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
41053         Simon Josefsson noticed the problem when using autoconf-2.61.
41054
41055 2009-01-15  Bruno Haible  <bruno@clisp.org>
41056
41057         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
41058         * tests/test-fflush2.c (ASSERT): Always fail.
41059         (main): Add two tests for fflush() after ungetc(), taking into account
41060         the Austin Group's clarification.
41061         Suggested by Eric Blake.
41062
41063 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
41064
41065         mktime.m4: remove K&R-style function prototypes
41066         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
41067         for the Sun C++ compiler.
41068
41069 2009-01-14  Bruno Haible  <bruno@clisp.org>
41070
41071         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
41072         while including <wchar.h>.
41073         * lib/wchar.in.h: In two particular situations on HP-UX, include only
41074         the system's <wchar.h> file.
41075         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
41076
41077 2009-01-14  Bruno Haible  <bruno@clisp.org>
41078
41079         * m4/csharp.m4: Don't mention gettext on the serial number line.
41080         * m4/csharpexec.m4: Likewise.
41081         * m4/eaccess.m4: Likewise.
41082         * m4/javaexec.m4: Likewise.
41083         * m4/sig_atomic_t.m4: Likewise.
41084         * m4/tmpdir.m4: Likewise.
41085         * m4/intldir.m4: Bump gettext version.
41086         * m4/lib-ld.m4: Likewise.
41087
41088 2009-01-14  Bruno Haible  <bruno@clisp.org>
41089
41090         * lib/progname.c (set_program_name): Add more comments.
41091         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
41092
41093 2009-01-14  Simon Josefsson  <simon@josefsson.org>
41094
41095         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
41096         were sys/stat.h does not define it.
41097
41098 2009-01-14  Jim Meyering  <meyering@redhat.com>
41099
41100         many *.m4 files: improve m4 quoting
41101         99% of this change was performed by running the following commands:
41102         git ls-files | grep '\.m4$' | xargs perl -pi \
41103           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
41104           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
41105           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
41106           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
41107         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
41108         The remainder were to add Copyright dates, increment serial numbers,
41109         undo some changes in comments, exclude m4/intl.m4, and add quotes
41110         around the "1" in ",1" where the unusual spacing prohibited the
41111         above regexps from doing the job.  For more details, see
41112         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
41113         * m4/acl.m4: Modified.
41114         * m4/afs.m4: Likewise.
41115         * m4/alloca.m4: Likewise.
41116         * m4/argp.m4: Likewise.
41117         * m4/argz.m4: Likewise.
41118         * m4/atexit.m4: Likewise.
41119         * m4/bison-i18n.m4: Likewise.
41120         * m4/bison.m4: Likewise.
41121         * m4/byteswap.m4: Likewise.
41122         * m4/c-stack.m4: Likewise.
41123         * m4/c-strtod.m4: Likewise.
41124         * m4/calloc.m4: Likewise.
41125         * m4/canonicalize-lgpl.m4: Likewise.
41126         * m4/chown.m4: Likewise.
41127         * m4/clock_time.m4: Likewise.
41128         * m4/codeset.m4: Likewise.
41129         * m4/copy-file.m4: Likewise.
41130         * m4/csharp.m4: Likewise.
41131         * m4/csharpcomp.m4: Likewise.
41132         * m4/csharpexec.m4: Likewise.
41133         * m4/d-ino.m4: Likewise.
41134         * m4/d-type.m4: Likewise.
41135         * m4/dirfd.m4: Likewise.
41136         * m4/double-slash-root.m4: Likewise.
41137         * m4/eaccess.m4: Likewise.
41138         * m4/eealloc.m4: Likewise.
41139         * m4/environ.m4: Likewise.
41140         * m4/errno_h.m4: Likewise.
41141         * m4/euidaccess.m4: Likewise.
41142         * m4/execute.m4: Likewise.
41143         * m4/fatal-signal.m4: Likewise.
41144         * m4/fchdir.m4: Likewise.
41145         * m4/fcntl_h.m4: Likewise.
41146         * m4/fileblocks.m4: Likewise.
41147         * m4/filenamecat.m4: Likewise.
41148         * m4/findprog.m4: Likewise.
41149         * m4/flexmember.m4: Likewise.
41150         * m4/fnmatch.m4: Likewise.
41151         * m4/fopen.m4: Likewise.
41152         * m4/fpending.m4: Likewise.
41153         * m4/fprintf-posix.m4: Likewise.
41154         * m4/free.m4: Likewise.
41155         * m4/frexp.m4: Likewise.
41156         * m4/frexpl.m4: Likewise.
41157         * m4/fsusage.m4: Likewise.
41158         * m4/ftruncate.m4: Likewise.
41159         * m4/gc-camellia.m4: Likewise.
41160         * m4/gc-random.m4: Likewise.
41161         * m4/gc.m4: Likewise.
41162         * m4/getaddrinfo.m4: Likewise.
41163         * m4/getcwd-abort-bug.m4: Likewise.
41164         * m4/getcwd-path-max.m4: Likewise.
41165         * m4/getdate.m4: Likewise.
41166         * m4/getdomainname.m4: Likewise.
41167         * m4/getgroups.m4: Likewise.
41168         * m4/gethostname.m4: Likewise.
41169         * m4/gethrxtime.m4: Likewise.
41170         * m4/getline.m4: Likewise.
41171         * m4/getloadavg.m4: Likewise.
41172         * m4/getndelim2.m4: Likewise.
41173         * m4/getpass.m4: Likewise.
41174         * m4/gettext.m4: Likewise.
41175         * m4/gettime.m4: Likewise.
41176         * m4/gettimeofday.m4: Likewise.
41177         * m4/gnulib-common.m4: Likewise.
41178         * m4/group-member.m4: Likewise.
41179         * m4/host-os.m4: Likewise.
41180         * m4/iconv.m4: Likewise.
41181         * m4/iconv_open.m4: Likewise.
41182         * m4/inet_ntop.m4: Likewise.
41183         * m4/inet_pton.m4: Likewise.
41184         * m4/inline.m4: Likewise.
41185         * m4/intldir.m4: Likewise.
41186         * m4/intlmacosx.m4: Likewise.
41187         * m4/intmax.m4: Likewise.
41188         * m4/intmax_t.m4: Likewise.
41189         * m4/inttypes.m4: Likewise.
41190         * m4/inttypes_h.m4: Likewise.
41191         * m4/inttypes-pri.m4: Likewise.
41192         * m4/isapipe.m4: Likewise.
41193         * m4/isnand.m4: Likewise.
41194         * m4/isnanf.m4: Likewise.
41195         * m4/isnanl.m4: Likewise.
41196         * m4/javacomp.m4: Likewise.
41197         * m4/javaexec.m4: Likewise.
41198         * m4/jm-winsz1.m4: Likewise.
41199         * m4/jm-winsz2.m4: Likewise.
41200         * m4/lchown.m4: Likewise.
41201         * m4/lcmessage.m4: Likewise.
41202         * m4/ldexpl.m4: Likewise.
41203         * m4/lib-ld.m4: Likewise.
41204         * m4/lib-link.m4: Likewise.
41205         * m4/libsigsegv.m4: Likewise.
41206         * m4/link-follow.m4: Likewise.
41207         * m4/localcharset.m4: Likewise.
41208         * m4/locale-fr.m4: Likewise.
41209         * m4/locale-ja.m4: Likewise.
41210         * m4/locale-tr.m4: Likewise.
41211         * m4/locale-zh.m4: Likewise.
41212         * m4/lock.m4: Likewise.
41213         * m4/longlong.m4: Likewise.
41214         * m4/ls-mntd-fs.m4: Likewise.
41215         * m4/lstat.m4: Likewise.
41216         * m4/malloc.m4: Likewise.
41217         * m4/mathl.m4: Likewise.
41218         * m4/mbrtowc.m4: Likewise.
41219         * m4/mbstate_t.m4: Likewise.
41220         * m4/mbswidth.m4: Likewise.
41221         * m4/memchr.m4: Likewise.
41222         * m4/memcmp.m4: Likewise.
41223         * m4/memcpy.m4: Likewise.
41224         * m4/memmem.m4: Likewise.
41225         * m4/memmove.m4: Likewise.
41226         * m4/mempcpy.m4: Likewise.
41227         * m4/memrchr.m4: Likewise.
41228         * m4/memset.m4: Likewise.
41229         * m4/minmax.m4: Likewise.
41230         * m4/mkdir-slash.m4: Likewise.
41231         * m4/mkdtemp.m4: Likewise.
41232         * m4/mktime.m4: Likewise.
41233         * m4/mmap-anon.m4: Likewise.
41234         * m4/mountlist.m4: Likewise.
41235         * m4/nanosleep.m4: Likewise.
41236         * m4/nls.m4: Likewise.
41237         * m4/nocrash.m4: Likewise.
41238         * m4/open.m4: Likewise.
41239         * m4/openat.m4: Likewise.
41240         * m4/openmp.m4: Likewise.
41241         * m4/pathmax.m4: Likewise.
41242         * m4/perl.m4: Likewise.
41243         * m4/physmem.m4: Likewise.
41244         * m4/pipe.m4: Likewise.
41245         * m4/po.m4: Likewise.
41246         * m4/poll.m4: Likewise.
41247         * m4/posixtm.m4: Likewise.
41248         * m4/posixver.m4: Likewise.
41249         * m4/printf-frexp.m4: Likewise.
41250         * m4/printf-frexpl.m4: Likewise.
41251         * m4/printf-posix.m4: Likewise.
41252         * m4/printf-posix-rpl.m4: Likewise.
41253         * m4/printf.m4: Likewise.
41254         * m4/progtest.m4: Likewise.
41255         * m4/putenv.m4: Likewise.
41256         * m4/readline.m4: Likewise.
41257         * m4/readlink.m4: Likewise.
41258         * m4/readutmp.m4: Likewise.
41259         * m4/realloc.m4: Likewise.
41260         * m4/regex.m4: Likewise.
41261         * m4/relocatable.m4: Likewise.
41262         * m4/relocatable-lib.m4: Likewise.
41263         * m4/rename-dest-slash.m4: Likewise.
41264         * m4/rename.m4: Likewise.
41265         * m4/rmdir-errno.m4: Likewise.
41266         * m4/rmdir.m4: Likewise.
41267         * m4/roundf.m4: Likewise.
41268         * m4/roundl.m4: Likewise.
41269         * m4/rpmatch.m4: Likewise.
41270         * m4/save-cwd.m4: Likewise.
41271         * m4/selinux-selinux-h.m4: Likewise.
41272         * m4/setenv.m4: Likewise.
41273         * m4/settime.m4: Likewise.
41274         * m4/sig2str.m4: Likewise.
41275         * m4/sig_atomic_t.m4: Likewise.
41276         * m4/signalblocking.m4: Likewise.
41277         * m4/signbit.m4: Likewise.
41278         * m4/sigpipe.m4: Likewise.
41279         * m4/sockets.m4: Likewise.
41280         * m4/sockpfaf.m4: Likewise.
41281         * m4/st_dm_mode.m4: Likewise.
41282         * m4/stat-time.m4: Likewise.
41283         * m4/stdbool.m4: Likewise.
41284         * m4/stdint.m4: Likewise.
41285         * m4/stdint_h.m4: Likewise.
41286         * m4/stpcpy.m4: Likewise.
41287         * m4/stpncpy.m4: Likewise.
41288         * m4/strcase.m4: Likewise.
41289         * m4/strchrnul.m4: Likewise.
41290         * m4/strcspn.m4: Likewise.
41291         * m4/strdup.m4: Likewise.
41292         * m4/strftime.m4: Likewise.
41293         * m4/strndup.m4: Likewise.
41294         * m4/strnlen.m4: Likewise.
41295         * m4/strpbrk.m4: Likewise.
41296         * m4/strptime.m4: Likewise.
41297         * m4/strsep.m4: Likewise.
41298         * m4/strtod.m4: Likewise.
41299         * m4/strtoimax.m4: Likewise.
41300         * m4/strtok_r.m4: Likewise.
41301         * m4/strtol.m4: Likewise.
41302         * m4/strtoll.m4: Likewise.
41303         * m4/strtoul.m4: Likewise.
41304         * m4/strtoull.m4: Likewise.
41305         * m4/strtoumax.m4: Likewise.
41306         * m4/strverscmp.m4: Likewise.
41307         * m4/threadlib.m4: Likewise.
41308         * m4/timegm.m4: Likewise.
41309         * m4/tm_gmtoff.m4: Likewise.
41310         * m4/tmpdir.m4: Likewise.
41311         * m4/tmpfile.m4: Likewise.
41312         * m4/tzset.m4: Likewise.
41313         * m4/uintmax_t.m4: Likewise.
41314         * m4/unlinkdir.m4: Likewise.
41315         * m4/unlocked-io.m4: Likewise.
41316         * m4/uptime.m4: Likewise.
41317         * m4/userspec.m4: Likewise.
41318         * m4/utimbuf.m4: Likewise.
41319         * m4/utime.m4: Likewise.
41320         * m4/utimes-null.m4: Likewise.
41321         * m4/utimes.m4: Likewise.
41322         * m4/vararrays.m4: Likewise.
41323         * m4/vasnprintf.m4: Likewise.
41324         * m4/vfprintf-posix.m4: Likewise.
41325         * m4/vprintf-posix.m4: Likewise.
41326         * m4/wait-process.m4: Likewise.
41327         * m4/wchar_t.m4: Likewise.
41328         * m4/wint_t.m4: Likewise.
41329         * m4/write-any-file.m4: Likewise.
41330         * m4/yield.m4: Likewise.
41331
41332 2009-01-13  Bruno Haible  <bruno@clisp.org>
41333
41334         Avoid test-copy-file.sh failures when ACL support insufficient.
41335         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
41336         TESTS_ENVIRONMENT.
41337         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
41338         Reported by Jim Meyering.
41339
41340 2009-01-13  Bruno Haible  <bruno@clisp.org>
41341
41342         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
41343         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
41344         * modules/unistdio/u8-printf-parse (Files): Likewise.
41345         * modules/unistdio/u32-printf-parse (Files): Likewise.
41346         * modules/unistdio/ulc-printf-parse (Files): Likewise.
41347
41348 2009-01-13  Simon Josefsson  <simon@josefsson.org>
41349
41350         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
41351         and m4/inttypes_h.m4 too.
41352
41353 2009-01-12  Eric Blake  <ebb9@byu.net>
41354
41355         tests: IRIX 6.2 cc can't compile -0.0 into .data
41356         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
41357         rather than at compile-time.
41358         * tests/test-floorl.c (minus_zero): Likewise.
41359         * tests/test-frexpl.c (minus_zero): Likewise.
41360         * tests/test-isnan.c (minus_zerol): Likewise.
41361         * tests/test-isnanl.h (minus_zero): Likewise.
41362         * tests/test-ldexpl.c (minus_zero): Likewise.
41363         * tests/test-roundl.c (minus_zero): Likewise.
41364         * tests/test-signbit.c (minus_zerol): Likewise.
41365         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
41366         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
41367         * tests/test-truncl.c (minus_zero): Likewise.
41368         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
41369         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
41370         Reported by Tom G. Christensen and Nelson H. F. Beebe.
41371
41372 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
41373
41374         regex: fix glibc bug 9697
41375         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
41376         handling.
41377
41378 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
41379
41380         regex: fix glibc bug 697
41381         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
41382         being NULL also if there are no backreferences.
41383
41384 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
41385
41386         regex: merge glibc changes
41387         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
41388         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
41389         re_string_skip_chars, re_string_reconstruct): Likewise.
41390         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
41391
41392 2009-01-07  Jim Meyering  <meyering@redhat.com>
41393
41394         poll: filter through cppi
41395         * lib/poll.c: Indent cpp directives to reflect nesting.
41396
41397 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
41398
41399         poll: don't return uninitialized
41400         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
41401
41402 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
41403
41404         avoid compile failure on AIX 6.1
41405         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
41406         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
41407
41408 2009-01-04  Jim Meyering  <meyering@redhat.com>
41409
41410         remove duplicate inclusion of <stdio.h>
41411         * tests/test-fprintf-posix.c: Likewise.
41412         * tests/test-printf-posix.c: Likewise.
41413         * tests/test-snprintf-posix.c: Likewise.
41414         * tests/test-sprintf-posix.c: Likewise.
41415         * tests/test-vasprintf-posix.c: Likewise.
41416         * tests/test-vfprintf-posix.c: Likewise.
41417         * tests/test-vprintf-posix.c: Likewise.
41418         * tests/test-vsnprintf-posix.c: Likewise.
41419         * tests/test-vsprintf-posix.c: Likewise.
41420
41421 2009-01-03  Jim Meyering  <meyering@redhat.com>
41422
41423         gnulib-tool: fix sed-based filtering
41424         * gnulib-tool (func_filter_filelist): Remove extra backslash
41425         in sed_fff_filter definition.
41426
41427 2009-01-02  Jim Meyering  <meyering@redhat.com>
41428
41429         strftime: avoid compilation failure on Solaris 2.6
41430         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
41431         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
41432         Don't #define mbrlen or mbsinit, since now they're guaranteed to
41433         be available.  Reported by Tom G. Christensen.  Details in
41434         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
41435
41436 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41437             Bruno Haible  <bruno@clisp.org>
41438
41439         Speed up gnulib-tool by doing more string processing through shell
41440         built-ins.
41441         * gnulib-tool (fast_func_append): New variable.
41442         (func_remove_prefix, func_remove_suffix): New functions.
41443         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
41444         (func_filter_filelist): New function.
41445         (func_get_dependencies): Use func_remove_suffix instead of sed.
41446         (func_get_automake_snippet): Use func_filter_filelist instead of a
41447         subshell and sed invocation.
41448
41449 2009-01-01  Bruno Haible  <bruno@clisp.org>
41450
41451         Fix a security bug.
41452         * gnulib-tool (func_import, import, update): Don't allow the characters
41453         '"', '$', '`', '\' in macro arguments that become part of commands that
41454         are evaluated.
41455
41456 2009-01-01  Bruno Haible  <bruno@clisp.org>
41457
41458         * gnulib-tool (func_reset_sigpipe): Add more comments.
41459
41460 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41461
41462         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
41463         func_emit_tests_Makefile_am, func_import): Abort loops early if we
41464         already know the answer.
41465
41466 2009-01-01  Jim Meyering  <meyering@redhat.com>
41467
41468         * lib/version-etc.c (version_etc_va): Update copyright year.
41469
41470 2008-12-30  Bruno Haible  <bruno@clisp.org>
41471
41472         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
41473         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
41474         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
41475
41476 2008-12-29  Eric Blake  <ebb9@byu.net>
41477
41478         multiarch: avoid autoconf AC_REQUIRE bug
41479         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
41480         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
41481         2.63 and older.
41482         Reported by Bruno Haible, and analyzed in
41483         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
41484
41485 2008-12-29  Bruno Haible  <bruno@clisp.org>
41486
41487         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
41488         files in subdirectories correctly.
41489         Reported by Ralf Wildenhues.
41490
41491 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41492
41493         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
41494         rather than 'join FILE -', for Solaris join.
41495
41496 2008-12-29  Bruno Haible  <bruno@clisp.org>
41497
41498         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
41499         quoting.
41500         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
41501         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
41502         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
41503         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
41504         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
41505         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
41506         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
41507         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
41508         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
41509         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
41510         * m4/nls.m4 (AM_NLS): Likewise.
41511         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
41512         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
41513         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
41514         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
41515         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
41516         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
41517         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
41518         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
41519         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
41520         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
41521         * m4/xsize.m4 (gl_XSIZE): Likewise.
41522         Suggested by Jim Meyering.
41523
41524 2008-11-17  Bruce Korb  <bkorb@gnu.org>
41525
41526         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
41527         * lib/parse-duration.c: use a switch instead of cascading if's.
41528
41529 2008-12-29  Eric Blake  <ebb9@byu.net>
41530
41531         wchar.h: supply WEOF on Irix 5.3
41532         * lib/wchar.in.h (wint_t): Also supply WEOF.
41533         * lib/wctype.in.h (wint_t): Likewise.
41534         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
41535         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
41536         Reported by Tom G. Christensen.
41537
41538 2008-12-26  Bruno Haible  <bruno@clisp.org>
41539
41540         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
41541         i486, i586, i686.
41542
41543 2008-12-26  Bruno Haible  <bruno@clisp.org>
41544
41545         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
41546
41547 2008-12-26  Bruno Haible  <bruno@clisp.org>
41548
41549         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
41550         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
41551         not __STDC_CONSTANT_MACROS.
41552         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
41553
41554 2008-12-25  Bruno Haible  <bruno@clisp.org>
41555
41556         Add support for universal builds to vasnprintf.
41557         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
41558         universal builds, guess no.
41559         * modules/vasnprintf-posix (Depends-on): Add multiarch.
41560         * modules/vasprintf-posix (Depends-on): Likewise.
41561         * modules/fprintf-posix (Depends-on): Likewise.
41562         * modules/vfprintf-posix (Depends-on): Likewise.
41563         * modules/snprintf-posix (Depends-on): Likewise.
41564         * modules/vsnprintf-posix (Depends-on): Likewise.
41565         * modules/sprintf-posix (Depends-on): Likewise.
41566         * modules/vsprintf-posix (Depends-on): Likewise.
41567         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
41568         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
41569         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
41570         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
41571         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
41572         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
41573         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
41574
41575         Add support for universal builds to <inttypes.h>.
41576         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
41577         _SCNu64_PREFIX): In Apple
41578         universal builds, define directly, using _LP64.
41579         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
41580         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
41581         * modules/inttypes (Depends-on): Add multiarch.
41582         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
41583
41584         Add support for universal builds to <stdint.h>.
41585         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
41586         universal builds, define directly, using _LP64.
41587         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
41588         Apple universal builds, don't test for the size and suffix of ptrdiff_t
41589         and size_t.
41590         * modules/stdint (Depends-on): Add multiarch.
41591         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
41592
41593         New module 'multiarch'.
41594         * modules/multiarch: New file.
41595         * m4/multiarch.m4: New file.
41596
41597 2008-12-25  Bruno Haible  <bruno@clisp.org>
41598
41599         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
41600
41601 2008-12-25  Bruno Haible  <bruno@clisp.org>
41602
41603         * modules/btowc (License): Relicense under LGPLv2+.
41604         * modules/mbsinit (License): Likewise.
41605         * modules/mbrtowc (License): Likewise.
41606         * modules/wcrtomb (License): Likewise.
41607         * modules/streq (License): Likewise.
41608         Reported by David Lutterkort <lutter@redhat.com>.
41609
41610 2008-12-23  Bruno Haible  <bruno@clisp.org>
41611
41612         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
41613
41614 2008-12-23  Bruno Haible  <bruno@clisp.org>
41615
41616         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
41617         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
41618         GETADDRINFO_LIB, not in LIBS.
41619         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
41620         * modules/canon-host (Link): Likewise.
41621         * NEWS: Mention the change.
41622         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
41623         GETADDRINFO_LIB.
41624
41625 2008-12-22  Bruno Haible  <bruno@clisp.org>
41626
41627         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
41628         * doc/posix-functions/iswalpha_l.texi: Likewise.
41629         * doc/posix-functions/iswblank_l.texi: Likewise.
41630         * doc/posix-functions/iswcntrl_l.texi: Likewise.
41631         * doc/posix-functions/iswctype_l.texi: Likewise.
41632         * doc/posix-functions/iswdigit_l.texi: Likewise.
41633         * doc/posix-functions/iswgraph_l.texi: Likewise.
41634         * doc/posix-functions/iswlower_l.texi: Likewise.
41635         * doc/posix-functions/iswprint_l.texi: Likewise.
41636         * doc/posix-functions/iswpunct_l.texi: Likewise.
41637         * doc/posix-functions/iswspace_l.texi: Likewise.
41638         * doc/posix-functions/iswupper_l.texi: Likewise.
41639         * doc/posix-functions/iswxdigit_l.texi: Likewise.
41640         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
41641         * doc/posix-functions/open_wmemstream.texi: Likewise.
41642         * doc/posix-functions/swscanf.texi: Likewise.
41643         * doc/posix-functions/towctrans_l.texi: Likewise.
41644         * doc/posix-functions/towlower.texi: Likewise.
41645         * doc/posix-functions/towlower_l.texi: Likewise.
41646         * doc/posix-functions/towupper.texi: Likewise.
41647         * doc/posix-functions/towupper_l.texi: Likewise.
41648         * doc/posix-functions/vfwprintf.texi: Likewise.
41649         * doc/posix-functions/vfwscanf.texi: Likewise.
41650         * doc/posix-functions/vswscanf.texi: Likewise.
41651         * doc/posix-functions/vwprintf.texi: Likewise.
41652         * doc/posix-functions/vwscanf.texi: Likewise.
41653         * doc/posix-functions/wcpcpy.texi: Likewise.
41654         * doc/posix-functions/wcpncpy.texi: Likewise.
41655         * doc/posix-functions/wcscasecmp.texi: Likewise.
41656         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
41657         * doc/posix-functions/wcscoll_l.texi: Likewise.
41658         * doc/posix-functions/wcsdup.texi: Likewise.
41659         * doc/posix-functions/wcsncasecmp.texi: Likewise.
41660         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
41661         * doc/posix-functions/wcsnlen.texi: Likewise.
41662         * doc/posix-functions/wcsnrtombs.texi: Likewise.
41663         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
41664         * doc/posix-functions/wctrans_l.texi: Likewise.
41665         * doc/posix-functions/wctype_l.texi: Likewise.
41666         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
41667         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
41668         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
41669         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
41670         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
41671         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
41672         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
41673         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
41674         * doc/glibc-functions/wcschrnul.texi: Likewise.
41675         * doc/glibc-functions/wcsftime_l.texi: Likewise.
41676         * doc/glibc-functions/wcstod_l.texi: Likewise.
41677         * doc/glibc-functions/wcstof_l.texi: Likewise.
41678         * doc/glibc-functions/wcstol_l.texi: Likewise.
41679         * doc/glibc-functions/wcstold_l.texi: Likewise.
41680         * doc/glibc-functions/wcstoll_l.texi: Likewise.
41681         * doc/glibc-functions/wcstoq.texi: Likewise.
41682         * doc/glibc-functions/wcstoul_l.texi: Likewise.
41683         * doc/glibc-functions/wcstoull_l.texi: Likewise.
41684         * doc/glibc-functions/wcstouq.texi: Likewise.
41685         * doc/glibc-functions/wmempcpy.texi: Likewise.
41686
41687 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
41688             Eric Blake  <ebb9@byu.net>
41689             Paolo Bonzini  <bonzini@gnu.org>
41690             Bruno Haible  <bruno@clisp.org>
41691
41692         Make c-stack work on Haiku.
41693         * lib/c-stack.c (SA_ONSTACK): Define fallback.
41694         (c_stack_action): Use SA_ONSTACK flag.
41695
41696 2008-12-22  Bruno Haible  <bruno@clisp.org>
41697
41698         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
41699
41700 2008-12-22  Bruno Haible  <bruno@clisp.org>
41701
41702         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
41703         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
41704         being overridden.
41705         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
41706         New macros.
41707         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
41708         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
41709         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
41710         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
41711
41712 2008-12-22  Bruno Haible  <bruno@clisp.org>
41713
41714         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
41715         from test code.
41716
41717 2008-12-22  Eric Blake  <ebb9@byu.net>
41718
41719         Avoid gcc warnings on cygwin.
41720         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
41721         Avoid unused variable.
41722         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
41723         Likewise.
41724
41725 2008-12-22  Bruno Haible  <bruno@clisp.org>
41726
41727         Remove HAVE_MBRTOWC conditionals.
41728         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
41729         (mbscasecmp): Assume mbrtowc function.
41730         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
41731         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
41732         * lib/mbschr.c: Include mbuiter.h unconditionally.
41733         (mbschr): Assume mbrtowc function.
41734         * lib/mbscspn.c: Include mbuiter.h unconditionally.
41735         (mbscspn): Assume mbrtowc function.
41736         * lib/mbslen.c: Include mbuiter.h unconditionally.
41737         (mbslen): Assume mbrtowc function.
41738         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
41739         (mbsncasecmp): Assume mbrtowc function.
41740         * lib/mbsnlen.c: Include mbiter.h unconditionally.
41741         (mbsnlen): Assume mbrtowc function.
41742         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
41743         (mbspbrk): Assume mbrtowc function.
41744         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
41745         (mbspcasecmp): Assume mbrtowc function.
41746         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
41747         (mbsrchr): Assume mbrtowc function.
41748         * lib/mbssep.c: Include mbuiter.h unconditionally.
41749         (mbssep): Assume mbrtowc function.
41750         * lib/mbsspn.c: Include mbuiter.h unconditionally.
41751         (mbsspn): Assume mbrtowc function.
41752         * lib/mbsstr.c: Include mbuiter.h unconditionally.
41753         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
41754         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
41755         (mbstok_r): Assume mbrtowc function.
41756         * lib/propername.c: Include mbuiter.h unconditionally.
41757         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
41758         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
41759         (trim2): Assume mbrtowc function.
41760         * lib/mbswidth.c (mbsinit): Remove fallback definition.
41761         (mbsnwidth): Assume mbrtowc function.
41762         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
41763         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
41764         fallback definitions.
41765         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
41766
41767 2008-12-22  Bruno Haible  <bruno@clisp.org>
41768
41769         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
41770
41771 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
41772
41773         * modules/regex: Request emulations for the mb*/wc* functions we need.
41774         * m4/regex.m4: Don't look for those functions here.
41775         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
41776
41777 2008-12-22  Bruno Haible  <bruno@clisp.org>
41778
41779         * modules/fnmatch (Depends-on): Remove duplicated dependency.
41780
41781 2008-12-21  Bruno Haible  <bruno@clisp.org>
41782
41783         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
41784         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
41785         (Include): Remove conditionalization.
41786         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
41787         (Include): Remove conditionalization.
41788         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
41789         (Include): Remove conditionalization.
41790         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
41791         * m4/mbfile.m4 (gl_MBFILE): Likewise.
41792         * NEWS: Mention the change.
41793         Reported by Alan Hourihane <alanh@fairlite.co.uk>
41794         via Sergey Poznyakoff <gray@gnu.org.ua>.
41795
41796 2008-12-21  Bruno Haible  <bruno@clisp.org>
41797
41798         * MODULES.html.sh (Extended multibyte and wide character utilities
41799         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
41800         wcrtomb, wcsrtombs.
41801         (Support for systems lacking POSIX:2008): Add accept, bind, close,
41802         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
41803         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
41804         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
41805
41806 2008-12-21  Bruno Haible  <bruno@clisp.org>
41807
41808         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
41809
41810 2008-12-21  Bruno Haible  <bruno@clisp.org>
41811
41812         * modules/wcsnrtombs-tests: New file.
41813         * tests/test-wcsnrtombs1.sh: New file.
41814         * tests/test-wcsnrtombs2.sh: New file.
41815         * tests/test-wcsnrtombs3.sh: New file.
41816         * tests/test-wcsnrtombs4.sh: New file.
41817         * tests/test-wcsnrtombs.c: New file.
41818
41819         New module 'wcsnrtombs'.
41820         * lib/wchar.in.h (wcsnrtombs): New declaration.
41821         * lib/wcsnrtombs.c: New file.
41822         * lib/wcsrtombs-state.c: New file.
41823         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
41824         (internal_state): Remove variable.
41825         * m4/wcsnrtombs.m4: New file.
41826         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
41827         compilation units.
41828         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
41829         HAVE_WCSNRTOMBS.
41830         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
41831         HAVE_WCSNRTOMBS.
41832         * modules/wcsnrtombs: New file.
41833         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
41834         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
41835
41836 2008-12-21  Bruno Haible  <bruno@clisp.org>
41837
41838         * modules/wcsrtombs-tests: New file.
41839         * tests/test-wcsrtombs1.sh: New file.
41840         * tests/test-wcsrtombs2.sh: New file.
41841         * tests/test-wcsrtombs3.sh: New file.
41842         * tests/test-wcsrtombs4.sh: New file.
41843         * tests/test-wcsrtombs.c: New file.
41844
41845         New module 'wcsrtombs'.
41846         * lib/wchar.in.h (wcsrtombs): New declaration.
41847         * lib/wcsrtombs.c: New file.
41848         * m4/wcsrtombs.m4: New file.
41849         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
41850         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
41851         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
41852         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
41853         * modules/wcsrtombs: New file.
41854         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
41855         bugs.
41856
41857 2008-12-21  Bruno Haible  <bruno@clisp.org>
41858
41859         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
41860         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
41861         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
41862         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
41863         if not correct.
41864         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
41865         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
41866         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
41867         m4/locale-zh.m4, m4/codeset.m4.
41868         * doc/posix-functions/wcrtomb.texi: Document the bug.
41869
41870 2008-12-21  Bruno Haible  <bruno@clisp.org>
41871
41872         Work around a btowc() bug on IRIX 6.5.
41873         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
41874         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
41875         REPLACE_WTOBC if not.
41876         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
41877         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
41878         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
41879
41880 2008-12-21  Bruno Haible  <bruno@clisp.org>
41881
41882         * modules/wcrtomb-tests: New file.
41883         * tests/test-wcrtomb.sh: New file.
41884         * tests/test-wcrtomb.c: New file.
41885
41886         New module 'wcrtomb'.
41887         * lib/wchar.in.h (wcrtomb): New declaration.
41888         * lib/wcrtomb.c: New file.
41889         * m4/wcrtomb.m4: New file.
41890         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
41891         HAVE_WCRTOMB.
41892         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
41893         HAVE_WCRTOMB.
41894         * modules/wcrtomb: New file.
41895         * doc/posix-functions/wcrtomb.texi: Mention the new module.
41896
41897 2008-12-21  Bruno Haible  <bruno@clisp.org>
41898
41899         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
41900         * modules/mbsrtowcs (Files): Likewise.
41901         * modules/wctob (Files): Likewise.
41902         * modules/c-strcase-tests (Files): Likewise.
41903         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
41904         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
41905         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
41906         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
41907         * modules/vasnprintf-posix-tests (Files): Likewise.
41908
41909 2008-12-21  William Pursell  <bill.pursell@gmail.com>
41910
41911         gitlog-to-changelog: pass all command-line arguments to git-log
41912         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
41913         it is sometimes convenient to filter the commits in various ways.
41914         gitlog-to-changelog only allows --since to specify a start date,
41915         but git-log itself supports many other filtering mechanisms.
41916         At the moment, I want to filter by branch name.  Rather than
41917         adding a --branch option to gitlog-to-changelog, it seems more
41918         flexible to simply pass all options directly to git-log and let
41919         git do the work.  Notice that this effectively makes --since a
41920         redundant option for gitlog-to-changelog, but removing it would
41921         require current usage to change since calls would then require
41922         an additional '--'.
41923
41924 2008-12-21  Bruno Haible  <bruno@clisp.org>
41925
41926         * modules/mbsnrtowcs-tests: New file.
41927         * tests/test-mbsnrtowcs1.sh: New file.
41928         * tests/test-mbsnrtowcs2.sh: New file.
41929         * tests/test-mbsnrtowcs3.sh: New file.
41930         * tests/test-mbsnrtowcs4.sh: New file.
41931         * tests/test-mbsnrtowcs.c: New file.
41932
41933         New module 'mbsnrtowcs'.
41934         * lib/wchar.in.h (mbsnrtowcs): New declaration.
41935         * lib/mbsnrtowcs.c: New file.
41936         * lib/mbsrtowcs-state.c: New file.
41937         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
41938         (internal_state): Remove variable.
41939         * m4/mbsnrtowcs.m4: New file.
41940         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
41941         compilation units.
41942         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
41943         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
41944         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
41945         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
41946         * modules/mbsnrtowcs: New file.
41947         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
41948         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
41949         portability problem.
41950
41951 2008-12-21  Bruno Haible  <bruno@clisp.org>
41952
41953         Work around mbsrtowcs bug.
41954         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
41955         (gl_FUNC_MBSRTOWCS): Invoke it.
41956         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
41957         m4/locale-zh.m4.
41958         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
41959
41960 2008-12-21  Bruno Haible  <bruno@clisp.org>
41961
41962         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
41963
41964 2008-12-21  Bruno Haible  <bruno@clisp.org>
41965
41966         Update doc for AIX.
41967         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
41968         16-bit wchar_t type.
41969         * doc/posix-functions/btowc.texi: Likewise.
41970         * doc/posix-functions/fgetwc.texi: Likewise.
41971         * doc/posix-functions/fgetws.texi: Likewise.
41972         * doc/posix-functions/fputwc.texi: Likewise.
41973         * doc/posix-functions/fputws.texi: Likewise.
41974         * doc/posix-functions/fwide.texi: Likewise.
41975         * doc/posix-functions/fwprintf.texi: Likewise.
41976         * doc/posix-functions/fwscanf.texi: Likewise.
41977         * doc/posix-functions/getwchar.texi: Likewise.
41978         * doc/posix-functions/getwc.texi: Likewise.
41979         * doc/posix-functions/iswalnum.texi: Likewise.
41980         * doc/posix-functions/iswalpha.texi: Likewise.
41981         * doc/posix-functions/iswblank.texi: Likewise.
41982         * doc/posix-functions/iswcntrl.texi: Likewise.
41983         * doc/posix-functions/iswctype.texi: Likewise.
41984         * doc/posix-functions/iswdigit.texi: Likewise.
41985         * doc/posix-functions/iswgraph.texi: Likewise.
41986         * doc/posix-functions/iswlower.texi: Likewise.
41987         * doc/posix-functions/iswprint.texi: Likewise.
41988         * doc/posix-functions/iswpunct.texi: Likewise.
41989         * doc/posix-functions/iswspace.texi: Likewise.
41990         * doc/posix-functions/iswupper.texi: Likewise.
41991         * doc/posix-functions/iswxdigit.texi: Likewise.
41992         * doc/posix-functions/mbrtowc.texi: Likewise.
41993         * doc/posix-functions/mbsrtowcs.texi: Likewise.
41994         * doc/posix-functions/mbstowcs.texi: Likewise.
41995         * doc/posix-functions/mbtowc.texi: Likewise.
41996         * doc/posix-functions/putwchar.texi: Likewise.
41997         * doc/posix-functions/putwc.texi: Likewise.
41998         * doc/posix-functions/swprintf.texi: Likewise.
41999         * doc/posix-functions/tolower.texi: Likewise.
42000         * doc/posix-functions/toupper.texi: Likewise.
42001         * doc/posix-functions/towctrans.texi: Likewise.
42002         * doc/posix-functions/ungetwc.texi: Likewise.
42003         * doc/posix-functions/vswprintf.texi: Likewise.
42004         * doc/posix-functions/wcrtomb.texi: Likewise.
42005         * doc/posix-functions/wcscat.texi: Likewise.
42006         * doc/posix-functions/wcschr.texi: Likewise.
42007         * doc/posix-functions/wcscmp.texi: Likewise.
42008         * doc/posix-functions/wcscoll.texi: Likewise.
42009         * doc/posix-functions/wcscpy.texi: Likewise.
42010         * doc/posix-functions/wcscspn.texi: Likewise.
42011         * doc/posix-functions/wcsftime.texi: Likewise.
42012         * doc/posix-functions/wcslen.texi: Likewise.
42013         * doc/posix-functions/wcsncat.texi: Likewise.
42014         * doc/posix-functions/wcsncmp.texi: Likewise.
42015         * doc/posix-functions/wcsncpy.texi: Likewise.
42016         * doc/posix-functions/wcspbrk.texi: Likewise.
42017         * doc/posix-functions/wcsrchr.texi: Likewise.
42018         * doc/posix-functions/wcsrtombs.texi: Likewise.
42019         * doc/posix-functions/wcsspn.texi: Likewise.
42020         * doc/posix-functions/wcsstr.texi: Likewise.
42021         * doc/posix-functions/wcstod.texi: Likewise.
42022         * doc/posix-functions/wcstof.texi: Likewise.
42023         * doc/posix-functions/wcstoimax.texi: Likewise.
42024         * doc/posix-functions/wcstok.texi: Likewise.
42025         * doc/posix-functions/wcstold.texi: Likewise.
42026         * doc/posix-functions/wcstoll.texi: Likewise.
42027         * doc/posix-functions/wcstol.texi: Likewise.
42028         * doc/posix-functions/wcstombs.texi: Likewise.
42029         * doc/posix-functions/wcstoull.texi: Likewise.
42030         * doc/posix-functions/wcstoul.texi: Likewise.
42031         * doc/posix-functions/wcstoumax.texi: Likewise.
42032         * doc/posix-functions/wcswidth.texi: Likewise.
42033         * doc/posix-functions/wcsxfrm.texi: Likewise.
42034         * doc/posix-functions/wctob.texi: Likewise.
42035         * doc/posix-functions/wctomb.texi: Likewise.
42036         * doc/posix-functions/wctrans.texi: Likewise.
42037         * doc/posix-functions/wctype.texi: Likewise.
42038         * doc/posix-functions/wcwidth.texi: Likewise.
42039         * doc/posix-functions/wmemchr.texi: Likewise.
42040         * doc/posix-functions/wmemcmp.texi: Likewise.
42041         * doc/posix-functions/wmemcpy.texi: Likewise.
42042         * doc/posix-functions/wmemmove.texi: Likewise.
42043         * doc/posix-functions/wmemset.texi: Likewise.
42044         * doc/posix-functions/wprintf.texi: Likewise.
42045         * doc/posix-functions/wscanf.texi: Likewise.
42046
42047 2008-12-21  Bruno Haible  <bruno@clisp.org>
42048
42049         Update doc for HP-UX 11.11.
42050         * doc/posix-functions/btowc.texi: Clarify that the function is missing
42051         in HP-UX version 11.00, not in all versions of HP-UX 11.
42052         * doc/posix-functions/fwide.texi: Likewise.
42053         * doc/posix-functions/fwprintf.texi: Likewise.
42054         * doc/posix-functions/fwscanf.texi: Likewise.
42055         * doc/posix-functions/inet_ntop.texi: Likewise.
42056         * doc/posix-functions/inet_pton.texi: Likewise.
42057         * doc/posix-functions/mbrlen.texi: Likewise.
42058         * doc/posix-functions/mbrtowc.texi: Likewise.
42059         * doc/posix-functions/mbsinit.texi: Likewise.
42060         * doc/posix-functions/mbsrtowcs.texi: Likewise.
42061         * doc/posix-functions/swprintf.texi: Likewise.
42062         * doc/posix-functions/swscanf.texi: Likewise.
42063         * doc/posix-functions/towctrans.texi: Likewise.
42064         * doc/posix-functions/vfwprintf.texi: Likewise.
42065         * doc/posix-functions/vswprintf.texi: Likewise.
42066         * doc/posix-functions/vwprintf.texi: Likewise.
42067         * doc/posix-functions/wcrtomb.texi: Likewise.
42068         * doc/posix-functions/wcsrtombs.texi: Likewise.
42069         * doc/posix-functions/wcsstr.texi: Likewise.
42070         * doc/posix-functions/wctob.texi: Likewise.
42071         * doc/posix-functions/wctrans.texi: Likewise.
42072         * doc/posix-functions/wmemchr.texi: Likewise.
42073         * doc/posix-functions/wmemcmp.texi: Likewise.
42074         * doc/posix-functions/wmemcpy.texi: Likewise.
42075         * doc/posix-functions/wmemmove.texi: Likewise.
42076         * doc/posix-functions/wmemset.texi: Likewise.
42077         * doc/posix-functions/wprintf.texi: Likewise.
42078         * doc/posix-functions/wscanf.texi: Likewise.
42079
42080 2008-12-21  Bruno Haible  <bruno@clisp.org>
42081
42082         Work around a portability problem.
42083         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
42084         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
42085
42086 2008-12-20  Bruno Haible  <bruno@clisp.org>
42087
42088         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
42089         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
42090         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
42091         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
42092         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
42093
42094         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
42095         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
42096         set.
42097         (GNULIB_defined_mbstate_t): New macro.
42098         (mbsinit): Redefine if REPLACE_MBSINIT is set.
42099         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
42100         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
42101         reuses the system's mbrtowc function but works around the bugs.
42102         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
42103         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
42104         macros.
42105         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
42106         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
42107         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
42108         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
42109         REPLACE_MBSINIT if mbsinit needs to be overridden.
42110         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
42111         REPLACE_MBSINIT, REPLACE_MBRTOWC.
42112         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
42113         REPLACE_MBSINIT, REPLACE_MBRTOWC.
42114         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
42115         m4/locale-zh.m4.
42116         (Depends): Add mbsinit.
42117         * modules/mbsinit (Depends): Add mbrtowc.
42118         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
42119
42120 2008-12-20  Bruno Haible  <bruno@clisp.org>
42121
42122         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
42123         so that there are no conversion errors on AIX.
42124         * tests/test-mbsrtowcs.c (main): LIkewise.
42125
42126 2008-12-20  Bruno Haible  <bruno@clisp.org>
42127
42128         Work around wctob bug on Solaris <= 9.
42129         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
42130         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
42131         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
42132         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
42133         * modules/wctob (Files): Add m4/locale-fr.m4.
42134         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
42135
42136 2008-12-20  Bruno Haible  <bruno@clisp.org>
42137
42138         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
42139         /dev/null.
42140         * tests/test-select-in.sh: Likewise.
42141         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42142
42143 2008-12-20  Bruno Haible  <bruno@clisp.org>
42144
42145         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
42146         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
42147         Cygwin 1.5.x.
42148
42149 2008-12-20  Bruno Haible  <bruno@clisp.org>
42150
42151         Ensure mbstate_t is defined on HP-UX 11.11.
42152         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
42153         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
42154         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
42155         AC_USE_SYSTEM_EXTENSIONS.
42156         * modules/fnmatch (Depends-on): Add extensions.
42157         * modules/mbrlen (Depends-on): Likewise.
42158         * modules/mbrtowc (Depends-on): Likewise.
42159         * modules/mbsinit (Depends-on): Likewise.
42160         * modules/mbsrtowcs (Depends-on): Likewise.
42161         * modules/mbswidth (Depends-on): Likewise.
42162         * modules/quotearg (Depends-on): Likewise.
42163         * modules/strftime (Depends-on): Likewise.
42164
42165 2008-12-20  Bruno Haible  <bruno@clisp.org>
42166
42167         Ensure wctob is declared on IRIX 6.5.
42168         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
42169         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
42170         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
42171         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
42172         of HAVE_WCTOB.
42173         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
42174         HAVE_WCTOB.
42175         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
42176
42177 2008-12-19  Bruno Haible  <bruno@clisp.org>
42178
42179         * modules/mbsrtowcs-tests: New file.
42180         * tests/test-mbsrtowcs1.sh: New file.
42181         * tests/test-mbsrtowcs2.sh: New file.
42182         * tests/test-mbsrtowcs3.sh: New file.
42183         * tests/test-mbsrtowcs4.sh: New file.
42184         * tests/test-mbsrtowcs.c: New file.
42185
42186         New module 'mbsrtowcs'.
42187         * lib/wchar.in.h (mbsrtowcs): New declaration.
42188         * lib/mbsrtowcs.c: New file.
42189         * m4/mbsrtowcs.m4: New file.
42190         * modules/mbsrtowcs: New file.
42191         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
42192         HAVE_MBSRTOWCS.
42193         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
42194         HAVE_MBSRTOWCS.
42195         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
42196
42197 2008-12-19  Bruno Haible  <bruno@clisp.org>
42198
42199         New module 'mbrlen'.
42200         * lib/wchar.in.h (mbrlen): New declaration.
42201         * lib/mbrlen.c: New file.
42202         * m4/mbrlen.m4: New file.
42203         * modules/mbrlen: New file.
42204         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
42205         HAVE_MBRLEN.
42206         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
42207         HAVE_MBRLEN.
42208         * doc/posix-functions/mbrlen.texi: Document the new module.
42209
42210 2008-12-19  Bruno Haible  <bruno@clisp.org>
42211
42212         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
42213         * modules/mbrtowc (Depends-on): Add verify.
42214         Suggested by Paul Eggert.
42215
42216 2008-12-18  Bruno Haible  <bruno@clisp.org>
42217
42218         * modules/mbsinit-tests: New file.
42219         * tests/test-mbsinit.sh: New file.
42220         * tests/test-mbsinit.c: New file.
42221
42222 2008-12-18  Bruno Haible  <bruno@clisp.org>
42223
42224         * modules/mbrtowc-tests: New file.
42225         * tests/test-mbrtowc1.sh: New file.
42226         * tests/test-mbrtowc2.sh: New file.
42227         * tests/test-mbrtowc3.sh: New file.
42228         * tests/test-mbrtowc4.sh: New file.
42229         * tests/test-mbrtowc.c: New file.
42230
42231         New module 'mbrtowc'.
42232         * lib/wchar.in.h (mbstate_t): Override when the system does not have
42233         mbsinit and mbrtowc.
42234         (mbrtowc): New declaration.
42235         * lib/mbrtowc.c: New file.
42236         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
42237         * modules/mbrtowc: New file.
42238         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
42239         HAVE_MBRTOWC.
42240         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
42241         HAVE_MBRTOWC.
42242         * doc/posix-functions/mbrtowc.texi: Document the new module.
42243
42244 2008-12-18  Bruno Haible  <bruno@clisp.org>
42245
42246         New module 'wctob'.
42247         * lib/wchar.in.h (wctob): New declaration.
42248         * lib/wctob.c: New file.
42249         * m4/wctob.m4: New file.
42250         * modules/wctob: New file.
42251         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
42252         HAVE_WCTOB.
42253         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
42254         * doc/posix-functions/wctob.texi: Document the new module.
42255
42256 2008-12-18  Bruno Haible  <bruno@clisp.org>
42257
42258         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
42259         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
42260
42261 2008-12-18  Simon Josefsson  <simon@josefsson.org>
42262
42263         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
42264         G. Christensen" <tgc@jupiterrise.com>.
42265
42266         * lib/flock.c: Need to include errno.h.  Reported by "Tom
42267         G. Christensen" <tgc@jupiterrise.com>.
42268
42269         * lib/flock.c: Need to include string.h.  Reported by "Tom
42270         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
42271         <ebb9@byu.net>.
42272
42273 2008-12-18  Bruno Haible  <bruno@clisp.org>
42274
42275         * m4/locale-ja.m4: New file, from GNU gettext.
42276
42277 2008-12-17  Bruno Haible  <bruno@clisp.org>
42278
42279         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
42280         Suggested by Eric Blake.
42281
42282 2008-12-17  Bruno Haible  <bruno@clisp.org>
42283
42284         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
42285
42286 2008-12-17  Bruno Haible  <bruno@clisp.org>
42287
42288         * lib/mbsinit.c: Include verify.h. Verify an assumption.
42289         * modules/mbsinit (Depends-on): Add verify.
42290         Suggested by Paul Eggert.
42291
42292 2008-12-17  Bruno Haible  <bruno@clisp.org>
42293
42294         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
42295         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
42296         gl_FUNC_MBRTOWC.
42297         * m4/mbiter.m4 (gl_MBITER): LIkewise.
42298         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
42299         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
42300         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
42301         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
42302         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
42303         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
42304         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
42305         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
42306         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
42307         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
42308         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
42309         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
42310         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
42311         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
42312         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
42313         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
42314         * modules/trim (configure.ac): Likewise.
42315
42316 2008-12-17  Bruno Haible  <bruno@clisp.org>
42317
42318         * modules/btowc-tests: New file.
42319         * tests/test-btowc1.sh: New file.
42320         * tests/test-btowc2.sh: New file.
42321         * tests/test-btowc.c: New file.
42322
42323         New module 'btowc'.
42324         * lib/wchar.in.h (btowc): New declaration.
42325         * lib/btowc.c: New file.
42326         * m4/btowc.m4: New file.
42327         * modules/btowc: New file.
42328         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
42329         HAVE_BTOWC.
42330         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
42331         * doc/posix-functions/btowc.texi: Document the new module.
42332
42333 2008-12-17  Bruno Haible  <bruno@clisp.org>
42334
42335         New module 'mbsinit'.
42336         * lib/wchar.in.h (mbsinit): New declaration.
42337         * lib/mbsinit.c: New file.
42338         * m4/mbsinit.m4: New file.
42339         * modules/mbsinit: New file.
42340         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
42341         HAVE_MBSINIT.
42342         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
42343         HAVE_MBSINIT.
42344         * doc/posix-functions/mbsinit.texi: Document the new module.
42345
42346 2008-12-16  Bruno Haible  <bruno@clisp.org>
42347
42348         * lib/unistd.in.h: Add comment.
42349         * tests/test-environ.c: Don't include <stdlib.h>.
42350
42351 2008-12-16  Bruno Haible  <bruno@clisp.org>
42352
42353         * lib/parse-duration.h (parse_duration): Document return value
42354         convention.
42355         * lib/parse-duration.c: Include specification header first. Add
42356         comments.
42357         (_): Remove macro.
42358         (parse_year_month_day, parse_hour_minute_second): Move side effects
42359         outside of strchr call.
42360         (parse_non_iso8601): Move side effects outside of isspace call.
42361         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
42362         call.
42363
42364 2008-12-16  Bruno Haible  <bruno@clisp.org>
42365
42366         * tests/test-parse-duration.sh: Produce no output when the test
42367         succeeds.
42368
42369 2008-12-16  Bruno Haible  <bruno@clisp.org>
42370
42371         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
42372         expressions.
42373
42374 2008-12-15  Bruno Haible  <bruno@clisp.org>
42375
42376         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
42377         * doc/glibc-functions/flistxattr.texi: Likewise.
42378         * doc/glibc-functions/fopencookie.texi: Likewise.
42379         * doc/glibc-functions/fremovexattr.texi: Likewise.
42380         * doc/glibc-functions/fsetxattr.texi: Likewise.
42381         * doc/glibc-functions/getxattr.texi: Likewise.
42382         * doc/glibc-functions/lgetxattr.texi: Likewise.
42383         * doc/glibc-functions/listxattr.texi: Likewise.
42384         * doc/glibc-functions/llistxattr.texi: Likewise.
42385         * doc/glibc-functions/lremovexattr.texi: Likewise.
42386         * doc/glibc-functions/lsetxattr.texi: Likewise.
42387         * doc/glibc-functions/removexattr.texi: Likewise.
42388         * doc/glibc-functions/setxattr.texi: Likewise.
42389         * doc/posix-functions/open_memstream.texi: Likewise.
42390
42391 2008-12-15  Eric Blake  <ebb9@byu.net>
42392
42393         Update doc for cygwin 1.7.
42394         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
42395         functions.
42396         * doc/posix-functions/fchmodat.texi: Likewise.
42397         * doc/posix-functions/fchownat.texi: Likewise.
42398         * doc/posix-functions/fdopendir.texi: Likewise.
42399         * doc/posix-functions/fmemopen.texi: Likewise.
42400         * doc/posix-functions/freeaddrinfo.texi: Likewise.
42401         * doc/posix-functions/fstatat.texi: Likewise.
42402         * doc/posix-functions/futimens.texi: Likewise.
42403         * doc/posix-functions/gai_strerror.texi: Likewise.
42404         * doc/posix-functions/getaddrinfo.texi: Likewise.
42405         * doc/posix-functions/getnameinfo.texi: Likewise.
42406         * doc/posix-functions/if_freenameindex.texi: Likewise.
42407         * doc/posix-functions/if_indextoname.texi: Likewise.
42408         * doc/posix-functions/if_nameindex.texi: Likewise.
42409         * doc/posix-functions/if_nametoindex.texi: Likewise.
42410         * doc/posix-functions/insque.texi: Likewise.
42411         * doc/posix-functions/linkat.texi: Likewise.
42412         * doc/posix-functions/llrint.texi: Likewise.
42413         * doc/posix-functions/llrintf.texi: Likewise.
42414         * doc/posix-functions/llrintl.texi: Likewise.
42415         * doc/posix-functions/lockf.texi: Likewise.
42416         * doc/posix-functions/lrintl.texi: Likewise.
42417         * doc/posix-functions/mkdirat.texi: Likewise.
42418         * doc/posix-functions/mkfifoat.texi: Likewise.
42419         * doc/posix-functions/mknodat.texi: Likewise.
42420         * doc/posix-functions/mq_close.texi: Likewise.
42421         * doc/posix-functions/mq_getattr.texi: Likewise.
42422         * doc/posix-functions/mq_notify.texi: Likewise.
42423         * doc/posix-functions/mq_open.texi: Likewise.
42424         * doc/posix-functions/mq_receive.texi: Likewise.
42425         * doc/posix-functions/mq_send.texi: Likewise.
42426         * doc/posix-functions/mq_setattr.texi: Likewise.
42427         * doc/posix-functions/mq_timedreceive.texi: Likewise.
42428         * doc/posix-functions/mq_timedsend.texi: Likewise.
42429         * doc/posix-functions/mq_unlink.texi: Likewise.
42430         * doc/posix-functions/open_memstream.texi: Likewise.
42431         * doc/posix-functions/openat.texi: Likewise.
42432         * doc/posix-functions/posix_fadvise.texi: Likewise.
42433         * doc/posix-functions/posix_fallocate.texi: Likewise.
42434         * doc/posix-functions/posix_madvise.texi: Likewise.
42435         * doc/posix-functions/posix_memalign.texi: Likewise.
42436         * doc/posix-functions/posix_openpt.texi: Likewise.
42437         * doc/posix-functions/readlinkat.texi: Likewise.
42438         * doc/posix-functions/remque.texi: Likewise.
42439         * doc/posix-functions/renameat.texi: Likewise.
42440         * doc/posix-functions/rintl.texi: Likewise.
42441         * doc/posix-functions/sem_unlink.texi: Likewise.
42442         * doc/posix-functions/shm_open.texi: Likewise.
42443         * doc/posix-functions/shm_unlink.texi: Likewise.
42444         * doc/posix-functions/signgam.texi: Likewise.
42445         * doc/posix-functions/sigset.texi: Likewise.
42446         * doc/posix-functions/stpcpy.texi: Likewise.
42447         * doc/posix-functions/stpncpy.texi: Likewise.
42448         * doc/posix-functions/strerror.texi: Likewise.
42449         * doc/posix-functions/strtod.texi: Likewise.
42450         * doc/posix-functions/symlinkat.texi: Likewise.
42451         * doc/posix-functions/unlinkat.texi: Likewise.
42452         * doc/posix-functions/utimensat.texi: Likewise.
42453         * doc/glibc-functions/bindresvport.texi: Likewise.
42454         * doc/glibc-functions/dn_expand.texi: Likewise.
42455         * doc/glibc-functions/exp10.texi: Likewise.
42456         * doc/glibc-functions/exp10f.texi: Likewise.
42457         * doc/glibc-functions/fgetxattr.texi: Likewise.
42458         * doc/glibc-functions/flistxattr.texi: Likewise.
42459         * doc/glibc-functions/fopencookie.texi: Likewise.
42460         * doc/glibc-functions/freeifaddrs.texi: Likewise.
42461         * doc/glibc-functions/fremovexattr.texi: Likewise.
42462         * doc/glibc-functions/fsetxattr.texi: Likewise.
42463         * doc/glibc-functions/getifaddrs.texi: Likewise.
42464         * doc/glibc-functions/getxattr.texi: Likewise.
42465         * doc/glibc-functions/lgetxattr.texi: Likewise.
42466         * doc/glibc-functions/listxattr.texi: Likewise.
42467         * doc/glibc-functions/llistxattr.texi: Likewise.
42468         * doc/glibc-functions/lremovexattr.texi: Likewise.
42469         * doc/glibc-functions/lsetxattr.texi: Likewise.
42470         * doc/glibc-functions/pow10.texi: Likewise.
42471         * doc/glibc-functions/pow10f.texi: Likewise.
42472         * doc/glibc-functions/rcmd_af.texi: Likewise.
42473         * doc/glibc-functions/removexattr.texi: Likewise.
42474         * doc/glibc-functions/res_init.texi: Likewise.
42475         * doc/glibc-functions/res_mkquery.texi: Likewise.
42476         * doc/glibc-functions/res_query.texi: Likewise.
42477         * doc/glibc-functions/res_querydomain.texi: Likewise.
42478         * doc/glibc-functions/res_send.texi: Likewise.
42479         * doc/glibc-functions/rresvport_af.texi: Likewise.
42480         * doc/glibc-functions/setxattr.texi: Likewise.
42481         * doc/glibc-functions/strcasestr.texi: Likewise.
42482
42483 2008-12-15  Bruno Haible  <bruno@clisp.org>
42484
42485         Fix compilation error on OSF/1 4.0.
42486         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
42487         <sys/time.h>, simply delegate to the system header.
42488         Reported by Daniel Richard G. <oss@teragram.com>.
42489
42490 2008-12-15  Bruno Haible  <bruno@clisp.org>
42491
42492         * doc/posix-functions/openat.texi: Mention the 'openat' module.
42493         * doc/posix-functions/fchmodat.texi: Likewise.
42494         * doc/posix-functions/fchownat.texi: Likewise.
42495         * doc/posix-functions/fdopendir.texi: Likewise.
42496         * doc/posix-functions/fstatat.texi: Likewise.
42497         * doc/posix-functions/mkdirat.texi: Likewise.
42498         * doc/posix-functions/unlinkat.texi: Likewise.
42499
42500 2008-12-14  Bruno Haible  <bruno@clisp.org>
42501
42502         Update doc for POSIX:2008.
42503         * doc/posix-functions/faccessat.texi: New file.
42504         * doc/posix-functions/fchmodat.texi: New file.
42505         * doc/posix-functions/fchownat.texi: New file.
42506         * doc/posix-functions/fdopendir.texi: New file.
42507         * doc/posix-functions/fstatat.texi: New file.
42508         * doc/posix-functions/futimens.texi: New file.
42509         * doc/posix-functions/linkat.texi: New file.
42510         * doc/posix-functions/mkdirat.texi: New file.
42511         * doc/posix-functions/mkfifoat.texi: New file.
42512         * doc/posix-functions/mknodat.texi: New file.
42513         * doc/posix-functions/open_wmemstream.texi: New file.
42514         * doc/posix-functions/openat.texi: New file.
42515         * doc/posix-functions/psiginfo.texi: New file.
42516         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
42517         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
42518         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
42519         * doc/posix-functions/readlinkat.texi: New file.
42520         * doc/posix-functions/renameat.texi: New file.
42521         * doc/posix-functions/strerror_l.texi: New file.
42522         * doc/posix-functions/symlinkat.texi: New file.
42523         * doc/posix-functions/unlinkat.texi: New file.
42524         * doc/posix-functions/utimensat.texi: New file.
42525         * doc/gnulib.texi (Function Substitutes): Add these subsections.
42526
42527 2008-12-14  Bruno Haible  <bruno@clisp.org>
42528
42529         Update doc for POSIX:2008.
42530         * doc/posix-functions/alphasort.texi: Renamed from
42531         doc/glibc-functions/alphasort.texi.
42532         * doc/posix-functions/dirfd.texi: Renamed from
42533         doc/glibc-functions/dirfd.texi.
42534         * doc/posix-functions/dprintf.texi: Renamed from
42535         doc/glibc-functions/dprintf.texi.
42536         * doc/posix-functions/duplocale.texi: Renamed from
42537         doc/glibc-functions/duplocale.texi.
42538         * doc/posix-functions/fexecve.texi: Renamed from
42539         doc/glibc-functions/fexecve.texi.
42540         * doc/posix-functions/fmemopen.texi: Renamed from
42541         doc/glibc-functions/fmemopen.texi.
42542         * doc/posix-functions/freelocale.texi: Renamed from
42543         doc/glibc-functions/freelocale.texi.
42544         * doc/posix-functions/getdate_err.texi: Renamed from
42545         doc/glibc-functions/getdate_err.texi.
42546         * doc/posix-functions/isalnum_l.texi: Renamed from
42547         doc/glibc-functions/isalnum_l.texi.
42548         * doc/posix-functions/isalpha_l.texi: Renamed from
42549         doc/glibc-functions/isalpha_l.texi.
42550         * doc/posix-functions/isblank_l.texi: Renamed from
42551         doc/glibc-functions/isblank_l.texi.
42552         * doc/posix-functions/iscntrl_l.texi: Renamed from
42553         doc/glibc-functions/iscntrl_l.texi.
42554         * doc/posix-functions/isdigit_l.texi: Renamed from
42555         doc/glibc-functions/isdigit_l.texi.
42556         * doc/posix-functions/isgraph_l.texi: Renamed from
42557         doc/glibc-functions/isgraph_l.texi.
42558         * doc/posix-functions/islower_l.texi: Renamed from
42559         doc/glibc-functions/islower_l.texi.
42560         * doc/posix-functions/isprint_l.texi: Renamed from
42561         doc/glibc-functions/isprint_l.texi.
42562         * doc/posix-functions/ispunct_l.texi: Renamed from
42563         doc/glibc-functions/ispunct_l.texi.
42564         * doc/posix-functions/isspace_l.texi: Renamed from
42565         doc/glibc-functions/isspace_l.texi.
42566         * doc/posix-functions/isupper_l.texi: Renamed from
42567         doc/glibc-functions/isupper_l.texi.
42568         * doc/posix-functions/iswalnum_l.texi: Renamed from
42569         doc/glibc-functions/iswalnum_l.texi.
42570         * doc/posix-functions/iswalpha_l.texi: Renamed from
42571         doc/glibc-functions/iswalpha_l.texi.
42572         * doc/posix-functions/iswblank_l.texi: Renamed from
42573         doc/glibc-functions/iswblank_l.texi.
42574         * doc/posix-functions/iswcntrl_l.texi: Renamed from
42575         doc/glibc-functions/iswcntrl_l.texi.
42576         * doc/posix-functions/iswctype_l.texi: Renamed from
42577         doc/glibc-functions/iswctype_l.texi.
42578         * doc/posix-functions/iswdigit_l.texi: Renamed from
42579         doc/glibc-functions/iswdigit_l.texi.
42580         * doc/posix-functions/iswgraph_l.texi: Renamed from
42581         doc/glibc-functions/iswgraph_l.texi.
42582         * doc/posix-functions/iswlower_l.texi: Renamed from
42583         doc/glibc-functions/iswlower_l.texi.
42584         * doc/posix-functions/iswprint_l.texi: Renamed from
42585         doc/glibc-functions/iswprint_l.texi.
42586         * doc/posix-functions/iswpunct_l.texi: Renamed from
42587         doc/glibc-functions/iswpunct_l.texi.
42588         * doc/posix-functions/iswspace_l.texi: Renamed from
42589         doc/glibc-functions/iswspace_l.texi.
42590         * doc/posix-functions/iswupper_l.texi: Renamed from
42591         doc/glibc-functions/iswupper_l.texi.
42592         * doc/posix-functions/iswxdigit_l.texi: Renamed from
42593         doc/glibc-functions/iswxdigit_l.texi.
42594         * doc/posix-functions/isxdigit_l.texi: Renamed from
42595         doc/glibc-functions/isxdigit_l.texi.
42596         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
42597         doc/glibc-functions/mbsnrtowcs.texi.
42598         * doc/posix-functions/mkdtemp.texi: Renamed from
42599         doc/glibc-functions/mkdtemp.texi.
42600         * doc/posix-functions/newlocale.texi: Renamed from
42601         doc/glibc-functions/newlocale.texi.
42602         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
42603         doc/glibc-functions/nl_langinfo_l.texi.
42604         * doc/posix-functions/open_memstream.texi: Renamed from
42605         doc/glibc-functions/open_memstream.texi.
42606         * doc/posix-functions/opterr.texi: Renamed from
42607         doc/glibc-functions/opterr.texi.
42608         * doc/posix-functions/optind.texi: Renamed from
42609         doc/glibc-functions/optind.texi.
42610         * doc/posix-functions/optopt.texi: Renamed from
42611         doc/glibc-functions/optopt.texi.
42612         * doc/posix-functions/psignal.texi: Renamed from
42613         doc/glibc-functions/psignal.texi.
42614         * doc/posix-functions/scandir.texi: Renamed from
42615         doc/glibc-functions/scandir.texi.
42616         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
42617         doc/glibc-functions/sched_get_priority_min.texi.
42618         * doc/posix-functions/signgam.texi: Renamed from
42619         doc/glibc-functions/signgam.texi.
42620         * doc/posix-functions/stpcpy.texi: Renamed from
42621         doc/glibc-functions/stpcpy.texi.
42622         * doc/posix-functions/stpncpy.texi: Renamed from
42623         doc/glibc-functions/stpncpy.texi.
42624         * doc/posix-functions/strcasecmp_l.texi: Renamed from
42625         doc/glibc-functions/strcasecmp_l.texi.
42626         * doc/posix-functions/strcoll_l.texi: Renamed from
42627         doc/glibc-functions/strcoll_l.texi.
42628         * doc/posix-functions/strfmon_l.texi: Renamed from
42629         doc/glibc-functions/strfmon_l.texi.
42630         * doc/posix-functions/strftime_l.texi: Renamed from
42631         doc/glibc-functions/strftime_l.texi.
42632         * doc/posix-functions/strncasecmp_l.texi: Renamed from
42633         doc/glibc-functions/strncasecmp_l.texi.
42634         * doc/posix-functions/strndup.texi: Renamed from
42635         doc/glibc-functions/strndup.texi.
42636         * doc/posix-functions/strnlen.texi: Renamed from
42637         doc/glibc-functions/strnlen.texi.
42638         * doc/posix-functions/strsignal.texi: Renamed from
42639         doc/glibc-functions/strsignal.texi.
42640         * doc/posix-functions/strxfrm_l.texi: Renamed from
42641         doc/glibc-functions/strxfrm_l.texi.
42642         * doc/posix-functions/timer_gettime.texi: Renamed from
42643         doc/glibc-functions/timer_gettime.texi.
42644         * doc/posix-functions/tolower_l.texi: Renamed from
42645         doc/glibc-functions/tolower_l.texi.
42646         * doc/posix-functions/toupper_l.texi: Renamed from
42647         doc/glibc-functions/toupper_l.texi.
42648         * doc/posix-functions/towctrans_l.texi: Renamed from
42649         doc/glibc-functions/towctrans_l.texi.
42650         * doc/posix-functions/towlower_l.texi: Renamed from
42651         doc/glibc-functions/towlower_l.texi.
42652         * doc/posix-functions/towupper_l.texi: Renamed from
42653         doc/glibc-functions/towupper_l.texi.
42654         * doc/posix-functions/uselocale.texi: Renamed from
42655         doc/glibc-functions/uselocale.texi.
42656         * doc/posix-functions/vdprintf.texi: Renamed from
42657         doc/glibc-functions/vdprintf.texi.
42658         * doc/posix-functions/wcpcpy.texi:
42659         Renamed from doc/glibc-functions/wcpcpy.texi.
42660         * doc/posix-functions/wcpncpy.texi: Renamed from
42661         doc/glibc-functions/wcpncpy.texi.
42662         * doc/posix-functions/wcscasecmp.texi: Renamed from
42663         doc/glibc-functions/wcscasecmp.texi.
42664         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
42665         doc/glibc-functions/wcscasecmp_l.texi.
42666         * doc/posix-functions/wcscoll_l.texi: Renamed from
42667         doc/glibc-functions/wcscoll_l.texi.
42668         * doc/posix-functions/wcsdup.texi: Renamed from
42669         doc/glibc-functions/wcsdup.texi.
42670         * doc/posix-functions/wcsncasecmp.texi: Renamed from
42671         doc/glibc-functions/wcsncasecmp.texi.
42672         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
42673         doc/glibc-functions/wcsncasecmp_l.texi.
42674         * doc/posix-functions/wcsnlen.texi: Renamed from
42675         doc/glibc-functions/wcsnlen.texi.
42676         * doc/posix-functions/wcsnrtombs.texi: Renamed from
42677         doc/glibc-functions/wcsnrtombs.texi.
42678         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
42679         doc/glibc-functions/wcsxfrm_l.texi.
42680         * doc/posix-functions/wctrans_l.texi: Renamed from
42681         doc/glibc-functions/wctrans_l.texi.
42682         * doc/posix-functions/wctype_l.texi: Renamed from
42683         doc/glibc-functions/wctype_l.texi.
42684         * doc/gnulib.texi (Function Substitutes): Add these subsections.
42685         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
42686         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
42687         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
42688         these subsections.
42689         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
42690         Remove sections.
42691
42692 2008-12-14  Bruno Haible  <bruno@clisp.org>
42693
42694         Update doc for POSIX:2008.
42695         * doc/posix-functions/*.texi: Update URL of POSIX specification.
42696
42697 2008-12-14  Bruno Haible  <bruno@clisp.org>
42698
42699         Update doc for POSIX:2008.
42700         * doc/pastposix-functions/bcmp.texi: Renamed from
42701         doc/posix-functions/bcmp.texi.
42702         * doc/pastposix-functions/bcopy.texi: Renamed from
42703         doc/posix-functions/bcopy.texi.
42704         * doc/pastposix-functions/bsd_signal.texi: Renamed from
42705         doc/posix-functions/bsd_signal.texi.
42706         * doc/pastposix-functions/bzero.texi: Renamed from
42707         doc/posix-functions/bzero.texi.
42708         * doc/pastposix-functions/ecvt.texi: Renamed from
42709         doc/posix-functions/ecvt.texi.
42710         * doc/pastposix-functions/fcvt.texi: Renamed from
42711         doc/posix-functions/fcvt.texi.
42712         * doc/pastposix-functions/ftime.texi: Renamed from
42713         doc/posix-functions/ftime.texi.
42714         * doc/pastposix-functions/gcvt.texi: Renamed from
42715         doc/posix-functions/gcvt.texi.
42716         * doc/pastposix-functions/getcontext.texi: Renamed from
42717         doc/posix-functions/getcontext.texi.
42718         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
42719         doc/posix-functions/gethostbyaddr.texi.
42720         * doc/pastposix-functions/gethostbyname.texi: Renamed from
42721         doc/posix-functions/gethostbyname.texi.
42722         * doc/pastposix-functions/getwd.texi: Renamed from
42723         doc/posix-functions/getwd.texi.
42724         * doc/pastposix-functions/h_errno.texi: Renamed from
42725         doc/posix-functions/h_errno.texi.
42726         * doc/pastposix-functions/index.texi: Renamed from
42727         doc/posix-functions/index.texi.
42728         * doc/pastposix-functions/makecontext.texi: Renamed from
42729         doc/posix-functions/makecontext.texi.
42730         * doc/pastposix-functions/mktemp.texi: Renamed from
42731         doc/posix-functions/mktemp.texi.
42732         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
42733         doc/posix-functions/pthread_attr_getstackaddr.texi.
42734         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
42735         doc/posix-functions/pthread_attr_setstackaddr.texi.
42736         * doc/pastposix-functions/rindex.texi: Renamed from
42737         doc/posix-functions/rindex.texi.
42738         * doc/pastposix-functions/scalb.texi: Renamed from
42739         doc/posix-functions/scalb.texi.
42740         * doc/pastposix-functions/setcontext.texi: Renamed from
42741         doc/posix-functions/setcontext.texi.
42742         * doc/pastposix-functions/swapcontext.texi: Renamed from
42743         doc/posix-functions/swapcontext.texi.
42744         * doc/pastposix-functions/ualarm.texi: Renamed from
42745         doc/posix-functions/ualarm.texi.
42746         * doc/pastposix-functions/usleep.texi: Renamed from
42747         doc/posix-functions/usleep.texi.
42748         * doc/pastposix-functions/vfork.texi: Renamed from
42749         doc/posix-functions/vfork.texi.
42750         * doc/pastposix-functions/wcswcs.texi: Renamed from
42751         doc/posix-functions/wcswcs.texi.
42752         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
42753         (Function Substitutes): Update.
42754
42755 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42756
42757         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
42758         m4/strerror.m4.
42759
42760 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42761             Bruno Haible  <bruno@clisp.org>
42762
42763         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
42764
42765 2008-12-13  Bruno Haible  <bruno@clisp.org>
42766
42767         * modules/strtoull (Depends-on): Remove unistd.
42768
42769 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42770
42771         * modules/strtoull (Depends-on): Add stdlib.
42772
42773 2008-12-11  Simon Josefsson  <simon@josefsson.org>
42774
42775         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
42776
42777 2008-12-10  Jim Meyering  <meyering@redhat.com>
42778
42779         gl_ASSERT: don't say assertions are disabled when they're not
42780         * m4/assert.m4 (gl_ASSERT): Do not make configure report
42781         "checking whether to enable assertions... no", when they are in
42782         fact enabled.  This is solely a bug in the output of configure.
42783         In spite of saying "no", NDEBUG was not defined in that case.
42784         Also, as noted by Eric Blake, leave assertions enabled upon
42785         --enable-assert=INVALID.
42786
42787 2008-12-10  Bruno Haible  <bruno@clisp.org>
42788
42789         Change MODULES.html to refer to POSIX:2008 where possible.
42790         * MODULES.html.sh (POSIX2008_URL): New variable.
42791         (posix_headers): Remove sys/timeb, ucontext.
42792         (posix2001_headers): New variable.
42793         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
42794         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
42795         index, makecontext, mktemp, pthread_attr_getstackaddr,
42796         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
42797         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
42798         (posix2001_functions): New variable.
42799         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
42800         otherwise.
42801
42802 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42803
42804         add missing include to parse-duration.c
42805         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
42806         * modules/parse-duration (Depends-on): Add xalloc.
42807
42808         fix sed script reading maint.mk
42809         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
42810         (syntax-check-rules): Use it.
42811
42812 2008-12-09  Bruno Haible  <bruno@clisp.org>
42813
42814         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
42815         MacOS X 10.4/PowerPC.
42816         Reported by Simon Josefsson.
42817
42818 2008-12-08  Jim Meyering  <meyering@redhat.com>
42819
42820         work around mingw's lack of some S_IF definitions
42821         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
42822         Reported by Simon Josefsson.
42823
42824 2008-12-08  Bruno Haible  <bruno@clisp.org>
42825
42826         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
42827         applied to variables. Needed on MacOS X 10.4/PowerPC.
42828         Reported by Simon Josefsson.
42829
42830 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
42831         and Eric Blake  <ebb9@byu.net>
42832
42833         assert: honor --enable-assert
42834         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
42835         order to honor --enable-assert, rather than treating it as a
42836         synonym for --disable-assert.
42837
42838 2008-12-08  Jim Meyering  <meyering@redhat.com>
42839
42840         * lib/posixtm.c: Remove now-useless declaration of mktime.
42841
42842         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
42843
42844 2008-12-07  Bruno Haible  <bruno@clisp.org>
42845
42846         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
42847         test_once): Mark functions as static.
42848         * tests/test-tls.c (test_tls): Likewise.
42849
42850 2008-12-07  Bruno Haible  <bruno@clisp.org>
42851
42852         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
42853         iconv_register_autodetect.
42854
42855 2008-12-07  Jim Meyering  <meyering@redhat.com>
42856
42857         posixtm.c: avoid a warning
42858         * lib/posixtm.c (posixtime): Don't initialize tm0.
42859         It's no longer needed to placate gcc4's -Wuninitialized,
42860         and the attempt to placate would elicit a new warning.
42861
42862         unicodeio.c: mark unused parameters
42863         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
42864         (fallback_failure_callback): Likewise.
42865
42866 2008-12-07  Bruno Haible  <bruno@clisp.org>
42867
42868         * gnulib-tool (func_create_testdir): When building the tests
42869         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
42870         Reported by Simon Josefsson.
42871
42872 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42873
42874         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
42875
42876 2008-12-06  Bruno Haible  <bruno@clisp.org>
42877
42878         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
42879         Suggested by Eric Blake.
42880
42881 2008-12-06  Bruno Haible  <bruno@clisp.org>
42882
42883         Fix a c-stack test failure on MacOS X.
42884         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
42885         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
42886         handler for SIGBUS as well.
42887         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
42888         install a signal handler for SIGBUS as well.
42889         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
42890
42891 2008-12-06  Bruno Haible  <bruno@clisp.org>
42892
42893         Advocacy documentation.
42894         * doc/gnulib-intro.texi (Benefits): New section.
42895         * doc/gnulib.texi: Update.
42896
42897 2008-12-06  Bruno Haible  <bruno@clisp.org>
42898
42899         Document the 'manywarnings' module.
42900         * doc/manywarnings.texi: New file.
42901         * doc/gnulib.texi: Include it.
42902
42903 2008-12-05  Eric Blake  <ebb9@byu.net>
42904
42905         tests: silence some gcc warnings
42906         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
42907         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
42908         type mismatches.
42909
42910 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42911             Bruno Haible  <bruno@clisp.org>
42912
42913         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
42914
42915 2008-11-29  Jim Meyering  <meyering@redhat.com>
42916
42917         unicodeio.c: mark unused parameters
42918         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
42919         (fallback_failure_callback): Likewise.
42920
42921         fts: fix a thinko
42922         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
42923         (set_stat_type): Return S_IF*-valued "type" directly.
42924         Prompted by James Youngman's spotting a related bug.
42925         Confirmed by further testing through find.
42926
42927         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
42928         * lib/fts.c (D_TYPE): Define.
42929         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
42930         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
42931         (s_ifmt_shift_bits): New function.
42932         (set_stat_type): New function.
42933         (fts_build): When not calling fts_stat, call set_stat_type
42934         to propagate dirent.d_type info to fts_read caller.
42935         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
42936         fts_statp->st_mode type information may be valid.
42937
42938 2008-11-28  Simon Josefsson  <simon@josefsson.org>
42939
42940         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
42941         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
42942         <sds@gnu.org>.
42943
42944 2008-11-20  Bruno Haible  <bruno@clisp.org>
42945
42946         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
42947         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
42948         INCLUDE_NEXT.
42949         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
42950         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
42951         * modules/math (Makefile.am): Substitute
42952         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
42953         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42954
42955 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
42956             Bruno Haible  <bruno@clisp.org>
42957
42958         * lib/stdint.in.h: Define all type macros so that their expansion is
42959         a single typedef'ed token. Fixes a compilation failure in Boost which
42960         does "using ::int8_t;".
42961
42962 2008-11-18  Simon Josefsson  <simon@josefsson.org>
42963
42964         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
42965         gl_MANYWARN_ALL_GCC.
42966         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
42967         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
42968         * modules/manywarnings: New file.
42969         * MODULES.html.sh: Mention manywarnings module.
42970
42971 2008-11-18  Bruno Haible  <bruno@clisp.org>
42972
42973         * doc/gnulib-tool.texi (Unit tests): New section.
42974
42975 2008-11-18  Simon Josefsson  <simon@josefsson.org>
42976
42977         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
42978         paths like 'lib/po/foo.po'.
42979
42980 2008-11-17  Simon Josefsson  <simon@josefsson.org>
42981
42982         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
42983         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
42984
42985 2008-11-17  Simon Josefsson  <simon@josefsson.org>
42986
42987         * m4/warnings.m4: Use CPPFLAGS to really check whether the
42988         parameter works.
42989
42990 2008-11-17  Simon Josefsson  <simon@josefsson.org>
42991
42992         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
42993
42994 2008-11-17  Bruce Korb  <bkorb@gnu.org>
42995
42996         * modules/parse-duration-tests: New file.
42997         * tests/test-parse-duration.sh: New file.
42998         * tests/test-parse-duration.c: New file.
42999
43000         New module 'parse-duration'.
43001         * lib/parse-duration.h: New file.
43002         * lib/parse-duration.c: New file.
43003         * modules/parse-duration: New file.
43004
43005 2008-11-17  Bruno Haible  <bruno@clisp.org>
43006
43007         * tests/test-select-out.sh: Comment out the first pipe test.
43008         Reported by Simon Josefsson.
43009
43010 2008-11-17  Bruno Haible  <bruno@clisp.org>
43011
43012         * modules/getaddrinfo (Depends-on): Add servent, hostent.
43013         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
43014         gl_HOSTENT.
43015
43016 2008-11-17  Bruno Haible  <bruno@clisp.org>
43017
43018         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
43019         -lnetwork and -lnet. Needed for Haiku and BeOS.
43020
43021 2008-11-16  Bruno Haible  <bruno@clisp.org>
43022
43023         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
43024
43025 2008-11-16  Bruno Haible  <bruno@clisp.org>
43026
43027         Avoid test failure on Haiku.
43028         * tests/test-fsync.c: Include <errno.h>.
43029         (main): Don't require that fsync (0) fails.
43030
43031 2008-11-15  Bruno Haible  <bruno@clisp.org>
43032
43033         New module 'hostent'.
43034         * modules/hostent: New file.
43035         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
43036
43037 2008-11-15  Bruno Haible  <bruno@clisp.org>
43038
43039         New module 'servent'.
43040         * modules/servent: New file.
43041         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
43042
43043 2008-11-15  Bruno Haible  <bruno@clisp.org>
43044
43045         Avoid generating same test program with two different rules.
43046         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
43047         test-frexp to test-frexp-nolibm.
43048         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
43049         test-frexpl to test-frexpl-nolibm.
43050
43051 2008-11-15  Bruno Haible  <bruno@clisp.org>
43052
43053         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
43054         $(FREXPL_LIBM).
43055
43056 2008-11-15  Bruno Haible  <bruno@clisp.org>
43057
43058         * lib/netdb.in.h: Activate the definitions also when the system's
43059         <netdb.h> has 'struct addrinfo'.
43060         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
43061         EAI_OVERFLOW or AI_NUMERICSERV.
43062         * doc/posix-headers/netdb.texi: Document the problem.
43063
43064 2008-11-15  Bruno Haible  <bruno@clisp.org>
43065
43066         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
43067
43068         Make the 'sched' module work on platforms where <sched.h> exists but
43069         is incomplete (such as Haiku).
43070         * lib/sched.in.h; Include the system's <sched.h> if it exists.
43071         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
43072         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
43073         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
43074         HAVE_STRUCT_SCHED_PARAM.
43075         * modules/sched (Depends-on): Add include_next.
43076         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
43077         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
43078         * doc/posix-headers/sched.texi: Document the issue.
43079
43080 2008-11-13  Jim Meyering  <meyering@redhat.com>
43081
43082         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
43083         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
43084         test would fail due to the difference in the Report bugs to ...
43085         line.  The expected address is empty, "<>", while the actual
43086         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
43087
43088 2008-11-12  Bruno Haible  <bruno@clisp.org>
43089
43090         lstat: don't compile lstat.c on systems lacking lstat
43091         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
43092         which don't have lstat; this is handled by lib/sys_stat.in.h already.
43093         Reported by Daniel P. Berrange via Jim Meyering.
43094
43095 2008-11-12  Jim Meyering  <meyering@redhat.com>
43096
43097         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
43098
43099 2008-11-12  Simon Josefsson  <simon@josefsson.org>
43100
43101         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
43102         instead.
43103
43104 2008-11-12  Bruno Haible  <bruno@clisp.org>
43105
43106         * lib/unicodeio.c: Include unistr.h.
43107         (utf8_wctomb): Remove function.
43108         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
43109
43110 2008-11-12  Simon Josefsson  <simon@josefsson.org>
43111
43112         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
43113         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
43114         <bruno@clisp.org>.
43115         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
43116
43117 2008-11-12  Simon Josefsson  <simon@josefsson.org>
43118
43119         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
43120         * doc/gnulib.texi: Add section for warnings.
43121
43122 2008-11-11  Bruno Haible  <bruno@clisp.org>
43123
43124         * lib/sockets.h: Add a comment.
43125
43126 2008-11-11  Karl Berry  <karl@gnu.org>
43127
43128         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
43129
43130 2008-11-11  Eric Blake  <ebb9@byu.net>
43131
43132         fdl.texi: avoid git symlinks
43133         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
43134
43135 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
43136
43137         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
43138
43139 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
43140
43141         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
43142         (gl_WARN_ADD): Substitute $2 if literal.
43143
43144 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
43145
43146         * m4/warning.m4: Remove.
43147
43148 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
43149
43150         * m4/warnings.m4: Almost complete rewrite. :-)
43151
43152 2008-11-10  Simon Josefsson  <simon@josefsson.org>
43153
43154         * modules/warnings: New module.
43155         * m4/warnings.m4: New file.
43156         * MODULES.html.sh: Mention warnings module.
43157         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
43158         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43159
43160 2008-11-10  Eric Blake  <ebb9@byu.net>
43161
43162         fdl.texi: make a symlink to the latest version
43163         * doc/standards.texi: Revert today's earlier change.
43164         * doc/fdl-1.2.texi: Rename from old fdl.texi...
43165         * doc/fdl.texi: ...and replace this with a symlink to the newer
43166         fdl-1.3.texi.
43167
43168 2008-11-10  Bruno Haible  <bruno@clisp.org>
43169
43170         * tests/test-select-fd.c (main): Accept the result file name as fourth
43171         argument.
43172         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
43173         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
43174
43175 2008-11-10  Bruno Haible  <bruno@clisp.org>
43176
43177         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
43178         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
43179         as autoconf-substituted macros.
43180         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
43181         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
43182         gl_NETDB_H_DEFAULTS. Set these variables.
43183         * modules/netdb (Makefile.am): Substitute these variables.
43184
43185 2008-11-10  Eric Blake  <ebb9@byu.net>
43186
43187         standards.texi: include correct file for FDL 1.3
43188         * doc/standards.texi (GNU Free Documentation License): Change
43189         include file to pull in FDL 1.3, not 1.2.
43190
43191         fdl.texi: revert accidental change to license
43192         * doc/fdl.texi: This is FDL 1.2, not 1.3.
43193
43194 2008-11-10  Bruno Haible  <bruno@clisp.org>
43195
43196         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
43197         cross-compiling guesses also when the native compile gives no result.
43198
43199 2008-11-10  Bruno Haible  <bruno@clisp.org>
43200
43201         * lib/spawni.c (__spawni): Force variable into the stack.
43202
43203 2008-11-10  Bruno Haible  <bruno@clisp.org>
43204
43205         Add support for Haiku.
43206         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
43207         glibc and BeOS, but also on Haiku.
43208         * lib/fpurge.c (fpurge): Likewise.
43209         * lib/freadable.c (freadable): Likewise.
43210         * lib/freadahead.c (freadahead): Likewise.
43211         * lib/freading.c (freading): Likewise.
43212         * lib/freadptr.c (freadptr): Likewise.
43213         * lib/freadseek.c (freadptrinc): Likewise.
43214         * lib/fseeko.c (rpl_fseeko): Likewise.
43215         * lib/fseterr.c (fseterr): Likewise.
43216         * lib/fwritable.c (fwritable): Likewise.
43217         * lib/fwriting.c (fwriting): Likewise.
43218         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
43219
43220 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
43221
43222         * lib/config.charset: Treat Haiku like BeOS.
43223
43224 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
43225
43226         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
43227         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
43228
43229 2008-11-08  Bruno Haible  <bruno@clisp.org>
43230
43231         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
43232         AC_CACHE_CHECK.
43233
43234 2008-11-08  Bruno Haible  <bruno@clisp.org>
43235
43236         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
43237
43238 2008-11-08  Bruno Haible  <bruno@clisp.org>
43239
43240         * tests/test-select-fd.c: New file.
43241         * tests/test-select-in.sh: New file.
43242         * tests/test-select-out.sh: New file.
43243         * tests/test-select-stdin.c: New file.
43244         * modules/select-tests (Files): Add the new files.
43245         (Depends-on): Add gettimeofday.
43246         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
43247         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
43248         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
43249
43250 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
43251             Bruno Haible  <bruno@clisp.org>
43252
43253         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
43254
43255 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
43256
43257         * build-aux/pmccabe2html: Added support for C++ source files.
43258
43259 2008-11-05  Ben Pfaff  <blp@gnu.org>
43260
43261         Fix lib/close.c build on Windows.
43262         * modules/close (Files): Add lib/w32sock.h.
43263
43264 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
43265
43266         Accept Bison's NEWS format.
43267         * build-aux/announce-gen (print_news_deltas): Tweak
43268         $re_prefix.
43269
43270 2008-11-04  Bruno Haible  <bruno@clisp.org>
43271
43272         * modules/random_r (Maintainer): Add glibc.
43273
43274 2008-11-04  Simon Josefsson  <simon@josefsson.org>
43275
43276         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
43277         by karl@freefriends.org (Karl Berry).
43278         * doc/alloca.texi: Likewise.
43279         * doc/c-ctype.texi: Likewise.
43280         * doc/c-strcase.texi: Likewise.
43281         * doc/c-strcaseeq.texi: Likewise.
43282         * doc/c-strcasestr.texi: Likewise.
43283         * doc/c-strstr.texi: Likewise.
43284         * doc/c-strtod.texi: Likewise.
43285         * doc/c-strtold.texi: Likewise.
43286         * doc/ctime.texi: Likewise.
43287         * doc/error.texi: Likewise.
43288         * doc/fdl.texi: Likewise.
43289         * doc/gcd.texi: Likewise.
43290         * doc/getdate.texi: Likewise.
43291         * doc/gnulib-intro.texi: Likewise.
43292         * doc/gnulib-tool.texi: Likewise.
43293         * doc/gnulib.texi: Likewise.
43294         * doc/inet_ntoa.texi: Likewise.
43295         * doc/maintain.texi: Likewise.
43296         * doc/make-stds.texi: Likewise.
43297         * doc/quote.texi: Likewise.
43298         * doc/regexprops-generic.texi: Likewise.
43299         * doc/standards.texi: Likewise.
43300         * doc/verify.texi: Likewise.
43301         * doc/visibility.texi: Likewise.
43302         * doc/gnulib.texi (GNU Free Documentation License): Include
43303         fdl-1.3.texi instead of fdl.texi.
43304
43305 2008-11-04  Simon Josefsson  <simon@josefsson.org>
43306
43307         * doc/fdl-1.3.texi: New file, from
43308         <http://www.gnu.org/licenses/fdl-1.3.texi>.
43309         * modules/fdl-1.3: Add.
43310         * MODULES.html.sh: Add fdl-1.3.
43311
43312 2008-11-03  Bruno Haible  <bruno@clisp.org>
43313
43314         Make determination of absolute name of header file work with AIX xlc.
43315         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
43316         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
43317         preprocessing.
43318         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
43319         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
43320
43321 2008-11-03  Simon Josefsson  <simon@josefsson.org>
43322
43323         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
43324         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
43325         <ludo@gnu.org>.
43326
43327 2008-11-02  Bruno Haible  <bruno@clisp.org>
43328
43329         Mark 'strpbrk' obsolete.
43330         * modules/strpbrk (Status, Notice): New sections.
43331         * modules/strtok_r (Depends-on): Add strpbrk.
43332
43333 2008-11-02  Bruno Haible  <bruno@clisp.org>
43334
43335         Mark 'strdup' obsolete.
43336         * modules/strdup (Status, Notice): New sections.
43337         * modules/findprog (Depends-on): Add strdup.
43338         * modules/getaddrinfo (Depends-on): Likewise.
43339         * modules/localename (Depends-on): Likewise.
43340         * modules/relocatable-lib (Depends-on): Likewise.
43341         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
43342         * modules/relocatable-prog (Depends-on): Likewise.
43343         * modules/trim (Depends-on): Likewise.
43344         * modules/unictype/gen-ctype (Depends-on): Likewise.
43345         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
43346
43347 2008-11-02  Bruno Haible  <bruno@clisp.org>
43348
43349         Mark 'strcspn' obsolete.
43350         * modules/strcspn (Status, Notice): New sections.
43351
43352 2008-11-02  Bruno Haible  <bruno@clisp.org>
43353
43354         Mark 'rmdir' obsolete.
43355         * modules/rmdir (Status, Notice): New sections.
43356         * modules/clean-temp (Depends-on): Add rmdir.
43357         * modules/openat (Depends-on): Likewise.
43358
43359 2008-11-02  Bruno Haible  <bruno@clisp.org>
43360
43361         Mark 'raise' obsolete.
43362         * modules/raise (Status, Notice): New sections.
43363         (Include): Specify <signal.h>.
43364         * modules/stdio (Depends-on): Add raise.
43365         * modules/write (Depends-on): Likewise.
43366
43367 2008-11-02  Bruno Haible  <bruno@clisp.org>
43368
43369         Mark 'memset' obsolete.
43370         * modules/memset (Status, Notice): New sections.
43371
43372 2008-11-02  Bruno Haible  <bruno@clisp.org>
43373
43374         Mark 'memmove' obsolete.
43375         * modules/memmove (Status, Notice): New sections.
43376         * modules/argp (Depends-on): Add memmove.
43377         * modules/argz (Depends-on): Likewise.
43378         * modules/canonicalize (Depends-on): Likewise.
43379         * modules/canonicalize-lgpl (Depends-on): Likewise.
43380         * modules/fts (Depends-on): Likewise.
43381         * modules/getcwd (Depends-on): Likewise.
43382         * modules/human (Depends-on): Likewise.
43383         * modules/regex (Depends-on): Likewise.
43384         * modules/striconveh (Depends-on): Likewise.
43385         * modules/trim (Depends-on): Likewise.
43386         * modules/unistr/u8-move (Depends-on): Likewise.
43387         * modules/unistr/u16-move (Depends-on): Likewise.
43388         * modules/unistr/u32-move (Depends-on): Likewise.
43389
43390 2008-11-02  Bruno Haible  <bruno@clisp.org>
43391
43392         Mark 'memcpy' obsolete.
43393         * modules/memcpy (Status, Notice): New sections.
43394
43395 2008-11-02  Bruno Haible  <bruno@clisp.org>
43396
43397         Mark 'memcmp' obsolete.
43398         * modules/memcmp (Status, Notice): New sections.
43399         * modules/argmatch (Depends-on): Add memchr.
43400         * modules/backupfile (Depends-on): Likewise.
43401         * modules/c-strcasestr (Depends-on): Likewise.
43402         * modules/crypto/des (Depends-on): Likewise.
43403         * modules/csharpcomp (Depends-on): Likewise.
43404         * modules/fnmatch (Depends-on): Likewise.
43405         * modules/git-merge-changelog (Depends-on): Likewise.
43406         * modules/isnand (Depends-on): Likewise.
43407         * modules/isnand-nolibm (Depends-on): Likewise.
43408         * modules/isnanf (Depends-on): Likewise.
43409         * modules/isnanf-nolibm (Depends-on): Likewise.
43410         * modules/isnanl (Depends-on): Likewise.
43411         * modules/isnanl-nolibm (Depends-on): Likewise.
43412         * modules/mbchar (Depends-on): Likewise.
43413         * modules/memcoll (Depends-on): Likewise.
43414         * modules/quotearg (Depends-on): Likewise.
43415         * modules/regex (Depends-on): Likewise.
43416         * modules/relocatable-prog (Depends-on): Likewise.
43417         * modules/same (Depends-on): Likewise.
43418         * modules/signbit (Depends-on): Likewise.
43419         * modules/strcasestr-simple (Depends-on): Likewise.
43420         * modules/unictype/gen-ctype (Depends-on): Likewise.
43421         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
43422         * modules/uniname/uniname (Depends-on): Likewise.
43423         * modules/unistr/u8-cmp (Depends-on): Likewise.
43424
43425 2008-11-02  Bruno Haible  <bruno@clisp.org>
43426
43427         Mark 'memchr' obsolete.
43428         * modules/memchr (Status, Notice): New sections.
43429         * modules/argp (Depends-on): Add memchr.
43430         * modules/base64 (Depends-on): Likewise.
43431         * modules/c-strcasestr (Depends-on): Likewise.
43432         * modules/chdir-long (Depends-on): Likewise.
43433         * modules/fnmatch (Depends-on): Likewise.
43434         * modules/getsubopt (Depends-on): Likewise.
43435         * modules/git-merge-changelog (Depends-on): Likewise.
43436         * modules/glob (Depends-on): Likewise.
43437         * modules/strcasestr-simple (Depends-on): Likewise.
43438         * modules/strnlen (Depends-on): Likewise.
43439
43440 2008-11-02  Bruno Haible  <bruno@clisp.org>
43441
43442         Mark 'atexit' obsolete.
43443         * modules/atexit (Status, Notice): New sections.
43444         * modules/chdir-long (Depends-on): Add atexit.
43445         * modules/wait-process (Depends-on): Likewise.
43446
43447 2008-11-02  Bruno Haible  <bruno@clisp.org>
43448
43449         * gnulib-tool: New option --with-obsolete.
43450         (func_usage): Document it.
43451         (func_modules_transitive_closure): Drop obsolete dependencies if
43452         incobsolete is not true.
43453         (func_import): Read and save the incobsolete variable to the cache.
43454
43455 2008-11-02  Bruno Haible  <bruno@clisp.org>
43456
43457         * modules/TEMPLATE-EXTENDED: New field 'Status'.
43458         * gnulib-tool: New option --extract-status.
43459         (func_usage): Document it.
43460         (sed_extract_prog): Recognize it.
43461         (func_get_status): New function.
43462
43463 2008-10-30  Simon Josefsson  <simon@josefsson.org>
43464
43465         * modules/sockets (License): Change from LGPL to LGPLv2+.
43466
43467 2008-10-28  Simon Josefsson  <simon@josefsson.org>
43468
43469         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
43470
43471 2008-10-28  Simon Josefsson  <simon@josefsson.org>
43472
43473         * MODULES.html.sh (Support for systems lacking POSIX:2001):
43474         Mention times and sys_times.
43475         * modules/sys_times, modules/sys_times-tests: New modules.
43476         * modules/times, modules/times-tests: Likewise
43477         * m4/sys_times_h.m4: New file.
43478         * lib/sys_times.in.h: Likewise
43479         * lib/times.c: Likewise.
43480         * tests/test-sys_times.c: Likewise.
43481         * tests/test-times.c: Likewise.
43482         * doc/posix-headers/sys_times.texi: Update.
43483         * doc/posix-functions/times.texi: Update.
43484
43485 2008-10-28  Jim Meyering  <meyering@redhat.com>
43486
43487         * modules/tempname (Depends-on): Add lstat.
43488
43489         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
43490
43491 2008-10-28  Simon Josefsson  <simon@josefsson.org>
43492
43493         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
43494         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
43495         using idiom used elsewhere in gnulib.
43496
43497 2008-10-27  Jim Meyering  <meyering@redhat.com>
43498
43499         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
43500
43501 2008-10-27  Simon Josefsson  <simon@josefsson.org>
43502
43503         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
43504         TESTS_ENVIRONMENT, for shell scripts that needs to call built
43505         programs.
43506         * tests/test-argp-2.sh: Use $EXEEXT when needed.
43507
43508 2008-10-27  Simon Josefsson  <simon@josefsson.org>
43509
43510         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
43511
43512 2008-10-27  Bruno Haible  <bruno@clisp.org>
43513
43514         * tests/test-lstat.c: Include <stdio.h>.
43515
43516 2008-10-27  Simon Josefsson  <simon@josefsson.org>
43517
43518         * modules/lstat-tests: New module.
43519         * tests/test-lstat.c: New file.
43520
43521 2008-10-26  Jim Meyering  <meyering@redhat.com>
43522
43523         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
43524
43525 2008-10-26  Simon Josefsson  <simon@josefsson.org>
43526             Bruno Haible  <bruno@clisp.org>
43527
43528         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
43529         * modules/configmake (Include): Add a note that the include must come
43530         after all system headers.
43531         * lib/javaversion.c: Include configmake.h after all other includes.
43532
43533 2008-10-26  Bruno Haible  <bruno@clisp.org>
43534
43535         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
43536         HAVE_STRUCT_RANDOM_DATA to 1.
43537         (gl_STDLIB_H): Simplify.
43538
43539 2008-10-26  Simon Josefsson  <simon@josefsson.org>
43540
43541         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
43542         substitute HAVE_STRUCT_RANDOM_DATA.
43543         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
43544         random_data.
43545         * modules/stdlib (Makefile.am): Substitute
43546         HAVE_STRUCT_RANDOM_DATA.
43547
43548 2008-10-26  Simon Josefsson  <simon@josefsson.org>
43549
43550         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
43551         * doc/gnulib-intro.texi (Copyright): Likewise.
43552
43553 2008-10-26  Simon Josefsson  <simon@josefsson.org>
43554
43555         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
43556         findings.
43557
43558 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
43559             Bruno Haible  <bruno@clisp.org>
43560
43561         * lib/unistd.in.h: Include <winsock2.h>.
43562         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
43563         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
43564         Provide dummy declarations.
43565         (gethostname): Override.
43566         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
43567         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
43568         gl_PREREQ_SYS_H_WINSOCK2.
43569         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
43570         * doc/posix-functions/gethostname.texi: More details.
43571
43572 2008-10-25  Bruno Haible  <bruno@clisp.org>
43573
43574         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
43575         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
43576         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
43577
43578         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
43579         here ...
43580         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
43581         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
43582         gl_UNISTD_H_DEFAULTS.
43583
43584 2008-10-25  Eric Blake  <ebb9@byu.net>
43585
43586         signbit: avoid spurious compiler failure
43587         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
43588         declarations inside function.
43589
43590 2008-10-24  Simon Josefsson  <simon@josefsson.org>
43591             Bruno Haible  <bruno@clisp.org>
43592
43593         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
43594         * modules/random_r (Depends-on): Add stdint.
43595
43596 2008-10-24  Bruno Haible  <bruno@clisp.org>
43597
43598         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
43599         Eggert.
43600         * modules/strerror (License): Likewise.
43601
43602 2008-10-24  Jim Meyering  <meyering@redhat.com>
43603
43604         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
43605         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
43606
43607 2008-10-24  Eric Blake  <ebb9@byu.net>
43608
43609         getgroups: fix compilation when getgroups is available
43610         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
43611         but with <config.h> override of getgroups disabled.
43612
43613 2008-10-24  Simon Josefsson  <simon@josefsson.org>
43614
43615         * doc/gnulib.texi (Header files): Add note about C++ problems.
43616         Explained by Bruno Haible <bruno@clisp.org>.
43617
43618 2008-10-23  Bruno Haible  <bruno@clisp.org>
43619
43620         Define a dummy SA_NODEFER macro on Interix.
43621         * lib/signal.in.h (SA_NODEFER): Define fallback.
43622         Reported by Aleksey Cheusov <cheusov@tut.by> via
43623         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
43624
43625 2008-10-23  Bruno Haible  <bruno@clisp.org>
43626
43627         * modules/freadahead (License): Change to LGPLv2+.
43628         Suggested by Simon Josefsson.
43629
43630 2008-10-23  Jim Meyering  <meyering@redhat.com>
43631
43632         random_r: new module
43633         * modules/random_r: New file.
43634         * m4/random_r.m4: New file.
43635         * lib/random_r.c: New file, from glibc.
43636         * modules/random_r-tests: New file.
43637         * tests/test-random_r.c: New file.
43638         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
43639          Declare.
43640         (RAND_MAX): Define.
43641         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
43642         * modules/stdlib: Substitute them, too.
43643         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
43644         * doc/glibc-functions/initstate_r.texi: Mention the new module.
43645         * doc/glibc-functions/random_r.texi: Likewise.
43646         * doc/glibc-functions/setstate_r.texi: Likewise.
43647         * doc/glibc-functions/srandom_r.texi: Likewise.
43648         * config/srclist.txt: Mention it.
43649
43650 2008-10-23  David Lutterkort  <lutter@redhat.com>
43651
43652         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
43653         link requirement
43654
43655 2008-10-23  Jim Meyering  <meyering@redhat.com>
43656
43657         selinux-h: mark parameters of stub functions as intentionally unused
43658         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
43659         * lib/se-context.in.h: Likewise.
43660
43661 2008-10-22  Simon Josefsson  <simon@josefsson.org>
43662
43663         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
43664
43665 2008-10-22  Simon Josefsson  <simon@josefsson.org>
43666
43667         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
43668
43669 2008-10-22  Eric Blake  <ebb9@byu.net>
43670
43671         glthread/thread: avoid compiler warning
43672         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
43673         Add unreachable abort to silence compiler.
43674
43675 2008-10-22  Eric Blake  <ebb9@byu.net>
43676
43677         netdb: also supply struct addrinfo for cygwin 1.5.x
43678         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
43679         older cygwin.
43680         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
43681         cygwin.
43682         * doc/posix-headers/netdb.texi (netdb.h): Document this.
43683
43684 2008-10-22  Bruno Haible  <bruno@clisp.org>
43685
43686         * users.txt: Update entry about pspp.
43687
43688 2008-10-21  Bruno Haible  <bruno@clisp.org>
43689
43690         Simplification.
43691         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
43692         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
43693
43694         Simplification.
43695         * lib/ioctl.c (ioctl): Don't undefine.
43696         * lib/socket.c (socket): Don't undefine.
43697
43698         Remove unused module indicator macros.
43699         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
43700         GNULIB_$1 as a C macro.
43701
43702         * doc/posix-functions/close.texi: Undo last change.
43703         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
43704         Windows platforms.
43705
43706 2008-10-21  Bruno Haible  <bruno@clisp.org>
43707
43708         Add gethostname() declaration to <unistd.h>.
43709         * lib/unistd.in.h (gethostname): New declaration.
43710         * lib/gethostname.c: Include <unistd.h>.
43711         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
43712         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
43713         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
43714         and HAVE_GETHOSTNAME.
43715         * modules/gethostname (Depends-on): Add unistd.
43716         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43717         (Include): Specify <unistd.h>.
43718         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
43719         HAVE_GETHOSTNAME.
43720         * tests/test-gethostname.c: Include <unistd.h> first.
43721
43722 2008-10-21  Bruno Haible  <bruno@clisp.org>
43723
43724         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
43725         * modules/select-tests (Depends-on): Likewise.
43726         Reported by Simon Josefsson.
43727
43728 2008-10-21  Simon Josefsson  <simon@josefsson.org>
43729
43730         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
43731         * lib/accept.c: New file, based on winsock.c.
43732         * lib/bind.c: New file, based on winsock.c.
43733         * lib/connect.c: New file, based on winsock.c.
43734         * lib/getpeername.c: New file, based on winsock.c.
43735         * lib/getsockname.c: New file, based on winsock.c.
43736         * lib/getsockopt.c: New file, based on winsock.c.
43737         * lib/ioctl.c: New file, based on winsock.c.
43738         * lib/listen.c: New file, based on winsock.c.
43739         * lib/recv.c: New file, based on winsock.c.
43740         * lib/recvfrom.c: New file, based on winsock.c.
43741         * lib/send.c: New file, based on winsock.c.
43742         * lib/sendto.c: New file, based on winsock.c.
43743         * lib/setsockopt.c: New file, based on winsock.c.
43744         * lib/shutdown.c: New file, based on winsock.c.
43745         * lib/socket.c: New file, based on winsock.c.
43746         * lib/w32sock.h: New file, based on winsock.c.
43747         * lib/winsock.c: Remove file.
43748         * modules/accept: Likewise.
43749         * modules/bind: Likewise.
43750         * modules/connect: Likewise.
43751         * modules/getpeername: Likewise.
43752         * modules/getsockname: Likewise.
43753         * modules/getsockopt: Likewise.
43754         * modules/ioctl: Likewise.
43755         * modules/listen: Likewise.
43756         * modules/recv: Likewise.
43757         * modules/recvfrom: Likewise.
43758         * modules/send: Likewise.
43759         * modules/sendto: Likewise.
43760         * modules/setsockopt: Likewise.
43761         * modules/shutdown: Likewise.
43762         * modules/socket: Use socket.c instead of winsock.c.
43763         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
43764         * doc/posix-functions/accept.texi: Doc fix.
43765         * doc/posix-functions/bind.texi: Doc fix.
43766         * doc/posix-functions/close.texi: Doc fix.
43767         * doc/posix-functions/connect.texi: Doc fix.
43768         * doc/posix-functions/getpeername.texi: Doc fix.
43769         * doc/posix-functions/getsockname.texi: Doc fix.
43770         * doc/posix-functions/getsockopt.texi: Doc fix.
43771         * doc/posix-functions/ioctl.texi: Doc fix.
43772         * doc/posix-functions/listen.texi: Doc fix.
43773         * doc/posix-functions/recv.texi: Doc fix.
43774         * doc/posix-functions/recvfrom.texi: Doc fix.
43775         * doc/posix-functions/send.texi: Doc fix.
43776         * doc/posix-functions/sendto.texi: Doc fix.
43777         * doc/posix-functions/setsockopt.texi: Doc fix.
43778         * doc/posix-functions/shutdown.texi: Doc fix.
43779         * doc/posix-functions/socket.texi: Doc fix.
43780
43781 2008-10-20  Bruno Haible  <bruno@clisp.org>
43782
43783         Take into account the role of SIGABRT_COMPAT on Windows 2008.
43784         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
43785         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
43786         as an alias for SIGABRT.
43787         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
43788         (sigaction): Map it to SIGABRT.
43789         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
43790
43791 2008-10-20  Bruno Haible  <bruno@clisp.org>
43792
43793         * lib/fts.c: Don't include lstat.h.
43794         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
43795
43796         Move the lstat() declaration to <sys/stat.h>.
43797         * lib/lstat.h: Remove file.
43798         * lib/sys_stat.in.h: Add special invocation convention.
43799         (lstat): New declaration.
43800         * lib/lstat.c (orig_lstat): New function.
43801         (rpl_lstat): Use orig_lstat instead of lstat.
43802         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
43803         AC_C_INLINE. Set REPLACE_LSTAT.
43804         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
43805         and REPLACE_LSTAT.
43806         * modules/lstat (Files): Remove lib/lstat.h.
43807         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
43808         (Include): Specify <sys/stat.h> instead of lstat.h.
43809         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
43810         REPLACE_LSTAT.
43811         * NEWS: Mention the change.
43812
43813 2008-10-20  Bruno Haible  <bruno@clisp.org>
43814
43815         * modules/posix_spawn-tests: New file.
43816         * tests/test-posix_spawn3.c: New file.
43817
43818 2008-10-20  Bruno Haible  <bruno@clisp.org>
43819
43820         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
43821         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
43822         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
43823         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
43824         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
43825
43826 2008-10-20  Bruno Haible  <bruno@clisp.org>
43827
43828         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
43829         of posix_spawn on AIX 5.3.
43830
43831 2008-10-20  Bruno Haible  <bruno@clisp.org>
43832
43833         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
43834
43835 2008-10-20  Bruno Haible  <bruno@clisp.org>
43836
43837         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
43838         of AC_LANG_PROGRAM.
43839
43840 2008-10-20  Simon Josefsson  <simon@josefsson.org>
43841
43842         * lib/netdb.in.h: Don't define GNU specific constants until they
43843         are supported or needed.  Reported by Bruno Haible
43844         <bruno@clisp.org>.
43845
43846 2008-10-20  Simon Josefsson  <simon@josefsson.org>
43847
43848         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
43849
43850 2008-10-20  Simon Josefsson  <simon@josefsson.org>
43851
43852         * lib/getaddrinfo.h: Remove file.
43853         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
43854         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
43855         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
43856         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
43857         * modules/netdb: Substitute GNULIB_GETADDRINFO.
43858         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
43859         * tests/test-getaddrinfo.c: Likewise.
43860         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
43861         * NEWS: Mention change.
43862
43863 2008-10-19  Bruno Haible  <bruno@clisp.org>
43864
43865         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
43866
43867 2008-10-19  Bruno Haible  <bruno@clisp.org>
43868
43869         * lib/wait-process.c: Include simply <sys/wait.h>.
43870         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
43871         WIFSTOPPED): Remove fallback definitions.
43872         * modules/wait-process (Depends-on): Add sys_wait.
43873
43874         New module 'sys_wait'.
43875         * modules/sys_wait: New file.
43876         * lib/sys_wait.in.h: New file, partially copied from
43877         lib/wait-process.c.
43878         * m4/sys_wait_h.m4: New file.
43879         * doc/posix-headers/sys_wait.texi: Mention the new module.
43880
43881 2008-10-19  Bruno Haible  <bruno@clisp.org>
43882
43883         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
43884
43885 2008-10-19  Bruno Haible  <bruno@clisp.org>
43886
43887         Assume that waitpid() fills an 'int' status, not a 'union wait'.
43888         * lib/wait-process.c (WAIT_T): Remove type.
43889         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
43890         (wait_subprocess): Update.
43891
43892 2008-10-19  Bruno Haible  <bruno@clisp.org>
43893
43894         New module 'atoll'.
43895         * modules/atoll: New file.
43896         * lib/stdlib.in.h (atoll): New declaration.
43897         * lib/atoll.c: New file, from glibc with modifications.
43898         * m4/atoll.m4: New file.
43899         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
43900         HAVE_ATOLL.
43901         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
43902         * doc/posix-functions/atoll.texi: Mention the new module.
43903
43904 2008-10-19  Bruno Haible  <bruno@clisp.org>
43905
43906         Add strtoull() declaration to <stdlib.h>.
43907         * lib/stdlib.in.h (strtoull): New declaration.
43908         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
43909         Set HAVE_STRTOULL.
43910         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
43911         HAVE_STRTOULL.
43912         * modules/strtoull (Depends-on): Add stdlib.
43913         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
43914         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
43915         HAVE_STRTOULL.
43916
43917 2008-10-19  Bruno Haible  <bruno@clisp.org>
43918
43919         Add strtoll() declaration to <stdlib.h>.
43920         * lib/stdlib.in.h (strtoll): New declaration.
43921         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
43922         Set HAVE_STRTOLL.
43923         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
43924         HAVE_STRTOLL.
43925         * modules/strtoll (Depends-on): Add stdlib.
43926         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
43927         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
43928
43929 2008-10-19  Bruno Haible  <bruno@clisp.org>
43930
43931         * modules/bcopy (Depends-on): Add strings.
43932         (Include): Specify <strings.h>.
43933
43934 2008-10-19  Bruno Haible  <bruno@clisp.org>
43935
43936         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
43937
43938 2008-10-19  Bruno Haible  <bruno@clisp.org>
43939
43940         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
43941         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
43942         mingw.
43943
43944 2008-10-19  Bruno Haible  <bruno@clisp.org>
43945
43946         * lib/atanl.c: Don't include isnanl.h.
43947         * lib/cosl.c: Likewise.
43948         * lib/ldexpl.c: Likewise.
43949         * lib/logl.c: Likewise.
43950         * lib/sinl.c: Likewise.
43951         * lib/sqrtl.c: Likewise.
43952         * lib/tanl.c: Likewise.
43953
43954         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
43955         * lib/isnanf.h: Remove file.
43956         * lib/isnand.h: Remove file.
43957         * lib/isnanl.h: Remove file.
43958         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
43959         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
43960         macros.
43961         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
43962         HAVE_ISNANF, don't define it as a C macro.
43963         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
43964         HAVE_ISNAND, don't define it as a C macro.
43965         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
43966         HAVE_ISNANL, don't define it as a C macro.
43967         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
43968         HAVE_ISNAN[FDL].
43969         * modules/isnanf (Files): Remove lib/isnanf.h.
43970         (Depends-on): Add math.
43971         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
43972         (Include): Specify <math.h> instead of isnanf.h.
43973         * modules/isnand (Files): Remove lib/isnand.h.
43974         (Depends-on): Add math.
43975         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
43976         (Include): Specify <math.h> instead of isnand.h.
43977         * modules/isnanl (Files): Remove lib/isnanl.h.
43978         (Depends-on): Add math.
43979         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
43980         (Include): Specify <math.h> instead of isnanl.h.
43981         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
43982         HAVE_ISNAN[FDL].
43983         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
43984         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
43985         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
43986         * NEWS: Mention the change.
43987
43988 2008-10-18  Bruno Haible  <bruno@clisp.org>
43989
43990         Add getusershell(), setusershell(), endusershell() declarations to
43991         <unistd.h>.
43992         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
43993         declarations.
43994         * lib/getusershell.c: Include unistd.h.
43995         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
43996         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
43997         HAVE_GETUSERSHELL.
43998         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
43999         and HAVE_GETUSERSHELL.
44000         * modules/getusershell (Depends-on): Add unistd, extensions.
44001         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44002         (Include): Specify <unistd.h>.
44003         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
44004         HAVE_GETUSERSHELL.
44005
44006 2008-10-18  Bruno Haible  <bruno@clisp.org>
44007
44008         Add a getloadavg() declaration to <stdlib.h>.
44009         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
44010         getloadavg declaration.
44011         (getloadavg): New declaration.
44012         * lib/getloadavg.c: Include <stdlib.h> first.
44013         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
44014         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
44015         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
44016         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
44017         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
44018         * modules/getloadavg (Depends-on): Add stdlib, extensions.
44019         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44020         (Include): Specify <stdlib.h>.
44021         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
44022         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
44023
44024 2008-10-18  Bruno Haible  <bruno@clisp.org>
44025
44026         * lib/dirchownmod.c: Don't include lchmod.h.
44027
44028         Move the lchmod() declaration to <sys/stat.h>.
44029         * lib/lchmod.h: Remove file.
44030         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
44031         (lchmod): New declaration, moved here from lib/lchown.h.
44032         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
44033         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
44034         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
44035         and HAVE_LCHMOD.
44036         * modules/lchmod (Files): Remove lib/lchmod.h.
44037         (Depends-on): Add sys_stat, extensions.
44038         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
44039         (Include): Specify <sys/stat.h> instead of lchmod.h.
44040         * modules/sys_stat (Depends-on): Add link-warning.
44041         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
44042         definition of GL_LINK_WARNING.
44043         * NEWS: Mention the change.
44044
44045 2008-10-18  Bruno Haible  <bruno@clisp.org>
44046
44047         * lib/fchdir.c: Don't include dirfd.h.
44048         * lib/fts.c: Likewise.
44049         * lib/getcwd.c: Likewise.
44050         * lib/glob.c: Likewise.
44051
44052         Move the dirfd() declaration to <dirent.h>.
44053         * lib/dirfd.h: Remove file.
44054         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
44055         (dirfd): New declaration.
44056         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
44057         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
44058         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
44059         HAVE_DECL_DIRFD.
44060         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
44061         HAVE_DECL_DIRFD.
44062         * modules/dirfd (Files): Remove lib/dirfd.h.
44063         (Depends-on): Add dirent, extensions.
44064         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
44065         (Include): Specify <dirent.h> instead of dirfd.h.
44066         * modules/dirent (Depends-on): Add link-warning.
44067         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
44068         definition of GL_LINK_WARNING.
44069         * NEWS: Mention the change.
44070
44071 2008-10-18  Bruno Haible  <bruno@clisp.org>
44072
44073         Move the euidaccess() declaration to <unistd.h>.
44074         * lib/euidaccess.h: Remove file.
44075         * lib/unistd.in.h (euidaccess): New declaration.
44076         * lib/euidaccess.c: Don't include euidaccess.h.
44077         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
44078         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
44079         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
44080         and HAVE_EUIDACCESS.
44081         * modules/euidaccess (Files): Remove lib/euidaccess.h.
44082         (Depends-on): Add unistd.
44083         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44084         (Include): Specify <unistd.h> instead of euidaccess.h.
44085         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
44086         HAVE_EUIDACCESS.
44087         * NEWS: Mention the change.
44088
44089 2008-10-18  Bruno Haible  <bruno@clisp.org>
44090
44091         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
44092
44093         Move the getdomainname() declaration to <unistd.h>.
44094         * lib/getdomainname.h: Remove file.
44095         * lib/unistd.in.h (getdomainname): New declaration.
44096         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
44097         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
44098         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
44099         HAVE_GETDOMAINNAME.
44100         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
44101         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
44102         * modules/getdomainname (Files): Remove lib/getdomainname.h.
44103         (Depends-on): Add unistd, extensions.
44104         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44105         (Includes): Specify <unistd.h> instead of getdomainname.h.
44106         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
44107         HAVE_GETDOMAINNAME.
44108         * NEWS: Mention the change.
44109
44110 2008-10-18  Bruno Haible  <bruno@clisp.org>
44111
44112         * modules/dirent: New file.
44113         * m4/dirent_h.m4: New file.
44114         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
44115         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
44116         * modules/fchdir (Files): Remove lib/dirent.in.h.
44117         (Depends-on): Add dirent.
44118         (Makefile.am): Move rules to modules/dirent.
44119         * doc/posix-headers/dirent.texi: Mention the new module.
44120
44121 2008-10-18  Bruno Haible  <bruno@clisp.org>
44122
44123         Avoid -Wunused-parameter warnings in public gnulib header files.
44124         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
44125         macro.
44126         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
44127
44128 2008-10-18  Bruno Haible  <bruno@clisp.org>
44129
44130         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
44131         * doc/glibc-functions/error.texi: Mention the module 'error'.
44132         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
44133         * doc/glibc-functions/getdomainname.texi: Mention the module
44134         'getdomainname'.
44135         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
44136         * doc/glibc-functions/getpagesize.texi: Mention the module
44137         'getpagesize'.
44138         * doc/glibc-functions/getusershell.texi: Mention the module
44139         'getusershell'.
44140         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
44141         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
44142         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
44143         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
44144         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
44145         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
44146         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
44147         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
44148         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
44149         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
44150         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
44151         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
44152         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
44153         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
44154
44155 2008-10-17  Bruno Haible  <bruno@clisp.org>
44156
44157         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
44158         HP-UX and IRIX, use -0.0L.
44159         * tests/test-ceill.c (minus_zero): Likewise.
44160         * tests/test-floorl.c (minus_zero): Likewise.
44161         * tests/test-frexpl.c (minus_zero): Likewise.
44162         * tests/test-isnan.c (minus_zerol): Likewise.
44163         * tests/test-isnanl.h (minus_zero): Likewise.
44164         * tests/test-ldexpl.c (minus_zero): Likewise.
44165         * tests/test-roundl.c (minus_zero): Likewise.
44166         * tests/test-signbit.c (minus_zerol): Likewise.
44167         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
44168         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
44169         * tests/test-truncl.c (minus_zero): Likewise.
44170         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
44171         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
44172         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
44173         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
44174
44175 2008-10-17  Bruno Haible  <bruno@clisp.org>
44176
44177         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
44178         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
44179         that it gets activated only for gcc >= 3.0.
44180         * lib/dirent.in.h: Likewise.
44181         * lib/errno.in.h: Likewise.
44182         * lib/fcntl.in.h: Likewise.
44183         * lib/float.in.h: Likewise.
44184         * lib/iconv.in.h: Likewise.
44185         * lib/inttypes.in.h: Likewise.
44186         * lib/locale.in.h: Likewise.
44187         * lib/math.in.h: Likewise.
44188         * lib/netdb.in.h: Likewise.
44189         * lib/netinet_in.in.h: Likewise.
44190         * lib/search.in.h: Likewise.
44191         * lib/signal.in.h: Likewise.
44192         * lib/spawn.in.h: Likewise.
44193         * lib/stdarg.in.h: Likewise.
44194         * lib/stdint.in.h: Likewise.
44195         * lib/stdio.in.h: Likewise.
44196         * lib/stdlib.in.h: Likewise.
44197         * lib/string.in.h: Likewise.
44198         * lib/strings.in.h: Likewise.
44199         * lib/sys_file.in.h: Likewise.
44200         * lib/sys_ioctl.in.h: Likewise.
44201         * lib/sys_select.in.h: Likewise.
44202         * lib/sys_socket.in.h: Likewise.
44203         * lib/sys_stat.in.h: Likewise.
44204         * lib/sys_time.in.h: Likewise.
44205         * lib/sysexits.in.h: Likewise.
44206         * lib/time.in.h: Likewise.
44207         * lib/unistd.in.h: Likewise.
44208         * lib/wchar.in.h: Likewise.
44209         * lib/wctype.in.h: Likewise.
44210         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
44211
44212 2008-10-17  Jim Meyering  <meyering@redhat.com>
44213
44214         ignore-value: don't depend on inline module
44215         * modules/ignore-value (Depends-on): Remove 'inline'.
44216         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
44217         Suggestion from Bruno Haible.
44218
44219 2008-10-17  Bruno Haible  <bruno@clisp.org>
44220
44221         New implementation of condition variables for Win32.
44222         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
44223         (gl_linked_waitqueue_t): New type.
44224         (gl_cond_t): Use it.
44225         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
44226         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
44227         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
44228         (glthread_cond_init_func, glthread_cond_wait_func,
44229         glthread_cond_timedwait_func, glthread_cond_signal_func,
44230         glthread_cond_broadcast_func, glthread_cond_destroy_func):
44231         Reimplemented on the basis of gl_linked_waitqueue_t.
44232         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
44233         gl_waitqueue_t.
44234         (gl_rwlock_t): Update.
44235         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
44236
44237 2008-10-17  Simon Josefsson  <simon@josefsson.org>
44238
44239         * modules/recvfrom (Depends-on): Add dependency on getpeername.
44240         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
44241
44242 2008-10-17  Jim Meyering  <meyering@redhat.com>
44243
44244         ignore-value: new module
44245         * modules/ignore-value: New file.
44246         * lib/ignore-value.h: New file.
44247         * MODULES.html.sh (Compiler warning management): New section,
44248         just for this module.  More to come.
44249
44250 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
44251
44252         open-safer.c: avoid 'signed and unsigned in conditional...' warning
44253         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
44254         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
44255
44256 2008-10-16  Jim Meyering  <meyering@redhat.com>
44257
44258         openat-die.c: avoid 'no previous prototype' warning
44259         * lib/openat-die.c: Include "openat.h".
44260         Reported by Reuben Thomas <rrt@sc3d.org>.
44261
44262 2008-10-16  Simon Josefsson  <simon@josefsson.org>
44263
44264         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
44265         * lib/netdb.in.h: Fix typo.
44266         Reported by Bruno Haible  <bruno@clisp.org>
44267
44268         * lib/netdb.in.h: Include sys/socket.h for platforms without
44269         netdb.h, to get structures like hostent on MinGW.
44270         * modules/netdb (Depends-on): Add sys_socket.
44271
44272 2008-10-15  Simon Josefsson  <simon@josefsson.org>
44273
44274         * modules/netdb, modules/netdb-tests: New file.
44275         * m4/netdb_h.m4: New file.
44276         * lib/netdb.in.h: Add, currently just an empty file pending
44277         definitions.
44278         * tests/test-netdb.c: New file.
44279         * doc/posix-headers/netdb.texi: Mention that we replace it if
44280         needed.
44281         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
44282         netdb.
44283
44284 2008-10-15  Simon Josefsson  <simon@josefsson.org>
44285
44286         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
44287         with code.
44288
44289 2008-10-13  Bruno Haible  <bruno@clisp.org>
44290
44291         * lib/glthread/cond.c (glthread_cond_wait_func,
44292         glthread_cond_timedwait_func): Add a comment.
44293
44294 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
44295
44296         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
44297         * tests/test-select.c: Likewise,
44298
44299 2008-10-13  Bruno Haible  <bruno@clisp.org>
44300
44301         * lib/glthread/cond.c (glthread_cond_wait_func,
44302         glthread_cond_timedwait_func): Fix variable name.
44303         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
44304
44305 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
44306
44307         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
44308         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
44309         struct sockaddr.sa_len.
44310         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
44311
44312 2008-10-13  Simon Josefsson  <simon@josefsson.org>
44313
44314         * build-aux/pmccabe2html: Add css and css_url parameters.
44315
44316 2008-10-12  Bruno Haible  <bruno@clisp.org>
44317
44318         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
44319         calling aclx_get.
44320         Reported by Rainer Tammer <tammer@tammer.net>.
44321
44322 2008-10-12  Bruno Haible  <bruno@clisp.org>
44323
44324         Use msvcrt aware primitives for creation/termination of Win32 threads.
44325         * lib/glthread/thread.c: Include <process.h>.
44326         (glthread_create_func): Use _beginthreadex instead of CreateThread.
44327         (wrapper_func): Update signature.
44328         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
44329
44330 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
44331             Bruno Haible  <bruno@clisp.org>
44332
44333         Provide a Win32 implementation of the 'cond' module.
44334         * lib/glthread/cond.h [USE_WIN32]: New implementation.
44335         * lib/glthread/cond.c (glthread_cond_init_func,
44336         glthread_cond_wait_func, glthread_cond_timedwait_func,
44337         glthread_cond_signal_func, glthread_cond_broadcast_func,
44338         glthread_cond_destroy_func) [USE_WIN32]: New functions.
44339         * modules/cond (Dependencies): Add gettimeofday.
44340
44341 2008-10-11  Bruno Haible  <bruno@clisp.org>
44342
44343         Make sleep work on older versions of mingw.
44344         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
44345         only whether it exists.
44346         * doc/posix-functions/sleep.texi: Mention the problem with older
44347         versions of mingw.
44348
44349 2008-10-11  Bruno Haible  <bruno@clisp.org>
44350
44351         New module 'shutdown'.
44352         * modules/shutdown: New file.
44353         * lib/sys_socket.in.h (shutdown): New declaration.
44354         * lib/winsock.c (shutdown): New function.
44355         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
44356         GNULIB_SHUTDOWN.
44357         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
44358         * doc/posix-functions/shutdown.texi: Document the new module.
44359
44360 2008-10-11  Jim Meyering  <meyering@redhat.com>
44361
44362         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
44363
44364 2008-10-11  Bruno Haible  <bruno@clisp.org>
44365
44366         New module 'fclose'.
44367         * modules/fclose: New file.
44368         * lib/stdio.in.h (fclose): New declaration.
44369         * lib/fclose.c: New file.
44370         * m4/fclose.m4: New file.
44371         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
44372         REPLACE_FCLOSE.
44373         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
44374         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
44375         REPLACE_FCLOSE.
44376         * modules/close (Depends-on): fclose.
44377         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
44378
44379 2008-10-11  Bruno Haible  <bruno@clisp.org>
44380
44381         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
44382         set errno and don't call _close.
44383
44384 2008-10-10  Bruno Haible  <bruno@clisp.org>
44385
44386         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
44387         ACL, not afterwards. Fixes test failure on Cygwin.
44388
44389 2008-10-09  Ben Pfaff  <blp@gnu.org>
44390
44391         * build-aux/announce-gen: Fix gnulib version related part of usage
44392         message.  Die with a useful error message if no tarballs are
44393         found.
44394
44395 2008-10-10  Jim Meyering  <meyering@redhat.com>
44396
44397         bootstrap: use git's --depth=N option only if it's supported
44398         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
44399         recognize the --depth option.  Reported by Pádraig Brady.
44400
44401 2008-10-09  Bruno Haible  <bruno@clisp.org>
44402
44403         New module 'ioctl'.
44404         * modules/ioctl: New file.
44405         * lib/sys_socket.in.h (ioctl): Remove declaration.
44406         * lib/winsock.c: Include <sys/ioctl.h>.
44407         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
44408         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
44409         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
44410         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
44411         * doc/posix-functions/ioctl.texi: Mention the new module.
44412
44413 2008-10-09  Bruno Haible  <bruno@clisp.org>
44414
44415         New module 'sys_ioctl'.
44416         * lib/sys_ioctl.in.h: New file.
44417         * m4/sys_ioctl_h.m4: New file.
44418         * modules/sys_ioctl: New file.
44419         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
44420
44421 2008-10-09  Bruno Haible  <bruno@clisp.org>
44422
44423         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
44424         * lib/winsock.c: Include <stdarg.h>.
44425         (rpl_ioctl): Change to second argument 'int' and then varargs.
44426
44427 2008-10-09  Bruno Haible  <bruno@clisp.org>
44428
44429         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
44430         when the sys_socket module is present and the system has <winsock2.h>.
44431
44432 2008-10-09  Bruno Haible  <bruno@clisp.org>
44433
44434         * doc/posix-functions/close.texi: Mention module 'close' instead of
44435         module 'sys_socket'.
44436
44437 2008-10-09  Bruno Haible  <bruno@clisp.org>
44438
44439         * doc/glibc-headers/sys_ioctl.texi: New file.
44440         * doc/gnulib.texi: Include it.
44441
44442 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
44443             Bruno Haible  <bruno@clisp.org>
44444
44445         Combine the two replacements of 'close'.
44446         * lib/sys_socket.in.h (close): Define to a reminder to include
44447         <unistd.h>.
44448         (_gl_close_fd_maybe_socket): New declaration.
44449         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
44450         * lib/winsock.c (close): Remove undefinition.
44451         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
44452         needed for the gnulib module 'close'.
44453         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
44454         define to an error symbol or to a warning, if suitable.
44455         * lib/close.c: Include <sys/socket.h>.
44456         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
44457         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
44458         UNISTD_H_HAVE_WINSOCK2_H.
44459         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
44460         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
44461         UNISTD_H_HAVE_WINSOCK2_H.
44462         * modules/sys_socket (Files): Add m4/unistd_h.m4.
44463         (configure.ac): Set a module indicator.
44464         (Makefile.am): Substitute GNULIB_CLOSE.
44465         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
44466         * modules/poll-tests (Depends-on): Add close.
44467         * modules/select-tests (Depends-on): Likewise.
44468
44469 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
44470             Bruno Haible  <bruno@clisp.org>
44471
44472         New module 'close'.
44473         * modules/close: New file.
44474         * lib/unistd.in.h (close): Move declaration out of the
44475         FCHDIR_REPLACEMENT scope.
44476         (_gl_unregister_fd): New declaration.
44477         * lib/close.c: New file.
44478         * lib/fchdir.c (rpl_close): Remove function.
44479         * m4/close.m4: New file.
44480         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
44481         close.
44482         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
44483         REPLACE_CLOSE.
44484         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
44485         REPLACE_CLOSE.
44486         * modules/fchdir (Depends-on): Add close.
44487
44488 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
44489             Bruno Haible  <bruno@clisp.org>
44490
44491         * lib/fcntl.in.h (open): Simplify conditionals.
44492         (_gl_register_fd): New declaration.
44493         * lib/fchdir.c (rpl_open): Remove function.
44494         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
44495         also.
44496         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
44497         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
44498         open.
44499
44500 2008-10-09  Jim Meyering  <meyering@redhat.com>
44501
44502         GNUmakefile: use the more name-space-friendly "_version"
44503         * top/GNUmakefile (_dummy): Update.
44504         (_version): Rename from "version".
44505
44506 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
44507             Bruno Haible  <bruno@clisp.org>
44508
44509         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
44510         rpl_close.
44511         (_gl_register_fd): New function, extracted from rpl_open.
44512         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
44513         (rpl_open, rpl_opendir): Use _gl_register_fd.
44514
44515 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
44516
44517         Fix organization of 'open' replacement.
44518         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
44519         (gl_FUNC_OPEN): Use it.
44520         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
44521
44522 2008-10-08  Bruno Haible  <bruno@clisp.org>
44523
44524         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
44525
44526 2008-10-08  Simon Josefsson  <simon@josefsson.org>
44527
44528         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
44529         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
44530         listen).
44531
44532 2008-10-08  Eric Blake  <ebb9@byu.net>
44533
44534         GNUmakefile: add 'make version' target
44535         * top/GNUmakefile (_curr-ver): Split version update rules...
44536         (version): ...into a target.
44537
44538 2008-10-07  Bruno Haible  <bruno@clisp.org>
44539
44540         Use a more portable replacement expression for -0.0L.
44541         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
44542         instead of -0.0L. Fix m4 quotation.
44543
44544         * tests/test-signbit.c: Include <float.h>.
44545         (minus_zero): New variable.
44546         (test_signbitl): Use minus_zero instead of -zero.
44547         * modules/signbit-tests (Depends-on): Add float.
44548
44549         * tests/test-ceill.c: Include <float.h>.
44550         (zero): Remove variable.
44551         (minus_zero): New variable.
44552         (main): Use minus_zero instead of -zero.
44553         * modules/ceill-tests (Depends-on): Add float.
44554
44555         * tests/test-floorl.c: Include <float.h>.
44556         (zero): Remove variable.
44557         (minus_zero): New variable.
44558         (main): Use minus_zero instead of -zero.
44559         * modules/floorl-tests (Depends-on): Add float.
44560
44561         * tests/test-roundl.c: Include <float.h>.
44562         (zero): Remove variable.
44563         (minus_zero): New variable.
44564         (main): Use minus_zero instead of -zero.
44565         * modules/roundl-tests (Depends-on): Add float.
44566
44567         * tests/test-truncl.c: Include <float.h>.
44568         (zero): Remove variable.
44569         (minus_zero): New variable.
44570         (main): Use minus_zero instead of -zero.
44571         * modules/truncl-tests (Depends-on): Add float.
44572
44573         * tests/test-frexpl.c (zero): Remove variable.
44574         (minus_zero): New variable.
44575         (main): Use minus_zero instead of -zero.
44576         * modules/frexpl-tests (Depends-on): Add float.
44577
44578         * tests/test-isnan.c (zerol): Remove variable.
44579         (minus_zerol): New variable.
44580         (test_long_double): Use minus_zerol instead of -zerol.
44581         * modules/isnan-tests (Depends-on): Add float.
44582
44583         * tests/test-isnanl.h (zero): Remove variable.
44584         (minus_zero): New variable.
44585         (main): Use minus_zero instead of -zero.
44586         * modules/isnanl-nolibm-tests (Depends-on): Add float.
44587         * modules/isnanl-tests (Depends-on): Add float.
44588
44589         * tests/test-ldexpl.c (zero): Remove variable.
44590         (minus_zero): New variable.
44591         (main): Use minus_zero instead of -zero.
44592         * modules/ldexpl-tests (Depends-on): Add float.
44593
44594         * tests/test-snprintf-posix.h (zerol): Remove variable.
44595         (minus_zerol): New variable.
44596         (test_function): Use minus_zerol instead of -zerol.
44597         * modules/snprintf-posix-tests (Depends-on): Add float.
44598         * modules/vsnprintf-posix-tests (Depends-on): Add float.
44599
44600         * tests/test-sprintf-posix.h (zerol): Remove variable.
44601         (minus_zerol): New variable.
44602         (test_function): Use minus_zerol instead of -zerol.
44603         * modules/sprintf-posix-tests (Depends-on): Add float.
44604         * modules/vsprintf-posix-tests (Depends-on): Add float.
44605
44606         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
44607         (minus_zerol): New variable.
44608         (test_function): Use minus_zerol instead of -zerol.
44609         * modules/vasnprintf-posix-tests (Depends-on): Add float.
44610
44611         * tests/test-vasprintf-posix.c (zerol): Remove variable.
44612         (minus_zerol): New variable.
44613         (test_function): Use minus_zerol instead of -zerol.
44614         * modules/vasprintf-posix-tests (Depends-on): Add float.
44615
44616 2008-10-07  Simon Josefsson  <simon@josefsson.org>
44617
44618         * MODULES.html.sh (Support for building documentation): Mention
44619         pmccabe2html.  Sort entries.
44620
44621         Add pmccabe2html module, from gnupdf.
44622         * build-aux/pmccabe.css: New file.
44623         * build-aux/pmccabe2html: New file.
44624         * m4/pmccabe2html.m4: New file.
44625         * modules/pmccabe2html: New file.
44626
44627 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
44628
44629         flock: new module
44630         * MODULES.html.sh: Add to list of modules.
44631         * lib/flock.c: flock implementation for Windows and Unix systems
44632         which have fcntl.
44633         * doc/glibc-functions/flock.texi: Update documentation.
44634         * lib/sys_file.in.h: <sys/file.h> header file.
44635         * m4/flock.m4: M4 macros.
44636         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
44637         * modules/flock: flock module.
44638         * modules/flock-tests: flock tests module.
44639         * modules/sys_file: sys/file.h module.
44640         * tests/test-flock.c: test suite for flock.
44641
44642 2008-10-06  Jim Meyering  <meyering@redhat.com>
44643
44644         bootstrap: check for LT_INIT more portably still ;-)
44645         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
44646         Spotted by Bruno Haible.
44647
44648 2008-10-06  Eric Blake  <ebb9@byu.net>
44649
44650         test-signbit: avoid tripping Irix cc bug on -0.0L
44651         * tests/test-signbit.c (minus_zerol): Delete, and replace with
44652         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
44653         entire testsuite consistent and avoids an Irix 6.2 bug.
44654
44655 2008-10-05  Bruno Haible  <bruno@clisp.org>
44656             Jim Meyering  <jim@meyering.net>
44657
44658         Add an option for ignoring EPIPE during close_stdout.
44659         * lib/closeout.h: Include <stdbool.h>.
44660         (close_stdout_set_ignore_EPIPE): New declaration.
44661         * lib/closeout.c: Include <stdbool.h>.
44662         (ignore_EPIPE): New variable.
44663         (close_stdout_set_ignore_EPIPE): New function.
44664         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
44665         * lib/close-stream.c (close_stream): Mention the possible EPIPE
44666         failure.
44667         * modules/closeout (Depends-on): Add stdbool.
44668
44669 2008-10-05  Bruno Haible  <bruno@clisp.org>
44670
44671         * modules/accept: New file.
44672         * modules/bind: New file.
44673         * modules/connect: New file.
44674         * modules/getpeername: New file.
44675         * modules/getsockname: New file.
44676         * modules/getsockopt: New file.
44677         * modules/listen: New file.
44678         * modules/recv: New file.
44679         * modules/recvfrom: New file.
44680         * modules/send: New file.
44681         * modules/sendto: New file.
44682         * modules/setsockopt: New file.
44683         * modules/socket: New file.
44684         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
44685         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
44686         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
44687         the particular module is requested. Add a link warning when the
44688         particular module is not requested.
44689         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
44690         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
44691         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
44692         the particular module is requested.
44693         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
44694         gl_SYS_SOCKET_H_DEFAULTS): New macros.
44695         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
44696         * modules/sys_socket (Depends-on): Add link-warning.
44697         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
44698         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
44699         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
44700         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
44701         GL_LINK_WARNING.
44702         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
44703         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
44704         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
44705         * doc/posix-functions/getpeername.texi: Mention the new module
44706         'getpeername'.
44707         * doc/posix-functions/getsockname.texi: Mention the new module
44708         'getsockname'.
44709         * doc/posix-functions/getsockopt.texi: Mention the new module
44710         'getsockopt'.
44711         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
44712         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
44713         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
44714         * doc/posix-functions/send.texi: Mention the new module 'send'.
44715         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
44716         * doc/posix-functions/setsockopt.texi: Mention the new module
44717         'setsockopt'.
44718         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
44719         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
44720         listen, connect, accept.
44721         * modules/select-tests (Depends-on): Likewise.
44722
44723 2008-10-05  Bruno Haible  <bruno@clisp.org>
44724
44725         * lib/winsock.c (strerror): Remove unused #undef.
44726         (rpl_close): Remove unused local variable.
44727
44728         * modules/sys_socket (Depends-on); Add errno.
44729
44730 2008-10-05  Bruno Haible  <bruno@clisp.org>
44731
44732         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
44733         (select): Add a link warning when the 'select' module is not used.
44734         * modules/sys_select (Depends-on): Add link-warning.
44735         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
44736         Suggested by Paolo Bonzini.
44737
44738 2008-10-05  Jim Meyering  <meyering@redhat.com>
44739
44740         bootstrap: check for LT_INIT more portably
44741         * build-aux/bootstrap: Avoid using grep -E, since it's not
44742         portable enough.  Suggestion from Bruno Haible.
44743
44744 2008-10-05  Bruno Haible  <bruno@clisp.org>
44745
44746         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
44747         as being fixed by gnulib.
44748
44749 2008-10-05  Bruno Haible  <bruno@clisp.org>
44750
44751         * modules/select-tests: New file, mostly copied from
44752         modules/sys_select-tests.
44753         * tests/test-select.c: New file, mostly copied from
44754         tests/test-sys_select.c.
44755         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
44756         * modules/sys_select-tests (Depends-on): Remove all dependencies.
44757         (Makefile.am): Remove test_sys_select_LDADD.
44758
44759         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
44760         to an undefined symbol, for an error message.
44761         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
44762         (gl_SYS_SELECT_H_DEFAULTS): New macro.
44763         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
44764         winsock-select.c here.
44765         * modules/sys_select (Files): Remove lib/winsock-select.c.
44766         (Depends-on): Remove alloca.
44767         (Makefile.am): Substitute GNULIB_SELECT.
44768         * modules/select: New file.
44769         * doc/posix-functions/select.texi: Update.
44770
44771 2008-10-05  Bruno Haible  <bruno@clisp.org>
44772
44773         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
44774         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
44775         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
44776         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
44777         getdtablesize.
44778         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
44779         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
44780
44781 2008-10-05  Bruno Haible  <bruno@clisp.org>
44782
44783         * modules/getdtablesize-tests: New file.
44784         * tests/test-getdtablesize.c: New file.
44785
44786         New module 'getdtablesize'.
44787         * lib/unistd.in.h (getdtablesize): New declaration.
44788         * lib/getdtablesize.c: New file.
44789         * m4/getdtablesize.m4: New file.
44790         * modules/getdtablesize: New file.
44791         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
44792         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
44793         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
44794         HAVE_GETDTABLESIZE.
44795         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
44796
44797 2008-10-05  Bruno Haible  <bruno@clisp.org>
44798
44799         * modules/sched (Makefile.am): Fix typo.
44800         Reported by Simon Josefsson.
44801
44802 2008-10-05  Jim Meyering  <meyering@redhat.com>
44803
44804         bootstrap: check for LT_INIT, too
44805         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
44806         are deprecated.  Suggestion from Ralf Wildenhues.
44807
44808 2008-10-05  Bruno Haible  <bruno@clisp.org>
44809
44810         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
44811         overriding them by ours.
44812         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
44813
44814 2008-10-05  Jim Meyering  <meyering@redhat.com>
44815
44816         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
44817         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
44818         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
44819
44820 2008-10-04  Bruno Haible  <bruno@clisp.org>
44821
44822         * modules/dup2 (License): Change to LGPLv2+.
44823         * modules/sleep (License): Likewise.
44824         * modules/perror (License): Likewise.
44825         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
44826         Blake.
44827         * modules/signal (License): Likewise.
44828         * modules/sigprocmask (License): Likewise.
44829         * modules/raise (License): Change to LGPLv2+, with approval by Jim
44830         Meyering.
44831
44832 2008-10-04  Bruno Haible  <bruno@clisp.org>
44833
44834         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
44835         Reported by Rainer Tammer <tammer@tammer.net>.
44836
44837 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
44838             Bruno Haible  <bruno@clisp.org>
44839
44840         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
44841         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
44842         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
44843
44844 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
44845
44846         filevercmp: new module
44847         * lib/filevercmp.h: New function filevercmp comparing version strings.
44848         * lib/filevercmp.c: Implementation of filevercmp function.
44849         * modules/filevercmp: Module metadata.
44850         * tests/test-filevercmp.c: Unit test for new module.
44851         * modules/filevercmp-tests: Unit test metadata.
44852         * MODULES.html.sh: Add filevercmp module.
44853
44854 2008-10-03  Bruno Haible  <bruno@clisp.org>
44855
44856         * lib/c-ctype.h: Add comment.
44857         Reported by Jim Meyering.
44858
44859 2008-10-02  Bruno Haible  <bruno@clisp.org>
44860
44861         * modules/posix_spawn-internal (Depends-on): Add 'open'.
44862
44863 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
44864
44865         * build-aux/bootstrap: Allow renaming bootstrap, and change the
44866         name of bootstrap.conf accordingly.
44867
44868 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
44869
44870         * build-aux/bootstrap: Install git-merge-changelog configuration
44871         items into .gitconfig if needed.
44872
44873 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
44874
44875         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
44876         git repository, and initialize/update it accordingly.
44877
44878 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
44879
44880         * modules/fsync-tests: New file.
44881         * tests/test-fsync.c: New file.
44882
44883         New module 'fsync'.
44884         * lib/fsync.c: New file.
44885         * m4/fsync.m4: New file.
44886         * modules/fsync: New file.
44887         * lib/unistd.in.h (fsync): New declaration.
44888         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
44889         GNULIB_FSYNC and HAVE_FSYNC.
44890         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
44891         * MODULES.html.sh (posix_functions): Add fsync.
44892         * doc/posix-functions/fsync.texi: Mention the new module.
44893
44894 2008-10-02  Jim Meyering  <meyering@redhat.com>
44895
44896         fts.c: sync with similar code from coreutils' remove.c
44897         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
44898         Guard also with "#if defined __linux__", since for now at least,
44899         this code is Linux-kernel-specific.
44900
44901 2008-10-02  Jim Meyering  <meyering@redhat.com>
44902
44903         fts: bug fixes
44904         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
44905         Include <sys/vfs.h>, not <sys/statfs.h>.
44906
44907         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
44908         Include <sys/vfs.h>, not <sys/statfs.h>.
44909
44910 2008-10-01  Bruno Haible  <bruno@clisp.org>
44911
44912         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
44913         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
44914         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
44915         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
44916         * doc/posix-functions/posix_spawnp.texi: Likewise.
44917         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
44918         whether posix_spawn actually works.
44919         * m4/pipe.m4 (gl_PIPE): Likewise.
44920         * modules/execute (Files): Add m4/posix_spawn.m4.
44921         * modules/pipe (Files): Add m4/posix_spawn.m4.
44922         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
44923
44924 2008-10-01  Jim Meyering  <meyering@redhat.com>
44925
44926         remove trailing spaces
44927         * NEWS: Likewise.
44928         * lib/poll.c (poll): Likewise.
44929         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
44930         * lib/winsock.c (rpl_close): Likewise.
44931         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
44932         * modules/yield: Likewise.
44933         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
44934         * tests/test-sys_select.c (connect_to_socket): Likewise.
44935
44936         fts.c: adjust a new interface to be more generally useful
44937         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
44938         (fts_build): Adjust caller.
44939
44940 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44941
44942         * modules/cond-tests: New file.
44943         * tests/test-cond.c: New file.
44944
44945 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44946             Bruno Haible  <bruno@clisp.org>
44947
44948         * modules/cond (Dependencies): Add errno, time.
44949         * lib/glthread/cond.h: Include <time.h>.
44950         (gl_cond_define, gl_cond_define_initialized): Use the same definition
44951         across platforms.
44952
44953 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44954             Bruno Haible  <bruno@clisp.org>
44955
44956         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
44957
44958 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44959             Bruno Haible  <bruno@clisp.org>
44960
44961         * modules/tls-tests (Depends-on): Add thread, yield.
44962         (configure.ac): Remove all checks.
44963         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
44964         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
44965         gl_thread_self): Remove definitions. Include glthread/thread.h and
44966         glthread/yield.h instead.
44967         (test_tls): Pass an additional NULL argument to gl_thread_join.
44968
44969 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44970             Bruno Haible  <bruno@clisp.org>
44971
44972         * modules/lock-tests (Depends-on): Add thread, yield.
44973         (configure.ac): Remove all checks.
44974         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
44975         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
44976         gl_thread_self): Remove definitions. Include glthread/thread.h and
44977         glthread/yield.h instead.
44978         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
44979         additional NULL argument to gl_thread_join.
44980
44981 2008-09-30  Bruno Haible  <bruno@clisp.org>
44982
44983         Fix the Win32 implementation of the 'thread' module.
44984         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
44985         pointer type.
44986         (gl_thread_self): Invoke gl_thread_self_func.
44987         (gl_thread_self_func): New declaration.
44988         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
44989         (do_init_self_key, init_self_key): New functions.
44990         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
44991         Remove some fields.
44992         (running_threads, running_lock): Remove variables.
44993         (get_current_thread_handle): New function.
44994         (gl_thread_self_func, wrapper_func, glthread_create_func,
44995         glthread_join_func, gl_thread_exit_func): Largely rewritten and
44996         simplified.
44997
44998 2008-09-30  Bruno Haible  <bruno@clisp.org>
44999
45000         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
45001         files.
45002
45003 2008-09-30  Jim Meyering  <meyering@redhat.com>
45004
45005         fts.m4: correct the test for statfs.f_type
45006         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
45007         when checking for statfs.f_type.
45008
45009 2008-09-15  Simon Josefsson  <simon@josefsson.org>
45010
45011         tests: avoid some compiler warnings
45012         * tests/test-memchr.c (main): Pass NULL indirectly.
45013         * tests/test-getdate.c (main): Remove unused variable 'ret'.
45014
45015 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
45016
45017         getdate.y: disallow countable dayshifts like "4 yesterday ago"
45018         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
45019         exactly specified dayshifts.
45020         (dayshift): New rule.
45021         (rel): Add dayshift.
45022         (relative_time_table) [tomorrow, yesterday, today, now]:
45023         Use tDAY_SHIFT in place of tDAY_UNIT.
45024         * tests/test-getdate.c: Add tests for now-disallowed countable
45025         dayshifts, e.g., "4 yesterday ago".
45026
45027 2008-09-29  Bruno Haible  <bruno@clisp.org>
45028
45029         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
45030         * tests/test-posix_spawn1.in.sh: Renamed from
45031         tests/test-posix_spawn.in.sh.
45032         * tests/test-posix_spawn2.c: New file.
45033         * tests/test-posix_spawn2.in.sh: New file.
45034         * modules/posix_spawnp-tests (Files): Update.
45035         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
45036
45037 2008-09-29  Bruno Haible  <bruno@clisp.org>
45038
45039         Propagate effects of putenv/setenv/unsetenv to child processes.
45040         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
45041         * lib/pipe.c (create_pipe): Likewise.
45042
45043 2008-09-29  Bruno Haible  <bruno@clisp.org>
45044
45045         Enable use of shell scripts as executables in mingw.
45046         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
45047         run the program as a shell script.
45048         * lib/pipe.c (create_pipe): Likewise.
45049         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
45050         resulting array.
45051
45052 2008-09-29  Eric Blake  <ebb9@byu.net>
45053
45054         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
45055
45056 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
45057
45058         * doc/posix-functions/accept.texi: Update mingw problems.
45059         * doc/posix-functions/bind.texi: Update mingw problems.
45060         * doc/posix-functions/close.texi: Update mingw problems.
45061         * doc/posix-functions/connect.texi: Update mingw problems.
45062         * doc/posix-functions/getpeername.texi: Update mingw problems.
45063         * doc/posix-functions/getsockname.texi: Update mingw problems.
45064         * doc/posix-functions/getsockopt.texi: Update mingw problems.
45065         * doc/posix-functions/ioctl.texi: Update mingw problems.
45066         * doc/posix-functions/listen.texi: Update mingw problems.
45067         * doc/posix-functions/recv.texi: Update mingw problems.
45068         * doc/posix-functions/recvfrom.texi: Update mingw problems.
45069         * doc/posix-functions/select.texi: Update mingw problems.
45070         * doc/posix-functions/send.texi: Update mingw problems.
45071         * doc/posix-functions/sendto.texi: Update mingw problems.
45072         * doc/posix-functions/setsockopt.texi: Update mingw problems.
45073         * doc/posix-functions/socket.texi: Update mingw problems.
45074
45075 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
45076             Bruno Haible  <bruno@clisp.org>
45077
45078         * lib/sys_select.in.h: Include sys/time.h.
45079         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
45080         * modules/sys_select: Depend on sys_time.
45081         * tests/test-sys_select.c: Test that sys/select.h defines struct
45082         timeval fully.
45083
45084 2008-09-29  Bruno Haible  <bruno@clisp.org>
45085
45086         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
45087         * lib/sys_select.in.h: Likewise.
45088
45089 2008-09-29  Bruno Haible  <bruno@clisp.org>
45090
45091         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
45092
45093 2008-09-29  Bruno Haible  <bruno@clisp.org>
45094
45095         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
45096         Set LIBSOCKET instead of augmenting LIBS.
45097         * modules/sockets (Link): New section.
45098         * modules/sockets-tests (test_sockets_LDADD): New variable.
45099         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
45100         * modules/poll-tests (test_poll_LDADD): New variable.
45101         * NEWS: Document the change.
45102
45103 2008-09-29  Bruno Haible  <bruno@clisp.org>
45104
45105         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
45106         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
45107         ARPA_INET_H directly.
45108         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
45109
45110 2008-09-28  Bruno Haible  <bruno@clisp.org>
45111
45112         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
45113         from gl_HEADER_SYS_SOCKET.
45114         (gl_HEADER_SYS_SOCKET): Invoke it.
45115         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
45116
45117 2008-09-28  Bruno Haible  <bruno@clisp.org>
45118
45119         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
45120         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
45121         Needed on OSF/1 4.0.
45122
45123 2008-09-28  Bruno Haible  <bruno@clisp.org>
45124
45125         Override open more carefully.
45126         * lib/open.c (orig_open): New function.
45127         (rpl_open): Use orig_open instead of open.
45128         * lib/fcntl.in.h: Add special invocation convention.
45129         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
45130         (gl_FUNC_OPEN): Invoke it.
45131
45132         Override freopen more carefully.
45133         * lib/freopen.c (orig_freopen): New function.
45134         (rpl_freopen): Use orig_freopen instead of freopen.
45135         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
45136         (gl_FUNC_FREOPEN): Invoke it.
45137
45138         Override fopen more carefully.
45139         * lib/fopen.c (orig_fopen): New function.
45140         (rpl_fopen): Use orig_fopen instead of fopen.
45141         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
45142         (gl_FUNC_FOPEN): Invoke it.
45143         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
45144
45145 2008-09-28  Bruno Haible  <bruno@clisp.org>
45146
45147         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
45148         SIGPIPE.
45149
45150 2008-09-28  Bruno Haible  <bruno@clisp.org>
45151
45152         * tests/test-sigaction.c (handler, main): Disable the check whether
45153         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
45154         glibc systems with LinuxThreads.
45155
45156 2008-09-28  Bruno Haible  <bruno@clisp.org>
45157
45158         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
45159
45160         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
45161         with AIX xlc.
45162         * lib/fcntl.in.h (open): Likewise.
45163         Reported by Rainer Tammer <tammer@tammer.net>.
45164
45165 2008-09-28  Bruno Haible  <bruno@clisp.org>
45166
45167         * modules/posix_spawnp-tests: New file.
45168         * tests/test-posix_spawn.c: New file.
45169         * tests/test-posix_spawn.in.sh: New file.
45170
45171         New module 'posix_spawnp'.
45172         * modules/posix_spawnp: New file.
45173         * lib/spawnp.c: New file, from GNU libc with modifications.
45174         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
45175
45176         New module 'posix_spawn'.
45177         * modules/posix_spawn: New file.
45178         * lib/spawn.c: New file, from GNU libc with modifications.
45179         * doc/posix-functions/posix_spawn.texi: Mention the new module.
45180
45181         New module 'posix_spawnattr_destroy'.
45182         * modules/posix_spawnattr_destroy: New file.
45183         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
45184         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
45185         module.
45186
45187         New module 'posix_spawnattr_setsigmask'.
45188         * modules/posix_spawnattr_setsigmask: New file.
45189         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
45190         modifications.
45191         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
45192         new module.
45193
45194         New module 'posix_spawnattr_getsigmask'.
45195         * modules/posix_spawnattr_getsigmask: New file.
45196         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
45197         modifications.
45198         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
45199         new module.
45200
45201         New module 'posix_spawnattr_setsigdefault'.
45202         * modules/posix_spawnattr_setsigdefault: New file.
45203         * lib/spawnattr_setdefault.c: New file, from GNU libc with
45204         modifications.
45205         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
45206         new module.
45207
45208         New module 'posix_spawnattr_getsigdefault'.
45209         * modules/posix_spawnattr_getsigdefault: New file.
45210         * lib/spawnattr_getdefault.c: New file, from GNU libc with
45211         modifications.
45212         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
45213         new module.
45214
45215         New module 'posix_spawnattr_setschedpolicy'.
45216         * modules/posix_spawnattr_setschedpolicy: New file.
45217         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
45218         modifications.
45219         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
45220         new module.
45221
45222         New module 'posix_spawnattr_getschedpolicy'.
45223         * modules/posix_spawnattr_getschedpolicy: New file.
45224         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
45225         modifications.
45226         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
45227         new module.
45228
45229         New module 'posix_spawnattr_setschedparam'.
45230         * modules/posix_spawnattr_setschedparam: New file.
45231         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
45232         modifications.
45233         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
45234         new module.
45235
45236         New module 'posix_spawnattr_getschedparam'.
45237         * modules/posix_spawnattr_getschedparam: New file.
45238         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
45239         modifications.
45240         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
45241         new module.
45242
45243         New module 'posix_spawnattr_setpgroup'.
45244         * modules/posix_spawnattr_setpgroup: New file.
45245         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
45246         modifications.
45247         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
45248         module.
45249
45250         New module 'posix_spawnattr_getpgroup'.
45251         * modules/posix_spawnattr_getpgroup: New file.
45252         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
45253         modifications.
45254         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
45255         module.
45256
45257         New module 'posix_spawnattr_setflags'.
45258         * modules/posix_spawnattr_setflags: New file.
45259         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
45260         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
45261         module.
45262
45263         New module 'posix_spawnattr_getflags'.
45264         * modules/posix_spawnattr_getflags: New file.
45265         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
45266         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
45267         module.
45268
45269         New module 'posix_spawnattr_init'.
45270         * modules/posix_spawnattr_init: New file.
45271         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
45272         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
45273         module.
45274
45275         New module 'posix_spawn_file_actions_destroy'.
45276         * modules/posix_spawn_file_actions_destroy: New file.
45277         * lib/spawn_faction_destroy.c: New file, from GNU libc with
45278         modifications.
45279         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
45280         the new module.
45281
45282         New module 'posix_spawn_file_actions_addopen'.
45283         * modules/posix_spawn_file_actions_addopen: New file.
45284         * lib/spawn_faction_addopen.c: New file, from GNU libc with
45285         modifications.
45286         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
45287         the new module.
45288
45289         New module 'posix_spawn_file_actions_adddup2'.
45290         * modules/posix_spawn_file_actions_adddup2: New file.
45291         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
45292         modifications.
45293         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
45294         the new module.
45295
45296         New module 'posix_spawn_file_actions_addclose'.
45297         * modules/posix_spawn_file_actions_addclose: New file.
45298         * lib/spawn_faction_addclose.c: New file, from GNU libc with
45299         modifications.
45300         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
45301         the new module.
45302
45303         New module 'posix_spawn_file_actions_init'.
45304         * modules/posix_spawn_file_actions_init: New file.
45305         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
45306         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
45307         new module.
45308
45309         New module 'posix_spawn-internal'.
45310         * modules/posix_spawn-internal: New file.
45311         * lib/spawn_int.h: New file, from GNU libc with modifications.
45312         * lib/spawni.c: New file, from GNU libc with modifications.
45313         * m4/posix_spawn.m4: New file.
45314
45315         New module 'spawn'.
45316         * modules/spawn: New file.
45317         * lib/spawn.in.h: New file, from GNU libc with modifications.
45318         * m4/spawn_h.m4: New file.
45319         * doc/posix-headers/spawn.texi: Mention the new module.
45320
45321 2008-09-28  Bruno Haible  <bruno@clisp.org>
45322
45323         * modules/sched-tests: New file.
45324         * tests/test-sched.c: New file.
45325
45326         New module 'sched'.
45327         * modules/sched: New file.
45328         * lib/sched.in.h: New file.
45329         * m4/sched_h.m4: New file.
45330         * doc/posix-headers/sched.texi: Mention the new module.
45331
45332 2008-09-27  Eric Blake  <ebb9@byu.net>
45333
45334         Fix previous patch, and tweak references to $0.
45335         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
45336         (func_version, func_gnulib_dir): Don't call this program
45337         gnulib-tool.
45338         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
45339         with using $0 in function.
45340         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
45341         (func_fatal_error): Reuse the name the user invoked us with.
45342
45343 2008-09-27  Bruno Haible  <bruno@clisp.org>
45344
45345         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
45346         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
45347         (gl_ICONV_H): Not here.
45348         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
45349         instead of assigning ICONV_H directly.
45350
45351         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
45352         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
45353         WCHAR_H directly.
45354
45355 2008-09-27  Bruno Haible  <bruno@clisp.org>
45356
45357         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
45358         * modules/arpa_inet (Depends-on): Add link-warning.
45359         (Makefile.am): Insert the definition of GL_LINK-WARNING.
45360         * modules/unistd (Makefile.am): Likewise.
45361
45362 2008-09-26  Bruno Haible  <bruno@clisp.org>
45363
45364         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
45365         variables.
45366         (func_version): Essentially copied from gnulib-tool.
45367         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
45368         func_readlink): Copied from gnulib-tool.
45369
45370 2008-09-26  Bruno Haible  <bruno@clisp.org>
45371
45372         * gnulib-tool (func_version): Change directory to $gnulib_dir before
45373         invoking git-version-gen.
45374
45375 2008-09-26  Bruno Haible  <bruno@clisp.org>
45376
45377         * posix-modules: Update to directory names changed on 2008-01-19.
45378         Remove commas in output before splitting into words. No more need to
45379         avoid 'ftruncate' since 2007-02-19.
45380
45381 2008-09-26  Bruno Haible  <bruno@clisp.org>
45382
45383         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
45384
45385 2008-09-26  Bruno Haible  <bruno@clisp.org>
45386
45387         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
45388         * modules/fwriteerror (Depends-on): Add errno.
45389
45390 2008-09-26  Bruno Haible  <bruno@clisp.org>
45391
45392         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
45393         * tests/test-vc-list-files-cvs.sh: Likewise.
45394
45395 2008-09-26  Bruno Haible  <bruno@clisp.org>
45396
45397         * doc/posix-headers/sys_resource.texi: Reorder items.
45398
45399 2008-09-26  Jim Meyering  <meyering@redhat.com>
45400
45401         fts: tweak inode comparison function
45402         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
45403         inode numbers, as documented.
45404
45405         fts: sort dirent entries on inode number before traversing
45406         This avoids a quadratic, seek-related performance penalty when
45407         operating on a directory containing many entries (measurable at 10k;
45408         3.5 hours at 2 million entries with a cold cache) on certain types
45409         of file systems, including ext3 and ext4, but not tmpfs.
45410         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
45411         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
45412         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
45413         (fs_handles_readdir_ordered_dirents_efficiently): New function.
45414         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
45415         (fts_build): Set the stat.st_ino member from D_INO.
45416         If it is likely to be useful, sort dirent entries on inode number.
45417
45418         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
45419         and the struct statfs.f_type member.
45420         * modules/fts (Depends-on): Add d-ino.
45421
45422 2008-09-26  Bruno Haible  <bruno@clisp.org>
45423
45424         * modules/sigpipe-die (Depends-on): Add sigpipe.
45425
45426         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
45427         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
45428         and GNULIB_STDIO_H_SIGPIPE are set.
45429         * lib/stdio-write.c: New file.
45430         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
45431         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
45432         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
45433         REPLACE_STDIO_WRITE_FUNCS.
45434         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
45435         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
45436         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
45437         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
45438         * modules/stdio (Files): Add lib/stdio-write.c.
45439         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
45440         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
45441         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
45442         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
45443         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
45444         REPLACE_FPRINTF_POSIX.
45445         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
45446         REPLACE_PRINTF_POSIX.
45447         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
45448         REPLACE_VFPRINTF_POSIX.
45449         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
45450         REPLACE_VPRINTF_POSIX.
45451         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
45452         SIGPIPE issue.
45453         * doc/posix-functions/fputc.texi: Likewise.
45454         * doc/posix-functions/fputs.texi: Likewise.
45455         * doc/posix-functions/fwrite.texi: Likewise.
45456         * doc/posix-functions/printf.texi: Likewise.
45457         * doc/posix-functions/putc.texi: Likewise.
45458         * doc/posix-functions/putchar.texi: Likewise.
45459         * doc/posix-functions/puts.texi: Likewise.
45460         * doc/posix-functions/vfprintf.texi: Likewise.
45461         * doc/posix-functions/vprintf.texi: Likewise.
45462
45463         * modules/safe-write (Depends-on): Add write.
45464
45465         * modules/sigpipe-tests: New file.
45466         * tests/test-sigpipe.c: New file.
45467         * tests/test-sigpipe.sh: New file.
45468
45469         * modules/write: New file.
45470         * lib/unistd.in.h: Include <sys/types.h>.
45471         (write): New declaration.
45472         * lib/write.c: New file.
45473         * m4/write.m4: New file.
45474         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45475         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
45476         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
45477         GNULIB_WRITE, REPLACE_WRITE.
45478         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
45479         and the SIGPIPE issue.
45480
45481         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
45482         (raise): New declaration.
45483         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
45484         (ext_signal): New function.
45485         (rpl_raise): New function.
45486         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
45487         GNULIB_SIGNAL_H_SIGPIPE.
45488         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
45489         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
45490
45491         * modules/sigpipe: New file.
45492         * m4/sigpipe.m4: New file.
45493
45494 2008-09-25  Derek Price  <derek@ximbiot.com>
45495             Bruno Haible  <bruno@clisp.org>
45496
45497         * gnulib-tool (func_import): Report all license incompatibilities, not
45498         just the first one.
45499
45500 2008-09-25  Bruno Haible  <bruno@clisp.org>
45501
45502         * gnulib-tool (func_import): When computing the edits, consider not
45503         only the Makefile.ams that exist but also those that will be generated.
45504
45505 2008-09-25  Simon Josefsson  <simon@josefsson.org>
45506
45507         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
45508         fixes gnulib-tool --test warning about duplicate dependency.
45509
45510 2008-09-25  Bruno Haible  <bruno@clisp.org>
45511
45512         * gnulib-tool: Don't ask the user to perform edits in the generated
45513         Makefile.ams.
45514         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
45515         apply to the Makefile.am being generated.
45516         (func_emit_tests_Makefile_am): Execute edits that apply to the
45517         Makefile.am being generated.
45518         (func_import): Setup list of Makefile.am edits before emitting the
45519         Makefile.ams, not at the end.
45520         (func_create_testdir): Update.
45521         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
45522
45523 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45524
45525         * gnulib-tool (func_import): Store the --tests-base option in the
45526         comment in gnulib-cache.m4.
45527
45528 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
45529
45530         * NEWS: Document increased portability that sys_select now provides.
45531
45532         * lib/sys_select.in.h: Install select wrapper.
45533         * lib/sys_socket.in.h: Use more descriptive name when there is no
45534         select wrapper.
45535         * lib/winsock-select.c: New.
45536         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
45537         Require gl_HEADER_SYS_SOCKET.
45538         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
45539         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
45540         * tests/test-sys_select.c: Add functional tests.
45541
45542 2008-09-24  Eric Blake  <ebb9@byu.net>
45543
45544         open, fopen: close fd leak in last patch
45545         * lib/open.c (rpl_open): Close fd before returning error.
45546         * lib/fopen.c (rpl_fopen): Close fd before returning error.
45547         * doc/posix-functions/open.texi (open): Document that Irix also
45548         has the bug.
45549         * doc/posix-functions/fopen.texi (fopen): Likewise.
45550         Reported by Paolo Bonzini.
45551
45552 2008-09-24  Bruno Haible  <bruno@clisp.org>
45553
45554         Ensure that a filename ending in a slash cannot be used to access a
45555         non-directory.
45556         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
45557         to check whether it's really a directory.
45558         * lib/fopen.c: Include fcntl.h, unistd.h.
45559         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
45560         and fdopen().
45561         * modules/fopen (Depends-on): Add unistd.
45562         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
45563         * tests/test-fopen.c (main): Likewise.
45564         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
45565         * doc/posix-functions/fopen.texi: Likewise.
45566         Reported by Eric Blake.
45567
45568 2008-09-23  Eric Blake  <ebb9@byu.net>
45569
45570         c-stack: avoid compiler optimizations when provoking overflow
45571         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
45572         recursion harder to optimize, to ensure a stack overflow occurs.
45573         * tests/test-c-stack.c (recurse): Likewise.
45574         Borrowed from libsigsegv.
45575
45576         c-stack: work around Irix sigaltstack bug
45577         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
45578         whether sigaltstack uses wrong end of stack_t (copied in part from
45579         libsigsegv).
45580         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
45581         Irix bug, without requiring an over-allocation.
45582         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
45583         bug.
45584
45585         fopen: document mingw bug on directories
45586         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
45587         not allowing a stream visiting a directory, even though reading
45588         from such a stream is not portable.
45589
45590 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
45591
45592         * lib/poll.c: Rewrite.
45593         * modules/poll: Depend on alloca.
45594
45595 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
45596
45597         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
45598         instead define prototypes for a full set of wrappers.  Ensure
45599         that Cygwin does not use the compatibility code, which is only
45600         for MinGW.
45601         * lib/winsock.c: New.
45602         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
45603         * modules/sys_socket: Add lib/winsock.c.
45604
45605         * modules/poll-tests: Add errno and perror.
45606         * tests/test-poll.c: Use ioctl, not ioctlsocket.
45607
45608 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
45609
45610         * tests/test-poll.c: Downgrade minimum needed Winsock version.
45611
45612 2008-09-23  Bruno Haible  <bruno@clisp.org>
45613
45614         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
45615         * doc/glibc-functions/*: Likewise.
45616
45617 2008-09-23  Simon Josefsson  <simon@josefsson.org>
45618
45619         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
45620         success.
45621
45622 2008-09-22  Eric Blake  <ebb9@byu.net>
45623             Bruno Haible  <bruno@clisp.org>
45624
45625         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
45626         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
45627         supply %A but mishandle pseudo-NaN.
45628         Reported by Simon Josefsson.
45629
45630 2008-09-21  Bruno Haible  <bruno@clisp.org>
45631
45632         * tests/test-lock.c (main): Tweak skip message.
45633         * tests/test-tls.c (main): Likewise.
45634
45635 2008-09-21  Bruno Haible  <bruno@clisp.org>
45636
45637         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
45638         whether 'struct sigaction' has sa_sigaction here...
45639         (gl_PREREQ_SIG_HANDLER_H): ... not here.
45640         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
45641
45642 2008-09-21  Bruno Haible  <bruno@clisp.org>
45643
45644         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
45645         section.
45646         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
45647         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
45648         the new section.
45649         (Support for obsolete systems lacking POSIX:2001): New section.
45650         (String handling <string.h>): Move strdup to the new section.
45651         Suggested by Simon Josefsson and Paolo Bonzini.
45652
45653 2008-09-21  Bruno Haible  <bruno@clisp.org>
45654
45655         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
45656         exponents in %e and %g results on 'long double'. Needed for mingw's
45657         improved *printf functions.
45658         * tests/test-vasprintf-posix.c (test_function): Likewise.
45659         * tests/test-snprintf-posix.h (test_function): Likewise.
45660         * tests/test-sprintf-posix.h (test_function): Likewise.
45661         Reported by Eric Blake.
45662
45663 2008-09-21  Bruno Haible  <bruno@clisp.org>
45664
45665         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
45666         * tests/test-sprintf-posix.h (test_function): Likewise.
45667
45668 2008-09-21  Bruno Haible  <bruno@clisp.org>
45669
45670         * modules/getpass (Depends-on): Add strdup-posix.
45671
45672         New module 'strdup-posix'.
45673         * modules/strdup-posix: New file.
45674         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
45675         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
45676         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
45677         REPLACE_STRDUP.
45678         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
45679         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
45680         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
45681         strdup-posix.
45682
45683         * modules/strdup (Depends-on): Remove malloc-posix.
45684
45685 2008-09-20  Bruno Haible  <bruno@clisp.org>
45686
45687         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
45688         Wildenhues.
45689
45690 2008-09-20  Bruno Haible  <bruno@clisp.org>
45691
45692         Ensure that wint_t gets defined on IRIX 5.3.
45693         * lib/wchar.in.h (wint_t): Define if not defined by the system.
45694         * lib/wctype.in.h (wint_t): Likewise.
45695         (__wctype_wint_t): Remove type.
45696         (isw*): Use wint_t instead of __wctype_wint_t.
45697         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
45698         * modules/wchar (Files): Add m4/wint_t.m4.
45699         (Makefile.am): Substitute HAVE_WINT_T.
45700         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
45701         * tests/test-wctype.c: Check that wint_t is defined.
45702         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
45703         * doc/posix-headers/wctype.texi: Likewise.
45704         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45705
45706 2008-09-18  Bruno Haible  <bruno@clisp.org>
45707
45708         * gnulib-tool (func_exit): Update comment.
45709
45710 2008-09-18  Simon Josefsson  <simon@josefsson.org>
45711
45712         * modules/getaddrinfo (Depends-on): Remove strdup, this module
45713         assumes strdup exists and does not depend on strdup to return
45714         ENOMEM on out of memory conditions.
45715
45716 2008-09-18  Bruno Haible  <bruno@clisp.org>
45717
45718         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
45719         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
45720         digits for the exponent.
45721
45722 2008-09-18  Jim Meyering  <meyering@redhat.com>
45723             Bruno Haible  <bruno@clisp.org>
45724
45725         * lib/vasnprintf.c (decimal_point_char): Define also if
45726         NEED_PRINTF_INFINITE_LONG_DOUBLE.
45727
45728 2008-09-16  Bruno Haible  <bruno@clisp.org>
45729         and Eric Blake  <ebb9@byu.net>
45730
45731         vasnprintf: support Irix 5.3
45732         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
45733         that mishandle long double infinity.
45734         Reported by Tom G. Christensen.
45735
45736 2008-09-16  Bruno Haible  <bruno@clisp.org>
45737
45738         * doc/glibc-functions/scandir.texi: Mention the function is missing on
45739         Solaris 9.
45740         * doc/glibc-functions/alphasort.texi: Likewise.
45741         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
45742
45743 2008-09-16  Jim Meyering  <meyering@redhat.com>
45744
45745         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
45746         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
45747         a umask modification leak out of a subshell.  Otherwise, the
45748         opensolaris /bin/sh would be accepted and thus cause unwarranted
45749         failures in the coreutils test suite.
45750
45751 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
45752
45753         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
45754         to succeed.
45755
45756 2008-09-16  Jim Meyering  <meyering@redhat.com>
45757
45758         avoid spurious test failure when library is built without ACL support
45759         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
45760         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
45761         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
45762         * tests/test-copy-acl.sh: Likewise.
45763
45764 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45765
45766         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
45767         based on character occurrence counts.
45768
45769 2008-09-15  Eric Blake  <ebb9@byu.net>
45770
45771         tests: avoid some compiler warnings
45772         * tests/test-memchr.c (main): Pass NULL indirectly.
45773         * tests/test-closein.c (main): Avoid unused variable.
45774
45775 2008-09-15  Bruno Haible  <bruno@clisp.org>
45776
45777         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
45778         are missing on OpenBSD 4.0 individually.
45779         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
45780
45781 2008-09-15  Bruno Haible  <bruno@clisp.org>
45782
45783         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
45784         * doc/posix-functions/strerror.texi: Mention also Cygwin.
45785         * doc/posix-functions/perror.texi: Likewise.
45786         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
45787         is missing.
45788         Reported by Eric Blake.
45789
45790         * lib/errno.in.h: Use replacement values >= 2000.
45791         Reported by Eric Blake.
45792
45793 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45794
45795         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
45796         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
45797         limit.
45798         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
45799         compareseq was aborted.
45800
45801 2008-09-14  Bruno Haible  <bruno@clisp.org>
45802
45803         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
45804         yvec_edit_count.
45805         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
45806         (fstrcmp_bounded): Simplify result computation accordingly.
45807
45808 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45809
45810         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
45811         (fstrcmp): Define in terms of fstrcmp_bounded.
45812         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
45813         lower_bound argument.
45814         Return quickly if the result is certainly < lower_bound.
45815         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
45816
45817 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45818
45819         * lib/diffseq.h (EARLY_ABORT): New macro.
45820         (compareseq): Change return type to bool. Return true when EARLY_ABORT
45821         evaluates to true.
45822
45823 2008-09-14  Bruno Haible  <bruno@clisp.org>
45824
45825         * modules/perror-tests: New file.
45826         * tests/test-perror.sh: New file.
45827         * tests/test-perror.c: New file.
45828
45829         New module 'perror'.
45830         * lib/stdio.in.h (perror): New declaration.
45831         * lib/perror.c: New file.
45832         * m4/perror.m4: New file.
45833         * modules/perror: New file.
45834         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
45835         * doc/posix-functions/perror.texi: Mention the perror module.
45836         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
45837         REPLACE_PERROR.
45838         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
45839         REPLACE_PERROR.
45840
45841 2008-09-14  Bruno Haible  <bruno@clisp.org>
45842
45843         * modules/stdio (Makefile.am): Reorder to match the order in
45844         lib/stdio.in.h.
45845         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
45846
45847 2008-09-13  Bruno Haible  <bruno@clisp.org>
45848
45849         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
45850
45851 2008-09-13  Bruno Haible  <bruno@clisp.org>
45852
45853         Extend strerror to cover the added errno values.
45854         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
45855         (rpl_strerror): Provide error messages for the added errno values and
45856         for the WSA* values.
45857         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
45858         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
45859         strerror.
45860         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
45861         * modules/strerror (Depends-on): Add errno.
45862         * doc/posix-functions/strerror.texi: Document the change.
45863         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
45864         and EOVERFLOW.
45865
45866 2008-09-13  Bruno Haible  <bruno@clisp.org>
45867
45868         * modules/EOVERFLOW: Remove file.
45869         * m4/eoverflow.m4: Remove file.
45870         * modules/EOVERFLOW-tests: Remove file.
45871         * tests/test-EOVERFLOW.c: Remove file.
45872         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
45873         * modules/ftell (Depends-on): Likewise.
45874         * modules/getdelim (Depends-on): Likewise.
45875         * modules/getugroups (Depends-on): Likewise.
45876         * modules/poll (Depends-on): Likewise.
45877         * modules/snprintf (Depends-on): Likewise.
45878         * modules/sprintf-posix (Depends-on): Likewise.
45879         * modules/vasnprintf (Depends-on): Likewise.
45880         * modules/vasprintf (Depends-on): Likewise.
45881         * modules/vfprintf-posix (Depends-on): Likewise.
45882         * modules/vsnprintf (Depends-on): Likewise.
45883         * modules/vsprintf-posix (Depends-on): Likewise.
45884         * modules/xvasprintf (Depends-on): Likewise.
45885         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
45886         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
45887         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
45888         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
45889         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
45890         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
45891         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
45892         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
45893         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
45894         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
45895         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
45896         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
45897         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
45898         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
45899         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
45900         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
45901         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
45902         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
45903         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
45904         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
45905         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
45906         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
45907         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
45908         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
45909         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
45910         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
45911         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
45912         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
45913         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
45914         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
45915         * MODULES.html.sh: Remove EOVERFLOW.
45916         * NEWS: Mention the change.
45917
45918 2008-09-13  Bruno Haible  <bruno@clisp.org>
45919
45920         * modules/errno-tests: New file.
45921         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
45922
45923         * lib/errno.in.h: New file.
45924         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
45925         * modules/errno: New file.
45926         * doc/posix-headers/errno.texi: Update documentation.
45927         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
45928
45929 2008-09-13  Bruno Haible  <bruno@clisp.org>
45930
45931         * tests/test-poll.c: Use #if for native Windows, rather than testing
45932         __MSVCRT__.
45933
45934 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45935             Bruno Haible  <bruno@clisp.org>
45936
45937         * lib/glob.c: Don't include <pwd.h> on native Windows.
45938         (WINDOWS32): New macro.
45939         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
45940
45941 2008-09-13  Bruno Haible  <bruno@clisp.org>
45942
45943         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
45944         (ETIMEDOUT): Remove macro.
45945         (glthread_cond_timedwait_multithreaded): New declaration.
45946         (glthread_cond_timedwait): Use it.
45947         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
45948         (glthread_cond_timedwait_multithreaded): New function.
45949
45950 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
45951
45952         * modules/poll-tests: Do not check for io.h.
45953         * tests/test-poll.c: Check for __MSVCRT__ instead.
45954
45955 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
45956
45957         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
45958         * modules/poll-tests: Add inet_pton, stdbool, sockets.
45959         * tests/test-poll.c: Use them.  Use _pipe on Windows.
45960
45961 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
45962
45963         * modules/poll-tests: New.
45964         * tests/test-poll.c: New.
45965
45966 2008-09-12  Eric Blake  <ebb9@byu.net>
45967
45968         frexp: test for NetBSD failure on -0.0
45969         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
45970         not all, bugs from NetBSD 3.0 have been fixed.
45971         * doc/posix-functions/frexp.texi (frexp): Document bug.
45972         Reported by Thomas Klausner.
45973
45974         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
45975         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
45976         literal -0.0.
45977         Reported by Jonathan C. Patschke <jp@centtech.com>.
45978
45979 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45980
45981         * lib/glthread/cond.h: Use dummy implementation also if
45982         USE_WIN32_THREADS.
45983
45984 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45985
45986         * modules/fnmatch-posix (License): Change to LGPLv2+.
45987         * modules/fnmatch-gnu (License): Likewise.
45988
45989 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45990
45991         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
45992
45993 2008-09-11  Jim Meyering  <meyering@redhat.com>
45994
45995         * users.txt: Add gtk-vnc.
45996
45997 2008-09-08  Simon Josefsson  <simon@josefsson.org>
45998
45999         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
46000         rotate amounts.
46001
46002         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
46003         required for 16-bit and 8-bit rotates.
46004         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
46005         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
46006         UINT8_MAX instead of hard-coded constants.
46007         Suggested by Paul Eggert.
46008
46009 2008-09-07  Bruno Haible  <bruno@clisp.org>
46010
46011         * tests/test-striconveh.c (main): Check behaviour when converting from
46012         UTF-7.
46013
46014         Make striconveh work better with stateful encodings.
46015         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
46016         that iconv does not increment the inptr when returning -1/EINVAL.
46017
46018 2008-09-07  Bruno Haible  <bruno@clisp.org>
46019
46020         * build-aux/config.rpath: Update according to libtool-2.2.6.
46021         * build-aux/config.libpath: Likewise.
46022
46023 2008-09-06  Bruno Haible  <bruno@clisp.org>
46024
46025         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
46026         * lib/freadptr.c (freadptr): Likewise.
46027         * lib/freadseek.c (freadptrinc): Likewise.
46028         Reported by Simon Josefsson.
46029
46030 2008-09-06  Bruno Haible  <bruno@clisp.org>
46031
46032         * modules/freadptr (License): Change to LGPLv2+.
46033         * modules/freadseek (License): Likewise.
46034         Suggested by Eric Blake.
46035
46036         * modules/memchr2 (License): Change to LGPLv2+.
46037         Approved by Eric Blake.
46038
46039 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46040             Bruno Haible  <bruno@clisp.org>
46041
46042         Make gnulib-tool work with native 'sed' on AIX.
46043         * gnulib-tool (sed_noop): New variable.
46044         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
46045         func_add_or_update, func_create_testdir): Use it to initialize sed
46046         script variables.
46047         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
46048
46049 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
46050             Bruno Haible  <bruno@clisp.org>
46051
46052         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
46053         also works after #include directives.
46054
46055 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
46056
46057         getdate.y: reject an out-of-range timezone value
46058         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
46059         the range [-24...+24].  When specified with only one or two digits,
46060         * tests/test-getdate.c: Tests for the fix.
46061         * doc/getdate.texi: Document this change.
46062
46063 2008-09-03  Bruno Haible  <bruno@clisp.org>
46064
46065         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
46066
46067 2008-09-02  Simon Josefsson  <simon@josefsson.org>
46068
46069         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
46070         <bruce.korb@gmail.com> with ideas from Ben Pfaff
46071         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
46072         Blake <ebb9@byu.net>.
46073
46074         * tests/test-bitrotate.c: Add more test vectors.
46075
46076 2008-09-02  Eric Blake  <ebb9@byu.net>
46077
46078         vasnprintf-posix: handle large precision via %.*d
46079         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
46080         when handling it ourselves.
46081         * tests/test-vasnprintf-posix.c (test_function): Add test.
46082         * tests/test-snprintf-posix.h (test_function): Likewise.
46083         * tests/test-sprintf-posix.h (test_function): Likewise.
46084         * tests/test-vasprintf-posix.c (test_function): Likewise.
46085         Reported by Alain Guibert.
46086
46087 2008-09-01  Eric Blake  <ebb9@byu.net>
46088
46089         c-stack: make configure-time check more robust
46090         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
46091         successful sigaction call.
46092         Reported by Tom G. Christensen.
46093
46094 2008-09-01  Bruno Haible  <bruno@clisp.org>
46095
46096         New module 'findprog-lgpl'.
46097         * modules/findprog-lgpl: New file.
46098         * lib/findprog-lgpl.c: New file.
46099         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
46100         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
46101         to decide whether to use strdup or xstrdup, concatenated_filename or
46102         xconcatenated_filename.
46103
46104 2008-09-01  Bruno Haible  <bruno@clisp.org>
46105
46106         Split module 'concat-filename' into 'concat-filename' (LGPL) and
46107         'xconcat-filename' (GPL).
46108         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
46109         (License): Change to LGPLv2+.
46110         * modules/xconcat-filename: New file.
46111         * lib/concat-filename.h (concatenated_filename): Change specification.
46112         (xconcatenated_filename): New declaration.
46113         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
46114         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
46115         memory situations.
46116         * lib/xconcat-filename.c: New file.
46117         * NEWS: Mention the change.
46118         * lib/findprog.c: Include concat-filename.h, not filename.h.
46119         (find_in_path): Use xconcatenated_filename instead of
46120         concatenated_filename.
46121         * lib/javacomp.c: Include concat-filename.h, not filename.h.
46122         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
46123         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
46124         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
46125         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
46126         instead of concatenated_filename.
46127         * lib/javaexec.c: Include concat-filename.h, not filename.h.
46128         (execute_java_class): Use xconcatenated_filename instead of
46129         concatenated_filename.
46130         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
46131         * modules/javacomp (Depends-on): Likewise.
46132         * modules/javaexec (Depends-on): Likewise.
46133
46134 2008-09-01  Bruno Haible  <bruno@clisp.org>
46135
46136         Split module 'filename' into 'filename' and 'concat-filename'.
46137         * modules/filename: Keep only lib/filename.h.
46138         (License): Change to LGPLv2+.
46139         * modules/concat-filename: New file, extracted from modules/filename.
46140         * lib/filename.h (concatenated_filename): Remove declaration.
46141         * lib/concat-filename.h: New file, extracted from lib/filename.h.
46142         * lib/concat-filename.c: Include concat-filename.h.
46143         * NEWS: Mention the change.
46144
46145 2008-09-01  Simon Josefsson  <simon@josefsson.org>
46146
46147         * lib/bitrotate.h (rotl8, rotr8): Add.
46148
46149         * modules/bitrotate (configure.ac): Need
46150         AC_REQUIRE([AC_C_INLINE]).
46151         (Description): Mention stdint.h.  Reported by Bruno Haible
46152         <bruno@clisp.org>.
46153
46154         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
46155         Paolo Bonzini <bonzini@gnu.org>.
46156
46157 2008-08-31  Bruno Haible  <bruno@clisp.org>
46158
46159         Assume Solaris specific bi-arch conventions on Solaris systems.
46160         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
46161         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
46162         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
46163         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
46164         like acl_libdirstem.
46165         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
46166         acl_libdirstem.
46167         * NEWS: Mention the change.
46168         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
46169
46170 2008-08-31  Jim Meyering  <meyering@redhat.com>
46171
46172         * lib/strftime.h: Add comments describing the two added arguments.
46173
46174         remove duplicate #include directives
46175         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
46176         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
46177
46178 2008-08-31  Bruno Haible  <bruno@clisp.org>
46179
46180         New module 'sigpipe-die'.
46181         * modules/sigpipe-die: New file.
46182         * lib/sigpipe-die.h: New file.
46183         * lib/sigpipe-die.c: New file.
46184         * MODULES.html.sh (Signal handling): Add sigpipe-die.
46185
46186 2008-08-31  Bruno Haible  <bruno@clisp.org>
46187
46188         Don't override previously installed signal handlers.
46189         * lib/fatal-signal.c (saved_sigactions): New variable.
46190         (uninstall_handlers): Reset the signal to the saved handler, not
46191         to SIG_DFL (except when ignored).
46192         (install_handlers): Save the previous handlers.
46193
46194 2008-08-30  Bruno Haible  <bruno@clisp.org>
46195
46196         * gnulib-tool (func_reset_sigpipe): New function.
46197         (func_get_automake_snippet, func_modules_transitive_closure,
46198         func_import): Invoke it before a join command that reads from stdin,
46199         to avoid "echo: write error: Broken pipe" error messages on stderr.
46200         Reported by Sam Steingold <sds@gnu.org>.
46201
46202 2008-08-30  Bruno Haible  <bruno@clisp.org>
46203
46204         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
46205         Code copied from m4/open.m4.
46206         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
46207         access and the filename ends in a slash. Code copied from lib/open.c.
46208         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
46209         * tests/test-fopen.c (main): Check against bug with trailing slash.
46210
46211 2008-08-29  Bruno Haible  <bruno@clisp.org>
46212
46213         Avoid some "gcc -pedantic" warnings.
46214         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
46215         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
46216         * lib/dirent.in.h: Likewise.
46217         * lib/fcntl.in.h: Likewise.
46218         * lib/float.in.h: Likewise.
46219         * lib/iconv.in.h: Likewise.
46220         * lib/inttypes.in.h: Likewise.
46221         * lib/locale.in.h: Likewise.
46222         * lib/math.in.h: Likewise.
46223         * lib/netinet_in.in.h: Likewise.
46224         * lib/search.in.h: Likewise.
46225         * lib/signal.in.h: Likewise.
46226         * lib/stdarg.in.h: Likewise.
46227         * lib/stdint.in.h: Likewise.
46228         * lib/stdio.in.h: Likewise.
46229         * lib/stdlib.in.h: Likewise.
46230         * lib/string.in.h: Likewise.
46231         * lib/strings.in.h: Likewise.
46232         * lib/sys_select.in.h: Likewise.
46233         * lib/sys_socket.in.h: Likewise.
46234         * lib/sys_stat.in.h: Likewise.
46235         * lib/sys_time.in.h: Likewise.
46236         * lib/sysexits.in.h: Likewise.
46237         * lib/time.in.h: Likewise.
46238         * lib/unistd.in.h: Likewise.
46239         * lib/wchar.in.h: Likewise.
46240         * lib/wctype.in.h: Likewise.
46241         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
46242         * modules/fchdir (Makefile.am): Likewise.
46243         * modules/fcntl (Makefile.am): Likewise.
46244         * modules/float (Makefile.am): Likewise.
46245         * modules/iconv_open (Makefile.am): Likewise.
46246         * modules/inttypes (Makefile.am): Likewise.
46247         * modules/locale (Makefile.am): Likewise.
46248         * modules/math (Makefile.am): Likewise.
46249         * modules/netinet_in (Makefile.am): Likewise.
46250         * modules/search (Makefile.am): Likewise.
46251         * modules/signal (Makefile.am): Likewise.
46252         * modules/stdarg (Makefile.am): Likewise.
46253         * modules/stdint (Makefile.am): Likewise.
46254         * modules/stdio (Makefile.am): Likewise.
46255         * modules/stdlib (Makefile.am): Likewise.
46256         * modules/string (Makefile.am): Likewise.
46257         * modules/strings (Makefile.am): Likewise.
46258         * modules/sys_select (Makefile.am): Likewise.
46259         * modules/sys_socket (Makefile.am): Likewise.
46260         * modules/sys_stat (Makefile.am): Likewise.
46261         * modules/sys_time (Makefile.am): Likewise.
46262         * modules/sysexits (Makefile.am): Likewise.
46263         * modules/time (Makefile.am): Likewise.
46264         * modules/unistd (Makefile.am): Likewise.
46265         * modules/wchar (Makefile.am): Likewise.
46266         * modules/wctype (Makefile.am): Likewise.
46267         Reported by Reuben Thomas <rrt@sc3d.org>.
46268
46269 2008-08-29  Bruno Haible  <bruno@clisp.org>
46270
46271         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
46272         any more.
46273
46274 2008-08-29  Simon Josefsson  <simon@josefsson.org>
46275
46276         * MODULES.html.sh (Misc): Add bitrotate.
46277
46278         * modules/bitrotate: New file.
46279
46280         * lib/bitrotate.h: New file.
46281
46282         * modules/bitrotate-tests: New file.
46283
46284         * tests/test-bitrotate.c: New file.
46285
46286         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
46287         on the bitrotate module.
46288
46289         * lib/arctwo.c: Use new bitrotate module.
46290
46291 2008-08-29  Jim Meyering  <meyering@redhat.com>
46292
46293         bootstrap: merge changes from coreutils
46294         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
46295         of copied files.  Remove a kludge, now that this is fixed.
46296         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
46297         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
46298         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
46299
46300 2008-08-29  Bruno Haible  <bruno@clisp.org>
46301
46302         * MODULES.html.sh: Remove --cvs-urls option.
46303
46304 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
46305
46306         maint.mk: adjust to file name change
46307         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
46308
46309 2008-08-28  Jim Meyering  <meyering@redhat.com>
46310
46311         * modules/getndelim2 (License): Relicense to LGPLv2+.
46312         Approved by Richard Stallman for the version of 1995, and by
46313         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
46314
46315 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
46316
46317         * lib/getdelim.c (flockfile, funlockfile): Make all of them
46318         dummy if one is not available.  Do not touch them if
46319         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
46320         (getc_maybe_unlocked): New.
46321         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
46322
46323 2008-08-26  Eric Blake  <ebb9@byu.net>
46324
46325         doc/INSTALL: resync from autoconf
46326         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
46327         (INSTALL_PRELUDE): Delete; this is done more efficiently by
46328         moving...
46329         * install.texi [!autoconf]: ...here.  Resync from autoconf.
46330         * INSTALL: Regenerate.
46331         * INSTALL.ISO: New file.
46332         * INSTALL.UTF-8: Likewise.
46333
46334 2008-08-26  Jim Meyering  <meyering@redhat.com>
46335
46336         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
46337         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
46338         these definitions conditional, so that they may be overridden, too.
46339
46340 2008-08-26  Bruno Haible  <bruno@clisp.org>
46341
46342         Generate INSTALL file variants with prettier quotes.
46343         * doc/Makefile (INSTALL_PRELUDE): New macro.
46344         (INSTALL): Use it.
46345         (INSTALL.ISO, INSTALL.UTF-8): New rules.
46346
46347 2008-08-26  Bruno Haible  <bruno@clisp.org>
46348
46349         Run makeinfo in an English locale.
46350         * doc/Makefile (MAKEINFO): New variable.
46351
46352 2008-08-26  Bruno Haible  <bruno@clisp.org>
46353
46354         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
46355         Suggested by Eric Blake.
46356
46357 2008-08-25  Bruno Haible  <bruno@clisp.org>
46358
46359         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
46360
46361 2008-08-25  Eric Blake  <ebb9@byu.net>
46362
46363         c-stack: test that stack overflow can be caught
46364         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
46365         that platform allows handling stack overflow; at least OS/2 EMX
46366         has sigaltstack, but crashes before transferring control to
46367         handler on stack overflow.
46368         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
46369         check for HAVE_STACK_OVERFLOW_HANDLING.
46370         Reported by Elbert Pol.
46371
46372 2008-08-25  Bruno Haible  <bruno@clisp.org>
46373
46374         * doc/posix-functions/strftime.texi: Fix description of strftime
46375         module.
46376
46377 2008-08-24  Bruno Haible  <bruno@clisp.org>
46378
46379         * tests/uniwidth/test-uc_width2.c: New file.
46380         * tests/uniwidth/test-uc_width2.sh: New file.
46381         * modules/uniwidth/width-tests (Files): Add the new files.
46382         (TESTS): Add uniwidth/test-uc_width2.sh.
46383         (TESTS_ENVIRONMENT): New variable.
46384         (check_PROGRAMS): Add test-uc_width2.
46385         (test_uc_width2_SOURCES): New variable.
46386
46387         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
46388         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
46389         not 0x00AB.
46390         Reported by Alexander V. Lukyanov <lav@netis.ru>.
46391
46392 2008-08-22  Eric Blake  <ebb9@byu.net>
46393
46394         test-lock, test-tls: mention why a test is skipped
46395         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
46396         skipped.
46397         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
46398
46399         count-one-bits: relax license
46400         * modules/count-one-bits (License): Relicense to LGPLv2+.
46401         Suggested by Ludovic Courtès, approved by Ben Pfaff.
46402
46403 2008-08-22  Andreas Schwab  <schwab@suse.de>
46404
46405         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
46406         Remove spurious space in assignment.
46407
46408 2008-08-21  Simon Josefsson  <simon@josefsson.org>
46409
46410         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
46411         Paul Eggert <eggert@CS.UCLA.EDU>.
46412
46413 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
46414
46415         * modules/gettext: Add m4/threadlib.m4.
46416
46417 2008-08-19  Eric Blake  <ebb9@byu.net>
46418
46419         test-c-stack: fix compilation failure on FreeBSD 5.0
46420         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
46421         headers before <sys/resource.h>.
46422         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
46423         the bug.
46424         Reported by Nelson H. F. Beebe.
46425
46426         strverscmp: migrate from "strverscmp.h" to <string.h>
46427         * modules/string (Makefile.am): Add new hooks.
46428         * modules/strverscmp (Files): Remove strverscmp.h.
46429         (Depends-on): Add string.
46430         (configure.ac): Add indicator.
46431         (Include): Mention new header.
46432         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
46433         defaults.
46434         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
46435         results.
46436         * lib/strverscmp.h: Delete.
46437         * lib/string.in.h (strverscmp): Provide declaration, when needed.
46438         * tests/test-strverscmp.c (includes): Adjust client.
46439         * lib/check-version.c (includes): Likewise.
46440         * NEWS: Document the change.
46441
46442         strverscmp: add unit test
46443         * modules/strverscmp-tests: New file.
46444         * tests/test-strverscmp.c: Likewise.
46445
46446 2008-08-19  Simon Josefsson  <simon@josefsson.org>
46447
46448         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
46449         regarding Windows crypto stuff, from Mono.
46450
46451 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
46452
46453         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
46454         if present, for intel RND.  Return error on failures.
46455
46456 2008-08-18  Ben Pfaff  <blp@gnu.org>
46457
46458         gitlog-to-changelog: give better diagnostic for failed pipe-open
46459         * build-aux/gitlog-to-changelog: Improve error message: suggest
46460         that the version of Git may be too old.
46461
46462 2008-08-18  Simon Josefsson  <simon@josefsson.org>
46463
46464         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
46465         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
46466
46467 2008-08-18  Bruno Haible  <bruno@clisp.org>
46468
46469         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
46470         pthread_in_use().
46471
46472 2008-08-18  Bruno Haible  <bruno@clisp.org>
46473
46474         * lib/glthread/threadlib.c: Include <pthread.h>.
46475
46476 2008-08-18  Bruno Haible  <bruno@clisp.org>
46477
46478         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
46479         glthread_recursive_lock_* macros.
46480         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
46481         Fix syntax error.
46482
46483 2008-08-18  Bruno Haible  <bruno@clisp.org>
46484
46485         * lib/glthread/thread.c: Avoid forcing a context switch right after
46486         thread creation.
46487
46488 2008-08-17  Bruno Haible  <bruno@clisp.org>
46489
46490         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
46491         * lib/glthread/thread.h: Provide Win32 specific implementation.
46492         * modules/thread (Files): Add lib/glthread/thread.c.
46493         (Depends-on): Add lock.
46494         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
46495
46496 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46497
46498         New module 'yield'.
46499         * modules/yield: New file.
46500         * lib/glthread/yield.h: New file.
46501         * m4/yield.m4: New file.
46502         * MODULES.html.sh (Multithreading): Add yield.
46503
46504 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46505
46506         New module 'thread'.
46507         * modules/thread: New file.
46508         * lib/glthread/thread.h: New file.
46509         * m4/thread.m4: New file.
46510         * MODULES.html.sh (Multithreading): Add thread.
46511
46512 2008-08-17  Bruno Haible  <bruno@clisp.org>
46513
46514         * lib/glthread/lock.h: Include <stdlib.h> always.
46515         * lib/glthread/tls.h: Likewise.
46516         * lib/glthread/cond.h: Likewise.
46517
46518 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46519
46520         New module 'cond'.
46521         * modules/cond: New file.
46522         * lib/glthread/cond.h: New file.
46523         * lib/glthread/cond.c: New file.
46524         * m4/cond.m4: New file.
46525         * MODULES.html.sh (Multithreading): Add cond.
46526
46527 2008-08-16  Eric Blake  <ebb9@byu.net>
46528
46529         c-stack: fix regression on Irix 5.3 from 2008-06-21
46530         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
46531         sa_sigaction...
46532         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
46533         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
46534         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
46535         * modules/signal (Makefile.am): Use the value.
46536         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
46537         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
46538         * doc/posix-headers/signal.texi (signal.h): Document this
46539         portability issue.
46540         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
46541         Reported by Tom G. Christensen.
46542
46543 2008-08-17  Bruno Haible  <bruno@clisp.org>
46544
46545         New module 'threadlib'.
46546         * modules/threadlib: New file.
46547         * lib/glthread/threadlib.c: New file, extracted from
46548         lib/glthread/lock.c.
46549         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
46550         functions.
46551         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
46552         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
46553         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
46554         macros.
46555         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
46556         (gl_DISABLE_THREADS): Remove macro.
46557         * modules/lock (Files): Remove build-aux/config.rpath.
46558         (Depends-on): Remove havelib. Add threadlib.
46559         (configure.ac-early): Remove section.
46560         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
46561         * modules/tls (Depends-on): Remove lock. Add threadlib.
46562         (Link): New section, copied from threadlib.
46563         * MODULES.html.sh (Multithreading): Add threadlib.
46564
46565 2008-08-14  Bruno Haible  <bruno@clisp.org>
46566
46567         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
46568         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
46569         glthread_rwlock_unlock, glthread_rwlock_destroy,
46570         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
46571         glthread_recursive_lock_destroy): Define as macros always.
46572         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
46573         glthread_lock_lock.
46574         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
46575         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
46576         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
46577         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
46578         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
46579         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
46580         (glthread_recursive_lock_lock_func): Renamed from
46581         glthread_recursive_lock_lock.
46582         (glthread_recursive_lock_unlock_func): Renamed from
46583         glthread_recursive_lock_unlock.
46584         (glthread_recursive_lock_destroy_func): Renamed from
46585         glthread_recursive_lock_destroy.
46586
46587 2008-08-14  Bruno Haible  <bruno@clisp.org>
46588
46589         * lib/glthread/lock.h: Renamed from lib/lock.h.
46590         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
46591         * lib/glthread/tls.h: Renamed from lib/tls.h.
46592         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
46593         * lib/fstrcmp.c: Update includes.
46594         * lib/strsignal.c: Update includes.
46595         * modules/lock (Files, Makefile.am): Update.
46596         (Include): Change to "glthread/lock.h".
46597         * modules/tls (Files, Makefile.am): Update.
46598         (Include): Change to "glthread/tls.h".
46599         * tests/test-lock.c: Update includes.
46600         * tests/test-tls.c: Update includes.
46601         * NEWS: Mention the renamed header files.
46602
46603 2008-08-11  Jim Meyering  <meyering@redhat.com>
46604
46605         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
46606
46607 2008-08-11  Eric Blake  <ebb9@byu.net>
46608
46609         test-c-stack: avoid C99-ism
46610         * tests/test-c-stack.c (main): Fix whitespace, move declaration
46611         before statement.
46612         Reported by Alain Guibert.
46613
46614 2008-08-10  Jim Meyering  <meyering@redhat.com>
46615
46616         ensure that return value of uinttostr et al are not ignored
46617         * lib/inttostr.h (__GNUC_PREREQ): Define.
46618         (__attribute_warn_unused_result__): Define.
46619         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
46620
46621 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
46622
46623         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
46624         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
46625
46626 2008-08-07  Jim Meyering  <meyering@redhat.com>
46627
46628         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
46629
46630         * modules/mkstemp (License): Relicense under LGPLv2+.
46631         * modules/tempname (License): Likewise.
46632
46633 2008-08-06  Bruno Haible  <bruno@clisp.org>
46634
46635         * lib/poll.c (poll): Further micro-optimization.
46636
46637 2008-08-06  Jim Meyering  <meyering@redhat.com>
46638
46639         inet_pton.c: use locale-independent tolower
46640         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
46641         (inet_pton6): Use c_tolower rather than tolower.
46642         * modules/inet_pton (Depends-on): Add c-ctype.
46643
46644 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
46645
46646         * lib/poll.c (poll): Avoid division when timeout is 0, cache
46647         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
46648
46649 2008-08-06  Jim Meyering  <meyering@redhat.com>
46650
46651         * modules/inet_pton (License): Relicense under LGPLv2+.
46652
46653 2008-08-03  Bruno Haible  <bruno@clisp.org>
46654
46655         Additional non-aborting API for lock and tls.
46656         * lib/lock.h: Include <errno.h>.
46657         (glthread_lock_init): New macro/function.
46658         (gl_lock_init): Define as wrapper around glthread_lock_init.
46659         (glthread_lock_lock): New macro/function.
46660         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
46661         (glthread_lock_unlock): New macro/function.
46662         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
46663         (glthread_lock_destroy): New macro/function.
46664         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
46665         (glthread_rwlock_init): New macro/function.
46666         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
46667         (glthread_rwlock_rdlock): New macro/function.
46668         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
46669         (glthread_rwlock_wrlock): New macro/function.
46670         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
46671         (glthread_rwlock_unlock): New macro/function.
46672         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
46673         (glthread_rwlock_destroy): New macro/function.
46674         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
46675         (glthread_recursive_lock_init): New macro/function.
46676         (gl_recursive_lock_init): Define as wrapper around
46677         glthread_recursive_lock_init.
46678         (glthread_recursive_lock_lock): New macro/function.
46679         (gl_recursive_lock_lock): Define as wrapper around
46680         glthread_recursive_lock_lock.
46681         (glthread_recursive_lock_unlock): New macro/function.
46682         (gl_recursive_lock_unlock): Define as wrapper around
46683         glthread_recursive_lock_unlock.
46684         (glthread_recursive_lock_destroy): New macro/function.
46685         (gl_recursive_lock_destroy): Define as wrapper around
46686         glthread_recursive_lock_destroy.
46687         (glthread_once): New macro/function.
46688         (gl_once): Define as wrapper around glthread_once.
46689         Update function declarations.
46690         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
46691         glthread_rwlock_init. Return error code.
46692         (glthread_rwlock_rdlock_multithreaded): Renamed from
46693         glthread_rwlock_rdlock. Return error code.
46694         (glthread_rwlock_wrlock_multithreaded): Renamed from
46695         glthread_rwlock_wrlock. Return error code.
46696         (glthread_rwlock_unlock_multithreaded): Renamed from
46697         glthread_rwlock_unlock. Return error code.
46698         (glthread_rwlock_destroy_multithreaded): Renamed from
46699         glthread_rwlock_destroy. Return error code.
46700         (glthread_recursive_lock_init_multithreaded): Renamed from
46701         glthread_recursive_lock_init. Return error code.
46702         (glthread_recursive_lock_lock_multithreaded): Renamed from
46703         glthread_recursive_lock_lock. Return error code.
46704         (glthread_recursive_lock_unlock_multithreaded): Renamed from
46705         glthread_recursive_lock_unlock. Return error code.
46706         (glthread_recursive_lock_destroy_multithreaded): Renamed from
46707         glthread_recursive_lock_destroy. Return error code.
46708         (glthread_once_call): Make static.
46709         (glthread_once_multithreaded): Renamed from glthread_once.
46710         * lib/tls.h: Include <errno.h>.
46711         (glthread_tls_key_init): New macro/function.
46712         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
46713         (glthread_tls_set): New macro/function.
46714         (gl_tls_set): Define as wrapper around glthread_tls_set.
46715         (glthread_tls_key_destroy): New macro/function.
46716         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
46717         Update function declarations.
46718         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
46719         glthread_tls_get.
46720         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
46721
46722 2008-08-04  Eric Blake  <ebb9@byu.net>
46723
46724         gnumakefile: use space, not TAB, outside of targets
46725         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
46726
46727 2008-08-02  Jim Meyering  <meyering@redhat.com>
46728
46729         getdate.y: avoid locale-dependent date parsing failure
46730         In Turkish locales, getdate would fail to recognize keywords
46731         containing a lowercase "i".  The solution is not to rely on
46732         locale-sensitive case-conversion.
46733         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
46734         (lookup_word): Use c_toupper in place of toupper.
46735         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
46736         Reported by Vefa Bicakci <bicave@superonline.com> in
46737         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
46738         * modules/getdate (Depends-on): Add c-ctype.
46739
46740 2008-08-02  Bruno Haible  <bruno@clisp.org>
46741
46742         * gnulib-tool (func_import): When updating or creating a .gitignore
46743         file, prepend each added line with a slash, and ignore leading slashes
46744         from the existing lines.
46745         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
46746
46747 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46748
46749         Portability fix for GNU make 3.79.1.
46750         * top/GNUmakefile: Avoid 'else COND', which older GNU make
46751         versions do not understand.
46752
46753 2008-08-01  Bruno Haible  <bruno@clisp.org>
46754
46755         Work around bug of HP-UX 10.20 cc with -0.0 literal.
46756         * tests/test-isnanf.h (zero): New variable.
46757         (main): Avoid literal -0.0f.
46758         * tests/test-isnand.h (zero): New variable.
46759         (main): Avoid literal -0.0.
46760         * tests/test-isnanl.h (zero): New variable.
46761         (main): Avoid literal -0.0L.
46762         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
46763         (test_float, test_double, test_long_double): Avoid literals -0.0f,
46764         -0.0, -0.0L.
46765         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
46766         (test_signbitd): Avoid literal -0.0.
46767         (test_signbitl): Avoid literal -0.0L.
46768         * tests/test-ceilf1.c (zero): New variable.
46769         (main): Avoid literal -0.0f.
46770         * tests/test-ceill.c (zero): New variable.
46771         (main): Avoid literal -0.0L.
46772         * tests/test-floorf1.c (zero): New variable.
46773         (main): Avoid literal -0.0f.
46774         * tests/test-floorl.c (zero): New variable.
46775         (main): Avoid literal -0.0L.
46776         * tests/test-roundf1.c (zero): New variable.
46777         (main): Avoid literal -0.0f.
46778         * tests/test-round1.c (zero): New variable.
46779         (main): Avoid literal -0.0.
46780         * tests/test-roundl.c (zero): New variable.
46781         (main): Avoid literal -0.0L.
46782         * tests/test-truncf1.c (zero): New variable.
46783         (main): Avoid literal -0.0f.
46784         * tests/test-trunc1.c (zero): New variable.
46785         (main): Avoid literal -0.0.
46786         * tests/test-truncl.c (zero): New variable.
46787         (main): Avoid literal -0.0L.
46788         * tests/test-frexp.c (zero): New variable.
46789         (main): Avoid literal -0.0.
46790         * tests/test-frexpl.c (zero): New variable.
46791         (main): Avoid literal -0.0L.
46792         * tests/test-ldexpl.c (zero): New variable.
46793         (main): Avoid literal -0.0L.
46794         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
46795         (zerod, zerol): New variables.
46796         (test_function): Avoid literals -0.0, -0.0L.
46797         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
46798         (zerod, zerol): New variables.
46799         (test_function): Avoid literals -0.0, -0.0L.
46800         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
46801         (zerod, zerol): New variables.
46802         (test_function): Avoid literals -0.0, -0.0L.
46803         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
46804         (zerod, zerol): New variables.
46805         (test_function): Avoid literals -0.0, -0.0L.
46806         * tests/test-strtod.c (zero): New variable.
46807         (main): Avoid literal -0.0.
46808         Reported by Jonathan C. Patschke <jp@centtech.com>.
46809
46810 2008-07-31  Jim Meyering  <meyering@redhat.com>
46811
46812         sha256.h: correct definition of SHA224_DIGEST_SIZE
46813         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
46814         Reported by Paulie Pena IV <paulie4@gmail.com>.
46815         Define as 224 / 8, rather than as a literal.
46816         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
46817         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
46818         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
46819
46820 2008-07-31  Bruno Haible  <bruno@clisp.org>
46821
46822         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
46823         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
46824         Reported by Jonathan Patschke <jp@centtech.com>.
46825
46826 2008-07-31  Bruno Haible  <bruno@clisp.org>
46827
46828         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
46829         Reported by Paolo Bonzini <bonzini@gnu.org>.
46830
46831 2008-07-30  Eric Blake  <ebb9@byu.net>
46832
46833         test-strtod: allow compilation without -lm
46834         * tests/test-strtod.c (main): Avoid link dependence on fabs.
46835         Reported by Dennis Clarke <blastwave@gmail.com>.
46836
46837 2008-07-28  Jim Meyering  <meyering@redhat.com>
46838
46839         bootstrap: work also when there are no .po files in po/
46840         * build-aux/bootstrap (update_po_files): Complete the change
46841         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
46842
46843 2008-07-27  Jim Meyering  <meyering@redhat.com>
46844
46845         * users.txt: Add zile.
46846
46847 2008-07-26  Ben Pfaff  <blp@gnu.org>
46848
46849         Add missing dependencies on new m4/exponent[fdl].m4 files.
46850         * modules/isnanf-nolibm: Add m4/exponentf.m4.
46851         * modules/isnand-nolibm: Add m4/exponentd.m4.
46852         * modules/isnanl-nolibm: Add m4/exponentl.m4.
46853         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
46854         m4/isnan[fdl].m4, because the macros actually used moved.
46855         Reported by Jim Meyering.
46856
46857 2008-07-14  Ben Pfaff  <blp@gnu.org>
46858
46859         Add isinf module.
46860         * lib/isinf.c: New file.
46861         * lib/math.in.h: Define isinf macro if we have decided to replace
46862         it.
46863         * m4/isinf.m4: New file.
46864         * m4/math_h.m4: Initialize and substitute variables for isinf
46865         module.
46866         * modules/isinf: New file.
46867         * modules/isinf-tests: New file.
46868         * modules/math: Add substitutions for new module.
46869         * tests/test-isinf.c: New file.
46870         * doc/posix-functions/isinf.texi: Mention new module.
46871         * MODULES.html.sh: Mention new module.
46872
46873 2008-07-14  Ben Pfaff  <blp@gnu.org>
46874
46875         Factor out some macros for use by additional modules.
46876         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
46877         exponentf.m4.
46878         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
46879         exponentd.m4.
46880         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
46881         file exponentl.m4.
46882         * m4/exponentf.m4: New file.
46883         * m4/exponentd.m4: New file.
46884         * m4/exponentl.m4: New file.
46885         * modules/isnanf: Use new file m4/exponentf.m4.
46886         * modules/isnand: Use new file m4/exponentd.m4.
46887         * modules/isnanl: Use new file m4/exponentl.m4.
46888
46889 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
46890
46891         mktime.c: normalize tp->tm_isdst value to -1/0/1.
46892         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
46893         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
46894         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
46895
46896         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
46897         readlink on platforms without PATH_MAX.
46898
46899 2008-07-21  Eric Blake  <ebb9@byu.net>
46900
46901         Warn, not fail, on stale version.
46902         * top/GNUmakefile (_curr-ver): Tone down previous patch.
46903
46904         Don't allow installation with stale devel version number.
46905         * top/GNUmakefile (_is-install-target): New macro.
46906         (_curr-ver): Forbid installation with stale version number.
46907
46908 2008-07-20  Bruno Haible  <bruno@clisp.org>
46909
46910         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
46911         TESTS_ENVIRONMENT.
46912         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
46913
46914 2008-07-20  Bruno Haible  <bruno@clisp.org>
46915
46916         * lib/c-stack.h (c_stack_action): Add documentation.
46917         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
46918
46919 2008-07-20  Bruno Haible  <bruno@clisp.org>
46920
46921         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
46922         * modules/readlink (License): Likewise.
46923
46924 2008-07-17  Eric Blake  <ebb9@byu.net>
46925
46926         * modules/c-stack (Link): Fix typo.
46927
46928         Make c-stack use libsigsegv, when available.
46929         * modules/c-stack (Depends-on): Add libsigsegv.
46930         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
46931         needed.
46932         * lib/c-stack.c (SIGSTKSZ): Define fallback.
46933         (segv_handler, overflow_handler, c_stack_action)
46934         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
46935         implementation when libsigsegv is available, but only when using
46936         the library is necessary.
46937         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
46938         comment, explaining why XSI check fails on Linux.
46939         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
46940         * tests/test-c-stack2.sh: Tweak skip message.
46941         * NEWS: Document new link-time requirements.
46942
46943 2008-07-16  Eric Blake  <ebb9@byu.net>
46944
46945         c-stack: Expose false positives when not using libsigsegv.
46946         * modules/c-stack-tests (Files): Expand test.
46947         * tests/test-c-stack.c (main): Add means to conditionally trigger
46948         non-overflow SIGSEGV.
46949         * tests/test-c-stack2.sh: New file.
46950
46951 2008-07-14  Bruno Haible  <bruno@clisp.org>
46952
46953         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
46954         Reported by Eric Blake.
46955
46956 2008-07-14  Sam Steingold  <sds@gnu.org>
46957             Bruno Haible  <bruno@clisp.org>
46958
46959         New module libsigsegv.
46960         * modules/libsigsegv: New file.
46961         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
46962         modifications.
46963         * MODULES.html.sh (Signal handling): New section.
46964
46965 2008-07-14  Bruno Haible  <bruno@clisp.org>
46966
46967         * modules/unictype/ctype-* (Description): Add the word "function".
46968         Improves the resulting doc in MODULES.html.
46969
46970 2008-07-12  Ben Pfaff  <blp@gnu.org>
46971
46972         Add longlong module.
46973         * modules/longlong: New file.
46974
46975 2008-07-12  Bruno Haible  <bruno@clisp.org>
46976
46977         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
46978         to empty.
46979
46980 2008-07-10  Ben Pfaff  <blp@gnu.org>
46981
46982         Add isnan module.
46983         * doc/posix-functions/isnan.texi: Mention new module.
46984         * lib/math.in.h: Define isnan macro if we have decided to replace
46985         it.
46986         * m4/isnan.m4: New file.
46987         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
46988         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
46989         also.
46990         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
46991         redundancy.
46992         * m4/math_h.m4: Initialize and substitute variables for isnan
46993         module.
46994         * modules/isnan: New file.
46995         * modules/isnan-tests: New file.
46996         * modules/math: Add substitutions for new module.
46997         * tests/test-isnan.c: New file.
46998         * MODULES.html.sh: Mention new module.
46999
47000 2008-07-10  Ben Pfaff  <blp@gnu.org>
47001
47002         Add isnanf module.
47003         * lib/isnanf.m4: New file.
47004         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
47005         (gl_HAVE_ISNANF_IN_LIBM): New macro.
47006         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
47007         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
47008         * modules/isnanf: New file.
47009         * modules/isnanf-tests: New file.
47010         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
47011         files.
47012         * tests/test-isnanf-nolibm.c: factored most of its contents into
47013         new file tests/test-isnanf.h.
47014         * tests/test-isnanf.h: New file.
47015         * tests/test-isnanf.c: New file.
47016         * MODULES.html.sh: Mention new module.
47017         * doc/glibc-functions/isnanf.texi: Mention new module.
47018
47019 2008-07-10  Ben Pfaff  <blp@gnu.org>
47020
47021         Add isnand module.
47022         * lib/isnand.h: New file.
47023         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
47024         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
47025         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
47026         functionality also.
47027         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
47028         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
47029         (gl_HAVE_ISNAND_IN_LIBM): New macro.
47030         * modules/isnand: New file.
47031         * modules/isnand-tests: New file.
47032         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
47033         files.
47034         * tests/test-isnand-nolibm.c: factored most of its contents into
47035         new file tests/test-isnand.h.
47036         * tests/test-isnand.h: New file.
47037         * tests/test-isnand.c: New file.
47038         * MODULES.html.sh: Mention new module.
47039
47040 2008-07-10  Ben Pfaff  <blp@gnu.org>
47041
47042         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
47043         * lib/isnand.h: Rename lib/isnand-nolibm.h.
47044         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
47045         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
47046         * modules/isnanf-nolibm: Update references to renamed files.
47047         * modules/isnand-nolibm: Likewise.
47048         * modules/isnanf-nolibm-tests: Likewise.
47049         * modules/isnand-nolibm-tests: Likewise.
47050         * lib/frexp.c: Likewise.
47051         * lib/isfinite.c: Likewise.
47052         * lib/signbitd.c: Likewise.
47053         * lib/signbitf.c: Likewise.
47054         * lib/vasnprintf.c: Likewise.
47055         * tests/test-ceilf1.c: Likewise.
47056         * tests/test-ceilf2.c: Likewise.
47057         * tests/test-floorf1.c: Likewise.
47058         * tests/test-floorf2.c: Likewise.
47059         * tests/test-frexp.c: Likewise.
47060         * tests/test-round1.c: Likewise.
47061         * tests/test-round2.c: Likewise.
47062         * tests/test-roundf1.c: Likewise.
47063         * tests/test-strtod.c: Likewise.
47064         * tests/test-trunc1.c: Likewise.
47065         * tests/test-trunc2.c: Likewise.
47066         * tests/test-truncf1.c: Likewise.
47067         * tests/test-truncf2.c: Likewise.
47068         * NEWS: Mention the renamed header files.
47069
47070 2008-07-11  Jim Meyering  <meyering@redhat.com>
47071
47072         vc-list-files: make the last-resort awk code more portable
47073         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
47074         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
47075         does not support it.
47076
47077 2008-07-10  Eric Blake  <ebb9@byu.net>
47078
47079         Work with tar's bootstrap.
47080         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
47081         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
47082         an m4 comment.
47083
47084 2008-07-09  Jim Meyering  <meyering@redhat.com>
47085
47086         posix-shell.m4: fix typo that made this test malfunction
47087         * m4/posix-shell.m4: Remove capitalization in variable name.
47088
47089 2008-07-08  Bruno Haible  <bruno@clisp.org>
47090
47091         * m4/onceonly.m4: Update comments.
47092         Reported by Ben Pfaff <blp@cs.stanford.edu>.
47093
47094 2008-07-04  Jim Meyering  <meyering@redhat.com>
47095
47096         * users.txt: Add vc-dwim.
47097         (bison, coreutils): Use the gitweb URL.
47098
47099 2008-07-03  Jim Meyering  <meyering@redhat.com>
47100
47101         * users.txt: Add libffcall.  From Sam Steingold.
47102
47103 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
47104
47105         getdate.y: do not ignore TZ with relative day, month or year offset
47106         * lib/getdate.y (get_date): Move the tz-handling block to follow the
47107         relative-date-handling, since otherwise, the latter would clobber the
47108         sole output (an updated Start value) of the tz-handling block.
47109         * tests/test-getdate.c: Tests for the fix
47110
47111 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47112
47113         Recognize 'foo_LIBRARIES += libgnu.a'.
47114         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
47115         makefile snippet has already specified an installation location,
47116         also using '+='.
47117
47118 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
47119
47120         getdate.y: factor out common actions
47121         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
47122         Use them in place of open-coded actions.
47123
47124 2008-07-01  Simon Josefsson  <simon@josefsson.org>
47125
47126         Add self-test for getdate module.
47127         * modules/getdate-tests: New file.
47128         * tests/test-getdate.c: New file.
47129
47130 2008-06-29  Bruno Haible  <bruno@clisp.org>
47131
47132         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
47133         .gitignore.
47134         Reported by Sylvain Beucler <beuc@beuc.net>.
47135
47136 2008-06-29  Bruno Haible  <bruno@clisp.org>
47137
47138         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
47139         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
47140
47141 2008-06-29  Bruno Haible  <bruno@clisp.org>
47142
47143         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
47144         EXTRA_DIST.
47145         Reported by Sylvain Beucler <beuc@beuc.net>.
47146
47147 2008-06-26  Jim Meyering  <meyering@redhat.com>
47148
47149         make several modules depend on the "open" module
47150         This provides slightly increased consistency when opening-for-write
47151         the name of a non-directory spelled with a trailing slash.
47152         * modules/chdir-safer: Likewise.
47153         * modules/chown: Likewise.
47154         * modules/clean-temp: Likewise.
47155         * modules/copy-file: Likewise.
47156         * modules/fchdir: Likewise.
47157         * modules/fcntl-safer: Likewise.
47158         * modules/pipe: Likewise.
47159         * modules/utime: Likewise.
47160         Prompted by Eric Blake and Bruno Haible.
47161
47162 2008-06-24  Andreas Schwab  <schwab@suse.de>
47163
47164         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
47165         literals can be used as initializers for global variables.
47166
47167 2008-06-23  Eric Blake  <ebb9@byu.net>
47168
47169         Make gnulib-cache.m4 easier to diff.
47170         * gnulib-tool (func_import): Allow newlines when reading cached
47171         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
47172
47173 2008-06-23  Bruno Haible  <bruno@clisp.org>
47174
47175         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
47176         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
47177         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
47178         m4/signalblocking.m4.
47179         (gl_PREREQ_SIGACTION): Don't invoke it.
47180         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
47181         gl_PREREQ_SIG_HANDLER_H.
47182         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
47183         Don't check for sigaction here.
47184
47185 2008-06-23  Bruno Haible  <bruno@clisp.org>
47186
47187         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
47188         (install_handlers): Don't set the SA_RESETHAND flag.
47189
47190 2008-06-23  Bruno Haible  <bruno@clisp.org>
47191
47192         * m4/sigaction.m4: Comment fixes.
47193         * lib/signal.in.h: Likewise.
47194
47195 2008-06-23  Eric Blake  <ebb9@byu.net>
47196
47197         Fix typo.
47198         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
47199
47200         Avoid SA_ namespace.
47201         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
47202         Reported by Ralf Wildenhues.
47203
47204         Avoid test failure due to SA_RESTORER.
47205         * tests/test-sigaction.c (SA_MASK): New macro.
47206         (main): Avoid failing due to extension flags being set.
47207         Reported by Jim Meyering.
47208
47209         Revert use of sig-handler.h in sigprocmask.c.
47210         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
47211         it requires the existence of struct sigaction.
47212         * lib/sigprocmask.c (handler_t): Restore typedef.
47213         (rpl_signal, old_handlers): Use local type.
47214
47215 2008-06-22  Bruno Haible  <bruno@clisp.org>
47216
47217         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
47218         conditionally.
47219         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47220
47221 2008-06-22  Bruno Haible  <bruno@clisp.org>
47222
47223         * doc/posix-functions/siginterrupt.texi: Move note.
47224
47225         * lib/signal.in.h (SA_RESTART): New macro.
47226         * lib/sigaction.c: Update comment.
47227
47228         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
47229
47230         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
47231         (gl_PREREQ_SIGPROCMASK): Invoke it.
47232         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
47233
47234         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
47235
47236         * lib/sigprocmask.c: Update a comment.
47237
47238 2008-06-21  Eric Blake  <ebb9@byu.net>
47239
47240         Use sigaction module rather than signal().
47241         * modules/c-stack (Depends-on): Add sigaction.
47242         * modules/fatal-signal (Depends-on): Likewise.
47243         * modules/nanosleep (Depends-on): Likewise.
47244         * modules/sigprocmask (Files): Add sig-handler.h.
47245         * modules/sigaction (Files): Likewise.
47246         * lib/sig-handler.h (get_handler): New file, suggested by Paul
47247         Eggert.
47248         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
47249         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
47250         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
47251         (init_fatal_signals): Likewise.
47252         * lib/nanosleep.c (rpl_nanosleep): Likewise.
47253         (siginterrupt): Delete fallback.
47254         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
47255         instead.
47256         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
47257         siginterrupt.
47258
47259         New module sigaction, for mingw.
47260         * modules/sigaction: New module...
47261         * modules/sigaction-tests: ...and its test.
47262         * m4/sigaction.m4: New file.
47263         * lib/sigaction.c: Likewise.
47264         * tests/test-sigaction.c: Likewise.
47265         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
47266         * modules/signal (Makefile.am): Likewise.
47267         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
47268         needed.
47269         * doc/posix-headers/signal.texi (signal.h): Mention provided
47270         types.
47271         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
47272         that sigaction is preferable.
47273         * doc/posix-functions/sigaction.texi (sigaction): Mention new
47274         module.
47275         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
47276         sigaction.
47277
47278         Improve robustness of sigprocmask by overriding signal.
47279         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
47280         is in use.
47281         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
47282         (SIGKILL, SIGSTOP): Provide fallbacks.
47283         (rpl_signal): Implement.
47284         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
47285         signal can be called inside handlers.
47286
47287         Fix nanosleep module on mingw.
47288         * modules/nanosleep (Depends-on): Add sys_select.
47289         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
47290
47291         Fix licensing of sigprocmask.
47292         * modules/raise (License): Relicense as LGPL.
47293
47294 2008-06-21  Bruno Haible  <bruno@clisp.org>
47295
47296         * lib/propername.c (proper_name_utf8): Don't use the transliterated
47297         result if it contains question marks.
47298         Reported by Michael Geng <linux@michaelgeng.de>.
47299
47300 2008-06-19  Bruno Haible  <bruno@clisp.org>
47301
47302         Fix CVS-ism.
47303         * doc/gnulib.texi: Include updated-stamp.texi.
47304         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
47305         (updated-stamp.texi): New rule.
47306         (gnulib.info): Depend on it.
47307         * doc/.gitignore: Add updated-stamp.texi.
47308         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
47309
47310 2008-06-19  Bruno Haible  <bruno@clisp.org>
47311
47312         * doc/Makefile (gnulib.info): Update and simplify dependencies.
47313         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
47314
47315 2008-06-19  Eric Blake  <ebb9@byu.net>
47316
47317         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
47318         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
47319         Reported by Stepan Kasal.
47320
47321 2008-06-18  Bruno Haible  <bruno@clisp.org>
47322
47323         * lib/fatal-signal.c (init_fatal_signals): Add comment.
47324         Reported by Eric Blake.
47325
47326 2008-06-18  Eric Blake  <ebb9@byu.net>
47327
47328         Work around cygwin 1.5.25 strsignal bug.
47329         * tests/test-strsignal.c: Allow for const char *.
47330         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
47331
47332 2008-06-18  Simon Josefsson  <simon@josefsson.org>
47333
47334         * users.txt: Update URL to article and add author/date
47335         information.
47336
47337 2008-06-17  Bruno Haible  <bruno@clisp.org>
47338
47339         New macro gl_DISABLE_THREADS.
47340         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
47341         if the user did not pass --enable-threads or --disable-threads option.
47342         (gl_DISABLE_THREADS): New macro.
47343         Reported by Eric Blake <ebb9@byu.net>.
47344
47345 2008-06-17  Bruno Haible  <bruno@clisp.org>
47346
47347         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
47348         when the macro ignores it.
47349         Based on a patch by Eric Blake <ebb9@byu.net>.
47350
47351 2008-06-17  Bruno Haible  <bruno@clisp.org>
47352
47353         * modules/tls (License): Change to LGPLv2+.
47354         Reported by Eric Blake.
47355
47356 2008-06-17  Eric Blake  <ebb9@byu.net>
47357
47358         Simplify c-stack prerequisites.
47359         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
47360         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
47361         no longer requires <ucontext.h> to exist.  Optimize setrlimit
47362         check.
47363         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
47364         <sys/resource.h>.
47365
47366         Move c-stack test into testsuite.
47367         * modules/c-stack-tests: New file.
47368         * lib/c-stack.c [DEBUG]: Move test program...
47369         * tests/test-c-stack.c: ...into this new file.  Skip rather than
47370         fail test if sigaltstack is lacking.
47371         * tests/test-c-stack.sh: New driver file.
47372
47373 2008-06-16  Eric Blake  <ebb9@byu.net>
47374
47375         Use raise module consistently.
47376         * modules/fatal-signal (Depends-on): Add raise.
47377         * modules/sigprocmask (Depends-on): Likewise.
47378         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
47379         * lib/sigprocmask.c (sigprocmask): Likewise.
47380         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
47381         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
47382
47383         Fix compliance bug in sigpending.
47384         * lib/sigprocmask.c (sigpending): Return pending array via
47385         parameter, not return value.
47386
47387 2008-06-14  Eric Blake  <ebb9@byu.net>
47388
47389         Improve obstack-printf test code.
47390         * tests/test-obstack-printf.c (test_function): Fix comment, and
47391         simplify usage of obstack_* in macros.  Add a test for coverage.
47392         Reported by Bruno Haible.
47393
47394 2008-06-14  Bruno Haible  <bruno@clisp.org>
47395
47396         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
47397         array size as a constant, not as a const variable.
47398         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
47399         AC_USE_SYSTEM_EXTENSIONS.
47400         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
47401         Test whether the obstack_printf function actually exists.
47402         * modules/obstack-printf (Depends-on): Add extensions.
47403         (Include): Remove obstack.h.
47404         * modules/obstack-printf-posix (Depends-on): Add extensions.
47405         (Include): Remove obstack.h.
47406
47407 2008-06-13  Eric Blake  <ebb9@byu.net>
47408
47409         Add obstack-printf and obstack-printf-posix modules.
47410         * modules/obstack-printf: New file.
47411         * modules/obstack-printf-posix: Likewise.
47412         * MODULES.html.sh (Misc): Mention them.
47413         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
47414         Likewise.
47415         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
47416         Likewise.
47417         * modules/stdio (Makefile.am): Accomodate new modules.
47418         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
47419         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
47420         Declare.
47421         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
47422         functions.
47423         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
47424         (gl_REPLACE_OBSTACK_PRINTF): New macros
47425         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
47426         * tests/test-obstack-printf.c: New file.
47427         * modules/obstack-printf-tests: Likewise.
47428         * modules/obstack-printf-posix-tests: Likewise.
47429
47430 2008-06-11  Bruno Haible  <bruno@clisp.org>
47431
47432         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
47433         * lib/open.c: Include errno.h.
47434         (open): Fail when attempting to write to a file that has a trailing
47435         slash.
47436         * tests/test-open.c (main): Test against trailing slash bug.
47437         * doc/posix-functions/open.texi: Mention the trailing slash bug.
47438
47439 2008-06-10  Bruno Haible  <bruno@clisp.org>
47440
47441         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
47442         for $? to work inside the trap command, with various /bin/sh-s.
47443         * tests/test-vc-list-files-cvs.sh: Likewise.
47444
47445 2008-06-10  Bruno Haible  <bruno@clisp.org>
47446
47447         * lib/acl-internal.h: Don't include gettext.h here.
47448         * lib/set-mode-acl.c: Include gettext.h here.
47449         * lib/copy-acl.c: Likewise.
47450
47451 2008-06-10  Bruno Haible  <bruno@clisp.org>
47452
47453         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
47454         * lib/wait-process.c (wait_subprocess): Likewise.
47455         * lib/execute.h (execute): Add termsigp argument.
47456         * lib/execute.c (execute): Likewise.
47457         * lib/csharpcomp.c (compile_csharp_using_pnet,
47458         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
47459         * lib/csharpexec.c (execute_csharp_using_pnet,
47460         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
47461         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
47462         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
47463         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
47464         is_jikes_present): Update.
47465         * lib/javaexec.c (execute_java_class): Update.
47466         * lib/javaversion.c (execute_and_read_line): Update.
47467         * NEWS: Document the changes.
47468         Reported by Eric Blake.
47469
47470 2008-06-10  Eric Blake  <ebb9@byu.net>
47471
47472         Add missing include.
47473         * tests/test-strstr.c (includes): Add <signal.h>.
47474         * tests/test-strcasestr.c (includes): Likewise.
47475         * tests/test-memmem.c (includes): Likewise.
47476
47477 2008-06-10  Bruno Haible  <bruno@clisp.org>
47478
47479         * lib/wait-process.c (wait_subprocess): Add an assertion.
47480
47481 2008-06-10  Bruno Haible  <bruno@clisp.org>
47482
47483         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
47484
47485 2008-06-10  Bruno Haible  <bruno@clisp.org>
47486
47487         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
47488         using alarm().
47489         * tests/test-strcasestr.c (main): Likewise.
47490         * tests/test-strstr.c (main): Likewise.
47491
47492 2008-06-09  Bruno Haible  <bruno@clisp.org>
47493
47494         Work around the Solaris 10 ACE ACLs ABI change.
47495         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
47496         declare if ACL_NO_TRIVIAL is present.
47497         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
47498         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
47499         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
47500         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
47501         define if ACL_NO_TRIVIAL is present.
47502         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
47503         and use the current ABI.
47504         (file_has_acl): Use same #if condition as elsewhere.
47505         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
47506         in use, and use the current ABI.
47507         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
47508         Reported by Jim Meyering.
47509
47510 2008-06-09  Eric Blake  <ebb9@byu.net>
47511
47512         Work around environments that (stupidly) ignore SIGALRM.
47513         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
47514         before using alarm().
47515         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
47516         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
47517         Reported by Ian Beckwith <ianb@erislabs.net>.
47518
47519         Produce autobuild blurb earlier in log.
47520         * modules/autobuild (configure.ac-early): Move AB_INIT here.
47521
47522 2008-06-09  Jim Meyering  <meyering@redhat.com>
47523         and OndÅ™ej Vašík  <ovasik@redhat.com>
47524
47525         utimens.c: correct kernel bug work-around
47526         OndÅ™ej Vašík found that the invalid return value of 280 indicates
47527         failure, not success, and the kernel bug we're trying to work
47528         around affects not just the utimensat call, but also the fallback
47529         futimens call.
47530         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
47531         not success.
47532         [HAVE_FUTIMENS]: Use the same work-around, here.
47533
47534 2008-06-09  Jim Meyering  <meyering@redhat.com>
47535
47536         add more guards around definition of ACE_-related code
47537         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
47538         ALLOW and ACE_OWNER are also defined.
47539
47540 2008-06-08  Bruno Haible  <bruno@clisp.org>
47541
47542         * lib/acl-internal.h: Add me as co-author.
47543         * lib/file-has-acl.c: Likewise.
47544         * lib/set-mode-acl.c: Likewise.
47545         * lib/copy-acl.c: Likewise.
47546
47547 2008-06-08  Bruno Haible  <bruno@clisp.org>
47548
47549         Add support for AIX ACLs.
47550         * lib/acl-internal.h (acl_nontrivial): New declaration.
47551         * lib/file-has-acl.c (acl_nontrivial): New function.
47552         (file_has_acl): Add implementation using AIX 4 ACL API.
47553         * lib/set-mode-acl.c (qset_acl): Likewise.
47554         * lib/copy-acl.c (qcopy_acl): Likewise.
47555
47556 2008-06-08  Bruno Haible  <bruno@clisp.org>
47557
47558         Add support for HP-UX ACLs.
47559         * lib/acl-internal.h (acl_nontrivial): New declaration.
47560         * lib/file-has-acl.c (acl_nontrivial): New function.
47561         (file_has_acl): Add implementation using HP-UX 11 ACL API.
47562         * lib/set-mode-acl.c (qset_acl): Likewise.
47563         * lib/copy-acl.c (qcopy_acl): Likewise.
47564
47565 2008-06-08  Bruno Haible  <bruno@clisp.org>
47566
47567         Add support for Cygwin ACLs.
47568         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
47569         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
47570         the chmod_or_fchmod call.
47571         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
47572
47573 2008-06-08  Bruno Haible  <bruno@clisp.org>
47574
47575         Fix bug with setuid modes in Solaris 10+ code.
47576         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
47577         succeeded, when the mode contains some special bits.
47578
47579 2008-06-08  Bruno Haible  <bruno@clisp.org>
47580
47581         Add support for Solaris 7..10 ACLs.
47582         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
47583         declarations.
47584         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
47585         functions.
47586         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
47587         * lib/set-mode-acl.c (qset_acl): Likewise.
47588         * lib/copy-acl.c (qcopy_acl): Likewise.
47589
47590 2008-06-08  Bruno Haible  <bruno@clisp.org>
47591
47592         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
47593         declaration.
47594         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
47595         (acl_access_nontrivial): Remove MacOS X case.
47596         (file_has_acl): Use acl_extended_nontrivial.
47597         * lib/copy-acl.c (qcopy_acl): Likewise.
47598
47599 2008-06-08  Bruno Haible  <bruno@clisp.org>
47600
47601         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
47602
47603 2008-06-08  Jim Meyering  <meyering@redhat.com>
47604
47605         * modules/acl (Maintainer): Add Bruno Haible.
47606
47607 2008-06-07  Bruno Haible  <bruno@clisp.org>
47608
47609         Improve support for Tru64 ACLs.
47610         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
47611         ACL on OSF/1.
47612
47613 2008-06-07  Bruno Haible  <bruno@clisp.org>
47614
47615         Add support for MacOS X ACLs.
47616         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
47617         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
47618         * lib/set-mode-acl.c (qset_acl): Likewise.
47619         * lib/copy-acl.c (qcopy_acl): Likewise.
47620
47621 2008-06-07  Bruno Haible  <bruno@clisp.org>
47622
47623         Fix memory leak introduced on 2008-05-22.
47624         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
47625         use.
47626
47627 2008-06-07  Bruno Haible  <bruno@clisp.org>
47628
47629         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
47630         to construct an empty ACL.
47631
47632 2008-06-07  Bruno Haible  <bruno@clisp.org>
47633
47634         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
47635         precisely.
47636         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
47637
47638 2008-06-07  Bruno Haible  <bruno@clisp.org>
47639
47640         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
47641         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
47642
47643 2008-06-07  Bruno Haible  <bruno@clisp.org>
47644
47645         * doc/posix-functions/_setjmp.texi: Explain the use of this function
47646         regardless of POSIX.
47647         * doc/posix-functions/_longjmp.texi: Likewise.
47648         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
47649         SystemV platform in this case.
47650
47651 2008-06-06  Eric Blake  <ebb9@byu.net>
47652
47653         Document abort() bugs.
47654         * doc/posix-functions/abort.texi (abort): Mention anomalies.
47655
47656         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
47657         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
47658         sigsetjmp.
47659         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
47660         siglongjmp, but only as a macro.
47661         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
47662         is obsolete.
47663         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
47664
47665         Tweak documentation to cover cygwin argz bugs.
47666         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
47667         argz bug fix; no code change needed since no cygwin releases
47668         occurred between the last fix and the bug being tested.
47669         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
47670         module and recently fixed cygwin bugs.
47671         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
47672         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
47673         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
47674         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
47675         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
47676         Likewise.
47677         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
47678         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
47679         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
47680         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
47681         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
47682         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
47683         Likewise.
47684
47685         Avoid gcc warning on cygwin.
47686         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
47687         !ACL_NO_TRIVIAL]: Avoid unused variable.
47688
47689 2008-06-05  Eric Blake  <ebb9@byu.net>
47690
47691         Be tolerant of UNKNOWN version in gnulib-tool test dir.
47692         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
47693         git-version-gen fails to come up with a version.
47694         Reported by Simon Josefsson.
47695
47696 2008-06-05  Jim Meyering  <meyering@redhat.com>
47697             Paul Eggert  <eggert@cs.ucla.edu>
47698
47699         utimens.c: work around a probable Linux kernel bug
47700         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
47701         appears to be a kernel bug that causes utimensat to return 280
47702         instead of 0, indicating success.
47703
47704 2008-06-04  Bruno Haible  <bruno@clisp.org>
47705
47706         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
47707         2008-06-01 commit.
47708
47709 2008-06-04  Bruno Haible  <bruno@clisp.org>
47710
47711         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
47712         * lib/file-has-acl.c (acl_access_nontrivial): New function.
47713         (file_has_acl): Use it. Save errno afterwards.
47714         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
47715
47716 2008-06-03  Bruno Haible  <bruno@clisp.org>
47717
47718         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
47719         draft code. Simplify #ifs.
47720         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
47721         Put Solaris code after POSIX-draft code. Fix comments regarding
47722         Solaris 10, HP-UX. Mention Cygwin.
47723         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
47724
47725 2008-06-03  Eric Blake  <ebb9@byu.net>
47726
47727         Provide fallback for older kernels.
47728         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
47729         Provide runtime fallback if kernel lacks support.
47730         Reported by Mike Frysinger.
47731
47732 2008-06-02  Bruno Haible  <bruno@clisp.org>
47733
47734         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
47735         it exists.
47736
47737 2008-06-02  Bruno Haible  <bruno@clisp.org>
47738
47739         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
47740         * lib/copy-acl.c (qcopy_acl): Update comment.
47741
47742 2008-06-02  Bruno Haible  <bruno@clisp.org>
47743
47744         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
47745         like ACL APIs.
47746
47747 2008-06-02  Bruno Haible  <bruno@clisp.org>
47748
47749         * tests/test-file-has-acl.sh: Use different code for Cygwin.
47750         * tests/test-set-mode-acl.sh: Likewise.
47751         * tests/test-copy-acl.sh: Likewise.
47752         * tests/test-copy-file.sh: Likewise.
47753
47754 2008-06-02  Bruno Haible  <bruno@clisp.org>
47755
47756         * tests/test-file-has-acl.sh: Remove unused code.
47757
47758 2008-06-01  Bruno Haible  <bruno@clisp.org>
47759
47760         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
47761         (copy_acl): Just a wrapper around qcopy_acl that emits the error
47762         messages.
47763         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
47764
47765 2008-06-01  Bruno Haible  <bruno@clisp.org>
47766
47767         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
47768         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
47769         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
47770         APIs.
47771         * modules/acl-tests (configure.ac): Remove tests now contained in
47772         m4/acl.m4.
47773
47774 2008-06-02  Jim Meyering  <meyering@redhat.com>
47775
47776         announce-gen: use a better key-server host name
47777         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
47778         it may be more consistently reliable.  Suggested by Werner Koch
47779         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
47780
47781 2008-06-01  Bruno Haible  <bruno@clisp.org>
47782
47783         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
47784         Reported by Voroskoi Andras <voroskoi@gmail.com>.
47785
47786 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
47787
47788         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
47789
47790 2008-06-01  Bruno Haible  <bruno@clisp.org>
47791
47792         New ACL tests.
47793         * tests/test-file-has-acl.sh: New file.
47794         * tests/test-file-has-acl.c: New file.
47795         * tests/test-set-mode-acl.sh: New file.
47796         * tests/test-set-mode-acl.c: New file.
47797         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
47798         * tests/test-copy-acl.c: New file.
47799         * modules/acl-tests: New file, based on modules/copy-file-tests.
47800         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
47801         (Depends-on): Add acl-tests.
47802         (configure.ac): Remove checks.
47803         (Makefile.am): Don't create test-sameacls program here any more.
47804
47805 2008-06-01  Bruno Haible  <bruno@clisp.org>
47806
47807         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
47808         * tests/test-sameacls.c: Include progname.h.
47809         (main): Invoke set_program_name. Portability fixes for MacOS X,
47810         Solaris, HP-UX.
47811
47812 2008-06-01  Bruno Haible  <bruno@clisp.org>
47813
47814         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
47815         function.
47816         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
47817
47818 2008-06-01  Bruno Haible  <bruno@clisp.org>
47819
47820         * modules/rpmatch (Depends-on): Add strdup.
47821
47822 2008-06-01  Bruno Haible  <bruno@clisp.org>
47823
47824         * lib/pipe.c: Include unistd-safer.h.
47825         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
47826         * modules/pipe (Depends-on): Add unistd-safer.
47827
47828 2008-05-30  Simon Josefsson  <simon@josefsson.org>
47829
47830         * modules/autobuild (configure.ac): Call AB_INIT.
47831
47832 2008-05-30  Simon Josefsson  <simon@josefsson.org>
47833
47834         * tests/test-getaddrinfo.c: Don't print debug messages by default.
47835         Suggested by Bruno Haible <bruno@clisp.org>.
47836
47837 2008-05-30  Simon Josefsson  <simon@josefsson.org>
47838
47839         * tests/test-base64.c: Cast size_t to unsigned long when invoking
47840         printf.  Use %lu instead of %d.  Reported by Bruno Haible
47841         <bruno@clisp.org>.
47842
47843 2008-05-29  Eric Blake  <ebb9@byu.net>
47844
47845         Prefer new POSIX 200x interfaces over futimesat.
47846         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
47847         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
47848         when available.
47849         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
47850
47851 2008-05-28  Bruno Haible  <bruno@clisp.org>
47852
47853         * modules/stpcpy (License): Change to LGPLv2+.
47854         Requested by David Lutterkort <dlutter@redhat.com>.
47855
47856 2008-05-27  Bruno Haible  <bruno@clisp.org>
47857
47858         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
47859         current mingw.
47860         Reported by Jose E. Marchesi <jemarch@gnu.org>.
47861
47862 2008-05-27  Bruno Haible  <bruno@clisp.org>
47863
47864         * modules/iconv_open (Link): New section, from module 'iconv'.
47865         * modules/striconv (Link): Likewise.
47866         * modules/striconveh (Link): Likewise.
47867         * modules/xstriconv (Link): Likewise.
47868         * modules/unicodeio (Link): Likewise.
47869         * modules/propername (Link): Likewise.
47870         Reported by Jim Meyering.
47871
47872 2008-05-26  Jim Meyering  <meyering@redhat.com>
47873
47874         sha256: do not artificially restrict buffer length to be < 2^32
47875         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
47876         uint32_t to size_t.
47877         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
47878         to match.
47879
47880         avoid unaligned access errors, e.g., on sparc
47881         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
47882         direct access through a possibly-unaligned uint64* pointer.
47883         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
47884         direct access through a possibly-unaligned uint32* pointer.
47885         Prompted by this patch from Tom "spot" Callaway:
47886         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
47887
47888         sha512.c: fix typo in comment
47889         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
47890
47891 2008-05-25  Bruno Haible  <bruno@clisp.org>
47892
47893         * lib/set-mode-acl.c: Renamed from lib/acl.c.
47894         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
47895         (Makefile.am): Update lib_SOURCES.
47896
47897 2008-05-25  Bruno Haible  <bruno@clisp.org>
47898
47899         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
47900
47901 2008-05-25  Jim Meyering  <meyering@redhat.com>
47902
47903         useless-if-before-free: freed expr may have white-space differences
47904         * build-aux/useless-if-before-free: Recognize cases in which the
47905         freed expression differs from the tested one in embedded white
47906         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
47907         $1 was used, so we can't make any regexp shy.  Improved tests now
47908         detect this.
47909
47910         useless-if-before-free: accept white space in the expression.
47911         * build-aux/useless-if-before-free: For now, any white space
47912         in the expression must be identical in the free argument.
47913
47914         useless-if-before-free: efficiency tweak
47915         * build-aux/useless-if-before-free: Make the expression-matching
47916         regexp "shy".
47917         Make the *outer* regexp shy, not the expr-matching one.
47918
47919         update code-in-comment to accept cast of free arg
47920         * build-aux/useless-if-before-free: Update regexp.
47921
47922 2008-05-25  Bruno Haible  <bruno@clisp.org>
47923
47924         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
47925         * modules/copy-file-tests (Files, Makefile.am): Update.
47926         * tests/test-copy-file.c (func_test_copy): Update.
47927
47928 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
47929
47930         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
47931
47932 2008-05-23  Bruno Haible  <bruno@clisp.org>
47933
47934         Improve support for ACLs on OSF/1.
47935         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
47936         Remove fallback for unknown flavors of ACLs.
47937
47938 2008-05-22  Bruno Haible  <bruno@clisp.org>
47939
47940         Add support for ACLs on OSF/1.
47941         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
47942         replacements.
47943         (acl_free_text): New macro fallback.
47944         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
47945         acl_free.
47946         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
47947         acl_free_text function. Require AC_C_INLINE.
47948
47949 2008-05-22  Bruno Haible  <bruno@clisp.org>
47950
47951         Make copy_acl work on MacOS X 10.5.
47952         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
47953         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
47954         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
47955         If MODE_INSIDE_ACL, don't assume that every system has the same text
47956         representation for ACLs as FreeBSD.
47957         * lib/copy-acl.c (copy_acl): Add support for platforms with
47958         !MODE_INSIDE_ACL.
47959         * lib/file-has-acl.c (file_has_acl): Likewise.
47960         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
47961         FreeBSD, MacOS X, or IRIX, respectively.
47962
47963 2008-05-22  Bruno Haible  <bruno@clisp.org>
47964
47965         * lib/acl.h: Don't include <sys/acl.h>.
47966         (GETACLCNT): Move fallback to lib/acl-internal.h.
47967         * lib/acl-internal.h: Include <sys/acl.h> here.
47968         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
47969
47970 2008-05-22  Bruno Haible  <bruno@clisp.org>
47971
47972         Split off copy_acl function to separate file.
47973         * lib/copy-acl.c: New file, extracted from lib/acl.c.
47974         * lib/acl.c (copy_acl): Moved function to separate file.
47975         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
47976         * modules/acl (Files): Add lib/copy-acl.c.
47977         (Makefiles.am): Augment lib_SOURCES.
47978
47979 2008-05-22  Bruno Haible  <bruno@clisp.org>
47980
47981         * modules/copy-file-tests: New file.
47982         * tests/test-copy-file.sh: New file.
47983         * tests/test-copy-file.c: New file.
47984         * tests/test-copy-file-sameacls.c: New file.
47985
47986 2008-05-22  Eric Blake  <ebb9@byu.net>
47987
47988         Avoid gcc warning.
47989         * tests/test-memcmp.c (main): Pass NULL indirectly.
47990
47991 2008-05-21  Bruno Haible  <bruno@clisp.org>
47992
47993         Add reference doc about ACLs.
47994         * doc/acl-resources.txt: New file.
47995         * doc/acl-cygwin.txt: New file.
47996
47997 2008-05-21  Bruno Haible  <bruno@clisp.org>
47998
47999         Avoid one more warning from gcc.
48000         * lib/vasnprintf.c (IF_LINT): Update comments.
48001         (VASNPRINTF): Use it also for the 'prefix' array initializer.
48002
48003 2008-05-21  Jim Meyering  <meyering@redhat.com>
48004
48005         avoid a warning from gcc
48006         * lib/vasnprintf.c (IF_LINT): Define.
48007         (scale10_round_decimal_long_double):
48008         Use it to avoid a "may be used uninitialized" warning.
48009         (scale10_round_decimal_double): Likewise.
48010
48011 2008-05-21  Simon Josefsson  <simon@josefsson.org>
48012
48013         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
48014         declared.
48015
48016 2008-05-20  Bruno Haible  <bruno@clisp.org>
48017
48018         * tests/test-memcmp.c (main): Test also the sign of the result. Test
48019         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
48020
48021 2008-05-20  Simon Josefsson  <simon@josefsson.org>
48022
48023         * modules/memcmp-tests: New file.
48024         * tests/test-memcmp.c: New file.
48025
48026 2008-05-19  Bruno Haible  <bruno@clisp.org>
48027
48028         * modules/propername (Notice, configure.ac): Put quoted "..." into
48029         --keyword option.
48030         * lib/propername.h: Update comments accordingly.
48031         Reported by Eric Blake.
48032
48033 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
48034
48035         * modules/getpass-gnu (Depends-on): Add fseeko.
48036
48037 2008-05-19  Simon Josefsson  <simon@josefsson.org>
48038
48039         * modules/base64-tests: New file.
48040
48041 2008-05-19  Bo Borgerson <gigabo@gmail.com>
48042
48043         * lib/base64.c (base64_decode_ctx): If a decode context structure
48044         was passed in use it to ignore newlines.  If a context structure
48045         was _not_ passed in, continue to treat newlines as garbage (this
48046         is the historical behavior).  Formerly base64_decode.
48047         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
48048         takes a decode context structure.
48049         * lib/base64.h (base64_decode): Macro for four-argument calls.
48050         (base64_decode_alloc): Likewise.
48051         * lib/base64.c (base64_decode_ctx): If a decode context structure
48052         was passed in use it to ignore newlines.  If a context structure
48053         was _not_ passed in, continue to treat newlines as garbage (this
48054         is the historical behavior).  Formerly base64_decode.
48055         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
48056         takes a decode context structure.
48057         * lib/base64.h (base64_decode): Macro for four-argument calls.
48058         (base64_decode_alloc): Likewise.
48059
48060 2008-05-19  Jim Meyering  <meyering@redhat.com>
48061
48062         avoid a warning from gcc
48063         * lib/trim.c (IF_LINT): Define.
48064         (trim2): Use it to avoid a "may be used uninitialized" warning.
48065
48066         Fix doc typo.
48067         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
48068
48069 2008-05-19  Bruno Haible  <bruno@clisp.org>
48070
48071         * doc/glibc-functions/getpass.texi: Document limits of other
48072         implementations.
48073
48074 2008-05-19  Simon Josefsson  <simon@josefsson.org>
48075             Bruno Haible <bruno@clisp.org>
48076
48077         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
48078
48079 2008-05-18  Bruno Haible  <bruno@clisp.org>
48080
48081         * modules/propername: New file, from GNU gettext.
48082         * lib/propername.h: New file, from GNU gettext.
48083         * lib/propername.c: New file, from GNU gettext.
48084         * MODULES.html.sh (Internationalization functions): Add propername.
48085
48086 2008-05-16  Jim Meyering  <meyering@redhat.com>
48087             Bruno Haible  <bruno@clisp.org>
48088
48089         Avoid some warnings from "gcc -Wshadow".
48090         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
48091
48092 2008-05-15  Eric Blake  <ebb9@byu.net>
48093
48094         Extend previous patch to cygwin 1.7.0.
48095         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
48096         fast implementation in cygwin >= 1.7.0.
48097         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
48098         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
48099
48100 2008-05-15  Bruno Haible  <bruno@clisp.org>
48101
48102         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
48103         implementation in glibc >= 2.9.
48104         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
48105         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
48106
48107 2008-05-15  Bruno Haible  <bruno@clisp.org>
48108
48109         * MODULES.html.sh (Internationalization functions): Remove linebreak.
48110         (Unicode string functions): Add unilbrk/*.
48111         Reported by Karl Berry.
48112
48113 2008-05-15  Eric Blake  <ebb9@byu.net>
48114
48115         Fix violation of <stdbool.h> replacement in regex.
48116         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
48117         * lib/regexec.c (re_search_internal): Likewise.
48118         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
48119
48120 2008-05-15  Jim Meyering  <meyering@redhat.com>
48121
48122         avoid distracting test output when git or cvs is not found
48123         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
48124         * tests/test-vc-list-files-git.sh: Likewise.
48125
48126 2008-05-15  Eric Blake  <ebb9@byu.net>
48127
48128         Glibc finally accepted the memmem speedup code, bugzilla #5514.
48129         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
48130         glibc version.
48131         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
48132         * doc/posix-functions/strstr.texi (strstr): Likewise.
48133         * lib/str-two-way.h (MAX): Sychronize with glibc.
48134
48135 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
48136
48137         * lib/regcomp.c (optimize_utf8): Add a note on why we test
48138         opr.ctx_type.
48139         (calc_first): Initialize constraint field.
48140         (duplicate_node_closure): Use it instead of special casing ANCHORS.
48141         Fix grammar.
48142         (duplicate_node): Merge constraint field for all node types.
48143         (calc_eclosure_iter): Look at constraint field for all node types.
48144         * lib/regex_internal.c (create_cd_newstate): Don't look at
48145         opr.ctx_type.
48146
48147 2008-05-14  Bruno Haible  <bruno@clisp.org>
48148
48149         Help GCC to do better code generation.
48150         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
48151         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
48152         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
48153         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
48154         Declare with attribute 'malloc' if supported.
48155
48156 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
48157
48158         use "echo STR|wc -c" rather than unportable "expr length STR"
48159         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
48160         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
48161
48162 2008-05-14  Jim Meyering  <meyering@redhat.com>
48163
48164         use dd ibs=$n count=1 ... rather than less-portable head -c$n
48165         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
48166         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
48167         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
48168         via Collin Lasse.
48169
48170 2008-05-14  Eric Blake  <ebb9@byu.net>
48171
48172         Avoid quadratic growth in gl_LIBSOURCES.
48173         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
48174         Suggested by Bruno Haible.
48175
48176         Test xmemdup0.
48177         * modules/xmemdup0-tests: New file.
48178         * tests/test-xmemdup0.c: Likewise.
48179
48180 2008-05-13  Eric Blake  <ebb9@byu.net>
48181
48182         Split xmemdup0 into its own module.
48183         * modules/xmemdup0: New file.
48184         * lib/xmemdup0.h: Likewise.
48185         * lib/xmemdup0.c: Likewise.
48186         * MODULES.html.sh (Memory management functions): Add xmemdup0.
48187         * lib/xalloc.h (xmemdup0): Remove.
48188         * lib/xmalloc.c (xmemdup0): Likewise.
48189
48190 2008-05-13  Eric Blake  <ebb9@byu.net>
48191             Bruno Haible  <bruno@clisp.org>
48192
48193         Reduce number of forks required during autoconf.
48194         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
48195         and gl_LIBSOURCES_DIR.
48196         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
48197         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
48198         m4_syscmd per file.
48199         <m4_foreach_w>: Move...
48200         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
48201
48202 2008-05-13  Eric Blake  <ebb9@byu.net>
48203
48204         * gnulib-tool: Fix various comment typos.
48205
48206 2008-05-12  Bruno Haible  <bruno@clisp.org>
48207
48208         Tailor the linebreaking algorithm.
48209         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
48210
48211 2008-05-12  Bruno Haible  <bruno@clisp.org>
48212
48213         Update to Unicode 5.0.0.
48214         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
48215         LBP_JV, LBP_JT. Redistribute values.
48216         (unilbrk_table): Change size.
48217         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
48218         Unicode TR#14 rev. 22.
48219         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
48220         LBP_JV, LBP_JT. Redistribute values.
48221         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
48222         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
48223         Update.
48224         * lib/unilbrk/lbrkprop1.h: Regenerated.
48225         * lib/unilbrk/lbrkprop2.h: Regenerated.
48226         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
48227         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
48228         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
48229         Likewise.
48230         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
48231         Likewise.
48232         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
48233         result.
48234         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
48235         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
48236         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
48237         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
48238         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
48239         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
48240
48241 2008-05-11  Bruno Haible  <bruno@clisp.org>
48242
48243         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
48244
48245 2008-05-11  Bruno Haible  <bruno@clisp.org>
48246
48247         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
48248         * modules/unilbrk/gen-lbrk: New file.
48249
48250 2008-05-11  Bruno Haible  <bruno@clisp.org>
48251
48252         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
48253         * m4/sha512.m4 (gl_SHA512): Likewise.
48254
48255 2008-05-11  Jim Meyering  <meyering@redhat.com>
48256
48257         New modules: crypto/sha256, crypto/sha512 (from coreutils)
48258         * modules/crypto/sha256: New file.
48259         * modules/crypto/sha512: Likewise.
48260         * lib/sha256.c: Likewise.
48261         * lib/sha256.h: Likewise.
48262         * lib/sha512.c: Likewise.
48263         * lib/sha512.h: Likewise.
48264         * lib/u64.h: Likewise.
48265         * m4/sha256.m4: Likewise.
48266         * m4/sha512.m4: Likewise.
48267         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
48268
48269 2008-05-10  Bruno Haible  <bruno@clisp.org>
48270
48271         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
48272         (Input/Output <stdio.h>): Add xprintf.
48273         (Signal handling <signal.h>): Add strsignal.
48274         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
48275         (Core language properties): Add func.
48276         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
48277         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
48278         strings.
48279         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
48280         (Input/output): New section.
48281         (File system functions): Add openat-die, stat-macros.
48282         (Networking functions): Add sockets.
48283         (Unicode string functions): Add unictype/*.
48284         (Support for building libraries and executables): Add gperf.
48285         (Support for building documentation): Add agpl-3.0.
48286         (Misc): Add nocrash.
48287
48288 2008-05-10  Bruno Haible  <bruno@clisp.org>
48289
48290         * modules/unictype/gen-ctype: New file.
48291
48292 2008-05-10  Jim Meyering  <meyering@redhat.com>
48293
48294         Make chdir-safer.c more efficient on a system with no symlinks.
48295         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
48296         also if ELOOP is zero.  Suggested by Bruno Haible.
48297
48298         Make chdir-safer.c slightly safer.
48299         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
48300         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
48301
48302         Avoid compile failure on systems without ELOOP (like mingw).
48303         * lib/chdir-safer.c (ELOOP): Define if not already defined.
48304         Reported by Bruno Haible.
48305
48306 2008-05-10  Bruno Haible  <bruno@clisp.org>
48307
48308         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
48309         (is_utf8_encoding): Use a case-insensitive comparison.
48310         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
48311         streq.
48312
48313 2008-05-10  Bruno Haible  <bruno@clisp.org>
48314
48315         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
48316         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
48317         * lib/unilbrk/ulc-common.h (iconv_string_length,
48318         iconv_string_keeping_offsets): Remove declarations.
48319         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
48320         Don't include <iconv.h>, streq.h, xsize.h.
48321         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
48322         conversion.
48323         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
48324         <iconv.h>, streq.h, xsize.h.
48325         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
48326         conversion.
48327         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
48328         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
48329         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
48330         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
48331
48332 2008-05-10  Bruno Haible  <bruno@clisp.org>
48333
48334         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
48335         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
48336
48337         * modules/unilbrk/u32-width-linebreaks-tests: New file.
48338         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
48339
48340         * modules/unilbrk/u16-width-linebreaks-tests: New file.
48341         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
48342
48343         * modules/unilbrk/u8-width-linebreaks-tests: New file.
48344         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
48345
48346         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
48347         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
48348
48349         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
48350         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
48351
48352         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
48353         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
48354
48355         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
48356         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
48357
48358 2008-05-10  Bruno Haible  <bruno@clisp.org>
48359
48360         Split up 'linebreak' module.
48361         * lib/unilbrk.h: New file, based on lib/linebreak.h.
48362         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
48363         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
48364         modifications.
48365         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
48366         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
48367         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
48368         lib/linebreak.c.
48369         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
48370         lib/linebreak.c.
48371         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
48372         lib/linebreak.c.
48373         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
48374         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
48375         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
48376         lib/linebreak.c.
48377         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
48378         lib/linebreak.c.
48379         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
48380         lib/linebreak.c.
48381         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
48382         lib/linebreak.c.
48383         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
48384         lib/linebreak.c.
48385         * modules/unilbrk/base: New file.
48386         * modules/unilbrk/tables: New file.
48387         * modules/unilbrk/u8-possible-linebreaks: New file.
48388         * modules/unilbrk/u16-possible-linebreaks: New file.
48389         * modules/unilbrk/u32-possible-linebreaks: New file.
48390         * modules/unilbrk/ulc-common: New file.
48391         * modules/unilbrk/ulc-possible-linebreaks: New file.
48392         * modules/unilbrk/u8-width-linebreaks: New file.
48393         * modules/unilbrk/u16-width-linebreaks: New file.
48394         * modules/unilbrk/u32-width-linebreaks: New file.
48395         * modules/unilbrk/ulc-width-linebreaks: New file.
48396         * lib/linebreak.h: Remove file.
48397         * lib/linebreak.c: Remove file.
48398         * m4/linebreak.m4: Remove file.
48399         * modules/linebreak: Remove file.
48400         * NEWS: Mention the changes.
48401
48402 2008-05-09  Eric Blake  <ebb9@byu.net>
48403
48404         Add xmemdup0.
48405         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
48406         implementation.
48407         * lib/xmalloc.c (xmemdup0): New C implementation.
48408
48409 2008-05-08  Bruno Haible  <bruno@clisp.org>
48410
48411         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
48412
48413 2008-05-07  Eric Blake  <ebb9@byu.net>
48414
48415         Support cross-compilation of <wctype.h>.
48416         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
48417         AC_CACHE_CHECK.
48418
48419 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
48420
48421         * build-aux/vc-list-files: Add support for bzr.
48422
48423 2008-05-03  Jim Meyering  <meyering@redhat.com>
48424
48425         avoid failed assertion with tight malloc
48426         * tests/test-getndelim2.c: Correct an off-by-one assertion.
48427
48428 2008-05-03  Simon Josefsson  <simon@josefsson.org>
48429
48430         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
48431         are needed from arpa/inet.h.
48432         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
48433         Reported by Bruno Haible.
48434
48435 2008-05-02  Jim Meyering  <meyering@redhat.com>
48436
48437         avoid compilation error on FreeBSD 6
48438         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
48439
48440 2008-05-01  Jim Meyering  <meyering@redhat.com>
48441
48442         useless-if-before-free: correct --help's exit status description
48443         * build-aux/useless-if-before-free (usage): Like grep, exit 0
48444         for one or more matches, etc.  Reported by Bruno Haible.
48445
48446         vc-list-files: make the stand-alone gnulib test work
48447         * modules/vc-list-files-tests (configure.ac):
48448         Define and AC_SUBST abs_aux_dir.
48449         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
48450         $(abs_top_srcdir) to each script and having each of them
48451         duplicate the work of setting PATH, set PATH here, using
48452         the new variable, abs_aux_dir instead.
48453         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
48454         * tests/test-vc-list-files-git.sh: Likewise.
48455         Reported by Bruno Haible.
48456
48457 2008-05-01  Bruno Haible  <bruno@clisp.org>
48458
48459         * lib/getndelim2.c (getndelim2): Fix newsize computation during
48460         reallocation. Rename 'done' to 'found_delimiter'.
48461
48462 2008-05-01  Jim Meyering  <meyering@redhat.com>
48463
48464         vc-list-files: accommodate /bin/sh like the one from Solaris 10
48465         * build-aux/vc-list-files: Use `...`, not $(...).
48466
48467 2008-04-30  Jim Meyering  <meyering@redhat.com>
48468
48469         add tests for vc-list-files
48470         * modules/vc-list-files-tests: New module.
48471         * tests/test-vc-list-files-cvs.sh: New file.
48472         * tests/test-vc-list-files-git.sh: New file.
48473
48474         avoid a warning from gcc
48475         * lib/getndelim2.c (IF_LINT): Define.
48476         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
48477
48478         vc-list-files: work properly with build-aux/cvsu, too
48479         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
48480         to all cvs-based clauses.
48481
48482         vc-list-files: work properly in the CVS+awk case, too
48483         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
48484
48485         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
48486         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
48487         take more than one file argument, so .  Add quotes, just in case $dir
48488         ever contains a shell meta-character.  Prompted by Soren Hansen in
48489         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
48490
48491 2008-04-29  Eric Blake  <ebb9@byu.net>
48492
48493         Optimize getndelim2 to use block operations when possible.
48494         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
48495         freadseek, and memchr2.
48496         * lib/getndelim2.c (getndelim2): Use them for block reads.
48497
48498 2008-04-29  Bruno Haible  <bruno@clisp.org>
48499
48500         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
48501         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
48502         * modules/inet_ntop (Depends-on): Add extensions.
48503         * modules/inet_pton (Depends-on): Likewise.
48504         Reported by Simon Josefsson.
48505
48506 2008-04-29  Jim Meyering  <meyering@redhat.com>
48507
48508         When the is more than one match in a block, match all of them.
48509         * build-aux/useless-if-before-free: Iterate through each block
48510         until there are no more matches.
48511
48512         Fix broken useless-if-before-free script.
48513         * build-aux/useless-if-before-free: Fix typo: missing "?" after
48514         the expression to match cast of argument to free-like function.
48515
48516 2008-04-29  Eric Blake  <ebb9@byu.net>
48517
48518         Use new header.
48519         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
48520
48521 2008-04-29  Jim Meyering  <meyering@redhat.com>
48522
48523         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
48524         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
48525         by gnulib to exist and to declare e.g., inet_ntop.
48526         Don't include "inet_ntop.h", now removed.
48527
48528         * m4/arpa_inet_h.m4: Remove trailing blanks.
48529
48530 2008-04-29  Eric Blake  <ebb9@byu.net>
48531
48532         Silence valgrind on safe reads beyond potential array bounds.
48533         * lib/rawmemchr.valgrind: New file.
48534         * lib/strchrnul.valgrind: Likewise.
48535         * modules/rawmemchr (Files): Distribute new file.
48536         * modules/strchrnul (Files): Likewise.
48537         Suggested by Bruno Haible.
48538
48539 2008-04-29  Bruno Haible  <bruno@clisp.org>
48540
48541         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
48542         (inet_ntop, inet_pton): Change portability warning's wording.
48543         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
48544         Invoke gl_CHECK_NEXT_HEADERS.
48545         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
48546         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
48547         set ARPA_INET_H.
48548         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
48549         * modules/arpa_inet (Description): No longer only for systems that
48550         lack it.
48551         (Depends-on): Add include_next.
48552         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
48553         HAVE_ARPA_INET_H.
48554
48555 2008-04-29  Jim Meyering  <meyering@redhat.com>
48556
48557         * modules/mkdir (License): Re-license as LGPLv2+.
48558
48559 2008-04-29  Bruno Haible  <bruno@clisp.org>
48560
48561         * modules/rawmemchr (Maintainer): Set to Eric.
48562         * modules/strchrnul (Maintainer): Likewise.
48563
48564 2008-04-29  Simon Josefsson  <simon@josefsson.org>
48565
48566         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
48567         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
48568
48569         * modules/arpa_inet (arpa/inet.h): Use them.
48570
48571 2008-04-28  Eric Blake  <ebb9@byu.net>
48572
48573         Test getndelim2.
48574         * modules/getndelim2-tests: New file.
48575         * tests/test-getndelim2.c: Likewise.
48576         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
48577         stream.
48578         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
48579
48580         * MODULES.html.sh: Document new module.
48581
48582 2008-04-20  Bruno Haible  <bruno@clisp.org>
48583
48584         * lib/c-stack.c (die): Use raise.
48585         * modules/c-stack (Depends-on): Add raise.
48586
48587 2008-04-28  Bruno Haible  <bruno@clisp.org>
48588
48589         Expect rpmatch to be declared.
48590         * lib/yesno.c (rpmatch): Remove declaration.
48591
48592         Declare rpmatch.
48593         * lib/stdlib.in.h (rpmatch): New declaration.
48594         * lib/rpmatch.c: Include <stdlib.h> first.
48595         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
48596         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
48597         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
48598         HAVE_RPMATCH.
48599         * modules/rpmatch (Depends-on): Add stdlib, extensions.
48600         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
48601         (Include): Set to <stdlib.h>.
48602         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
48603         HAVE_RPMATCH.
48604         * NEWS: Document the change.
48605
48606 2008-04-28  Bruno Haible  <bruno@clisp.org>
48607
48608         Change rpmatch to use nl_langinfo when appropriate.
48609         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
48610         (N_): New macro.
48611         (localized_pattern): New function/macro.
48612         (try): Remove match, nomatch arguments. Copy the pattern into safe
48613         memory before caching it.
48614         (rpmatch): Use localized_pattern. Add translator comments.
48615         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
48616         Suggested by Eric Blake.
48617         * modules/rpmatch (Depends-on): Add stdbool.
48618
48619 2008-04-28  Eric Blake  <ebb9@byu.net>
48620
48621         Add rawmemchr module, matching glibc.
48622         * modules/string (Makefile.am): New indicator.
48623         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
48624         * lib/string.in.h (rawmemchr): Declare when appropriate.
48625         * modules/rawmemchr: New file.
48626         * m4/rawmemchr.m4: Likewise.
48627         * lib/rawmemchr.c: Likewise.
48628         * modules/rawmemchr-tests: Likewise.
48629         * tests/test-rawmemchr.c: Likewise.
48630         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
48631         module.
48632         * modules/strchrnul (Depends-on): Add rawmemchr.
48633         * lib/strchrnul.c (strchrnul): Optimize a corner case.
48634
48635         Whitespace cleanup.
48636         * tests/test-strchrnul.c: Reindent.
48637         * lib/strchrnul.c: Likewise.
48638
48639         Optimize and test strchrnul.
48640         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
48641         * modules/strchrnul-tests: New file.
48642         * tests/test-strchrnul.c: Likewise.
48643
48644         Remove intprops dependency.
48645         * modules/memchr (Depends-on): Remove intprops.
48646         * modules/memrchr (Depends-on): Likewise.
48647         * modules/memchr2 (Depends-on): Likewise.
48648         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
48649         * lib/memrchr.c (__memrchr): Likewise.
48650         * lib/memrchr2.c (memchr2): Likewise.
48651         Reported by Simon Josefsson.
48652
48653 2008-04-28  Simon Josefsson  <simon@josefsson.org>
48654
48655         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
48656         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48657
48658 2008-04-28  Simon Josefsson  <simon@josefsson.org>
48659
48660         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
48661
48662         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
48663
48664         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
48665
48666         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
48667         declarations.
48668         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
48669
48670         * m4/inet_pton.m4: Don't check for header files.
48671
48672         * m4/inet_ntop.m4: Don't check for header files.
48673
48674 2008-04-28  Simon Josefsson  <simon@josefsson.org>
48675
48676         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
48677         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
48678         trigger for cygwin).
48679         Reported by Bruno Haible  <bruno@clisp.org>.
48680
48681 2008-04-28  Bruno Haible  <bruno@clisp.org>
48682
48683         * doc/posix-functions/strdup.texi: Mention mingw problem.
48684
48685 2008-04-27  Bruno Haible  <bruno@clisp.org>
48686
48687         * modules/stat-time-tests (Depends-on): Add sleep.
48688         * tests/test-stat-time.c (force_unlink): New function.
48689         (cleanup): Use it.
48690         (test_mtime): Remove the ctime related tests.
48691         (test_ctime): New function, containing the ctime related tests.
48692         (main): Call test_ctime, except on native Windows platforms.
48693
48694 2008-04-27  Bruno Haible  <bruno@clisp.org>
48695
48696         * lib/rpmatch.c (rpmatch): Add some comments.
48697         Reported by James Youngman <jay@gnu.org>.
48698
48699 2008-04-27  Bruno Haible  <bruno@clisp.org>
48700
48701         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
48702         quiet NaNs.
48703
48704 2008-04-27  Bruno Haible  <bruno@clisp.org>
48705
48706         Make test-yesno.sh work on mingw.
48707         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
48708         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
48709         (main): Set stdin to binary mode.
48710         * modules/yesno-tests (Depends-on): Add binary-io.
48711
48712 2008-04-27  Bruno Haible  <bruno@clisp.org>
48713
48714         Fix 'isfinite' on x86, x86_64, ia64 platforms.
48715         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
48716         argument that lie outside the IEEE 854 domain.
48717         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
48718         (gl_ISFINITE): Use it.
48719         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
48720
48721 2008-04-27  Bruno Haible  <bruno@clisp.org>
48722
48723         Allow local renaming in config.h.
48724         * lib/memrchr.c (memrchr): Don't undefine outside libc.
48725
48726 2008-04-27  Bruno Haible  <bruno@clisp.org>
48727
48728         * lib/memchr.c (__memchr): Change type of 'i'.
48729         * lib/memchr2.c (memchr2): Likewise.
48730
48731 2008-04-26  Eric Blake  <ebb9@byu.net>
48732         and Bruno Haible  <bruno@clisp.org>
48733
48734         Optimize and test memrchr.
48735         * modules/memrchr (Depends-on): Add intprops.
48736         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
48737         * modules/memrchr-tests: New file.
48738         * tests/test-memrchr.c: New file.
48739
48740 2008-04-26  Bruno Haible  <bruno@clisp.org>
48741
48742         Add tentative support for DragonFly BSD.
48743         * lib/stdio-impl.h: Add macros for DragonFly BSD.
48744         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
48745         fp.
48746         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
48747         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
48748         * lib/fpurge.c (fpurge): Likewise.
48749         * lib/freadable.c (freaadable): Likewise.
48750         * lib/freadahead.c (freadahead): Likewise.
48751         * lib/freading.c (freading): Likewise.
48752         * lib/freadptr.c (freadptr): Likewise.
48753         * lib/freadseek.c (freadptrinc): Likewise.
48754         * lib/fseeko.c (fseeko): Likewise.
48755         * lib/fseterr.c (fseterr): Likewise.
48756         * lib/fwritable.c (fwritable): Likewise.
48757         * lib/fwriting.c (fwriting): Likewise.
48758
48759 2008-04-26  Bruno Haible  <bruno@clisp.org>
48760
48761         * lib/stdio-impl.h: New file.
48762         * lib/fbufmode.c: Include stdio-impl.h.
48763         (fbufmode): Use fp_, remove redundant #defines.
48764         * lib/fflush.c: Include stdio-impl.h.
48765         (clear_ungetc_buffer): Remove redundant #defines.
48766         * lib/fpurge.c: Include stdio-impl.h.
48767         (fpurge): Remove redundant #defines.
48768         * lib/freadable.c: Include stdio-impl.h.
48769         (freadable): Remove redundant #defines.
48770         * lib/freadahead.c: Include stdio-impl.h.
48771         (freadahead): Remove redundant #defines.
48772         * lib/freading.c: Include stdio-impl.h.
48773         (freading): Remove redundant #defines.
48774         * lib/freadptr.c: Include stdio-impl.h.
48775         (freadptr): Remove redundant #defines.
48776         * lib/freadseek.c: Include stdio-impl.h.
48777         (freadptrinc): Remove redundant #defines.
48778         * lib/fseeko.c: Include stdio-impl.h.
48779         (rpl_fseeko): Remove redundant #defines.
48780         * lib/fseterr.c: Include stdio-impl.h.
48781         (fseterr): Remove redundant #defines.
48782         * lib/fwritable.c: Include stdio-impl.h.
48783         (fwritable: Remove redundant #defines.
48784         * lib/fwriting.c: Include stdio-impl.h.
48785         (fwriting): Remove redundant #defines.
48786         * modules/fbufmode (Files): Add lib/stdio-impl.h.
48787         * modules/fflush (Files): Likewise.
48788         * modules/fpurge (Files): Likewise.
48789         * modules/freadable (Files): Likewise.
48790         * modules/freadahead (Files): Likewise.
48791         * modules/freading (Files): Likewise.
48792         * modules/freadptr (Files): Likewise.
48793         * modules/freadseek (Files): Likewise.
48794         * modules/fseeko (Files): Likewise.
48795         * modules/fseterr (Files): Likewise.
48796         * modules/fwritable (Files): Likewise.
48797         * modules/fwriting (Files): Likewise.
48798
48799 2008-04-26  Bruno Haible  <bruno@clisp.org>
48800
48801         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
48802         restore_seek_optimization, update_fpos_cache): New functions, extracted
48803         from rpl_fflush.
48804         (rpl_fflush): Use them.
48805         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
48806         (gl_REPLACE_FFLUSH): Use it.
48807
48808 2008-04-26  Bruno Haible  <bruno@clisp.org>
48809
48810         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
48811         on Solaris.
48812         * tests/test-xstrtoimax.sh: Likewise.
48813         * tests/test-xstrtoumax.sh: Likewise.
48814         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48815
48816 2008-04-26  Bruno Haible  <bruno@clisp.org>
48817
48818         * modules/memchr-tests: New file.
48819         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
48820
48821 2008-04-26  Eric Blake  <ebb9@byu.net>
48822             Bruno Haible  <bruno@clisp.org>
48823
48824         * lib/memchr.c: Include intprops.h.
48825         (__memchr): Optimize parallel detection of matching bytes. Rename local
48826         variables. Add explanatory comments.
48827
48828 2008-04-26  Bruno Haible  <bruno@clisp.org>
48829
48830         Fix module 'memchr', broken since 2000-10-28.
48831         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
48832
48833 2008-04-26  Bruno Haible  <bruno@clisp.org>
48834
48835         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
48836         comments.
48837
48838 2008-04-25  Eric Blake  <ebb9@byu.net>
48839
48840         Use native fstatat on cygwin 1.7.0.
48841         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
48842         first.
48843
48844 2008-04-23  Eric Blake  <ebb9@byu.net>
48845
48846         Improve memchr2 performance.
48847         * lib/memchr2.c (memchr2): Further optimize parallel detection of
48848         NUL bytes.
48849         * modules/memchr2 (Depends-on): Use intprops.h.
48850
48851 2008-04-23  Simon Josefsson  <simon@josefsson.org>
48852
48853         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
48854         an inline function instead of a CPP macro.  Patch by Ben Pfaff
48855         <blp@cs.stanford.edu>.
48856
48857 2008-04-23  Simon Josefsson  <simon@josefsson.org>
48858
48859         * lib/arpa_inet.in.h: New file.
48860
48861         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
48862         (Makefile.am): Sed in substitute header file.
48863
48864         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
48865         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
48866
48867         * modules/inet_ntop (configure.ac): Use
48868         gl_ARPA_INET_MODULE_INDICATOR.
48869
48870         * modules/inet_pton (configure.ac): Use
48871         gl_ARPA_INET_MODULE_INDICATOR.
48872
48873 2008-04-22  Jim Meyering  <meyering@redhat.com>
48874
48875         * modules/verify (License): Re-license as LGPLv2+.
48876
48877 2008-04-22  Simon Josefsson  <simon@josefsson.org>
48878
48879         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
48880         parameter to void* as per POSIX standard (MinGW uses char*).
48881
48882 2008-04-21  Bruno Haible  <bruno@clisp.org>
48883
48884         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
48885         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
48886         Define to replacements if REPLACE_ISWCNTRL is 1.
48887         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
48888         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
48889         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
48890         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
48891         what it fixes.
48892         * doc/posix-functions/iswalpha.texi: Likewise.
48893         * doc/posix-functions/iswblank.texi: Likewise.
48894         * doc/posix-functions/iswcntrl.texi: Likewise.
48895         * doc/posix-functions/iswdigit.texi: Likewise.
48896         * doc/posix-functions/iswgraph.texi: Likewise.
48897         * doc/posix-functions/iswlower.texi: Likewise.
48898         * doc/posix-functions/iswprint.texi: Likewise.
48899         * doc/posix-functions/iswpunct.texi: Likewise.
48900         * doc/posix-functions/iswspace.texi: Likewise.
48901         * doc/posix-functions/iswupper.texi: Likewise.
48902         * doc/posix-functions/iswxdigit.texi: Likewise.
48903         Reported by Alain Guibert.
48904
48905 2008-04-21  Bruno Haible  <bruno@clisp.org>
48906
48907         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
48908         Patch by Alain Guibert.
48909
48910 2008-04-21  Bruno Haible  <bruno@clisp.org>
48911
48912         Fix test failures on mingw.
48913         * tests/test-xstrtol.c (print_no_progname): New function.
48914         (main): Install it in error_print_progname hook.
48915         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
48916         * tests/test-xstrtoimax.sh: Likewise.
48917         * tests/test-xstrtoumax.sh: Likewise.
48918
48919 2008-04-21  Bruno Haible  <bruno@clisp.org>
48920
48921         Fix test failure on mingw.
48922         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
48923
48924 2008-04-21  Bruno Haible  <bruno@clisp.org>
48925
48926         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
48927         Actually assign a value.
48928
48929 2008-04-20  Bruno Haible  <bruno@clisp.org>
48930
48931         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
48932         take 2.
48933         * lib/canonicalize.c (canonicalize_file_name): Elide if the
48934         'canonicalize-lgpl' module is also used.
48935         * lib/canonicalize-lgpl.c: Undo last change.
48936         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
48937
48938 2008-04-20  Bruno Haible  <bruno@clisp.org>
48939
48940         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
48941         config.h. Provide _mkdir based fallback for mingw.
48942         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
48943         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
48944         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
48945         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
48946         rather than defining mkdir in config.h.
48947         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
48948         (gl_SYS_STAT_H_DEFAULTS): New macro.
48949         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
48950         HAVE_IO_H any more.
48951         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
48952         HAVE_DECL_MKDIR and HAVE_IO_H.
48953
48954 2008-04-20  Bruno Haible  <bruno@clisp.org>
48955
48956         * lib/isapipe.c: Port to native Windows platforms.
48957
48958 2008-04-20  Bruno Haible  <bruno@clisp.org>
48959
48960         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
48961
48962 2008-04-21  Eric Blake  <ebb9@byu.net>
48963
48964         Work around preprocessors that don't handle UINTMAX_MAX.
48965         * lib/memchr2.c (memchr2): Avoid embedded #if.
48966         Reported by Alain Guibert, fix suggested by Bruno Haible.
48967
48968 2008-04-21  Simon Josefsson  <simon@josefsson.org>
48969
48970         * doc/posix-functions/strftime.texi (strftime): Explain better
48971         Windows incompatibility.  Suggested by Micah Cowan
48972         <micah@cowan.name>.
48973
48974 2008-04-20  Bruno Haible  <bruno@clisp.org>
48975
48976         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
48977         unistr/u8-mblen.
48978
48979 2008-04-20  Bruno Haible  <bruno@clisp.org>
48980
48981         Fix test failure on platforms with non-GNU iconv.
48982         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
48983         (U_TO_U8): Use it, rather than u16_to_u8.
48984         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
48985         units at the end of the input string.
48986         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
48987
48988 2008-04-20  Bruno Haible  <bruno@clisp.org>
48989
48990         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
48991         when the resulting length is 0.
48992         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
48993
48994 2008-04-20  Bruno Haible  <bruno@clisp.org>
48995
48996         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
48997         works.
48998         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
48999
49000 2008-04-20  Bruno Haible  <bruno@clisp.org>
49001
49002         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
49003         * modules/tsearch-tests (configure.ac): Test for initstate function.
49004
49005 2008-04-20  Bruno Haible  <bruno@clisp.org>
49006
49007         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
49008         for nlink_t if missing.
49009         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
49010
49011 2008-04-19  Bruno Haible  <bruno@clisp.org>
49012
49013         Work around snprintf bug on Linux libc5.
49014         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
49015         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
49016         gl_SNPRINTF_SIZE1.
49017         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49018         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
49019         that test failed.
49020         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
49021         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
49022         * modules/snprintf (Files): Add m4/printf.m4.
49023         * modules/vsnprintf (Files): Likewise.
49024         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
49025         * doc/posix-functions/vsnprintf.texi: Likewise.
49026
49027 2008-04-19  Bruno Haible  <bruno@clisp.org>
49028
49029         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
49030         from 0.0058 to less than 10^-7.
49031
49032 2008-04-19  Bruno Haible  <bruno@clisp.org>
49033
49034         Fix rounding when a precision is given.
49035         * lib/vasnprintf.c (is_borderline): New function.
49036         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
49037         9...9x.
49038         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
49039         %e, %g.
49040         * tests/test-vasprintf-posix.c (test_function): Likewise.
49041         * tests/test-snprintf-posix.h (test_function): Likewise.
49042         * tests/test-sprintf-posix.h (test_function): Likewise.
49043         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
49044         * tests/test-printf-posix.h (test_function): Likewise.
49045         * tests/test-printf-posix.output: Update.
49046         Reported by John Darrington <john@darrington.wattle.id.au> via
49047         Ben Pfaff <blp@cs.stanford.edu>.
49048
49049 2008-04-18  Simon Josefsson  <simon@josefsson.org>
49050
49051         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
49052         Suggested by Bruno Haible <bruno@clisp.org>.
49053
49054 2008-04-17  Bruno Haible  <bruno@clisp.org>
49055
49056         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
49057         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
49058         implementation.
49059         Patch by Bruce Merry <bmerry@gmail.com>.
49060
49061 2008-04-17  Simon Josefsson  <simon@josefsson.org>
49062
49063         * doc/posix-functions/strftime.texi (strftime): Mention that %e
49064         doesn't work under Windows.
49065
49066 2008-04-16  Bruno Haible  <bruno@clisp.org>
49067
49068         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
49069         New macros.
49070         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
49071         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
49072         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
49073         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
49074         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
49075         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
49076         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
49077         macros.
49078         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
49079         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
49080         Northern Sotho, Uighur.
49081
49082 2008-04-16  Bruno Haible  <bruno@clisp.org>
49083
49084         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
49085         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
49086         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
49087         Reported by Daniel Bergström <daniel@octocode.com>.
49088
49089 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
49090             Bruno Haible  <bruno@clisp.org>
49091
49092         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
49093         function.
49094         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
49095         New functions, mostly extracted from gl_locale_name_default.
49096         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
49097
49098 2008-04-16  Eric Blake  <ebb9@byu.net>
49099
49100         Adjust strtod detection to catch glibc 2.7 bug.
49101         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
49102         Reported by John Gatewood Ham.
49103
49104 2008-04-16  Bruno Haible  <bruno@clisp.org>
49105
49106         Add tentative support for Linux libc5.
49107         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
49108         * lib/fpurge.c (fpurge): Likewise.
49109         * lib/freadable.c (freadable): Likewise.
49110         * lib/freadahead.c (freadahead): Likewise.
49111         * lib/freading.c (freading): Likewise.
49112         * lib/freadptr.c (freadptr): Likewise.
49113         * lib/freadseek.c (freadptrinc): Likewise.
49114         * lib/fseeko.c (rpl_fseeko): Likewise.
49115         * lib/fseterr.c (fseterr): Likewise.
49116         * lib/fwritable.c (fwritable): Likewise.
49117         * lib/fwriting.c (fwriting): Likewise.
49118         Reported by Alain Guibert <alguibert+bts@free.fr>.
49119
49120 2008-04-15  Bruno Haible  <bruno@clisp.org>
49121
49122         * modules/mathl (configure.ac): Define module indicator.
49123
49124 2008-04-15  Bruno Haible  <bruno@clisp.org>
49125
49126         * lib/logl.c (logl): Remove unused variables.
49127
49128 2008-04-15  Bruno Haible  <bruno@clisp.org>
49129
49130         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
49131         fails.
49132
49133 2008-04-15  Bruno Haible  <bruno@clisp.org>
49134
49135         * lib/trim.c (trim2): Fix argument of isspace() macro.
49136
49137 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
49138
49139         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
49140         to 0.
49141         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
49142
49143 2008-04-14  Bruno Haible  <bruno@clisp.org>
49144
49145         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
49146         AC_LANG_PROGRAM argument.
49147         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
49148         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
49149         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
49150         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
49151         * m4/math_h.m4 (gl_MATH_H): Likewise.
49152         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
49153         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
49154         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
49155         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
49156         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
49157         * m4/regex.m4 (gl_REGEX): Likewise.
49158         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
49159         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
49160         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49161         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
49162         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
49163         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
49164         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
49165         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
49166
49167 2008-04-14  Jim Meyering  <meyering@redhat.com>
49168
49169         test-strtod: fix typos: s/abs/fabs/
49170         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
49171
49172 2008-04-13  Bruno Haible  <bruno@clisp.org>
49173
49174         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
49175         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
49176         module is also used and while not building the reloc-wrapper.
49177
49178 2008-04-13  Bruno Haible  <bruno@clisp.org>
49179
49180         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
49181
49182 2008-04-13  Bruno Haible  <bruno@clisp.org>
49183
49184         Fix AIX compilation failure introduced on 2008-04-02.
49185         * tests/test-frexp.c (exp): Undefine before redefining.
49186         * tests/test-frexpl.c (exp): Likewise.
49187
49188 2008-04-13  Bruno Haible  <bruno@clisp.org>
49189
49190         Work around a HP-UX stdio bug.
49191         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
49192         * tests/test-ftello.c (main): Likewise.
49193         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
49194         * doc/posix-functions/ftello.texi: Likewise.
49195
49196 2008-04-13  Bruno Haible  <bruno@clisp.org>
49197
49198         Make test-signbit pass on HP-UX/hppa.
49199         * tests/test-signbit.c (minus_zerol): New variable.
49200         (test_signbitl): Use it.
49201
49202 2008-04-13  Bruno Haible  <bruno@clisp.org>
49203
49204         Make truncl work on OSF/1 4.0.
49205         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
49206         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
49207         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
49208         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
49209         HAVE_DECL_TRUNCL.
49210         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
49211         HAVE_DECL_TRUNCL.
49212         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
49213
49214 2008-04-13  Bruno Haible  <bruno@clisp.org>
49215
49216         * lib/unictype.h: Remove trailing comma from enumeration definitions.
49217
49218 2008-04-13  Bruno Haible  <bruno@clisp.org>
49219
49220         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
49221         expression, so as to avoid HP-UX 11 cc compiler bug.
49222
49223 2008-04-13  Bruno Haible  <bruno@clisp.org>
49224
49225         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
49226
49227 2008-04-13  Bruno Haible  <bruno@clisp.org>
49228
49229         * lib/git-merge-changelog.c: Remove empty declaration outside of
49230         functions.
49231
49232 2008-04-13  Bruno Haible  <bruno@clisp.org>
49233
49234         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
49235
49236 2008-04-13  Bruno Haible  <bruno@clisp.org>
49237
49238         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
49239         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
49240         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
49241         also if it exists but lacks definitions of the SHUT_* macros.
49242         * modules/sys_socket (Description): Update.
49243         Reported by Elbert Pol <e.pol@chello.nl>.
49244
49245 2008-04-13  Bruno Haible  <bruno@clisp.org>
49246
49247         * lib/localcharset.c (OS2): Don't redefine if already defined.
49248         Reported by Elbert Pol <e.pol@chello.nl>.
49249
49250 2008-04-13  Bruno Haible  <bruno@clisp.org>
49251
49252         * lib/binary-io.h [__EMX__]: Include <io.h>.
49253         Reported by Elbert Pol <e.pol@chello.nl>.
49254
49255 2008-04-12  Bruno Haible  <bruno@clisp.org>
49256
49257         * lib/fpucw.h: Enable the definitions also for x86_64.
49258         Needed for NetBSD/x86_64.
49259         Reported by Thomas Klausner <tk@giga.or.at>.
49260
49261 2008-04-12  Bruno Haible  <bruno@clisp.org>
49262
49263         * tests/test-strtod.c: Include isnand.h.
49264         (main): Use isnand instead of isnan.
49265         Reported by Jim Meyering.
49266
49267 2008-04-12  Bruno Haible  <bruno@clisp.org>
49268
49269         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
49270         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
49271
49272 2008-04-12  Jim Meyering  <meyering@redhat.com>
49273
49274         * m4/math_h.m4 (gl_MATH_H): Fix typos.
49275
49276 2008-04-12  Bruno Haible  <bruno@clisp.org>
49277
49278         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
49279         Reported by Elbert Pol <e.pol@chello.nl>.
49280
49281 2008-04-12  Eric Blake  <ebb9@byu.net>
49282
49283         Work around Solaris 10 math.h bug.
49284         * m4/math_h.m4 (gl_MATH_H): Check for bug.
49285         (gl_MATH_H_DEFAULTS): Set up default.
49286         * modules/math (Makefile.am): Replace new indicators.
49287         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
49288         * tests/test-math.c (main): Test this.
49289         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
49290         * doc/posix-headers/math.texi (math.h): Mention bug.
49291         Reported by Nelson H. F. Beebe and Jim Meyering.
49292
49293 2008-04-11  Bruno Haible  <bruno@clisp.org>
49294
49295         Adapt to future versions of Apple GCC.
49296         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
49297         Reported by Peter O'Gorman <peter@pogma.com>.
49298
49299 2008-04-11  Bruno Haible  <bruno@clisp.org>
49300
49301         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
49302
49303 2008-04-11  Bruno Haible  <bruno@clisp.org>
49304
49305         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
49306
49307         * modules/getaddrinfo-tests (Makefile.am): Define
49308         test_getaddrinfo_LDADD.
49309
49310 2008-04-11  Bruno Haible  <bruno@clisp.org>
49311
49312         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
49313         (init): Fix syntax error.
49314         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
49315         is declared.
49316
49317 2008-04-11  Bruno Haible  <bruno@clisp.org>
49318
49319         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
49320         * modules/glob (Depends-on): Add stdbool.
49321
49322 2008-04-11  Bruno Haible  <bruno@clisp.org>
49323
49324         * lib/trim.c: Include <string.h>.
49325
49326 2008-04-11  Eric Blake  <ebb9@byu.net>
49327
49328         Avoid compile failure on OS/2.
49329         * lib/regex_internal.h (internal_function): Disable optimization
49330         on OS/2 (__EMX__), where it caused compiler error.
49331         Reported by Elbert Pol.
49332
49333 2008-04-11  Bruno Haible  <bruno@clisp.org>
49334
49335         Flush the standard error stream before aborting. Needed on mingw.
49336         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
49337         * tests/test-array_list.c (ASSERT): Likewise.
49338         * tests/test-array_oset.c (ASSERT): Likewise.
49339         * tests/test-avltree_list.c (ASSERT): Likewise.
49340         * tests/test-avltree_oset.c (ASSERT): Likewise.
49341         * tests/test-avltreehash_list.c (ASSERT): Likewise.
49342         * tests/test-binary-io.c (ASSERT): Likewise.
49343         * tests/test-byteswap.c (ASSERT): Likewise.
49344         * tests/test-c-ctype.c (ASSERT): Likewise.
49345         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
49346         * tests/test-c-strcasestr.c (ASSERT): Likewise.
49347         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
49348         * tests/test-c-strstr.c (ASSERT): Likewise.
49349         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
49350         * tests/test-canonicalize.c (ASSERT): Likewise.
49351         * tests/test-carray_list.c (ASSERT): Likewise.
49352         * tests/test-ceilf1.c (ASSERT): Likewise.
49353         * tests/test-ceilf2.c (ASSERT): Likewise.
49354         * tests/test-ceill.c (ASSERT): Likewise.
49355         * tests/test-count-one-bits.c (ASSERT): Likewise.
49356         * tests/test-fbufmode.c (ASSERT): Likewise.
49357         * tests/test-fflush2.c (ASSERT): Likewise.
49358         * tests/test-floorf1.c (ASSERT): Likewise.
49359         * tests/test-floorf2.c (ASSERT): Likewise.
49360         * tests/test-floorl.c (ASSERT): Likewise.
49361         * tests/test-fopen.c (ASSERT): Likewise.
49362         * tests/test-fpending.c (ASSERT): Likewise.
49363         * tests/test-fprintf-posix.c (ASSERT): Likewise.
49364         * tests/test-fpurge.c (ASSERT): Likewise.
49365         * tests/test-freadable.c (ASSERT): Likewise.
49366         * tests/test-freadahead.c (ASSERT): Likewise.
49367         * tests/test-freading.c (ASSERT): Likewise.
49368         * tests/test-freadptr.c (ASSERT): Likewise.
49369         * tests/test-freadptr2.c (ASSERT): Likewise.
49370         * tests/test-freadseek.c (ASSERT): Likewise.
49371         * tests/test-freopen.c (ASSERT): Likewise.
49372         * tests/test-frexp.c (ASSERT): Likewise.
49373         * tests/test-frexpl.c (ASSERT): Likewise.
49374         * tests/test-fseek.c (ASSERT): Likewise.
49375         * tests/test-fseeko.c (ASSERT): Likewise.
49376         * tests/test-fstrcmp.c (ASSERT): Likewise.
49377         * tests/test-ftell.c (ASSERT): Likewise.
49378         * tests/test-ftello.c (ASSERT): Likewise.
49379         * tests/test-func.c (ASSERT): Likewise.
49380         * tests/test-fwritable.c (ASSERT): Likewise.
49381         * tests/test-fwriting.c (ASSERT): Likewise.
49382         * tests/test-getdelim.c (ASSERT): Likewise.
49383         * tests/test-getline.c (ASSERT): Likewise.
49384         * tests/test-i-ring.c (ASSERT): Likewise.
49385         * tests/test-iconv-utf.c (ASSERT): Likewise.
49386         * tests/test-iconv.c (ASSERT): Likewise.
49387         * tests/test-isfinite.c (ASSERT): Likewise.
49388         * tests/test-isnand.c (ASSERT): Likewise.
49389         * tests/test-isnanf.c (ASSERT): Likewise.
49390         * tests/test-isnanl.h (ASSERT): Likewise.
49391         * tests/test-ldexpl.c (ASSERT): Likewise.
49392         * tests/test-linked_list.c (ASSERT): Likewise.
49393         * tests/test-linkedhash_list.c (ASSERT): Likewise.
49394         * tests/test-localename.c (ASSERT): Likewise.
49395         * tests/test-lseek.c (ASSERT): Likewise.
49396         * tests/test-mbscasecmp.c (ASSERT): Likewise.
49397         * tests/test-mbscasestr1.c (ASSERT): Likewise.
49398         * tests/test-mbscasestr2.c (ASSERT): Likewise.
49399         * tests/test-mbscasestr3.c (ASSERT): Likewise.
49400         * tests/test-mbscasestr4.c (ASSERT): Likewise.
49401         * tests/test-mbschr.c (ASSERT): Likewise.
49402         * tests/test-mbscspn.c (ASSERT): Likewise.
49403         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
49404         * tests/test-mbspbrk.c (ASSERT): Likewise.
49405         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
49406         * tests/test-mbsrchr.c (ASSERT): Likewise.
49407         * tests/test-mbsspn.c (ASSERT): Likewise.
49408         * tests/test-mbsstr1.c (ASSERT): Likewise.
49409         * tests/test-mbsstr2.c (ASSERT): Likewise.
49410         * tests/test-mbsstr3.c (ASSERT): Likewise.
49411         * tests/test-memchr2.c (ASSERT): Likewise.
49412         * tests/test-memmem.c (ASSERT): Likewise.
49413         * tests/test-open.c (ASSERT): Likewise.
49414         * tests/test-printf-frexp.c (ASSERT): Likewise.
49415         * tests/test-printf-frexpl.c (ASSERT): Likewise.
49416         * tests/test-printf-posix.c (ASSERT): Likewise.
49417         * tests/test-quotearg.c (ASSERT): Likewise.
49418         * tests/test-rbtree_list.c (ASSERT): Likewise.
49419         * tests/test-rbtree_oset.c (ASSERT): Likewise.
49420         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
49421         * tests/test-round1.c (ASSERT): Likewise.
49422         * tests/test-roundf1.c (ASSERT): Likewise.
49423         * tests/test-roundl.c (ASSERT): Likewise.
49424         * tests/test-signbit.c (ASSERT): Likewise.
49425         * tests/test-sleep.c (ASSERT): Likewise.
49426         * tests/test-snprintf-posix.c (ASSERT): Likewise.
49427         * tests/test-snprintf.c (ASSERT): Likewise.
49428         * tests/test-sprintf-posix.c (ASSERT): Likewise.
49429         * tests/test-stat-time.c (ASSERT): Likewise.
49430         * tests/test-strcasestr.c (ASSERT): Likewise.
49431         * tests/test-strerror.c (ASSERT): Likewise.
49432         * tests/test-striconv.c (ASSERT): Likewise.
49433         * tests/test-striconveh.c (ASSERT): Likewise.
49434         * tests/test-striconveha.c (ASSERT): Likewise.
49435         * tests/test-strsignal.c (ASSERT): Likewise.
49436         * tests/test-strstr.c (ASSERT): Likewise.
49437         * tests/test-strtod.c (ASSERT): Likewise.
49438         * tests/test-trunc1.c (ASSERT): Likewise.
49439         * tests/test-trunc2.c (ASSERT): Likewise.
49440         * tests/test-truncf1.c (ASSERT): Likewise.
49441         * tests/test-truncf2.c (ASSERT): Likewise.
49442         * tests/test-truncl.c (ASSERT): Likewise.
49443         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
49444         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
49445         * tests/test-vasnprintf.c (ASSERT): Likewise.
49446         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
49447         * tests/test-vasprintf.c (ASSERT): Likewise.
49448         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
49449         * tests/test-vprintf-posix.c (ASSERT): Likewise.
49450         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
49451         * tests/test-vsnprintf.c (ASSERT): Likewise.
49452         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
49453         * tests/test-wcwidth.c (ASSERT): Likewise.
49454         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
49455         * tests/test-xprintf-posix.c (ASSERT): Likewise.
49456         * tests/test-xvasprintf.c (ASSERT): Likewise.
49457         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
49458         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
49459         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
49460         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
49461         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
49462         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
49463         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
49464         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
49465         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
49466         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
49467         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
49468         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
49469         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
49470         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
49471         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
49472         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
49473         * tests/unictype/test-block_list.c (ASSERT): Likewise.
49474         * tests/unictype/test-block_of.c (ASSERT): Likewise.
49475         * tests/unictype/test-block_test.c (ASSERT): Likewise.
49476         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
49477         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
49478         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
49479         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
49480         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
49481         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
49482         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
49483         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
49484         * tests/unictype/test-combining.c (ASSERT): Likewise.
49485         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
49486         * tests/unictype/test-digit.c (ASSERT): Likewise.
49487         * tests/unictype/test-mirror.c (ASSERT): Likewise.
49488         * tests/unictype/test-numeric.c (ASSERT): Likewise.
49489         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
49490         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
49491         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
49492         * tests/unictype/test-scripts.c (ASSERT): Likewise.
49493         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
49494         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
49495         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
49496         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
49497         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
49498         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
49499         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
49500         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
49501         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
49502         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
49503         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
49504         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
49505         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
49506         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
49507         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
49508         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
49509         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
49510         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
49511         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
49512         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
49513         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
49514         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
49515         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
49516         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
49517         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
49518         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
49519         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
49520         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
49521         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
49522         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
49523         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
49524         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
49525         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
49526         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
49527         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
49528         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
49529         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
49530         Reported by Eric Blake.
49531
49532 2008-04-11  Bruno Haible  <bruno@clisp.org>
49533
49534         * lib/wchar.in.h: Tweak comment.
49535
49536 2008-04-11  Bruno Haible  <bruno@clisp.org>
49537
49538         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
49539         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
49540         gl_COMMON.
49541         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
49542
49543 2008-04-11  Bruno Haible  <bruno@clisp.org>
49544
49545         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
49546
49547 2008-04-11  Simon Josefsson  <simon@josefsson.org>
49548
49549         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
49550         of attempting to use non-existing /dev/*random.  Based on patch
49551         from Adam Strzelecki <ono@java.pl> in
49552         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
49553
49554 2008-04-08  Bruno Haible  <bruno@clisp.org>
49555
49556         Add tentative support for emx+gcc.
49557         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
49558         * lib/fpurge.c (fpurge): Likewise.
49559         * lib/freadable.c (freadable): Likewise.
49560         * lib/freadahead.c (freadahead): Likewise.
49561         * lib/freading.c (freading): Likewise.
49562         * lib/freadptr.c (freadptr): Likewise.
49563         * lib/freadseek.c (freadptrinc): Likewise.
49564         * lib/fseeko.c (rpl_fseeko): Likewise.
49565         * lib/fseterr.c (fseterr): Likewise.
49566         * lib/fwritable.c (fwritable): Likewise.
49567         * lib/fwriting.c (fwriting): Likewise.
49568         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
49569
49570 2008-04-09  Eric Blake  <ebb9@byu.net>
49571
49572         Avoid some autoconf warnings.
49573         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
49574         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
49575         * m4/afs.m4 (gl_AFS): Likewise.
49576         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
49577         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
49578         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
49579         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
49580         (gl_INTEGER_TYPE_SUFFIX): Likewise.
49581         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
49582         (AC_CHECK_DECLS_ONCE): Likewise.
49583         Rename file...
49584         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
49585         gnulib-tool requires autoconf 2.59 or better.
49586         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
49587
49588 2008-04-08  Eric Blake  <ebb9@byu.net>
49589
49590         Use 'git describe --match' if present (added in git 1.5.5).
49591         * build-aux/git-version-gen: Limit result to tags that match 'v*'
49592         if possible.
49593
49594 2008-04-08  Bruno Haible  <bruno@clisp.org>
49595
49596         Add tentative support for OpenServer.
49597         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
49598         _ptr, _cnt.
49599         * lib/fpurge.c (fpurge): Likewise.
49600         * lib/freadable.c (freadable): Likewise.
49601         * lib/freadahead.c (freadahead): Likewise.
49602         * lib/freading.c (freading): Likewise.
49603         * lib/freadptr.c (freadptr): Likewise.
49604         * lib/freadseek.c (freadptrinc): Likewise.
49605         * lib/fseeko.c (rpl_fseeko): Likewise.
49606         * lib/fseterr.c (fseterr): Likewise.
49607         * lib/fwritable.c (fwritable): Likewise.
49608         * lib/fwriting.c (fwriting): Likewise.
49609         Reported by Roger Cornelius <rac@tenzing.org> and
49610         Brian K. White <brian@aljex.com>.
49611
49612 2008-04-06  Jim Meyering  <meyering@redhat.com>
49613
49614         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
49615
49616 2008-04-06  Bruno Haible  <bruno@clisp.org>
49617
49618         Avoid possible error with non-ASCII bytes in UTF-8 locales.
49619         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
49620         * tests/test-printf-posix.sh: Likewise.
49621         * tests/test-vfprintf-posix.sh: Likewise.
49622         * tests/test-vprintf-posix.sh: Likewise.
49623         * tests/test-xprintf-posix.sh: Likewise.
49624
49625 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49626
49627         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
49628         hide error from 'ls', needed on OS/2.
49629         Report by Elbert Pol <elbert.pol@gmail.com>.
49630
49631 2008-04-04  Eric Blake  <ebb9@byu.net>
49632
49633         Make test-fseeko.c failures meaningful.
49634         * tests/test-fseeko.c: Print line number on failure.
49635         * tests/test-fseek.c: Likewise.
49636         Reported by Nelson H. F. Beebe.
49637
49638         Improve strtod bug detection check.
49639         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
49640         required for Solaris 10.
49641         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
49642
49643 2008-04-04  Bruno Haible  <bruno@clisp.org>
49644
49645         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
49646         by m4/setenv.m4.
49647
49648 2008-04-03  Eric Blake  <ebb9@byu.net>
49649
49650         Ensure sane .version contents.
49651         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
49652         version string.
49653         * build-aux/git-version-gen: Improve documentation.
49654
49655         Make GNU make output nicer.
49656         * top/GNUmakefile [!_have-Makefile]: Add dependency on
49657         MAKECMDGOALS to enforce message for all command line targets.  Set
49658         srcdir for use in maint.mk.
49659
49660         Another maintainer tweak.
49661         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
49662         a target that regenerates version.
49663
49664 2008-04-03  Jim Meyering  <meyering@redhat.com>
49665
49666         vc-list-files: don't cause coreutils "make po-check" failure
49667         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
49668
49669 2008-04-03  Eric Blake  <ebb9@byu.net>
49670
49671         Allow VPATH usage of vc-list-files.
49672         * build-aux/vc-list-files (scriptversion): Add timestamp.
49673         (options): Add --help, --version, -C.
49674         (CVS): Support installed cvsu.
49675
49676 2008-04-02  Bruno Haible  <bruno@clisp.org>
49677
49678         Avoid some "statement with no effect" warnings from gcc.
49679         * tests/test-wctype.c (main): Explicitly ignore unused values.
49680         Reported by Jim Meyering.
49681
49682 2008-04-02  Jim Meyering  <meyering@redhat.com>
49683
49684         Avoid some warnings from "gcc -Wshadow".
49685         * tests/test-frexp.c (exp): Define to a different identifier.
49686         * tests/test-frexpl.c (exp): Likewise.
49687
49688 2008-04-03  Jim Meyering  <meyering@redhat.com>
49689
49690         bootstrap: remove dangling *.[ch] symlinks from lib
49691         * build-aux/bootstrap [dangling symlink removal]: Move find's
49692         -depth option to precede all others, to avoid a warning.
49693         Remove *.[ch] files too, and from "$source_base" (usually lib/).
49694
49695 2008-04-02  Bruno Haible  <bruno@clisp.org>
49696
49697         Avoid some warnings from "gcc -Wshadow".
49698         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
49699         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
49700         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
49701         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
49702         Reported by Jim Meyering.
49703
49704 2008-04-01  Bruno Haible  <bruno@clisp.org>
49705
49706         Fix test to work on IRIX 6.5 with cc.
49707         * tests/test-math.c (numeric_equal): New function.
49708         (main): Use it.
49709
49710 2008-04-01  Bruno Haible  <bruno@clisp.org>
49711
49712         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
49713
49714 2008-04-01  Bruno Haible  <bruno@clisp.org>
49715
49716         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
49717         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
49718         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
49719         (Depends-on): Remove math.
49720
49721         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
49722         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
49723         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
49724         (Depends-on): Remove math.
49725
49726         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
49727         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
49728         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
49729         (Depends-on): Remove math.
49730         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
49731         (Depends-on): Remove math.
49732
49733         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
49734         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
49735         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
49736         (Depends-on): Remove math.
49737         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
49738         (Depends-on): Remove math.
49739
49740         * tests/test-round1.c: Include nan.h.
49741         (main): Use NaNd instead of NAN.
49742         * modules/round-tests (Files): Add tests/nan.h.
49743
49744         * tests/test-trunc1.c: Include nan.h.
49745         (main): Use NaNd instead of NAN.
49746         * modules/trunc-tests (Files): Add tests/nan.h.
49747
49748         * tests/test-roundf1.c: Include nan.h.
49749         (main): Use NaNf instead of NAN.
49750         * modules/roundf-tests (Files): Add tests/nan.h.
49751
49752         * tests/test-truncf1.c: Include nan.h.
49753         (main): Use NaNf instead of NAN.
49754         * modules/truncf-tests (Files): Add tests/nan.h.
49755
49756         * tests/test-ceilf1.c: Include nan.h.
49757         (main): Use NaNf instead of NAN.
49758         * modules/ceilf-tests (Files): Add tests/nan.h.
49759
49760         * tests/test-floorf1.c: Include nan.h.
49761         (main): Use NaNf instead of NAN.
49762         * modules/floorf-tests (Files): Add tests/nan.h.
49763
49764         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
49765         (main): Use NaNf instead of NAN.
49766         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
49767
49768         * tests/test-isnand.c: Include nan.h instead of <math.h>.
49769         (main): Use NaNd instead of NAN.
49770         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
49771
49772         * tests/test-frexp.c: Include nan.h.
49773         (main): Use NaNd instead of NAN.
49774         * modules/frexp-tests (Files): Add tests/nan.h.
49775
49776         * lib/isnan.c: Don't include <math.h>.
49777         (FUNC): Don't use NAN macro.
49778         * modules/isnand-nolibm (Depends-on): Remove math.
49779         * modules/isnanf-nolibm (Depends-on): Remove math.
49780         * modules/isnanl (Depends-on): Remove math.
49781         * modules/isnanl-nolibm (Depends-on): Remove math.
49782
49783         * tests/nan.h: New file.
49784
49785 2008-04-01  Eric Blake  <ebb9@byu.net>
49786
49787         Fix typos.
49788         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
49789         values to be the right type.
49790
49791         For now, cater to gnulib strtod inaccuracies.
49792         * tests/test-strtod.c (main): Allow 1-ulp error on expected
49793         fractional results.  While not as nice from a QoI perspective, it
49794         is a quicker patch than correctly implementing decimal to binary
49795         rounding.
49796
49797 2008-03-31  Eric Blake  <ebb9@byu.net>
49798
49799         Guarantee a definition of NAN.
49800         * lib/math.in.h (NAN): Define if missing.
49801         * tests/test-math.c (main): Test it.
49802         * doc/posix-headers/math.texi (math.h): Document this.
49803         * lib/isnan.c (rpl_isnand): Use it.
49804         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
49805         * tests/test-floorf1.c (NaN): Likewise.
49806         * tests/test-frexp.c (NaN): Likewise.
49807         * tests/test-isnand.c (NaN): Likewise.
49808         * tests/test-isnanf.c (NaN): Likewise.
49809         * tests/test-round1.c (NaN): Likewise.
49810         * tests/test-roundf1.c (NaN): Likewise.
49811         * tests/test-snprintf-posix.h (NaN): Likewise.
49812         * tests/test-sprintf-posix.h (NaN): Likewise.
49813         * tests/test-trunc1.c (NaN): Likewise.
49814         * tests/test-truncf1.c (NaN): Likewise.
49815         * tests/test-vasnprintf-posix.c (NaN): Likewise.
49816         * tests/test-vasprintf-posix.c (NaN): Likewise.
49817         * modules/isnand-nolibm (Depends-on): Add math.
49818         * modules/isnanf-nolibm (Depends-on): Likewise.
49819         * modules/isnanl (Depends-on): Likewise.
49820         * modules/isnanl-nolibm (Depends-on): Likewise.
49821         * modules/snprintf-posix-tests (Depends-on): Likewise.
49822         * modules/sprintf-posix-tests (Depends-on): Likewise.
49823         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
49824         * modules/vsprintf-posix-tests (Depends-on): Likewise.
49825         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
49826         * modules/vasprintf-posix-tests (Depends-on): Likewise.
49827
49828 2008-03-31  Bruno Haible  <bruno@clisp.org>
49829
49830         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
49831         * doc/posix-functions/strtod.texi: Likewise.
49832
49833 2008-03-31  Bruno Haible  <bruno@clisp.org>
49834
49835         * tests/test-strtod.c (main): Don't use C99 syntax.
49836
49837 2008-03-31  Bruno Haible  <bruno@clisp.org>
49838
49839         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
49840         Reported by Eric Blake.
49841
49842 2008-03-31  Jim Meyering  <meyering@redhat.com>
49843
49844         Don't compare actual signbit return values.
49845         * tests/test-strtod.c (main): Rather, compare only their
49846         zero/non-zero nature.
49847
49848 2008-03-31  Eric Blake  <ebb9@byu.net>
49849
49850         More strtod documentation.
49851         * doc/posix-functions/strtod.texi (strtod): Interpret more test
49852         failures as distinct bugs.
49853
49854 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
49855
49856         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
49857         Problem reported by Erik Benada in
49858         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
49859
49860 2008-03-30  Bruno Haible  <bruno@clisp.org>
49861
49862         * tests/test-strtod.c: Add comments about which assertion fails on which
49863         platform.
49864         * doc/posix-functions/strtod.texi: Add info about many more platforms.
49865
49866 2008-03-30  Eric Blake  <ebb9@byu.net>
49867
49868         Test signbit behavior on zeros.
49869         * tests/test-signbit.c (test_signbitf): Add tests for zero.
49870         (test_signbitd, test_signbitl): Likewise.
49871
49872         More strtod touchups.
49873         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
49874         sign of negative underflow, for now.  Use .5, not .1.
49875         * doc/posix-functions/strtod.texi (strtod): Mention these
49876         limitations.
49877         Reported by Jim Meyering.
49878
49879 2008-03-30  Bruno Haible  <bruno@clisp.org>
49880
49881         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
49882         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
49883
49884 2008-03-30  Bruno Haible  <bruno@clisp.org>
49885
49886         Avoid failure when attempting to return empty iconv results on some
49887         platforms.
49888         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
49889         allocation, don't report ENOMEM when the resulting string is empty.
49890
49891 2008-03-30  Bruno Haible  <bruno@clisp.org>
49892
49893         Fix buffer overrun.
49894         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
49895         Don't consider the width for tmp_length. Check count against tmp_length
49896         before doing the padding. Ensure enough allocation during padding.
49897
49898 2008-03-30  Eric Blake  <ebb9@byu.net>
49899
49900         strtod touchups.
49901         * lib/strtod.c (strtod): Avoid compiler warnings.
49902         Reported by Jim Meyering.
49903
49904 2008-03-30  Bruno Haible  <bruno@clisp.org>
49905
49906         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
49907         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
49908         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
49909         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
49910         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
49911         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
49912         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
49913         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
49914
49915         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
49916         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
49917         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
49918         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
49919         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
49920         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
49921         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
49922         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
49923
49924         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
49925         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
49926         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
49927         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
49928         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
49929         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
49930         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
49931         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
49932
49933         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
49934         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
49935
49936         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
49937         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
49938
49939         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
49940         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
49941
49942         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
49943         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
49944         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
49945
49946         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
49947         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
49948         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
49949
49950         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
49951         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
49952         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
49953
49954         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
49955         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
49956         * modules/vasprintf (Depends-on): Add EOVERFLOW.
49957
49958         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
49959         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
49960         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
49961         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
49962         (Depends-on): Add EOVERFLOW.
49963         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
49964         (Depends-on): Add EOVERFLOW.
49965         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
49966         (Depends-on): Add EOVERFLOW.
49967         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
49968         (Depends-on): Add EOVERFLOW.
49969         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
49970         (Depends-on): Add EOVERFLOW.
49971         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
49972         (Depends-on): Add EOVERFLOW.
49973         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
49974         (Depends-on): Add EOVERFLOW.
49975         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
49976         (Depends-on): Add EOVERFLOW.
49977
49978         * lib/sprintf.c (EOVERFLOW): Remove fallback.
49979         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
49980         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
49981
49982         * lib/snprintf.c (EOVERFLOW): Remove fallback.
49983         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
49984         * modules/snprintf (Depends-on): Add EOVERFLOW.
49985
49986         * lib/poll.c (EOVERFLOW): Remove fallback.
49987         * modules/poll (Depends-on): Add EOVERFLOW.
49988
49989         * lib/getugroups.c (EOVERFLOW): Remove fallback.
49990         * modules/getugroups (Depends-on): Add EOVERFLOW.
49991
49992         * lib/getdelim.c (EOVERFLOW): Remove fallback.
49993         * modules/getdelim (Depends-on): Add EOVERFLOW.
49994
49995         * lib/ftell.c (EOVERFLOW): Remove fallback.
49996         * modules/ftell (Depends-on): Add EOVERFLOW.
49997
49998         * lib/fprintf.c (EOVERFLOW): Remove fallback.
49999         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
50000         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
50001
50002         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
50003
50004         * modules/EOVERFLOW-tests: New file.
50005         * tests/test-EOVERFLOW.c: New file.
50006
50007         * modules/EOVERFLOW: New file.
50008         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
50009
50010 2008-03-30  Bruno Haible  <bruno@clisp.org>
50011
50012         Fix bug introduced on 2007-06-10.
50013         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
50014         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
50015
50016 2008-03-30  Bruno Haible  <bruno@clisp.org>
50017
50018         Improve freadseek's efficiency after ungetc.
50019         * lib/freadseek.c: Include freadahead.h.
50020         (freadptrinc): New function, extracted from freadseek.
50021         (freadseek): Use it in a loop. Use freadahead to determine the number
50022         of loop iterations.
50023         * modules/freadseek (Depends-on): Add freadahead.
50024         (configure.ac): Require AC_C_INLINE.
50025
50026 2008-03-30  Bruno Haible  <bruno@clisp.org>
50027
50028         * lib/freadseek.c (freadseek): Don't ignore the return value of
50029         freadptr.
50030
50031 2008-03-29  Eric Blake  <ebb9@byu.net>
50032
50033         Add hex float support.
50034         * modules/strtod (Depends-on): Add c-ctype.
50035         (Link): Mention POW_LIB.
50036         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
50037         whitespace between 'e' and exponent.
50038         * tests/test-strtod.c (main): Enable hex float tests.
50039         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
50040         now provides.
50041
50042         Document various strtod bugs, with some fixes.
50043         * doc/posix-functions/strtod.texi (strtod): Document bugs with
50044         "-0x", "inf", "nan", and hex constants.
50045         * doc/posix-functions/atof.texi (atof): Likewise.
50046         * modules/stdlib (Makefile.am): Support strtod.
50047         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
50048         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
50049         detect additional strtod bugs.
50050         * lib/stdlib.in.h (rpl_strtod): Add declarations.
50051         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
50052         bool where appropriate.  Parse 'inf' and 'nan'.
50053         * tests/test-strtod.c: New file.
50054         * modules/strtod (Depends-on): Add stdbool, stdlib.
50055         (configure.ac): Turn on module indicator.
50056         * modules/strtod-tests: New module.
50057
50058 2008-03-29  Eric Blake  <ebb9@byu.net>
50059
50060         Fix ftell on mingw.
50061         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
50062         * modules/ftell-tests (Depends-on): Add binary-io.
50063         * modules/ftello-tests (Depends-on): Likewise.
50064         * tests/test-ftell.c (main): Enhance test to cover behavior after
50065         ungetc.  Enforce binary mode.
50066         * tests/test-ftello.c (main): Likewise.
50067
50068         Pass test-freadseek on cygwin.
50069         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
50070         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
50071         ungetc buffer.
50072
50073         * tests/test-fflush2.c (main): Fix typo.
50074
50075 2008-03-29  Bruno Haible  <bruno@clisp.org>
50076
50077         * tests/test-fflush2.c (main): Temporarily disable the contents of
50078         this test.
50079         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
50080         Reported by Eric Blake.
50081
50082 2008-03-28  Simon Josefsson  <simon@josefsson.org>
50083
50084         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
50085         (GC_SHA224_DIGEST_SIZE): Add.
50086
50087         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
50088         (gc_hash_digest_length): Likewise.
50089         (gc_hash_buffer): Likewise.
50090
50091 2008-03-25  Bruno Haible  <bruno@clisp.org>
50092
50093         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
50094         detail which gettext release to use.
50095         Reported by Simon Josefsson.
50096
50097 2008-03-26  Jim Meyering  <meyering@redhat.com>
50098
50099         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
50100         * modules/gnumakefile (clean-GNUmakefile): Also, use
50101         test ... && ... || : syntax rather than if-then ... fi.
50102
50103         gnumakefile: Don't double-quote-expand $(VPATH) value.
50104         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
50105
50106 2008-03-24  Eric Blake  <ebb9@byu.net>
50107
50108         Alter GNUmakefile to install into top directory.
50109         * modules/maintainer-makefile: Split, and add dependency...
50110         * modules/gnumakefile: to this new module.
50111         * build-aux/GNUmakefile: Move...
50112         * top/GNUmakefile: ...here.
50113         * build-aux/maint.mk: Move...
50114         * top/maint.mk: ...here.
50115         * MODULES.html.sh (Support for maintaining...): Document new
50116         module.
50117
50118 2008-03-23  Bruno Haible  <bruno@clisp.org>
50119
50120         * gnulib-tool: New options --vc-files, --no-vc-files.
50121         (func_usage): Document them.
50122         (vc_files): New variable.
50123         (func_import): Consider vc_files.
50124         (func_create_testdir): Set vc_files to empty.
50125         Suggested by Jim Meyering and Karl Berry.
50126
50127 2008-03-23  Bruno Haible  <bruno@clisp.org>
50128
50129         Fix regex compilation error on HP-UX 11.
50130         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
50131         * modules/regex (Files): Add m4/mbstate_t.m4.
50132         Reported by Ton Voon <ton.voon@altinity.com>.
50133
50134 2008-03-23  Bruno Haible  <bruno@clisp.org>
50135
50136         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
50137
50138 2008-03-23  Eric Blake  <ebb9@byu.net>
50139             Bruno Haible  <bruno@clisp.org>
50140
50141         Install files from top/ in the destination directory.
50142         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
50143         augmentation also for the files from top/.
50144         (func_import, func_create_testdir): Rewrite file names:
50145         top/filename -> filename.
50146
50147 2008-03-23  Bruno Haible  <bruno@clisp.org>
50148
50149         Tweak "gnulib --version" output.
50150         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
50151
50152 2008-03-23  Bruno Haible  <bruno@clisp.org>
50153
50154         Tweak "gnulib --version" output.
50155         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
50156         rather than contents of ChangeLog, when possible.
50157
50158 2008-03-21  Eric Blake  <ebb9@byu.net>
50159
50160         More --version tweaks.
50161         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
50162         date of last ChangeLog entry.
50163
50164 2008-03-21  Jim Meyering  <meyering@redhat.com>
50165
50166         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
50167
50168 2008-03-20  Eric Blake  <ebb9@byu.net>
50169
50170         VPATH fix.
50171         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
50172
50173 2008-03-20  Simon Josefsson  <simon@josefsson.org>
50174
50175         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
50176         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
50177
50178 2008-03-20  Eric Blake  <ebb9@byu.net>
50179
50180         Sync GNUmakefile with coreutils.
50181         * build-aux/GNUmakefile (have-Makefile): Rename...
50182         (_have-Makefile): ...to this, for namespace consideration.
50183         (GNUmakefile.cfg): Include, if present.
50184         (_autoreconf): Define a default.
50185         (_is-dist-target): New rule for rebuilds to pick up intra-release
50186         version.
50187         (maint-cfg.mk): Rename...
50188         (cfg.mk): ...to this.
50189
50190 2008-03-18  Jim Meyering  <meyering@redhat.com>
50191
50192         New script and module: mktempd
50193         * MODULES.html.sh (maint+release support): Add mktempd.
50194         * build-aux/mktempd: New file.
50195         * modules/mktempd: New file.
50196
50197 2008-03-15  Jim Meyering  <meyering@redhat.com>
50198
50199         Undo last change.
50200         * lib/sha1.c, lib/md5.c: 63 != ~63.
50201         Reported by Andreas Schwab.
50202
50203         sha1.c, md5.c: Hoist a redundant expression.
50204         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
50205         "ctx->buflen" only once, before calling *_process_block.
50206         * lib/md5.c (md5_process_bytes): Likewise.
50207
50208 2008-03-14  Eric Blake  <ebb9@byu.net>
50209
50210         Bump copyright year in files generated by gnulib-tool.
50211         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
50212         gnulib-tool, rather than hard-coding it.
50213
50214         Fix 'gnulib-tool --version' output to work with git.
50215         * gnulib-tool (func_gnulib_dir): New function, extracted from...
50216         (startup): ...here.
50217         (func_version): Use it to invoke git-version-gen, rather than
50218         relying on CVS keyword expansion.  Modernize wording.
50219         (cvsdatestamp, last_checkin_date, version): Kill unused
50220         variables.
50221
50222 2008-03-12  Jim Meyering  <meyering@redhat.com>
50223
50224         Recognize optional cast of the argument to free.
50225         * build-aux/useless-if-before-free: Update regexps.
50226
50227         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
50228
50229 2008-03-11  Bruno Haible  <bruno@clisp.org>
50230
50231         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
50232         by a single package.
50233         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
50234         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
50235         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
50236         Reported by Sam Steingold <sds@gnu.org>.
50237
50238 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
50239
50240         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
50241         repositories.
50242
50243 2008-03-11  Bruno Haible  <bruno@clisp.org>
50244
50245         Avoid conflicts between local macro definitions.
50246         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
50247         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
50248
50249 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
50250             Bruno Haible  <bruno@clisp.org>
50251
50252         Make va_copy work with some version of xlc on AIX 5.1.
50253         * lib/stdarg.in.h: New file.
50254         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
50255         On AIX, use a <stdarg.h> file substitute.
50256         * modules/stdarg (Files): Add lib/stdarg.in.h.
50257         (Depends-on): Add include_next.
50258         (Makefile.am): Build a stdarg.h substitute if requested.
50259         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
50260
50261 2008-03-10  Bruno Haible  <bruno@clisp.org>
50262
50263         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
50264         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
50265         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
50266
50267 2008-03-10  Bruno Haible  <bruno@clisp.org>
50268
50269         * modules/stdlib (Depends-on): Add include_next, remove
50270         absolute-header.
50271
50272 2008-03-09  Bruno Haible  <bruno@clisp.org>
50273
50274         * lib/freadahead.h (freadahead): Document more precisely.
50275         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
50276         the sum of both buffer sizes.
50277         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
50278         * NEWS: Document the change.
50279
50280 2008-03-09  Bruno Haible  <bruno@clisp.org>
50281
50282         Extend freadptr to return also the buffer size.
50283         * lib/freadptr.h (freadptr): Add sizep argument.
50284         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
50285         (freadptr): Add sizep argument. Determine buffer size like freadahead
50286         does.
50287         * tests/test-freadptr.c: Don't include freadahead.h.
50288         (main): Adapt for new calling convention of freadptr.
50289         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
50290         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
50291         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
50292         tests/test-freadptr2.sh.
50293         (Depends): Remove freadahead.
50294         (TESTS): Add test-freadptr2.sh.
50295         (check_PROGRAMS): Add test-freadptr2.
50296
50297 2008-03-09  Bruno Haible  <bruno@clisp.org>
50298
50299         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
50300         Report and solution by Simon Josefsson.
50301
50302 2008-03-06  Bruno Haible  <bruno@clisp.org>
50303
50304         Make fflush after ungetc work on BSD platforms.
50305         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
50306         * tests/test-fflush2.c: New file.
50307         * tests/test-fflush2.sh: New file.
50308         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
50309         tests/test-fflush2.c.
50310         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
50311         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
50312
50313 2008-03-06  Eric Blake  <ebb9@byu.net>
50314
50315         Likewise for ftello.
50316         * modules/ftello (Dependencies): Add extensions.
50317         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
50318
50319 2008-03-06  Bruno Haible  <bruno@clisp.org>
50320
50321         * modules/fseeko (Dependencies): Add extensions.
50322         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
50323         Needed on glibc systems.
50324
50325 2008-03-06  Bruno Haible  <bruno@clisp.org>
50326
50327         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
50328         email address.
50329         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
50330
50331 2008-03-06  Bruno Haible  <bruno@clisp.org>
50332
50333         * users.txt: Add libgnupdf.
50334
50335 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
50336
50337         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
50338         (Header File Substitutes, Function Substitutes,
50339         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
50340         (Build robot for gnulib): Fix typo.
50341
50342 2008-03-06  Bruno Haible  <bruno@clisp.org>
50343
50344         * doc/gnulib-tool.texi (VCS Issues): Small updates.
50345         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
50346
50347 2008-03-06  Bruno Haible  <bruno@clisp.org>
50348
50349         * doc/func.texi: New file, extracted from doc/gnulib.texi.
50350         * doc/gnulib.texi: Include it.
50351
50352 2008-03-06  Simon Josefsson  <simon@josefsson.org>
50353
50354         * modules/func (License): Change license to unlimited; there was
50355         no LGPL parts in the module anyway.
50356
50357 2008-03-06  Simon Josefsson  <simon@josefsson.org>
50358
50359         * modules/__func__: Renamed to modules/func.
50360         * modules/__func__-tests: Renamed to modules/func-tests.
50361         * tests/test-__func__.c: Renamed to tests/test-func.c.
50362         * m4/__func__.m4: Renamed to m4/func.m4.
50363         * doc/gnulib.texi (__func__): Section renamed to func.
50364         Suggested by Eric Blake <ebb9@byu.net>.
50365
50366 2008-03-06  Simon Josefsson  <simon@josefsson.org>
50367
50368         * doc/gnulib.texi (__func__): Use C99 terminology when talking
50369         about __func__.  Make example self-contained.  Suggested by Eric
50370         Blake <ebb9@byu.net>.
50371
50372         * tests/test-__func__.c (main): Avoid extraneous () around __func.
50373         Suggested by Eric Blake <ebb9@byu.net>.
50374
50375 2008-03-06  Simon Josefsson  <simon@josefsson.org>
50376
50377         * modules/__func__: New file.
50378         * modules/__func__-tests: New file.
50379         * tests/test-__func__.c: New file.
50380         * m4/__func__.m4: New file.
50381         * doc/gnulib.texi (__func__): Document __func__ module.
50382
50383 2008-03-05  Simon Josefsson  <simon@josefsson.org>
50384
50385         * modules/byteswap (License): Re-license as LGPLv2+.
50386
50387 2008-03-05  Simon Josefsson  <simon@josefsson.org>
50388
50389         * doc/Makefile: Add pdf target.
50390
50391 2008-03-05  Simon Josefsson  <simon@josefsson.org>
50392
50393         * modules/inline (License): Use 'unlimited', since there are only
50394         *.m4 files in this module.
50395
50396 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
50397             Bruno Haible  <bruno@clisp.org>
50398
50399         Add support for HP C 7.1 on OpenVMS 8.3.
50400         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
50401
50402 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
50403
50404         Update VMS specifics.
50405         * lib/getopt.c [VMS]: Remove include of unixlib.h.
50406
50407 2008-03-02  Jim Meyering  <meyering@redhat.com>
50408
50409         Remove the last dependency on the "free" module.
50410         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
50411         Reported by Bob Proulx.
50412
50413         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
50414
50415         Remove useless "if" tests before free.  Deprecate "free" module.
50416         * doc/posix-functions/free.texi: Mention that this
50417         module is no longer useful.
50418         * modules/free (Notice): Say this module is obsolete.
50419         * modules/readutmp (Depends-on): Remove free.
50420         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
50421         * lib/putenv.c (putenv): Likewise.
50422         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
50423         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
50424         * tests/test-c-strcasestr.c (main): Likewise.
50425         * tests/test-c-strstr.c (main): Likewise.
50426         * tests/test-mbscasestr1.c (main): Likewise.
50427         * tests/test-mbscasestr2.c (main): Likewise.
50428         * tests/test-mbsstr1.c (main): Likewise.
50429         * tests/test-mbsstr2.c (main): Likewise.
50430         * tests/test-memmem.c (main): Likewise.
50431         * tests/test-strcasestr.c (main): Likewise.
50432         * tests/test-striconv.c (main): Likewise.
50433         * tests/test-striconveh.c (main): Likewise.
50434         * tests/test-striconveha.c (main): Likewise.
50435         * tests/test-strstr.c (main): Likewise.
50436
50437         * build-aux/git-version-gen: Adjust a comment and the Usage string.
50438
50439         bootstrap: sync from coreutils again
50440         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
50441
50442 2008-03-01  Jim Meyering  <meyering@redhat.com>
50443
50444         bootstrap: sync from coreutils
50445         * build-aux/bootstrap (update_po_files): Copy a .po file into place
50446         also when the target doesn't exist.
50447
50448 2008-03-01  Eric Blake  <ebb9@byu.net>
50449
50450         Fix bugs in last patch.
50451         * lib/memchr2.c (memchr2): Fix typo.
50452         * tests/test-memchr2.c: Test previous bug, and don't use GNU
50453         extension.
50454         Reported by Bruce Korb.
50455
50456         New module 'memchr2'.
50457         * modules/memchr2: New file.
50458         * modules/memchr2-tests: Likewise.
50459         * lib/memchr2.h: Likewise.
50460         * lib/memchr2.c: Likewise, based on memchr.c.
50461         * tests/test-memchr2.c: New test.
50462         * MODULES.html.sh (String handling): Add memchr2.
50463
50464 2008-02-29  Bruno Haible  <bruno@clisp.org>
50465
50466         * modules/freadseek-tests: New file.
50467         * tests/test-freadseek.sh: New file.
50468         * tests/test-freadseek.c: New file.
50469
50470         New module 'freadseek'.
50471         * modules/freadseek: New file.
50472         * lib/freadseek.h: New file.
50473         * lib/freadseek.c: New file.
50474         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
50475
50476 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
50477
50478         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
50479         wydawca.
50480
50481         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
50482         program_invocation_name and program_invocation_short_name are
50483         present.
50484
50485 2008-02-28  Bruno Haible  <bruno@clisp.org>
50486
50487         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
50488         * tests/test-freadptr.sh: Also test non-seekable stdin.
50489
50490 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
50491
50492         * build-aux/bootstrap (source_base, m4_base)
50493         (doc_base, tests_base): New variables.
50494         (gnulib_tool_options): Do not hardcode base directories, use
50495         the above variables instead.
50496
50497 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
50498
50499         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
50500
50501 2008-02-28  Bruno Haible  <bruno@clisp.org>
50502
50503         * modules/freadptr-tests: New file.
50504         * tests/test-freadptr.sh: New file.
50505         * tests/test-freadptr.c: New file.
50506
50507         New module 'freadptr'.
50508         * modules/freadptr: New file.
50509         * lib/freadptr.h: New file.
50510         * lib/freadptr.c: New file.
50511         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
50512
50513 2008-02-26  Karl Berry  <karl@freefriends.org>
50514
50515         Sync from Libtool:
50516         * libltdl/argz.c (argz_add, argz_count): New functions.
50517         * libltdl/argz.in.h: Declare them.
50518         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
50519
50520 2008-02-22  Bruno Haible  <bruno@clisp.org>
50521
50522         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
50523         is a pointer type.  Needed for HP-UX 10.
50524         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
50525         * doc/posix-functions/gmtime_r.texi: Likewise.
50526         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
50527
50528 2008-02-24  Bruno Haible  <bruno@clisp.org>
50529
50530         * modules/environ-tests: New file.
50531         * tests/test-environ.c: New file.
50532
50533         New module 'environ'.
50534         * modules/environ: New file.
50535         * lib/unistd.in.h (environ): New declaration.
50536         * m4/environ.m4: New file.
50537         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
50538         after use.
50539         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
50540         HAVE_DECL_ENVIRON.
50541         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
50542         HAVE_DECL_ENVIRON.
50543         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
50544         wrong claim that 'environ' is missing on some systems.
50545         * modules/execute (Depends-on): Add environ.
50546         * lib/execute.c (environ): Remove fallback declaration.
50547         * modules/pipe (Depends-on): Add environ.
50548         * lib/pipe.c (environ): Remove fallback declaration.
50549         * modules/setenv (Depends-on): Add environ.
50550         * lib/setenv.c (environ): Remove fallback declaration.
50551         * modules/unsetenv (Depends-on): Add environ.
50552         * lib/unsetenv.c (environ): Remove fallback declaration.
50553         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
50554         m4/environ.m4.
50555         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
50556         (gl_PREREQ_UNSETENV): Likewise.
50557
50558 2008-02-24  Bruno Haible  <bruno@clisp.org>
50559
50560         * doc/posix-functions/environ.texi: Document the MacOS X problem.
50561
50562 2008-02-20  Bob Proulx  <bob@proulx.com>
50563
50564         Enable use of older two part flavor 'git describe'.
50565         * build-aux/git-version-gen: If using the older two part flavor of
50566         git version then recreate the third part now present in the
50567         newer three part flavor of git describe.
50568
50569 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
50570
50571         * lib/fts.c (fts_build): Typo correction to comment.
50572
50573 2008-02-17  Bruno Haible  <bruno@clisp.org>
50574
50575         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
50576         generating no-op conflicts.
50577
50578 2008-02-17  Bruno Haible  <bruno@clisp.org>
50579
50580         Speed up by 10%.
50581         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
50582         result_entries, rather than an index-based loop.
50583
50584 2008-02-17  Bruno Haible  <bruno@clisp.org>
50585
50586         Speed up by 25%.
50587         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
50588         'hashcode_cached'.
50589         (entry_create): New function.
50590         (entry_hashcode): Use the cached hashcode if possible.
50591         (read_changelog_file, try_split_merged_entry): Use entry_create.
50592
50593 2008-02-17  Bruno Haible  <bruno@clisp.org>
50594
50595         Speed up from O(n^2) to O(n) for long ChangeLog files.
50596         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
50597         (read_changelog_file): Change implementation of entries_reversed list
50598         to rbtreehash.
50599         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
50600
50601 2008-02-17  Bruno Haible  <bruno@clisp.org>
50602
50603         New option --split-merged-entry.
50604         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
50605         (find_paragraph_end, try_split_merged_entry): New functions.
50606         (long_options): Add option --split-merged-entry.
50607         (usage): Document option --split-merged-entry.
50608         (main): Implement option --split-merged-entry.
50609         Reported by Eric Blake.
50610
50611 2008-02-17  Bruno Haible  <bruno@clisp.org>
50612
50613         * lib/git-merge-changelog.c: Include c-strstr.h.
50614         (main): Support the "git pull --rebase" situation.
50615         * modules/git-merge-changelog (Depends-on): Add c-strstr.
50616         Reported by Eric Blake.
50617
50618 2008-02-16  Eric Blake  <ebb9@byu.net>
50619
50620         Avoid doubling \ in common case of "c-maybe" quoting style.
50621         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
50622         eliding outer quotes.
50623         * lib/quotearg.h: Document this.
50624         * tests/test-quotearg.c (result_strings, inputs, results_g)
50625         (flag_results, locale_results): Test it by adding a new string to
50626         each test group.
50627         (compare_strings): Test new string.
50628
50629 2008-02-13  Eric Blake  <ebb9@byu.net>
50630
50631         Avoid trigraph quoting in default output.
50632         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
50633         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
50634         unless explicitly requested.
50635         * tests/test-quotearg.c (flag_results, main): Add additional tests.
50636
50637 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
50638
50639         Don't rely on signed integer overflowing to negative value.
50640         * lib/getugroups.c (getugroups): Include <limits.h>.
50641         Instead, compare against INT_MAX, and increment only if the test passes.
50642
50643 2008-02-13  Jim Meyering  <meyering@redhat.com>
50644         and Eric Blake  <ebb9@byu.net>
50645
50646         Avoid shadowing warning and compile errors on Linux.
50647         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
50648         forwarding macros on Linux.
50649         (dcgettext): Define a stub, for Linux.
50650         (results_g, main): Avoid warnings.
50651
50652 2008-02-12  Eric Blake  <ebb9@byu.net>
50653
50654         Silence warning in last patch.
50655         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
50656
50657         Quotearg part 4: add tests, fix c-maybe colon quoting.
50658         * lib/quotearg.h: Improve documentation.
50659         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
50660         escapes when adding outer quotes.  When quoting trigraphs, use
50661         valid C notation.  When quoting NUL, omit extra characters if next
50662         character is not digit.  Alter prototype.
50663         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
50664         callers.
50665         * modules/quotearg-tests: New module.
50666         * tests/test-quotearg.c: New test.
50667
50668 2008-02-07  Eric Blake  <ebb9@byu.net>
50669
50670         Quotearg part 3: add flag to control outer quote elision.
50671         * lib/quotearg.h (c_maybe_quoting_style): New style.
50672         (enum quoting_flags): Better documentation of flags.
50673         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
50674         c-maybe style.
50675         (quotearg_buffer_restyled): Handle new flag to elide outer
50676         quotes.
50677
50678         Quotearg part 2: add flag that can control NUL elision.
50679         * lib/quotearg.h (set_quoting_flags): New prototype.
50680         * lib/quotearg.c (struct quoting_options): Add flag field.
50681         (set_quoting_flags): New function.
50682         (quotearg_buffer_restyled): Add flags parameter.
50683         (quotearg_alloc_mem): Set the flag if length cannot be returned.
50684         (quotearg_n_options): Set the flag, since length cannot be
50685         returned.
50686         (quoting_options_from_style): Default flags correctly.
50687
50688         Quotearg part 1: more wrappers, restore quotearg_char state.
50689         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
50690         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
50691         (quotearg_colon_mem): New wrappers.
50692         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
50693         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
50694         functions.
50695         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
50696         (quotearg_colon_mem): New functions.
50697
50698 2008-02-11  Bruno Haible  <bruno@clisp.org>
50699
50700         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
50701         library in the current directory: it does not work with parallel make.
50702         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50703
50704 2008-02-11  Bruno Haible  <bruno@clisp.org>
50705
50706         * .gitattributes: New file.
50707
50708 2008-02-11  Jim Meyering  <meyering@redhat.com>
50709
50710         useless-if-before-free: Fix reversed exit values.
50711         * build-aux/useless-if-before-free: Use correct values
50712         for EXIT_MATCH and EXIT_NO_MATCH.
50713
50714         * build-aux/useless-if-before-free: Close stdout carefully.
50715
50716 2008-02-10  Bruno Haible  <bruno@clisp.org>
50717
50718         New module 'git-merge-changelog'.
50719         * modules/git-merge-changelog: New file.
50720         * lib/git-merge-changelog.c: New file.
50721
50722 2008-02-10  Jim Meyering  <meyering@redhat.com>
50723
50724         useless-if-before-free: New option: --list (-l).
50725
50726         useless-if-before-free: Don't exit immediately upon open failure.
50727         * build-aux/useless-if-before-free: Exit 2 for errors.
50728         Upon failure to open a file, don't exit immediately.
50729         Rather, just warn and continue with any remaining files.
50730
50731 2008-02-10  Bruno Haible  <bruno@clisp.org>
50732
50733         New abstract list operation 'node_set_value'.
50734         * lib/gl_list.h (gl_list_node_set_value): New function.
50735         (struct gl_list_implementation): New field node_set_value.
50736         * lib/gl_list.c (gl_list_node_set_value): New function.
50737         * lib/gl_array_list.c (gl_array_node_set_value): New function.
50738         (gl_array_list_implementation): Update.
50739         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
50740         (gl_carray_list_implementation): Update.
50741         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
50742         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
50743         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
50744         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
50745         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
50746         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
50747         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
50748         Update.
50749         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
50750         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
50751         (gl_sublist_list_implementation): Update.
50752
50753 2008-02-10  Bruno Haible  <bruno@clisp.org>
50754
50755         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
50756         Needed when ELEMENT is #defined to 'some_type *'.
50757
50758 2008-02-10  Jim Meyering  <meyering@redhat.com>
50759
50760         New script and module: useless-if-before-free
50761         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
50762         * build-aux/useless-if-before-free: New file.
50763         * modules/useless-if-before-free: New file.
50764
50765         * build-aux/gitlog-to-changelog: Use committer date, not author date.
50766
50767         xstrtol_error: Fix typo.
50768         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
50769         s/exit_failure/exit_status/.
50770
50771 2008-02-09  Jim Meyering  <meyering@redhat.com>
50772
50773         New script and module: gitlog-to-changelog
50774         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
50775         * modules/gitlog-to-changelog: New file.
50776         * build-aux/gitlog-to-changelog: New file.
50777
50778 2008-02-08  Jim Meyering  <meyering@redhat.com>
50779
50780         Avoid two "parameter unused" warnings.
50781         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
50782         Mark "st" as used.
50783
50784         Use "git COMMAND", not "git-COMMAND".
50785         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
50786         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
50787         * build-aux/git-version-gen: Use "git status", not "git-status".
50788
50789 2008-02-07  Bruno Haible  <bruno@clisp.org>
50790
50791         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
50792         Avoids a crash on Windows Vista.
50793         Reported by Adam Strzelecki <ono@java.pl> via
50794         Simon Josefsson <simon@josefsson.org>.
50795
50796 2008-02-06  Bruno Haible  <bruno@clisp.org>
50797
50798         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
50799         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
50800         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
50801         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
50802         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
50803         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50804         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
50805         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
50806         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50807         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50808         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50809         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50810         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50811         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50812         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50813         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
50814         left-adjust flag.
50815         * tests/test-snprintf-posix.h (test_function): Likewise.
50816         * tests/test-sprintf-posix.h (test_function): Likewise.
50817         * tests/test-vasprintf-posix.c (test_function): Likewise.
50818         * doc/posix-functions/fprintf.texi: Update.
50819         * doc/posix-functions/printf.texi: Update.
50820         * doc/posix-functions/snprintf.texi: Update.
50821         * doc/posix-functions/sprintf.texi: Update.
50822         * doc/posix-functions/vfprintf.texi: Update.
50823         * doc/posix-functions/vprintf.texi: Update.
50824         * doc/posix-functions/vsnprintf.texi: Update.
50825         * doc/posix-functions/vsprintf.texi: Update.
50826         Reported by Peter Fales <psfales@alcatel-lucent.com>.
50827
50828 2008-02-06  Bruno Haible  <bruno@clisp.org>
50829
50830         Fix bug introduced on 2008-01-26.
50831         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
50832
50833 2008-02-06  Bruno Haible  <bruno@clisp.org>
50834
50835         Fix bug introduced on 2007-06-10.
50836         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
50837         !NEED_PRINTF_FLAG_ZERO.
50838
50839 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
50840
50841         getloadavg: use libperfstat on AIX5
50842         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
50843
50844 2008-02-03  Bruno Haible  <bruno@clisp.org>
50845
50846         * lib/diffseq.h: Add comments about required #includes.
50847         Reported by Michael Biggs <gnulib@doubleplum.net>.
50848
50849 2008-02-01  Bruno Haible  <bruno@clisp.org>
50850
50851         * users.txt: Add gnuit.
50852
50853 2008-01-31  Bruno Haible  <bruno@clisp.org>
50854
50855         * lib/md4.c (set_uint32): Mark as inline.
50856         * lib/md5.c (set_uint32): Likewise.
50857         * lib/sha1.c (set_uint32): Likewise.
50858         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
50859         * m4/md5.m4 (gl_MD5): Likewise.
50860         * m4/sha1.m4 (gl_SHA1): Likewise.
50861
50862 2008-01-31  Jim Meyering  <meyering@redhat.com>
50863
50864         Use "sizeof VAR", rather than a literal "4".
50865         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
50866         * lib/md4.c (md4_read_ctx): Likewise.
50867         * lib/sha1.c (sha1_read_ctx): Likewise.
50868
50869 2008-01-31  Simon Josefsson  <simon@josefsson.org>
50870
50871         * tests/test-sha1.c: New file, based on test-md5.c.
50872
50873         * modules/crypto/sha1-tests: New file.
50874
50875 2008-01-31  Simon Josefsson  <simon@josefsson.org>
50876
50877         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
50878
50879 2008-01-31  Jim Meyering  <meyering@redhat.com>
50880
50881         Prefer "sizeof v" over the equivalent "4".
50882         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
50883         * lib/md5.c (set_uint32): Likewise.
50884         * lib/sha1.c (set_uint32): Likewise.
50885
50886 2008-01-31  Simon Josefsson  <simon@josefsson.org>
50887
50888         * lib/sha1.c (set_uint32): Mark function as static.
50889
50890 2008-01-31  Simon Josefsson  <simon@josefsson.org>
50891
50892         md2: clarify comments to say that alignment is not required.
50893         * lib/md2.h: Remove warning about alignment in comment.
50894         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
50895         never been required.
50896
50897 2008-01-31  Simon Josefsson  <simon@josefsson.org>
50898
50899         md4: adapt alignment constraint fix from sha1.
50900         * lib/md4.c (set_uint32): New function, from sha1.c
50901         (md4_read_ctx): Use it.
50902         (md4_finish_ctx): Doc fix.
50903         * lib/md4.h: Doc fix.
50904
50905 2008-01-31  Simon Josefsson  <simon@josefsson.org>
50906
50907         md5: adapt alignment constraint fix from sha1.
50908         * lib/md5.c (set_uint32): New function, from sha1.c
50909         (md5_read_ctx): Use it.
50910         (md5_finish_ctx): Doc fix.
50911         * lib/md5.h: Doc fix.
50912
50913 2008-01-30  Peter Palfrader  <weasel@debian.org>
50914
50915         sha1: remove the result buffer alignment constraint
50916         * lib/sha1.c (set_uint32): New function.
50917         (sha1_read_ctx): Rewrite to remove the result buffer alignment
50918         constraint.
50919         (sha1_finish_ctx): Remove comment warning about alignment constraint.
50920         * lib/sha1.h: Likewise.
50921
50922 2008-01-30  Andreas Schwab  <schwab@suse.de>
50923             Bruno Haible  <bruno@clisp.org>
50924
50925         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
50926         correct definition of LDBL_MIN_EXP.
50927
50928 2008-01-30  Karl Berry  <karl@gnu.org>
50929
50930         * config/srclist-update: try to preserve x bit on updates.
50931         * config/srclistvars.sh: update for karl.
50932
50933 2008-01-29  Jim Meyering  <meyering@redhat.com>
50934
50935         vasnprintf.c: Avoid warning about unused label
50936         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
50937         "overflow" label definition and associated code with the
50938         same cpp condition that guards the sole use of that label.
50939
50940 2008-01-26  Bruno Haible  <bruno@clisp.org>
50941
50942         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
50943         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
50944         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
50945         * lib/isnanl-nolibm.h (isnanl): Likewise.
50946         Reported by Paul Eggert <eggert@cs.ucla.edu>.
50947
50948 2008-01-26  Bruno Haible  <bruno@clisp.org>
50949
50950         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
50951         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
50952
50953 2008-01-26  Bruno Haible  <bruno@clisp.org>
50954
50955         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
50956         GCC >= 4.0 built-in.
50957         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
50958
50959 2008-01-26  Bruno Haible  <bruno@clisp.org>
50960
50961         Rename isnan, applicable to 'double' only, to isnand.
50962         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
50963         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
50964         (configure.ac): Update.
50965         (Include): Replace "isnan.h" with "isnand.h".
50966         * m4/isnand.m4: Renamed from m4/isnan.m4.
50967         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
50968         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
50969         instead of isnan.c.
50970         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
50971         instead of HAVE_ISNAN_IN_LIBC.
50972         (isnand): Renamed from isnan.
50973         * lib/isnand.c: New file.
50974         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
50975         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
50976         (Makefile.am): Update.
50977         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
50978         Include isnand.h instead of isnan.h.
50979         (main): Test isnand instead of isnan.
50980         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
50981         isnan-nolibm.
50982         * modules/frexp (Depends-on): Likewise.
50983         * modules/frexp-tests (Depends-on): Likewise.
50984         * modules/frexp-nolibm (Depends-on): Likewise.
50985         * modules/frexp-nolibm-tests (Depends-on): Likewise.
50986         * modules/isfinite (Depends-on): Likewise.
50987         * modules/round-tests (Depends-on): Likewise.
50988         * modules/signbit (Depends-on): Likewise.
50989         * modules/signbit-tests (Depends-on): Likewise.
50990         * modules/snprintf-posix (Depends-on): Likewise.
50991         * modules/sprintf-posix (Depends-on): Likewise.
50992         * modules/trunc-tests (Depends-on): Likewise.
50993         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
50994         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
50995         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
50996         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
50997         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
50998         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
50999         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
51000         * modules/vasnprintf-posix (Depends-on): Likewise.
51001         * modules/vasprintf-posix (Depends-on): Likewise.
51002         * modules/vfprintf-posix (Depends-on): Likewise.
51003         * modules/vsnprintf-posix (Depends-on): Likewise.
51004         * modules/vsprintf-posix (Depends-on): Likewise.
51005         * lib/frexp.c: Include isnand.h instead of isnan.h.
51006         (ISNAN): Set to isnand instead of isnan.
51007         * lib/isfinite.c: Include isnand.h instead of isnan.h.
51008         (gl_isfinited): Use isnand instead of isnan.
51009         * lib/signbitd.c: Include isnand.h instead of isnan.h.
51010         (gl_signbitd): Use isnand instead of isnan.
51011         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
51012         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
51013         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
51014         (main): Use isnand instead of isnan.
51015         * tests/test-round1.c: Include isnand.h.
51016         (main): Use isnand instead of isnan.
51017         * tests/test-round2.c: Include isnand.h instead of isnan.h.
51018         (ISNAN): Set to isnand instead of isnan.
51019         * tests/test-trunc1.c: Include isnand.h.
51020         (main): Use isnand instead of isnan.
51021         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
51022         (equal): Use isnand instead of isnan.
51023         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
51024         isnand-nolibm.
51025         * NEWS: Mention the change.
51026
51027 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
51028             Bruno Haible  <bruno@clisp.org>
51029
51030         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
51031         the GCC builtins for signbits are present and set
51032         REPLACE_SIGNBIT_USING_GCC if so.
51033         * lib/math.in.h (signbit): Define using GCC builtins if
51034         REPLACE_SIGNBIT_USING_GCC is set.
51035         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
51036         REPLACE_SIGNBIT_USING_GCC.
51037         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
51038
51039 2008-01-25  Jim Meyering  <meyering@redhat.com>
51040
51041         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
51042         * lib/poll.c: Include <config.h>, not "config.h".
51043         * tests/test-getaddrinfo.c: Likewise.
51044
51045 2008-01-25  Simon Josefsson  <simon@josefsson.org>
51046
51047         * modules/sockets-tests: New file.
51048
51049 2008-01-24  Simon Josefsson  <simon@josefsson.org>
51050
51051         * modules/sockets: New module, can be used to call WSA_Startup and
51052         WSA_Cleanup when needed.
51053
51054         * lib/sockets.h, lib/sockets.c: New files.
51055
51056         * m4/sockets.m4: New file.
51057
51058         * tests/test-sockets.c: New file.
51059
51060 2008-01-19  Bruno Haible  <bruno@clisp.org>
51061
51062         * doc/posix-headers: Renamed from doc/headers.
51063         * doc/posix-functions: Renamed from doc/functions.
51064         * doc/gnulib.texi: Update.
51065
51066 2008-01-19  Bruno Haible  <bruno@clisp.org>
51067
51068         * doc/glibc-functions/strcasestr.texi: Include contents of
51069         doc/functions/strcasestr.texi, fixing the list of platforms.
51070         * doc/functions/strcasestr.texi: Remove file.
51071
51072 2008-01-19  Bruno Haible  <bruno@clisp.org>
51073
51074         * doc/glibc-functions/memmem.texi: Include contents of
51075         doc/functions/memmem.texi.
51076         * doc/functions/memmem.texi: Remove file.
51077
51078 2008-01-18  Bruno Haible  <bruno@clisp.org>
51079
51080         * doc/glibc-functions/*.texi: New files.
51081         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
51082         to use the new files.
51083
51084 2008-01-17  Bruno Haible  <bruno@clisp.org>
51085
51086         * tests/test-gethostname.c (main): Fix printf statement.
51087
51088 2008-01-17  Simon Josefsson  <simon@josefsson.org>
51089
51090         * modules/gethostname-tests: New file.
51091
51092         * tests/test-gethostname.c: New file.
51093
51094 2008-01-17  Simon Josefsson  <simon@josefsson.org>
51095
51096         * lib/gethostname.c: Include string.h unconditionally, strncpy is
51097         used by the UNAME case.  Reported by Bruno Haible
51098         <bruno@clisp.org>.
51099
51100 2008-01-17  Eric Blake  <ebb9@byu.net>
51101
51102         Convert c-strcasestr to be more efficient.
51103         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
51104         (Depends-on): Add c-strcase, remove malloca, strnlen.
51105         * tests/test-c-strcasestr.c (main): Enhance test.
51106         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
51107
51108 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
51109
51110         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
51111         Use it in creating po/Makevars.
51112
51113 2008-01-15  Simon Josefsson  <simon@josefsson.org>
51114
51115         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
51116         Applications that requires it should initialize libgcrypt
51117         manually.
51118
51119 2008-01-16  Simon Josefsson  <simon@josefsson.org>
51120
51121         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
51122
51123 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
51124
51125         Fix problem with getdate on mingw32 reported by Simon Josefsson
51126         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
51127         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
51128         tzname", when deciding whether to declare tzname.
51129         * lib/strftime.c (tzname): Likewise.
51130
51131 2008-01-15  Bruno Haible  <bruno@clisp.org>
51132
51133         Work around a MacOS X 10.5 bug in frexpl().
51134         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
51135         * doc/functions/frexpl.texi: Document the bug.
51136         Reported by Elias Pipping <pipping@gentoo.org>.
51137
51138 2008-01-14  Eric Blake  <ebb9@byu.net>
51139
51140         Touch up previous patch.
51141         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
51142         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
51143
51144         Convert strcasestr module to use Two-Way algorithm.
51145         * modules/strcasestr-simple: New module, based on the old
51146         strcasestr, but with Two-Way rather than KMP.
51147         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
51148         * lib/string.in.h (rpl_strcasestr): Declare.
51149         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
51150         performance.
51151         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
51152         * modules/string (Makefile.am): Support strcasestr.
51153         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
51154         * modules/strcasestr-tests (Depends-on): Check for alarm.
51155         * tests/test-strcasestr.c: Augment test.
51156         * lib/str-two-way.h: Clean up stray macro.
51157         * NEWS: Document new module.
51158         * MODULES.html.sh (string handling): Likewise.
51159         * doc/functions/strcasestr.texi: New file.
51160         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
51161         here, since it is not a POSIX function.
51162
51163 2008-01-14  Colin Watson  <cjwatson@debian.org>
51164             Bruno Haible  <bruno@clisp.org>
51165
51166         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
51167         works fine; if not, set REPLACE_STRSIGNAL.
51168         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
51169         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
51170         REPLACE_STRSIGNAL.
51171         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
51172         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
51173         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
51174
51175 2008-01-14  Bruno Haible  <bruno@clisp.org>
51176
51177         * modules/strsignal (Include): Change to <string.h>.
51178
51179 2008-01-14  Colin Watson  <cjwatson@debian.org>
51180
51181         * modules/argp (Notice): Add a notice recommending to change
51182         XGETTEXT_OPTIONS.
51183         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
51184
51185 2008-01-13  Colin Watson  <cjwatson@debian.org>
51186
51187         * modules/strsignal-tests: New file.
51188         * tests/test-strsignal.c: New file.
51189
51190         * lib/strsignal.c: New file, from glibc with modifications.
51191         * lib/siglist.h: New file, from glibc with modifications.
51192         * lib/string.in.h (strsignal): New declaration.
51193         * m4/strsignal.m4: New file.
51194         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
51195         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
51196         * modules/strsignal: New file.
51197         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
51198         HAVE_DECL_STRSIGNAL.
51199
51200 2008-01-13  Bruno Haible  <bruno@clisp.org>
51201
51202         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
51203         locale encoding is not ASCII. Needed for OpenBSD 4.0.
51204         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
51205         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
51206
51207 2008-01-13  Bruno Haible  <bruno@clisp.org>
51208
51209         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
51210         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
51211         * lib/argp.h (__attribute__): Likewise.
51212         * lib/c-stack.c (__attribute__): Likewise.
51213         * lib/error.h (__attribute__): Likewise.
51214         * lib/fts.c (__attribute__): Likewise.
51215         * lib/openat.h (__attribute__): Likewise.
51216         * lib/stdio.in.h (__attribute__): Likewise.
51217         * lib/string.in.h (__attribute__): Likewise.
51218         * lib/utimens.c (__attribute__): Likewise.
51219         * lib/vasnprintf.h (__attribute__): Likewise.
51220         * lib/xalloc.h (__attribute__): Likewise.
51221         * lib/xprintf.h (__attribute__): Likewise.
51222         * lib/xstrtol.h (__attribute__): Likewise.
51223         * lib/xvasprintf.h (__attribute__): Likewise.
51224
51225 2008-01-12  Bruno Haible  <bruno@clisp.org>
51226
51227         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
51228         * doc/glibc-headers/a.out.texi: New file.
51229         * doc/glibc-headers/aliases.texi: New file.
51230         * doc/glibc-headers/alloca.texi: New file.
51231         * doc/glibc-headers/ar.texi: New file.
51232         * doc/glibc-headers/argp.texi: New file.
51233         * doc/glibc-headers/argz.texi: New file.
51234         * doc/glibc-headers/byteswap.texi: New file.
51235         * doc/glibc-headers/crypt.texi: New file.
51236         * doc/glibc-headers/endian.texi: New file.
51237         * doc/glibc-headers/envz.texi: New file.
51238         * doc/glibc-headers/err.texi: New file.
51239         * doc/glibc-headers/error.texi: New file.
51240         * doc/glibc-headers/execinfo.texi: New file.
51241         * doc/glibc-headers/fpu_control.texi: New file.
51242         * doc/glibc-headers/fstab.texi: New file.
51243         * doc/glibc-headers/fts.texi: New file.
51244         * doc/glibc-headers/getopt.texi: New file.
51245         * doc/glibc-headers/ieee754.texi: New file.
51246         * doc/glibc-headers/ifaddrs.texi: New file.
51247         * doc/glibc-headers/libintl.texi: New file.
51248         * doc/glibc-headers/mcheck.texi: New file.
51249         * doc/glibc-headers/mntent.texi: New file.
51250         * doc/glibc-headers/obstack.texi: New file.
51251         * doc/glibc-headers/paths.texi: New file.
51252         * doc/glibc-headers/printf.texi: New file.
51253         * doc/glibc-headers/pty.texi: New file.
51254         * doc/glibc-headers/resolv.texi: New file.
51255         * doc/glibc-headers/shadow.texi: New file.
51256         * doc/glibc-headers/sysexits.texi: New file.
51257         * doc/glibc-headers/ttyent.texi: New file.
51258
51259 2008-01-12  Jim Meyering  <meyering@redhat.com>
51260
51261         announce-gen: emit Gnulib's git-based version string.
51262         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
51263         New option --gnulib-version=V, where V is expected to be
51264         the output of running git describe in the gnulib directory.
51265         (get_tool_versions): Request feedback on xdelta.  I suspect it's
51266         not useful, and plan to stop publishing an xdelta file with each
51267         coreutils release.
51268
51269         * build-aux/announce-gen: Also check for lzma-compressed files.
51270
51271 2008-01-11  Bruno Haible  <bruno@clisp.org>
51272
51273         * tests/test-memmem.c (main): Increase maximum allowed time.
51274         * tests/test-strstr.c (main): Likewise.
51275
51276 2008-01-11  Bruno Haible  <bruno@clisp.org>
51277
51278         * doc/functions/memmem.texi: Add more precisions about platforms.
51279         * doc/functions/strstr.texi: Likewise.
51280
51281 2008-01-10  Eric Blake  <ebb9@byu.net>
51282
51283         * m4/strstr.m4: Delete cruft from copy-n-paste.
51284         Reported by Bruno Haible.
51285
51286 2008-01-10  Bruno Haible  <bruno@clisp.org>
51287
51288         Make c-strstr rely on strstr.
51289         * lib/c-strstr.c: Don't include str-kmp.h.
51290         (c_strstr): Define in terms of strstr.
51291         * modules/c-strstr (Files): Remove lib/str-kmp.h.
51292         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
51293
51294 2008-01-10  Bruno Haible  <bruno@clisp.org>
51295
51296         * doc/gnulib.texi (String Functions in C Locale): New section.
51297         * doc/c-ctype.texi: New file.
51298         * doc/c-strcase.texi: New file.
51299         * doc/c-strcaseeq.texi: New file.
51300         * doc/c-strcasestr.texi: New file.
51301         * doc/c-strstr.texi: New file.
51302         * doc/c-strtod.texi: New file.
51303         * doc/c-strtold.texi: New file.
51304
51305 2008-01-10  Eric Blake  <ebb9@byu.net>
51306
51307         * lib/relocatable.h: Fix a comment.
51308
51309 2008-01-10  Eric Blake  <ebb9@byu.net>
51310
51311         Share two-way algorithm.
51312         * lib/str-two-way.h: New file, merged from...
51313         * lib/memmem.c: ...here...
51314         * lib/strstr.c: ...and here.
51315         * modules/memmem (Files): Use it.
51316         * modules/strstr (Files): Likewise.
51317
51318         Avoid quadratic strstr implementations.
51319         * lib/strstr.c: New file.
51320         * m4/strstr.m4: Likewise.
51321         * modules/strstr: Likewise.
51322         * modules/strstr-tests: Likewise.
51323         * tests/test-strstr.c: Likewise.
51324         * lib/string.in.h (rpl_strstr): Declare.
51325         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
51326         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
51327         * modules/string (Makefile.am): Likewise.
51328         * MODULES.html.sh (string handling): Mention new module.
51329         * doc/functions/strstr.texi (strstr): Document the bug.
51330
51331 2008-01-10  Bruno Haible  <bruno@clisp.org>
51332
51333         * lib/relocatable.h (relocate): State whether result is freshly
51334         allocated or not.
51335         * lib/relocatable.c (relocate): Return a freshly allocated string
51336         instead of a pointer to a privately held string.
51337         Reported by Sylvain Beucler <beuc@gnu.org>.
51338
51339 2008-01-10  Colin Watson  <cjwatson@debian.org>
51340
51341         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
51342         s/S_ISNLK/S_ISLNK/.
51343
51344 2008-01-09  Bruno Haible  <bruno@clisp.org>
51345
51346         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
51347         and other files.
51348         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
51349         if it's only a guess.
51350         * modules/memmem: Simplify by depending on memmem-simple.
51351
51352 2008-01-09  Bruno Haible  <bruno@clisp.org>
51353
51354         Work around OpenBSD 4.0 tdelete() bug.
51355         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
51356         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
51357         macros and don't redefine the enum values.
51358         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
51359         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
51360         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
51361
51362 2008-01-09  Bruno Haible  <bruno@clisp.org>
51363
51364         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
51365         (main): Don't perform the tests if setlocale did not install a UTF-8
51366         locale. Needed on OpenBSD 4.0.
51367         * modules/wcwidth-tests (Depends-on): Add localcharset.
51368
51369 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
51370
51371         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
51372         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
51373         * NEWS: announce this.
51374         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
51375
51376 2008-01-09  Simon Josefsson  <simon@josefsson.org>
51377         and Eric Blake  <ebb9@byu.net>
51378
51379         Add memmem-simple module.
51380         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
51381         (gl_FUNC_MEMMEM): Separate performance from presence checks.
51382         * modules/memmem-simple: New file.
51383         * modules/memmem (Description): Tweak.
51384         * MODULES.html.sh (string handling): Mention new module.
51385         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
51386         addressed by memmem-simple.
51387         * NEWS: Document the difference.
51388
51389 2008-01-09  Eric Blake  <ebb9@byu.net>
51390
51391         Give gcc some memmem optimization hints.
51392         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
51393         (strcasestr): Declare as pure.
51394         * modules/memmem (Maintainer): Claim my implementation.
51395
51396 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51397
51398         Support AIX 6.1 and higher.
51399         * build-aux/config.libpath: Likewise.
51400         * build-aux/config.rpath: Likewise.
51401
51402 2008-01-08  Jim Meyering  <meyering@redhat.com>
51403             Bruno Haible  <bruno@clisp.org>
51404
51405         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
51406         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
51407         Reported by Peter Fales in
51408         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
51409
51410 2008-01-08  Bruno Haible  <bruno@clisp.org>
51411
51412         * modules/unictype/category-of (Depends-on): Add
51413         unictype/category-none.
51414         * modules/unictype/category-and-tests (Depends-on): Add
51415         unictype/category-{L,N,Lu,Nd}.
51416         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
51417         * modules/unictype/category-or-tests (Depends-on): Add
51418         unictype/category-{L,N}.
51419         * modules/unictype/category-name-tests (Depends-on): Add
51420         unictype/category-{Z,Nl}.
51421         Reported by Simon Josefsson.
51422
51423 2008-01-08  Bruno Haible  <bruno@clisp.org>
51424
51425         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
51426         convention better.
51427         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
51428         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
51429         Reported by Peter Miller <millerp@canb.auug.org.au>.
51430
51431 2008-01-08  Eric Blake  <ebb9@byu.net>
51432
51433         Rewrite memmem to guarantee linear complexity without malloc.
51434         * lib/memmem.c (memmem): Use Two-Way rather than
51435         Knuth-Morris-Pratt, to allow O(1) space usage.
51436         (critical_factorization, two_way_short_needle)
51437         (two_way_long_needle): New functions.
51438         (knuth_morris_pratt): Delete.
51439         * modules/memmem (Depends-on): No longer need malloca or stdbool.
51440         Add stdint.
51441         * tests/test-memmem.c (main): Add tests for periodic needle and
51442         sublinear performance.
51443         * doc/functions/memmem.texi (memmem): Document other deficiencies
51444         in cygwin and older glibc.
51445
51446 2008-01-08  Bruno Haible  <bruno@clisp.org>
51447
51448         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
51449         augmentation.
51450
51451 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
51452
51453         Add a configure time option: --disable-acl.
51454         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
51455         AC_ARG_ENABLE(acl).
51456
51457 2008-01-06  Simon Josefsson  <simon@josefsson.org>
51458
51459         * tests/test-localename.c: Don't include obsolete "setenv.h".
51460
51461         * modules/localename-tests (Depends-on): Need unsetenv.
51462
51463 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51464
51465         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
51466
51467 2008-01-06  Colin Watson  <cjwatson@debian.org>
51468
51469         * users.txt: Add man-db.
51470
51471 2008-01-07  Bruno Haible  <bruno@clisp.org>
51472
51473         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
51474         previous section name.
51475
51476 2008-01-07  Bruno Haible  <bruno@clisp.org>
51477
51478         * lib/progname.c (set_program_name): Don't strip off a leading
51479         "lt-" prefix outside a .libs directory.
51480         Suggested by Paul Eggert.
51481
51482 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
51483             Bruno Haible  <bruno@clisp.org>
51484
51485         Improve memory cleanup in 'relocatable' module.
51486         * lib/relocatable.h (compute_curr_prefix): Change return type to
51487         'char *'.
51488         * lib/relocatable.c (compute_curr_prefix): Change return type to
51489         'char *'. Free curr_installdir after use.
51490         (relocate): Free curr_prefix_better after use.
51491         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
51492
51493 2008-01-01  Bruno Haible  <bruno@clisp.org>
51494
51495         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
51496         failure on older glibc systems.
51497         Reported by Peter Fales <psfales@alcatel-lucent.com>.
51498
51499 2008-01-05  Eric Blake  <ebb9@byu.net>
51500
51501         Avoid quadratic system memmem.
51502         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
51503         Reported by Ralf Wildenhues.
51504
51505         Fix memmem test for mingw.
51506         * modules/memmem-tests (configure.ac): Check for alarm.
51507         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
51508         it.
51509         * doc/functions/memmem.texi: New file.
51510         * doc/gnulib.texi (Function Substitutes): Add memmem.
51511         Reported by Bruno Haible.
51512
51513 2008-01-04  Bruno Haible  <bruno@clisp.org>
51514
51515         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
51516         Require gl_HEADER_STRINGS_H_DEFAULTS, not
51517         gl_HEADER_STRING_H_DEFAULTS.
51518
51519 2008-01-04  Eric Blake  <ebb9@byu.net>
51520
51521         Shorten duration of memmem test.
51522         * tests/test-memmem.c (main): Use alarm to declare failure if test
51523         is taking too long.
51524         Reported by Ralf Wildenhues.
51525
51526 2007-12-21  Simon Josefsson  <simon@josefsson.org>
51527
51528         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
51529         string, needed by strerror.
51530
51531 2008-01-03  Colin Watson  <cjwatson@debian.org>
51532             Bruno Haible  <bruno@clisp.org>
51533
51534         * doc/gnulib-tool.texi (Localization): New section.
51535
51536 2008-01-02  Bruno Haible  <bruno@clisp.org>
51537
51538         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
51539         variables to 'unsigned char *' type.
51540         Reported by Paul Eggert.
51541
51542 2008-01-02  Jim Meyering  <jim@meyering.net>
51543
51544         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
51545
51546 2007-12-31  Jim Meyering  <jim@meyering.net>
51547
51548         Avoid use of private FTS type name.
51549         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
51550
51551 2007-12-30  Karl Berry  <karl@gnu.org>
51552
51553         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
51554         work around defect in Texinfo and/or the standalone Info browser.
51555
51556 2007-12-30  Bruno Haible  <bruno@clisp.org>
51557
51558         Unify 5 copies of the KMP code.
51559         * lib/str-kmp.h: New file.
51560         * lib/c-strcasestr.c: Include str-kmp.h.
51561         (knuth_morris_pratt): Remove function.
51562         (c_strcasestr): Update.
51563         * lib/c-strstr.c: Include str-kmp.h.
51564         (knuth_morris_pratt): Remove function.
51565         (c_strcasestr): Update.
51566         * lib/mbscasestr.c: Include str-kmp.h.
51567         (knuth_morris_pratt_unibyte): Remove function.
51568         * lib/mbsstr.c: Include str-kmp.h.
51569         (knuth_morris_pratt_unibyte): Remove function.
51570         * lib/strcasestr.c: Include str-kmp.h.
51571         (knuth_morris_pratt): Remove function.
51572         (strcasestr): Update.
51573         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
51574         * modules/c-strstr (Files): Likewise.
51575         * modules/mbscasestr (Files): Likewise.
51576         * modules/mbsstr (Files): Likewise.
51577         * modules/strcasestr (Files): Likewise.
51578         Suggested by Paul Eggert.
51579
51580 2007-12-30  Bruno Haible  <bruno@clisp.org>
51581
51582         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
51583         defined.
51584
51585 2007-12-30  Bruno Haible  <bruno@clisp.org>
51586
51587         * lib/xmalloca.h: Include xalloc.h.
51588         (xnmalloca): New macro.
51589
51590 2007-12-30  Bruno Haible  <bruno@clisp.org>
51591
51592         * lib/malloca.h (nmalloca): New macro.
51593         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
51594         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
51595         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
51596         knuth_morris_pratt_multibyte): Likewise.
51597         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
51598         knuth_morris_pratt_multibyte): Likewise.
51599         * lib/memmem.c (knuth_morris_pratt): Likewise.
51600         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
51601
51602 2007-12-25  Bruno Haible  <bruno@clisp.org>
51603
51604         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
51605         * lib/glob.c: Don't include openat.h.
51606         (link_exists2_p): Add back the code that deals with the
51607         !GLOB_ALTDIRFUNC case.
51608         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
51609         let it do the filename concatenation.
51610         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
51611         * modules/glob (Depends-on): Remove openat.
51612
51613 2007-12-31  Bruno Haible  <bruno@clisp.org>
51614
51615         * modules/dirfd (License): Change to LGPLv2+.
51616         Approved by Jim Meyering.
51617
51618 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
51619
51620         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
51621         when multiplying M by sizeof (size_t).
51622
51623 2007-12-10  Martin Lambers  <marlam@marlam.de>
51624
51625         Override getpagesize on mingw.
51626         * lib/getpagesize.c: New file.
51627         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
51628         * modules/getpagesize (Files): Add lib/getpagesize.c.
51629         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
51630         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51631         REPLACE_GETPAGESIZE.
51632         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
51633
51634 2007-12-25  Bruno Haible  <bruno@clisp.org>
51635
51636         * modules/localcharset (Notice): New field.
51637         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
51638         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
51639
51640 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
51641             Bruno Haible  <bruno@clisp.org>
51642
51643         Avoid using the syntax symbol() in formatted documentation.
51644         * MODULES.html.sh (func_module): When replacing symbol() with a
51645         hyperlink, remove the parentheses. Show an error if some remain.
51646         Recognize and render the '...' syntax.
51647         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
51648         Rework. Add paragraph about GCC's inlining.
51649         * doc/alloca.texi: Likewise.
51650         * doc/error.texi: Remove parentheses from symbol reference.
51651         * doc/gnulib-intro.texi: Likewise.
51652         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
51653         * modules/fnmatch (Description): Reword to say "the ... function".
51654         * modules/full-read (Description): Likewise.
51655         * modules/full-write (Description): Likewise.
51656         * modules/safe-read (Description): Likewise.
51657         * modules/safe-write (Description): Likewise.
51658         * modules/strchrnul (Description): Likewise.
51659         * modules/trim (Description): Likewise.
51660         * modules/error (Description): Remove parentheses from symbol
51661         references.
51662         * modules/verror (Description): Likewise.
51663         Reported by Karl Berry.
51664
51665 2007-12-25  Bruno Haible  <bruno@clisp.org>
51666
51667         Fixup after 2007-10-16 commit.
51668         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
51669
51670 2007-12-24  Bruno Haible  <bruno@clisp.org>
51671
51672         Make --enable-relocatable work with DESTDIR.
51673         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
51674         to compute installdir from destprog.
51675         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
51676         also set the RELOC_DESTDIR variable.
51677         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
51678
51679 2007-12-24  Bruno Haible  <bruno@clisp.org>
51680
51681         Fix link error due to xalloc_die().
51682         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
51683         of xreadlink.
51684         * lib/relocwrapper.c: Update comments.
51685         * build-aux/install-reloc: Remove xreadlink.c from file list.
51686         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
51687         xreadlink.c.
51688         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
51689
51690 2007-12-24  Bruno Haible  <bruno@clisp.org>
51691
51692         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
51693         * lib/setenv.h: Remove file.
51694         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
51695         lib/setenv.h.
51696         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
51697         (Depends-on): Add stdlib.
51698         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
51699         gl_FUNC_UNSETENV.
51700         (Include): Replace setenv.h with <stdlib.h>.
51701         * modules/unsetenv: New file.
51702         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
51703         * lib/unsetenv.c: Include <stdlib.h> first.
51704         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
51705         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
51706         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
51707         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
51708         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
51709         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
51710         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
51711         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
51712         * doc/functions/unsetenv.texi: Update.
51713         * modules/xsetenv (Depends-on): Add unsetenv.
51714         * modules/getdate (Depends-on): Likewise.
51715         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
51716         * lib/xsetenv.c: Don't include setenv.h.
51717         * lib/getdate.y: Likewise.
51718         * lib/relocwrapper.c: Likewise.
51719         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
51720         (Depends-on): Add stdlib.
51721         * NEWS: Mention the changes.
51722         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
51723
51724 2007-12-23  Bruno Haible  <bruno@clisp.org>
51725
51726         * lib/memmem.c (memmem): Use lowercase variable names. Tab
51727         indentation.
51728
51729 2007-12-23  Bruno Haible  <bruno@clisp.org>
51730
51731         * lib/c-strcasestr.c: Add more comments.
51732         * lib/c-strstr.c: Likewise.
51733         * lib/mbscasestr.c: Likewise.
51734         * lib/mbsstr.c: Likewise.
51735         * lib/strcasestr.c: Likewise.
51736         * lib/memmem.c: Likewise.
51737
51738 2007-12-23  Bruno Haible  <bruno@clisp.org>
51739
51740         * tests/test-memmem.c: Include <string.h> first.
51741
51742 2007-12-22  Bruno Haible  <bruno@clisp.org>
51743
51744         * gnulib-tool (func_create_testdir): Change $auxdir while generating
51745         the contents of $testsbase.
51746         Reported by Ralf Wildenhues.
51747
51748 2007-12-22  Bruno Haible  <bruno@clisp.org>
51749
51750         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
51751         two variables local_ldadd_before, local_ldadd_last.
51752
51753 2007-12-20  Eric Blake  <ebb9@byu.net>
51754
51755         Work around circular library issue when cross-compiling.
51756         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
51757         that progname.o does not need to pull in rpl_memcmp.
51758
51759 2007-12-19  Eric Blake  <ebb9@byu.net>
51760
51761         Fix memmem to avoid O(n^2) worst-case complexity.
51762         * lib/memmem.c (knuth_morris_pratt): New function.
51763         (memmem): Use it if first few naive iterations fail.
51764         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
51765         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
51766         * modules/memchr (License): Likewise.
51767         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
51768         malloca.
51769         * tests/test-memmem.c: Rewrite, borrowing ideas from
51770         test-mbsstr1.c; the old version wouldn't even compile!
51771         * modules/memmem-tests: New file.
51772         * lib/string.in.h (rpl_memmem): Add declaration.
51773         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
51774         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
51775         REPLACE_MEMMEM.
51776
51777 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
51778
51779         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
51780         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
51781         before any system include files, and undef after them all.  This
51782         should fix a problem on VMS reported by John E. Malmberg in
51783         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
51784
51785 2007-12-17  Eric Blake  <ebb9@byu.net>
51786
51787         Revert addition of verify, for BSD/OS.
51788         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
51789         can't handle large files, for the sake of obsolete platforms.
51790         * modules/fseeko (Depends-on): Remove verify.
51791         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
51792         * doc/functions/ftello.texi (ftello): Likewise.
51793         * doc/functions/fgetpos.texi (fgetpos): Likewise.
51794         Reported by Larry Jones.
51795
51796 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
51797
51798         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
51799         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
51800
51801 2007-12-17  Jim Meyering  <meyering@redhat.com>
51802
51803         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
51804         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
51805         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
51806         * modules/getcwd (Depends-on): Add openat.
51807         Reported by Petr Salinger.
51808
51809 2007-12-17  Bruno Haible  <bruno@clisp.org>
51810
51811         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
51812         avoid a segmentation fault of the configure test on x86_64 systems.
51813
51814 2007-12-15  Jim Meyering  <meyering@redhat.com>
51815
51816         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
51817
51818 2007-12-13  Eric Blake  <ebb9@byu.net>
51819
51820         Another fseek test.
51821         * tests/test-fseek.c (main): Also test ungetc handling.
51822         * tests/test-fseeko.c (main): Likewise.
51823         * modules/fseeko (Depends-on): Add verify.
51824         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
51825         large.
51826         Reported by Larry Jones.
51827
51828         Fix fseeko on mingw.
51829         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
51830         seek.
51831
51832         Beef up fseek tests.
51833         * tests/test-fseek.c (main): Also test eof handling.
51834         * tests/test-fseeko.c (main): Likewise.
51835         Reported by Larry Jones.
51836
51837 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
51838
51839         Fix fseeko on BSD-based platforms.
51840         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
51841         successful seek.
51842
51843 2007-12-12  Eric Blake  <ebb9@byu.net>
51844
51845         Allow circular dependency of separate libtests.a
51846         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
51847         when use_libtests.
51848
51849 2007-12-11  Eric Blake  <ebb9@byu.net>
51850
51851         Fix bug with -0.0L in previous patch.
51852         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
51853         * tests/test-isnan.c (main): Also test on zeroes.
51854         * tests/test-isnanf.c (main): Likewise.
51855         * tests/test-isnanl.h (main): Likewise.
51856
51857         Detect pseudo-denormals on x86 even when cross-compiling.
51858         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
51859         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
51860         invalid bit patterns that happen to satisfy ==.
51861
51862         Avoid link failures with separate libtests.a.
51863         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
51864         last, to satisfy circular dependencies.
51865
51866 2007-12-11  Eric Blake  <ebb9@byu.net>
51867         and Bruno Haible  <bruno@clisp.org>
51868
51869         Fix OpenBSD 4.0 <float.h> handling of long double.
51870         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
51871         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
51872         * doc/headers/float.texi (float.h): Document OpenBSD bug.
51873
51874 2007-12-11  Jim Meyering  <meyering@redhat.com>
51875
51876         * users.txt: Add libvirt.
51877
51878         Support versions of autoconf prior to 2.59c.
51879         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
51880         if it is not already defined.
51881
51882 2007-12-09  Bruno Haible  <bruno@clisp.org>
51883
51884         Let 'gnulib-tool --import' collect sources needed for the tests in
51885         tests/ rather than in lib/.
51886         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
51887         argument. If true, add rules to generate libtests.a, and put libtests.a
51888         into $(LDADD). Consider source files in subdirectories and set
51889         uses_subdirs.
51890         (func_emit_initmacro_start, func_emit_initmacro_end,
51891         func_emit_initmacro_done): Pass all arguments explicitly.
51892         (func_import): Determine two module lists main_modules,
51893         testsrelated_modules. Determine use_libtests. Determine two variables
51894         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
51895         instead of just sed_transform_lib_file. Determine two variables
51896         main_files and testsrelated_files. Compute 'files' as the union of
51897         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
51898         func_add_or_update. In the generated gnulib-comp.m4, collect the
51899         object files for tests/ in different variables than those for lib/.
51900         Substitute LIBTESTS_LIBDEPS.
51901         (func_create_testdir): Combine the uses_subdirs results from
51902         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
51903
51904 2007-12-09  Bruno Haible  <bruno@clisp.org>
51905
51906         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
51907         the build-aux directory.
51908
51909 2007-12-09  Bruno Haible  <bruno@clisp.org>
51910
51911         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
51912         introduced on 2006-09-09.
51913
51914 2007-12-07  Jim Meyering  <meyering@redhat.com>
51915
51916         Let these macros work also with autoconf-2.59.
51917         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
51918         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
51919         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
51920
51921 2007-12-06  Jim Meyering  <meyering@redhat.com>
51922
51923         Avoid a configure-time syntax error in gl_FUNC_ACL.
51924         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
51925         function in each branch, before testing the cache variable.
51926
51927 2007-12-04  Eric Blake  <ebb9@byu.net>
51928
51929         Make scripts executable.
51930         * build-aux/config.guess: Add execute permissions.
51931         * build-aux/config.sub: Likewise.
51932         * build-aux/gendocs.sh: Likewise.
51933
51934         Fix frexp on mingw.
51935         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
51936         cross-compiling.
51937         * doc/functions/frexp.texi (frexp): Document the bug.
51938
51939         Make cygwin fseeko check more reliable.
51940         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
51941         version numbers, rather than unrelated feature check.
51942         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
51943         * doc/functions/ftello.texi (ftello): Likewise.
51944         Reported by Bruno Haible.
51945
51946         * m4/strerror.m4: Bump version number.
51947
51948 2007-12-03  Bruno Haible  <bruno@clisp.org>
51949
51950         * doc/functions/mprotect.texi: Mention the mingw problem.
51951
51952 2007-12-03  Eric Blake  <ebb9@byu.net>
51953
51954         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
51955         REPLACE_STRERROR is initialized before this macro.
51956
51957 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
51958
51959         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
51960         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
51961         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
51962         put -lsec in even for programs other than 'ls'.  This fixes a problem
51963         for gettext reported by Bruno Haible in
51964         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
51965         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
51966         Add support for Solaris 10.  This isn't efficient, but should get the
51967         job done for now.
51968
51969 2007-12-03  James Youngman  <jay@gnu.org>
51970
51971         * doc/regexprops-generic.texi: change "an close-group" to "a
51972         close-group" and "illegal" to "not allowed".
51973
51974 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51975
51976         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
51977         pr_byname.h. Needed for the rare case when the maintainer has done
51978         "make maintainer-clean" in the source directory and then attempts a
51979         build outside the source directory.
51980         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
51981         scripts_byname.h.
51982
51983 2007-12-02  Martin Lambers <marlam@marlam.de>
51984             Bruno Haible  <bruno@clisp.org>
51985
51986         * lib/getpagesize.h: Remove file.
51987         * lib/unistd.in.h: Include declaration of getpagesize here.
51988         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
51989         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
51990         HAVE_SYS_PARAM_H.
51991         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
51992         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
51993         * modules/getpagesize (Files): Remove lib/getpagesize.h.
51994         (Depends-on): Add unistd.
51995         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51996         (Include): Use <unistd.h> instead of getpagesize.h.
51997         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
51998         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
51999         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
52000         gl_GETPAGESIZE invocation, already handled by module dependency.
52001         * lib/pagealign_alloc.c: Don't include getpagesize.h.
52002
52003 2007-12-02  Bruno Haible  <bruno@clisp.org>
52004
52005         * modules/strings-tests: New file.
52006         * tests/test-strings.c: New file.
52007
52008         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
52009         * lib/strings.in.h: New file.
52010         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
52011         * m4/strings_h.m4: New file.
52012         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
52013         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
52014         * modules/strings: New file.
52015         * modules/string (Makefile.am): Update.
52016         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
52017         Reported by Karl Berry.
52018
52019 2007-12-01  Eric Blake  <ebb9@byu.net>
52020
52021         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
52022         accomodate fix in cygwin 1.5.25.
52023
52024 2007-12-01  Jim Meyering  <meyering@redhat.com>
52025
52026         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
52027         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
52028         that would inhibit utf8-optimization of a regexp containing line-
52029         or buffer-anchors, e.g., `^', `$'.
52030
52031 2007-11-30  Bruno Haible  <bruno@clisp.org>
52032
52033         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
52034         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
52035         glthread_recursive_lock_init.
52036         * lib/lock.c (glthread_recursive_lock_init)
52037         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
52038         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52039
52040 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
52041
52042         New function qset_acl, like set_acl but with syscall semantics.
52043         * lib/acl.h (qset_acl): New decl.
52044         * lib/acl.c (qset_acl): New function.
52045         (set_acl): Use new function.  Use more-consistent diagnostics.
52046
52047 2007-11-28  Jim Meyering  <meyering@redhat.com>
52048
52049         * modules/physmem (License): Change from GPL to LGPLv2+.
52050
52051 2007-11-26  Bruno Haible  <bruno@clisp.org>
52052
52053         * lib/vasnprintf.c (decode_long_double): Don't abort if the
52054         'long double' type has excess precision.
52055         Reported by Jim Meyering in
52056         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
52057
52058 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52059
52060         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
52061         Sync from <http://gnu.org/licenses>.
52062         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
52063         with license text from same location.
52064         * doc/maintain.texi, doc/standards.texi:  Sync from
52065         <http://savannah.gnu.org/projects/gnustandards>.
52066
52067 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
52068         and Jim Meyering  <meyering@redhat.com>
52069
52070         Adjust getdate' grammar to accept a slightly more regular language.
52071         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
52072         Before, the former was rejected.
52073         * lib/getdate.y (digits_to_date_time): New function, factored
52074         out of ...
52075         (number): ...here.  Just call digits_to_date_time.
52076         (hybrid): New non-terminal to handle an <unsigned number,
52077         signed relative offset> sequence consistently.
52078
52079 2007-11-18  Jim Meyering  <meyering@redhat.com>
52080
52081         Pull my changes from coreutils:
52082         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
52083         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
52084         use of $gnulib_tool_option_extras, so that it's separated from the
52085         preceding argument.
52086
52087         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
52088         * build-aux/bootstrap (cp_mark_as_generated): Create any required
52089         parent destination directories before copying a file into place.
52090
52091 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
52092
52093         bootstrap: work also with 4-argument variant of AC_INIT
52094         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
52095
52096 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
52097
52098         Port test-getaddrinfo to Solaris.
52099         Problem reported by Bruno Haible in
52100         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
52101         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
52102         explanation of setting 'hints'.
52103         Don't reject an implementation merely because it returns EAI_SERVICE.
52104         (EAI_SERVICE): Define to 0 if not defined.
52105
52106 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
52107
52108         The license of gnu-make and posix-shell is now "GPLed build tool".
52109         * modules/gnu-make (License): Likewise.
52110         * modules/posix-shell (License): Likewise.
52111
52112         New module posix-shell, for determining a POSIX shell
52113         or perhaps something that is close enough to a POSIX shell.
52114         * m4/posix-shell.m4: New file.
52115         * modules/posix-shell: New file.
52116
52117         * MODULES.html.sh: Mention new module.
52118
52119         New module gnu-make, for determining whether we're using GNU Make.
52120         * m4/gnu-make.m4: New file.
52121         * modules/gnu-make: New file.
52122         * MODULES.html.sh: Mention new module.
52123
52124 2007-11-14  Jim Meyering  <meyering@redhat.com>
52125
52126         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
52127         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
52128         use this macro to create a function _definition_.
52129         Remove useless "#undef ARGMATCH_DIE".
52130
52131 2007-11-14  Bruno Haible  <bruno@clisp.org>
52132
52133         * lib/config.charset: Update for OpenBSD 4.1.
52134         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
52135
52136 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
52137
52138         Document 64-bit #if problems in stdint.texi.
52139         * doc/headers/stdint.texi (stdint.h): Mention problems with
52140         64-bit-#if, and how to work around them.
52141
52142         Don't insist on 'long long int' support in the preprocessor.  It
52143         breaks too many things.  For example, PRIdMAX still uses a 'long
52144         long int' format with the latest Sun compiler, even though
52145         HAVE_LONG_LONG_INT isn't defined due to that compiler's
52146         preprocessor problem.  This causes the latest coreutils to dump
52147         core on Solaris 10 sparc with the Sun C compiler.
52148         Instead, fix the 2007-10-16 problem in a different way, by evaluating
52149         the troublesome expressions at configure-time, not at #if-time.
52150         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
52151         preprocessor.
52152         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
52153         compile-time C checks, done at 'configure'-time.
52154         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
52155         * modules/inttypes (Makefile): Substitute the new symbols that
52156         gl_INTTYPES_H now generates.
52157         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
52158
52159 2007-11-12  Bruno Haible  <bruno@clisp.org>
52160
52161         Tests for Unicode character classification functions.
52162
52163         * modules/unictype/bidicategory-byname-tests: New file.
52164         * modules/unictype/bidicategory-name-tests: New file.
52165         * modules/unictype/bidicategory-of-tests: New file.
52166         * modules/unictype/bidicategory-test-tests: New file.
52167         * modules/unictype/block-list-tests: New file.
52168         * modules/unictype/block-of-tests: New file.
52169         * modules/unictype/block-test-tests: New file.
52170         * modules/unictype/category-C-tests: New file.
52171         * modules/unictype/category-Cc-tests: New file.
52172         * modules/unictype/category-Cf-tests: New file.
52173         * modules/unictype/category-Cn-tests: New file.
52174         * modules/unictype/category-Co-tests: New file.
52175         * modules/unictype/category-Cs-tests: New file.
52176         * modules/unictype/category-L-tests: New file.
52177         * modules/unictype/category-Ll-tests: New file.
52178         * modules/unictype/category-Lm-tests: New file.
52179         * modules/unictype/category-Lo-tests: New file.
52180         * modules/unictype/category-Lt-tests: New file.
52181         * modules/unictype/category-Lu-tests: New file.
52182         * modules/unictype/category-M-tests: New file.
52183         * modules/unictype/category-Mc-tests: New file.
52184         * modules/unictype/category-Me-tests: New file.
52185         * modules/unictype/category-Mn-tests: New file.
52186         * modules/unictype/category-N-tests: New file.
52187         * modules/unictype/category-Nd-tests: New file.
52188         * modules/unictype/category-Nl-tests: New file.
52189         * modules/unictype/category-No-tests: New file.
52190         * modules/unictype/category-P-tests: New file.
52191         * modules/unictype/category-Pc-tests: New file.
52192         * modules/unictype/category-Pd-tests: New file.
52193         * modules/unictype/category-Pe-tests: New file.
52194         * modules/unictype/category-Pf-tests: New file.
52195         * modules/unictype/category-Pi-tests: New file.
52196         * modules/unictype/category-Po-tests: New file.
52197         * modules/unictype/category-Ps-tests: New file.
52198         * modules/unictype/category-S-tests: New file.
52199         * modules/unictype/category-Sc-tests: New file.
52200         * modules/unictype/category-Sk-tests: New file.
52201         * modules/unictype/category-Sm-tests: New file.
52202         * modules/unictype/category-So-tests: New file.
52203         * modules/unictype/category-Z-tests: New file.
52204         * modules/unictype/category-Zl-tests: New file.
52205         * modules/unictype/category-Zp-tests: New file.
52206         * modules/unictype/category-Zs-tests: New file.
52207         * modules/unictype/category-and-not-tests: New file.
52208         * modules/unictype/category-and-tests: New file.
52209         * modules/unictype/category-byname-tests: New file.
52210         * modules/unictype/category-name-tests: New file.
52211         * modules/unictype/category-none-tests: New file.
52212         * modules/unictype/category-of-tests: New file.
52213         * modules/unictype/category-or-tests: New file.
52214         * modules/unictype/category-test-withtable-tests: New file.
52215         * modules/unictype/combining-class-tests: New file.
52216         * modules/unictype/ctype-alnum-tests: New file.
52217         * modules/unictype/ctype-alpha-tests: New file.
52218         * modules/unictype/ctype-blank-tests: New file.
52219         * modules/unictype/ctype-cntrl-tests: New file.
52220         * modules/unictype/ctype-digit-tests: New file.
52221         * modules/unictype/ctype-graph-tests: New file.
52222         * modules/unictype/ctype-lower-tests: New file.
52223         * modules/unictype/ctype-print-tests: New file.
52224         * modules/unictype/ctype-punct-tests: New file.
52225         * modules/unictype/ctype-space-tests: New file.
52226         * modules/unictype/ctype-upper-tests: New file.
52227         * modules/unictype/ctype-xdigit-tests: New file.
52228         * modules/unictype/decimal-digit-tests: New file.
52229         * modules/unictype/digit-tests: New file.
52230         * modules/unictype/mirror-tests: New file.
52231         * modules/unictype/numeric-tests: New file.
52232         * modules/unictype/property-alphabetic-tests: New file.
52233         * modules/unictype/property-ascii-hex-digit-tests: New file.
52234         * modules/unictype/property-bidi-arabic-digit-tests: New file.
52235         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
52236         * modules/unictype/property-bidi-block-separator-tests: New file.
52237         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
52238         * modules/unictype/property-bidi-common-separator-tests: New file.
52239         * modules/unictype/property-bidi-control-tests: New file.
52240         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
52241         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
52242         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
52243         * modules/unictype/property-bidi-european-digit-tests: New file.
52244         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
52245         * modules/unictype/property-bidi-left-to-right-tests: New file.
52246         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
52247         * modules/unictype/property-bidi-other-neutral-tests: New file.
52248         * modules/unictype/property-bidi-pdf-tests: New file.
52249         * modules/unictype/property-bidi-segment-separator-tests: New file.
52250         * modules/unictype/property-bidi-whitespace-tests: New file.
52251         * modules/unictype/property-byname-tests: New file.
52252         * modules/unictype/property-combining-tests: New file.
52253         * modules/unictype/property-composite-tests: New file.
52254         * modules/unictype/property-currency-symbol-tests: New file.
52255         * modules/unictype/property-dash-tests: New file.
52256         * modules/unictype/property-decimal-digit-tests: New file.
52257         * modules/unictype/property-default-ignorable-code-point-tests: New file.
52258         * modules/unictype/property-deprecated-tests: New file.
52259         * modules/unictype/property-diacritic-tests: New file.
52260         * modules/unictype/property-extender-tests: New file.
52261         * modules/unictype/property-format-control-tests: New file.
52262         * modules/unictype/property-grapheme-base-tests: New file.
52263         * modules/unictype/property-grapheme-extend-tests: New file.
52264         * modules/unictype/property-grapheme-link-tests: New file.
52265         * modules/unictype/property-hex-digit-tests: New file.
52266         * modules/unictype/property-hyphen-tests: New file.
52267         * modules/unictype/property-id-continue-tests: New file.
52268         * modules/unictype/property-id-start-tests: New file.
52269         * modules/unictype/property-ideographic-tests: New file.
52270         * modules/unictype/property-ids-binary-operator-tests: New file.
52271         * modules/unictype/property-ids-trinary-operator-tests: New file.
52272         * modules/unictype/property-ignorable-control-tests: New file.
52273         * modules/unictype/property-iso-control-tests: New file.
52274         * modules/unictype/property-join-control-tests: New file.
52275         * modules/unictype/property-left-of-pair-tests: New file.
52276         * modules/unictype/property-line-separator-tests: New file.
52277         * modules/unictype/property-logical-order-exception-tests: New file.
52278         * modules/unictype/property-lowercase-tests: New file.
52279         * modules/unictype/property-math-tests: New file.
52280         * modules/unictype/property-non-break-tests: New file.
52281         * modules/unictype/property-not-a-character-tests: New file.
52282         * modules/unictype/property-numeric-tests: New file.
52283         * modules/unictype/property-other-alphabetic-tests: New file.
52284         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
52285         * modules/unictype/property-other-grapheme-extend-tests: New file.
52286         * modules/unictype/property-other-id-continue-tests: New file.
52287         * modules/unictype/property-other-id-start-tests: New file.
52288         * modules/unictype/property-other-lowercase-tests: New file.
52289         * modules/unictype/property-other-math-tests: New file.
52290         * modules/unictype/property-other-uppercase-tests: New file.
52291         * modules/unictype/property-paired-punctuation-tests: New file.
52292         * modules/unictype/property-paragraph-separator-tests: New file.
52293         * modules/unictype/property-pattern-syntax-tests: New file.
52294         * modules/unictype/property-pattern-white-space-tests: New file.
52295         * modules/unictype/property-private-use-tests: New file.
52296         * modules/unictype/property-punctuation-tests: New file.
52297         * modules/unictype/property-quotation-mark-tests: New file.
52298         * modules/unictype/property-radical-tests: New file.
52299         * modules/unictype/property-sentence-terminal-tests: New file.
52300         * modules/unictype/property-soft-dotted-tests: New file.
52301         * modules/unictype/property-space-tests: New file.
52302         * modules/unictype/property-terminal-punctuation-tests: New file.
52303         * modules/unictype/property-test-tests: New file.
52304         * modules/unictype/property-titlecase-tests: New file.
52305         * modules/unictype/property-unassigned-code-value-tests: New file.
52306         * modules/unictype/property-unified-ideograph-tests: New file.
52307         * modules/unictype/property-uppercase-tests: New file.
52308         * modules/unictype/property-variation-selector-tests: New file.
52309         * modules/unictype/property-white-space-tests: New file.
52310         * modules/unictype/property-xid-continue-tests: New file.
52311         * modules/unictype/property-xid-start-tests: New file.
52312         * modules/unictype/property-zero-width-tests: New file.
52313         * modules/unictype/scripts-tests: New file.
52314         * modules/unictype/syntax-c-ident-tests: New file.
52315         * modules/unictype/syntax-c-whitespace-tests: New file.
52316         * modules/unictype/syntax-java-ident-tests: New file.
52317         * modules/unictype/syntax-java-whitespace-tests: New file.
52318         * tests/unictype/test-bidi_byname.c: New file.
52319         * tests/unictype/test-bidi_name.c: New file.
52320         * tests/unictype/test-bidi_of.c: New file.
52321         * tests/unictype/test-bidi_test.c: New file.
52322         * tests/unictype/test-block_list.c: New file.
52323         * tests/unictype/test-block_of.c: New file.
52324         * tests/unictype/test-block_test.c: New file.
52325         * tests/unictype/test-categ_and.c: New file.
52326         * tests/unictype/test-categ_and_not.c: New file.
52327         * tests/unictype/test-categ_byname.c: New file.
52328         * tests/unictype/test-categ_name.c: New file.
52329         * tests/unictype/test-categ_none.c: New file.
52330         * tests/unictype/test-categ_of.c: New file.
52331         * tests/unictype/test-categ_or.c: New file.
52332         * tests/unictype/test-categ_test_withtable.c: New file.
52333         * tests/unictype/test-combining.c: New file.
52334         * tests/unictype/test-decdigit.c: New file.
52335         * tests/unictype/test-digit.c: New file.
52336         * tests/unictype/test-mirror.c: New file.
52337         * tests/unictype/test-numeric.c: New file.
52338         * tests/unictype/test-pr_byname.c: New file.
52339         * tests/unictype/test-pr_test.c: New file.
52340         * tests/unictype/test-predicate-part1.h: New file.
52341         * tests/unictype/test-predicate-part2.h: New file.
52342         * tests/unictype/test-scripts.c: New file.
52343         * tests/unictype/test-sy_c_ident.c: New file.
52344         * tests/unictype/test-sy_java_ident.c: New file.
52345
52346         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
52347         for Unicode 5.0.0.
52348         * tests/unictype/test-categ_Cc.c: Likewise.
52349         * tests/unictype/test-categ_Cf.c: Likewise.
52350         * tests/unictype/test-categ_Cn.c: Likewise.
52351         * tests/unictype/test-categ_Co.c: Likewise.
52352         * tests/unictype/test-categ_Cs.c: Likewise.
52353         * tests/unictype/test-categ_L.c: Likewise.
52354         * tests/unictype/test-categ_Ll.c: Likewise.
52355         * tests/unictype/test-categ_Lm.c: Likewise.
52356         * tests/unictype/test-categ_Lo.c: Likewise.
52357         * tests/unictype/test-categ_Lt.c: Likewise.
52358         * tests/unictype/test-categ_Lu.c: Likewise.
52359         * tests/unictype/test-categ_M.c: Likewise.
52360         * tests/unictype/test-categ_Mc.c: Likewise.
52361         * tests/unictype/test-categ_Me.c: Likewise.
52362         * tests/unictype/test-categ_Mn.c: Likewise.
52363         * tests/unictype/test-categ_N.c: Likewise.
52364         * tests/unictype/test-categ_Nd.c: Likewise.
52365         * tests/unictype/test-categ_Nl.c: Likewise.
52366         * tests/unictype/test-categ_No.c: Likewise.
52367         * tests/unictype/test-categ_P.c: Likewise.
52368         * tests/unictype/test-categ_Pc.c: Likewise.
52369         * tests/unictype/test-categ_Pd.c: Likewise.
52370         * tests/unictype/test-categ_Pe.c: Likewise.
52371         * tests/unictype/test-categ_Pf.c: Likewise.
52372         * tests/unictype/test-categ_Pi.c: Likewise.
52373         * tests/unictype/test-categ_Po.c: Likewise.
52374         * tests/unictype/test-categ_Ps.c: Likewise.
52375         * tests/unictype/test-categ_S.c: Likewise.
52376         * tests/unictype/test-categ_Sc.c: Likewise.
52377         * tests/unictype/test-categ_Sk.c: Likewise.
52378         * tests/unictype/test-categ_Sm.c: Likewise.
52379         * tests/unictype/test-categ_So.c: Likewise.
52380         * tests/unictype/test-categ_Z.c: Likewise.
52381         * tests/unictype/test-categ_Zl.c: Likewise.
52382         * tests/unictype/test-categ_Zp.c: Likewise.
52383         * tests/unictype/test-categ_Zs.c: Likewise.
52384         * tests/unictype/test-ctype_alnum.c: Likewise.
52385         * tests/unictype/test-ctype_alpha.c: Likewise.
52386         * tests/unictype/test-ctype_blank.c: Likewise.
52387         * tests/unictype/test-ctype_cntrl.c: Likewise.
52388         * tests/unictype/test-ctype_digit.c: Likewise.
52389         * tests/unictype/test-ctype_graph.c: Likewise.
52390         * tests/unictype/test-ctype_lower.c: Likewise.
52391         * tests/unictype/test-ctype_print.c: Likewise.
52392         * tests/unictype/test-ctype_punct.c: Likewise.
52393         * tests/unictype/test-ctype_space.c: Likewise.
52394         * tests/unictype/test-ctype_upper.c: Likewise.
52395         * tests/unictype/test-ctype_xdigit.c: Likewise.
52396         * tests/unictype/test-decdigit.h: Likewise.
52397         * tests/unictype/test-digit.h: Likewise.
52398         * tests/unictype/test-numeric.h: Likewise.
52399         * tests/unictype/test-pr_alphabetic.c: Likewise.
52400         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
52401         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
52402         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
52403         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
52404         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
52405         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
52406         * tests/unictype/test-pr_bidi_control.c: Likewise.
52407         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
52408         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
52409         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
52410         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
52411         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
52412         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
52413         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
52414         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
52415         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
52416         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
52417         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
52418         * tests/unictype/test-pr_combining.c: Likewise.
52419         * tests/unictype/test-pr_composite.c: Likewise.
52420         * tests/unictype/test-pr_currency_symbol.c: Likewise.
52421         * tests/unictype/test-pr_dash.c: Likewise.
52422         * tests/unictype/test-pr_decimal_digit.c: Likewise.
52423         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
52424         * tests/unictype/test-pr_deprecated.c: Likewise.
52425         * tests/unictype/test-pr_diacritic.c: Likewise.
52426         * tests/unictype/test-pr_extender.c: Likewise.
52427         * tests/unictype/test-pr_format_control.c: Likewise.
52428         * tests/unictype/test-pr_grapheme_base.c: Likewise.
52429         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
52430         * tests/unictype/test-pr_grapheme_link.c: Likewise.
52431         * tests/unictype/test-pr_hex_digit.c: Likewise.
52432         * tests/unictype/test-pr_hyphen.c: Likewise.
52433         * tests/unictype/test-pr_id_continue.c: Likewise.
52434         * tests/unictype/test-pr_id_start.c: Likewise.
52435         * tests/unictype/test-pr_ideographic.c: Likewise.
52436         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
52437         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
52438         * tests/unictype/test-pr_ignorable_control.c: Likewise.
52439         * tests/unictype/test-pr_iso_control.c: Likewise.
52440         * tests/unictype/test-pr_join_control.c: Likewise.
52441         * tests/unictype/test-pr_left_of_pair.c: Likewise.
52442         * tests/unictype/test-pr_line_separator.c: Likewise.
52443         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
52444         * tests/unictype/test-pr_lowercase.c: Likewise.
52445         * tests/unictype/test-pr_math.c: Likewise.
52446         * tests/unictype/test-pr_non_break.c: Likewise.
52447         * tests/unictype/test-pr_not_a_character.c: Likewise.
52448         * tests/unictype/test-pr_numeric.c: Likewise.
52449         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
52450         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
52451         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
52452         * tests/unictype/test-pr_other_id_continue.c: Likewise.
52453         * tests/unictype/test-pr_other_id_start.c: Likewise.
52454         * tests/unictype/test-pr_other_lowercase.c: Likewise.
52455         * tests/unictype/test-pr_other_math.c: Likewise.
52456         * tests/unictype/test-pr_other_uppercase.c: Likewise.
52457         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
52458         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
52459         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
52460         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
52461         * tests/unictype/test-pr_private_use.c: Likewise.
52462         * tests/unictype/test-pr_punctuation.c: Likewise.
52463         * tests/unictype/test-pr_quotation_mark.c: Likewise.
52464         * tests/unictype/test-pr_radical.c: Likewise.
52465         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
52466         * tests/unictype/test-pr_soft_dotted.c: Likewise.
52467         * tests/unictype/test-pr_space.c: Likewise.
52468         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
52469         * tests/unictype/test-pr_titlecase.c: Likewise.
52470         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
52471         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
52472         * tests/unictype/test-pr_uppercase.c: Likewise.
52473         * tests/unictype/test-pr_variation_selector.c: Likewise.
52474         * tests/unictype/test-pr_white_space.c: Likewise.
52475         * tests/unictype/test-pr_xid_continue.c: Likewise.
52476         * tests/unictype/test-pr_xid_start.c: Likewise.
52477         * tests/unictype/test-pr_zero_width.c: Likewise.
52478         * tests/unictype/test-sy_c_whitespace.c: Likewise.
52479         * tests/unictype/test-sy_java_whitespace.c: Likewise.
52480
52481 2007-11-12  Bruno Haible  <bruno@clisp.org>
52482
52483         Unicode character classification functions.
52484         * lib/unictype.h: New file.
52485         * modules/unictype/base: New file.
52486         * modules/unictype/category-L: New file.
52487         * modules/unictype/category-Lu: New file.
52488         * modules/unictype/category-Ll: New file.
52489         * modules/unictype/category-Lt: New file.
52490         * modules/unictype/category-Lm: New file.
52491         * modules/unictype/category-Lo: New file.
52492         * modules/unictype/category-M: New file.
52493         * modules/unictype/category-Mn: New file.
52494         * modules/unictype/category-Mc: New file.
52495         * modules/unictype/category-Me: New file.
52496         * modules/unictype/category-N: New file.
52497         * modules/unictype/category-Nd: New file.
52498         * modules/unictype/category-Nl: New file.
52499         * modules/unictype/category-No: New file.
52500         * modules/unictype/category-P: New file.
52501         * modules/unictype/category-Pc: New file.
52502         * modules/unictype/category-Pd: New file.
52503         * modules/unictype/category-Ps: New file.
52504         * modules/unictype/category-Pe: New file.
52505         * modules/unictype/category-Pi: New file.
52506         * modules/unictype/category-Pf: New file.
52507         * modules/unictype/category-Po: New file.
52508         * modules/unictype/category-S: New file.
52509         * modules/unictype/category-Sm: New file.
52510         * modules/unictype/category-Sc: New file.
52511         * modules/unictype/category-Sk: New file.
52512         * modules/unictype/category-So: New file.
52513         * modules/unictype/category-Z: New file.
52514         * modules/unictype/category-Zs: New file.
52515         * modules/unictype/category-Zl: New file.
52516         * modules/unictype/category-Zp: New file.
52517         * modules/unictype/category-C: New file.
52518         * modules/unictype/category-Cc: New file.
52519         * modules/unictype/category-Cf: New file.
52520         * modules/unictype/category-Cs: New file.
52521         * modules/unictype/category-Co: New file.
52522         * modules/unictype/category-Cn: New file.
52523         * modules/unictype/category-or: New file.
52524         * modules/unictype/category-of: New file.
52525         * modules/unictype/category-test: New file.
52526         * modules/unictype/category-test-withtable: New file.
52527         * modules/unictype/category-byname: New file.
52528         * modules/unictype/category-none: New file.
52529         * modules/unictype/category-and: New file.
52530         * modules/unictype/category-and-not: New file.
52531         * modules/unictype/category-name: New file.
52532         * modules/unictype/combining-class: New file.
52533         * modules/unictype/category-all: New file.
52534         * modules/unictype/bidicategory-all: New file.
52535         * modules/unictype/bidicategory-byname: New file.
52536         * modules/unictype/bidicategory-name: New file.
52537         * modules/unictype/bidicategory-of: New file.
52538         * modules/unictype/bidicategory-test: New file.
52539         * modules/unictype/decimal-digit: New file.
52540         * modules/unictype/digit: New file.
52541         * modules/unictype/numeric: New file.
52542         * modules/unictype/mirror: New file.
52543         * modules/unictype/property-white-space: New file.
52544         * modules/unictype/property-alphabetic: New file.
52545         * modules/unictype/property-other-alphabetic: New file.
52546         * modules/unictype/property-not-a-character: New file.
52547         * modules/unictype/property-default-ignorable-code-point: New file.
52548         * modules/unictype/property-other-default-ignorable-code-point: New
52549         file.
52550         * modules/unictype/property-deprecated: New file.
52551         * modules/unictype/property-logical-order-exception: New file.
52552         * modules/unictype/property-variation-selector: New file.
52553         * modules/unictype/property-private-use: New file.
52554         * modules/unictype/property-unassigned-code-value: New file.
52555         * modules/unictype/property-uppercase: New file.
52556         * modules/unictype/property-other-uppercase: New file.
52557         * modules/unictype/property-lowercase: New file.
52558         * modules/unictype/property-other-lowercase: New file.
52559         * modules/unictype/property-titlecase: New file.
52560         * modules/unictype/property-soft-dotted: New file.
52561         * modules/unictype/property-id-start: New file.
52562         * modules/unictype/property-other-id-start: New file.
52563         * modules/unictype/property-id-continue: New file.
52564         * modules/unictype/property-other-id-continue: New file.
52565         * modules/unictype/property-xid-start: New file.
52566         * modules/unictype/property-xid-continue: New file.
52567         * modules/unictype/property-pattern-white-space: New file.
52568         * modules/unictype/property-pattern-syntax: New file.
52569         * modules/unictype/property-join-control: New file.
52570         * modules/unictype/property-grapheme-base: New file.
52571         * modules/unictype/property-grapheme-extend: New file.
52572         * modules/unictype/property-other-grapheme-extend: New file.
52573         * modules/unictype/property-grapheme-link: New file.
52574         * modules/unictype/property-bidi-control: New file.
52575         * modules/unictype/property-bidi-left-to-right: New file.
52576         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
52577         * modules/unictype/property-bidi-arabic-right-to-left: New file.
52578         * modules/unictype/property-bidi-european-digit: New file.
52579         * modules/unictype/property-bidi-eur-num-separator: New file.
52580         * modules/unictype/property-bidi-eur-num-terminator: New file.
52581         * modules/unictype/property-bidi-arabic-digit: New file.
52582         * modules/unictype/property-bidi-common-separator: New file.
52583         * modules/unictype/property-bidi-block-separator: New file.
52584         * modules/unictype/property-bidi-segment-separator: New file.
52585         * modules/unictype/property-bidi-whitespace: New file.
52586         * modules/unictype/property-bidi-non-spacing-mark: New file.
52587         * modules/unictype/property-bidi-boundary-neutral: New file.
52588         * modules/unictype/property-bidi-pdf: New file.
52589         * modules/unictype/property-bidi-embedding-or-override: New file.
52590         * modules/unictype/property-bidi-other-neutral: New file.
52591         * modules/unictype/property-hex-digit: New file.
52592         * modules/unictype/property-ascii-hex-digit: New file.
52593         * modules/unictype/property-ideographic: New file.
52594         * modules/unictype/property-unified-ideograph: New file.
52595         * modules/unictype/property-radical: New file.
52596         * modules/unictype/property-ids-binary-operator: New file.
52597         * modules/unictype/property-ids-trinary-operator: New file.
52598         * modules/unictype/property-zero-width: New file.
52599         * modules/unictype/property-space: New file.
52600         * modules/unictype/property-non-break: New file.
52601         * modules/unictype/property-iso-control: New file.
52602         * modules/unictype/property-format-control: New file.
52603         * modules/unictype/property-dash: New file.
52604         * modules/unictype/property-hyphen: New file.
52605         * modules/unictype/property-punctuation: New file.
52606         * modules/unictype/property-line-separator: New file.
52607         * modules/unictype/property-paragraph-separator: New file.
52608         * modules/unictype/property-quotation-mark: New file.
52609         * modules/unictype/property-sentence-terminal: New file.
52610         * modules/unictype/property-terminal-punctuation: New file.
52611         * modules/unictype/property-currency-symbol: New file.
52612         * modules/unictype/property-math: New file.
52613         * modules/unictype/property-other-math: New file.
52614         * modules/unictype/property-paired-punctuation: New file.
52615         * modules/unictype/property-left-of-pair: New file.
52616         * modules/unictype/property-combining: New file.
52617         * modules/unictype/property-composite: New file.
52618         * modules/unictype/property-decimal-digit: New file.
52619         * modules/unictype/property-numeric: New file.
52620         * modules/unictype/property-diacritic: New file.
52621         * modules/unictype/property-extender: New file.
52622         * modules/unictype/property-ignorable-control: New file.
52623         * modules/unictype/property-test: New file.
52624         * modules/unictype/property-byname: New file.
52625         * modules/unictype/property-all: New file.
52626         * modules/unictype/scripts: New file.
52627         * modules/unictype/scripts-all: New file.
52628         * modules/unictype/block-of: New file.
52629         * modules/unictype/block-test: New file.
52630         * modules/unictype/block-list: New file.
52631         * modules/unictype/block-all: New file.
52632         * modules/unictype/syntax-c-whitespace: New file.
52633         * modules/unictype/syntax-java-whitespace: New file.
52634         * modules/unictype/syntax-c-ident: New file.
52635         * modules/unictype/syntax-java-ident: New file.
52636         * modules/unictype/ctype-alnum: New file.
52637         * modules/unictype/ctype-alpha: New file.
52638         * modules/unictype/ctype-cntrl: New file.
52639         * modules/unictype/ctype-digit: New file.
52640         * modules/unictype/ctype-graph: New file.
52641         * modules/unictype/ctype-lower: New file.
52642         * modules/unictype/ctype-print: New file.
52643         * modules/unictype/ctype-punct: New file.
52644         * modules/unictype/ctype-space: New file.
52645         * modules/unictype/ctype-upper: New file.
52646         * modules/unictype/ctype-xdigit: New file.
52647         * modules/unictype/ctype-blank: New file.
52648         * lib/unictype/bidi_byname.c: New file.
52649         * lib/unictype/bidi_name.c: New file.
52650         * lib/unictype/bidi_of.c: New file.
52651         * lib/unictype/bidi_test.c: New file.
52652         * lib/unictype/bitmap.h: New file.
52653         * lib/unictype/block_test.c: New file.
52654         * lib/unictype/blocks.c: New file.
52655         * lib/unictype/categ_C.c: New file.
52656         * lib/unictype/categ_Cc.c: New file.
52657         * lib/unictype/categ_Cf.c: New file.
52658         * lib/unictype/categ_Cn.c: New file.
52659         * lib/unictype/categ_Co.c: New file.
52660         * lib/unictype/categ_Cs.c: New file.
52661         * lib/unictype/categ_L.c: New file.
52662         * lib/unictype/categ_Ll.c: New file.
52663         * lib/unictype/categ_Lm.c: New file.
52664         * lib/unictype/categ_Lo.c: New file.
52665         * lib/unictype/categ_Lt.c: New file.
52666         * lib/unictype/categ_Lu.c: New file.
52667         * lib/unictype/categ_M.c: New file.
52668         * lib/unictype/categ_Mc.c: New file.
52669         * lib/unictype/categ_Me.c: New file.
52670         * lib/unictype/categ_Mn.c: New file.
52671         * lib/unictype/categ_N.c: New file.
52672         * lib/unictype/categ_Nd.c: New file.
52673         * lib/unictype/categ_Nl.c: New file.
52674         * lib/unictype/categ_No.c: New file.
52675         * lib/unictype/categ_P.c: New file.
52676         * lib/unictype/categ_Pc.c: New file.
52677         * lib/unictype/categ_Pd.c: New file.
52678         * lib/unictype/categ_Pe.c: New file.
52679         * lib/unictype/categ_Pf.c: New file.
52680         * lib/unictype/categ_Pi.c: New file.
52681         * lib/unictype/categ_Po.c: New file.
52682         * lib/unictype/categ_Ps.c: New file.
52683         * lib/unictype/categ_S.c: New file.
52684         * lib/unictype/categ_Sc.c: New file.
52685         * lib/unictype/categ_Sk.c: New file.
52686         * lib/unictype/categ_Sm.c: New file.
52687         * lib/unictype/categ_So.c: New file.
52688         * lib/unictype/categ_Z.c: New file.
52689         * lib/unictype/categ_Zl.c: New file.
52690         * lib/unictype/categ_Zp.c: New file.
52691         * lib/unictype/categ_Zs.c: New file.
52692         * lib/unictype/categ_and.c: New file.
52693         * lib/unictype/categ_and_not.c: New file.
52694         * lib/unictype/categ_byname.c: New file.
52695         * lib/unictype/categ_name.c: New file.
52696         * lib/unictype/categ_none.c: New file.
52697         * lib/unictype/categ_of.c: New file.
52698         * lib/unictype/categ_or.c: New file.
52699         * lib/unictype/categ_test.c: New file.
52700         * lib/unictype/combining.c: New file.
52701         * lib/unictype/ctype_alnum.c: New file.
52702         * lib/unictype/ctype_alpha.c: New file.
52703         * lib/unictype/ctype_blank.c: New file.
52704         * lib/unictype/ctype_cntrl.c: New file.
52705         * lib/unictype/ctype_digit.c: New file.
52706         * lib/unictype/ctype_graph.c: New file.
52707         * lib/unictype/ctype_lower.c: New file.
52708         * lib/unictype/ctype_print.c: New file.
52709         * lib/unictype/ctype_punct.c: New file.
52710         * lib/unictype/ctype_space.c: New file.
52711         * lib/unictype/ctype_upper.c: New file.
52712         * lib/unictype/ctype_xdigit.c: New file.
52713         * lib/unictype/decdigit.c: New file.
52714         * lib/unictype/digit.c: New file.
52715         * lib/unictype/identsyntaxmap.h: New file.
52716         * lib/unictype/mirror.c: New file.
52717         * lib/unictype/numeric.c: New file.
52718         * lib/unictype/pr_alphabetic.c: New file.
52719         * lib/unictype/pr_ascii_hex_digit.c: New file.
52720         * lib/unictype/pr_bidi_arabic_digit.c: New file.
52721         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
52722         * lib/unictype/pr_bidi_block_separator.c: New file.
52723         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
52724         * lib/unictype/pr_bidi_common_separator.c: New file.
52725         * lib/unictype/pr_bidi_control.c: New file.
52726         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
52727         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
52728         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
52729         * lib/unictype/pr_bidi_european_digit.c: New file.
52730         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
52731         * lib/unictype/pr_bidi_left_to_right.c: New file.
52732         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
52733         * lib/unictype/pr_bidi_other_neutral.c: New file.
52734         * lib/unictype/pr_bidi_pdf.c: New file.
52735         * lib/unictype/pr_bidi_segment_separator.c: New file.
52736         * lib/unictype/pr_bidi_whitespace.c: New file.
52737         * lib/unictype/pr_byname.c: New file.
52738         * lib/unictype/pr_byname.gperf: New file.
52739         * lib/unictype/pr_combining.c: New file.
52740         * lib/unictype/pr_composite.c: New file.
52741         * lib/unictype/pr_currency_symbol.c: New file.
52742         * lib/unictype/pr_dash.c: New file.
52743         * lib/unictype/pr_decimal_digit.c: New file.
52744         * lib/unictype/pr_default_ignorable_code_point.c: New file.
52745         * lib/unictype/pr_deprecated.c: New file.
52746         * lib/unictype/pr_diacritic.c: New file.
52747         * lib/unictype/pr_extender.c: New file.
52748         * lib/unictype/pr_format_control.c: New file.
52749         * lib/unictype/pr_grapheme_base.c: New file.
52750         * lib/unictype/pr_grapheme_extend.c: New file.
52751         * lib/unictype/pr_grapheme_link.c: New file.
52752         * lib/unictype/pr_hex_digit.c: New file.
52753         * lib/unictype/pr_hyphen.c: New file.
52754         * lib/unictype/pr_id_continue.c: New file.
52755         * lib/unictype/pr_id_start.c: New file.
52756         * lib/unictype/pr_ideographic.c: New file.
52757         * lib/unictype/pr_ids_binary_operator.c: New file.
52758         * lib/unictype/pr_ids_trinary_operator.c: New file.
52759         * lib/unictype/pr_ignorable_control.c: New file.
52760         * lib/unictype/pr_iso_control.c: New file.
52761         * lib/unictype/pr_join_control.c: New file.
52762         * lib/unictype/pr_left_of_pair.c: New file.
52763         * lib/unictype/pr_line_separator.c: New file.
52764         * lib/unictype/pr_logical_order_exception.c: New file.
52765         * lib/unictype/pr_lowercase.c: New file.
52766         * lib/unictype/pr_math.c: New file.
52767         * lib/unictype/pr_non_break.c: New file.
52768         * lib/unictype/pr_not_a_character.c: New file.
52769         * lib/unictype/pr_numeric.c: New file.
52770         * lib/unictype/pr_other_alphabetic.c: New file.
52771         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
52772         * lib/unictype/pr_other_grapheme_extend.c: New file.
52773         * lib/unictype/pr_other_id_continue.c: New file.
52774         * lib/unictype/pr_other_id_start.c: New file.
52775         * lib/unictype/pr_other_lowercase.c: New file.
52776         * lib/unictype/pr_other_math.c: New file.
52777         * lib/unictype/pr_other_uppercase.c: New file.
52778         * lib/unictype/pr_paired_punctuation.c: New file.
52779         * lib/unictype/pr_paragraph_separator.c: New file.
52780         * lib/unictype/pr_pattern_syntax.c: New file.
52781         * lib/unictype/pr_pattern_white_space.c: New file.
52782         * lib/unictype/pr_private_use.c: New file.
52783         * lib/unictype/pr_punctuation.c: New file.
52784         * lib/unictype/pr_quotation_mark.c: New file.
52785         * lib/unictype/pr_radical.c: New file.
52786         * lib/unictype/pr_sentence_terminal.c: New file.
52787         * lib/unictype/pr_soft_dotted.c: New file.
52788         * lib/unictype/pr_space.c: New file.
52789         * lib/unictype/pr_terminal_punctuation.c: New file.
52790         * lib/unictype/pr_test.c: New file.
52791         * lib/unictype/pr_titlecase.c: New file.
52792         * lib/unictype/pr_unassigned_code_value.c: New file.
52793         * lib/unictype/pr_unified_ideograph.c: New file.
52794         * lib/unictype/pr_uppercase.c: New file.
52795         * lib/unictype/pr_variation_selector.c: New file.
52796         * lib/unictype/pr_white_space.c: New file.
52797         * lib/unictype/pr_xid_continue.c: New file.
52798         * lib/unictype/pr_xid_start.c: New file.
52799         * lib/unictype/pr_zero_width.c: New file.
52800         * lib/unictype/scripts.c: New file.
52801         * lib/unictype/sy_c_ident.c: New file.
52802         * lib/unictype/sy_c_whitespace.c: New file.
52803         * lib/unictype/sy_java_ident.c: New file.
52804         * lib/unictype/sy_java_whitespace.c: New file.
52805
52806         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
52807         Unicode 5.0.0.
52808         * lib/unictype/blocks.h: Likewise.
52809         * lib/unictype/categ_C.h: Likewise.
52810         * lib/unictype/categ_Cc.h: Likewise.
52811         * lib/unictype/categ_Cf.h: Likewise.
52812         * lib/unictype/categ_Cn.h: Likewise.
52813         * lib/unictype/categ_Co.h: Likewise.
52814         * lib/unictype/categ_Cs.h: Likewise.
52815         * lib/unictype/categ_L.h: Likewise.
52816         * lib/unictype/categ_Ll.h: Likewise.
52817         * lib/unictype/categ_Lm.h: Likewise.
52818         * lib/unictype/categ_Lo.h: Likewise.
52819         * lib/unictype/categ_Lt.h: Likewise.
52820         * lib/unictype/categ_Lu.h: Likewise.
52821         * lib/unictype/categ_M.h: Likewise.
52822         * lib/unictype/categ_Mc.h: Likewise.
52823         * lib/unictype/categ_Me.h: Likewise.
52824         * lib/unictype/categ_Mn.h: Likewise.
52825         * lib/unictype/categ_N.h: Likewise.
52826         * lib/unictype/categ_Nd.h: Likewise.
52827         * lib/unictype/categ_Nl.h: Likewise.
52828         * lib/unictype/categ_No.h: Likewise.
52829         * lib/unictype/categ_P.h: Likewise.
52830         * lib/unictype/categ_Pc.h: Likewise.
52831         * lib/unictype/categ_Pd.h: Likewise.
52832         * lib/unictype/categ_Pe.h: Likewise.
52833         * lib/unictype/categ_Pf.h: Likewise.
52834         * lib/unictype/categ_Pi.h: Likewise.
52835         * lib/unictype/categ_Po.h: Likewise.
52836         * lib/unictype/categ_Ps.h: Likewise.
52837         * lib/unictype/categ_S.h: Likewise.
52838         * lib/unictype/categ_Sc.h: Likewise.
52839         * lib/unictype/categ_Sk.h: Likewise.
52840         * lib/unictype/categ_Sm.h: Likewise.
52841         * lib/unictype/categ_So.h: Likewise.
52842         * lib/unictype/categ_Z.h: Likewise.
52843         * lib/unictype/categ_Zl.h: Likewise.
52844         * lib/unictype/categ_Zp.h: Likewise.
52845         * lib/unictype/categ_Zs.h: Likewise.
52846         * lib/unictype/categ_of.h: Likewise.
52847         * lib/unictype/combining.h: Likewise.
52848         * lib/unictype/ctype_alnum.h: Likewise.
52849         * lib/unictype/ctype_alpha.h: Likewise.
52850         * lib/unictype/ctype_blank.h: Likewise.
52851         * lib/unictype/ctype_cntrl.h: Likewise.
52852         * lib/unictype/ctype_digit.h: Likewise.
52853         * lib/unictype/ctype_graph.h: Likewise.
52854         * lib/unictype/ctype_lower.h: Likewise.
52855         * lib/unictype/ctype_print.h: Likewise.
52856         * lib/unictype/ctype_punct.h: Likewise.
52857         * lib/unictype/ctype_space.h: Likewise.
52858         * lib/unictype/ctype_upper.h: Likewise.
52859         * lib/unictype/ctype_xdigit.h: Likewise.
52860         * lib/unictype/decdigit.h: Likewise.
52861         * lib/unictype/digit.h: Likewise.
52862         * lib/unictype/mirror.h: Likewise.
52863         * lib/unictype/numeric.h: Likewise.
52864         * lib/unictype/pr_alphabetic.h: Likewise.
52865         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
52866         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
52867         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
52868         * lib/unictype/pr_bidi_block_separator.h: Likewise.
52869         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
52870         * lib/unictype/pr_bidi_common_separator.h: Likewise.
52871         * lib/unictype/pr_bidi_control.h: Likewise.
52872         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
52873         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
52874         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
52875         * lib/unictype/pr_bidi_european_digit.h: Likewise.
52876         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
52877         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
52878         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
52879         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
52880         * lib/unictype/pr_bidi_pdf.h: Likewise.
52881         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
52882         * lib/unictype/pr_bidi_whitespace.h: Likewise.
52883         * lib/unictype/pr_combining.h: Likewise.
52884         * lib/unictype/pr_composite.h: Likewise.
52885         * lib/unictype/pr_currency_symbol.h: Likewise.
52886         * lib/unictype/pr_dash.h: Likewise.
52887         * lib/unictype/pr_decimal_digit.h: Likewise.
52888         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
52889         * lib/unictype/pr_deprecated.h: Likewise.
52890         * lib/unictype/pr_diacritic.h: Likewise.
52891         * lib/unictype/pr_extender.h: Likewise.
52892         * lib/unictype/pr_format_control.h: Likewise.
52893         * lib/unictype/pr_grapheme_base.h: Likewise.
52894         * lib/unictype/pr_grapheme_extend.h: Likewise.
52895         * lib/unictype/pr_grapheme_link.h: Likewise.
52896         * lib/unictype/pr_hex_digit.h: Likewise.
52897         * lib/unictype/pr_hyphen.h: Likewise.
52898         * lib/unictype/pr_id_continue.h: Likewise.
52899         * lib/unictype/pr_id_start.h: Likewise.
52900         * lib/unictype/pr_ideographic.h: Likewise.
52901         * lib/unictype/pr_ids_binary_operator.h: Likewise.
52902         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
52903         * lib/unictype/pr_ignorable_control.h: Likewise.
52904         * lib/unictype/pr_iso_control.h: Likewise.
52905         * lib/unictype/pr_join_control.h: Likewise.
52906         * lib/unictype/pr_left_of_pair.h: Likewise.
52907         * lib/unictype/pr_line_separator.h: Likewise.
52908         * lib/unictype/pr_logical_order_exception.h: Likewise.
52909         * lib/unictype/pr_lowercase.h: Likewise.
52910         * lib/unictype/pr_math.h: Likewise.
52911         * lib/unictype/pr_non_break.h: Likewise.
52912         * lib/unictype/pr_not_a_character.h: Likewise.
52913         * lib/unictype/pr_numeric.h: Likewise.
52914         * lib/unictype/pr_other_alphabetic.h: Likewise.
52915         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
52916         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
52917         * lib/unictype/pr_other_id_continue.h: Likewise.
52918         * lib/unictype/pr_other_id_start.h: Likewise.
52919         * lib/unictype/pr_other_lowercase.h: Likewise.
52920         * lib/unictype/pr_other_math.h: Likewise.
52921         * lib/unictype/pr_other_uppercase.h: Likewise.
52922         * lib/unictype/pr_paired_punctuation.h: Likewise.
52923         * lib/unictype/pr_paragraph_separator.h: Likewise.
52924         * lib/unictype/pr_pattern_syntax.h: Likewise.
52925         * lib/unictype/pr_pattern_white_space.h: Likewise.
52926         * lib/unictype/pr_private_use.h: Likewise.
52927         * lib/unictype/pr_punctuation.h: Likewise.
52928         * lib/unictype/pr_quotation_mark.h: Likewise.
52929         * lib/unictype/pr_radical.h: Likewise.
52930         * lib/unictype/pr_sentence_terminal.h: Likewise.
52931         * lib/unictype/pr_soft_dotted.h: Likewise.
52932         * lib/unictype/pr_space.h: Likewise.
52933         * lib/unictype/pr_terminal_punctuation.h: Likewise.
52934         * lib/unictype/pr_titlecase.h: Likewise.
52935         * lib/unictype/pr_unassigned_code_value.h: Likewise.
52936         * lib/unictype/pr_unified_ideograph.h: Likewise.
52937         * lib/unictype/pr_uppercase.h: Likewise.
52938         * lib/unictype/pr_variation_selector.h: Likewise.
52939         * lib/unictype/pr_white_space.h: Likewise.
52940         * lib/unictype/pr_xid_continue.h: Likewise.
52941         * lib/unictype/pr_xid_start.h: Likewise.
52942         * lib/unictype/pr_zero_width.h: Likewise.
52943         * lib/unictype/scripts.h: Likewise.
52944         * lib/unictype/scripts_byname.gperf: Likewise.
52945         * lib/unictype/sy_c_ident.h: Likewise.
52946         * lib/unictype/sy_c_whitespace.h: Likewise.
52947         * lib/unictype/sy_java_ident.h: Likewise.
52948         * lib/unictype/sy_java_whitespace.h: Likewise.
52949
52950         * lib/unictype/Makefile: New file.
52951         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
52952         glibc.
52953         * lib/unictype/3level.h: New file, copied from glibc.
52954         * lib/unictype/3levelbit.h: New file.
52955
52956 2007-11-11  Bruno Haible  <bruno@clisp.org>
52957
52958         * modules/gperf: New file.
52959         * modules/iconv_open (Depends-on): Add it.
52960         (Makefile.am): Remove the GPERF definition.
52961
52962 2007-11-11  Bruno Haible  <bruno@clisp.org>
52963
52964         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
52965         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
52966
52967 2007-11-11  Bruno Haible  <bruno@clisp.org>
52968
52969         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
52970         (usage): Remove function.
52971
52972 2007-11-11  Bruno Haible  <bruno@clisp.org>
52973
52974         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
52975         gl_FUNC_CEILF_LIBS.
52976         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
52977         gl_FUNC_CEIL_LIBS.
52978         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
52979         gl_FUNC_CEILL_LIBS.
52980         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
52981         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
52982         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
52983
52984 2007-11-11  Bruno Haible  <bruno@clisp.org>
52985
52986         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
52987         roundf were declared but do not exist on functions.
52988         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
52989         roundl were declared but do not exist on functions.
52990         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
52991         HAVE_FLOORL_AND_CEILL, respectively.
52992         Needed for Sun C on Solaris 10.
52993
52994 2007-11-11  Bruno Haible  <bruno@clisp.org>
52995
52996         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
52997         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
52998         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
52999         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
53000         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
53001         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
53002         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
53003         HAVE_DECL_ROUNDF.
53004         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
53005         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
53006         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
53007         of HAVE_DECL_ROUND*.
53008         * modules/math (Makefile.am): Update.
53009
53010 2007-11-10  Bruno Haible  <bruno@clisp.org>
53011
53012         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
53013         ptrdiff_t as m4/intl.m4.
53014
53015 2007-11-10  Jim Meyering  <meyering@redhat.com>
53016
53017         Avoid link failure for the argmatch test.
53018         * tests/test-argmatch.c (usage): Define function to avoid a link
53019         failure: argmatch_die requires a usage function.
53020
53021 2007-11-09  Bruno Haible  <bruno@clisp.org>
53022
53023         * doc/functions/snprintf.texi: Mention BeOS deficiency.
53024         * doc/functions/vsnprintf.texi: Likewise.
53025         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
53026         with a size argument < 2.
53027
53028 2007-11-09  Bruno Haible  <bruno@clisp.org>
53029
53030         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
53031         buffer. Fixes an inefficiency introduced on 2007-11-03.
53032
53033 2007-11-09  Bruno Haible  <bruno@clisp.org>
53034
53035         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
53036         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
53037
53038 2007-11-08  Jim Meyering  <meyering@redhat.com>
53039
53040         Change cache variable name prefix "jm_" to "gl_" everywhere.
53041         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
53042         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
53043         * m4/uptime.m4: s/gl_/jm_/
53044
53045 2007-11-07  Bruno Haible  <bruno@clisp.org>
53046
53047         Update to GNU gettext 0.17.
53048         * m4/intl.m4: Update to GNU gettext 0.17.
53049         * m4/po.m4: Likewise.
53050         * modules/gettext (Files): Remove m4/ulonglong.m4.
53051         (configure.ac): Require gettext infrastructure from version 0.17.
53052
53053 2007-11-06  Bruno Haible  <bruno@clisp.org>
53054
53055         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
53056         symbolic values are not defined in a public header.
53057         * lib/freadable.c (freadable) [QNX]: Likewise.
53058         * lib/freadahead.c (freadahead) [QNX]: Likewise.
53059         * lib/freading.c (freading) [QNX]: Likewise.
53060         * lib/fseterr.c (fseterr) [QNX]: Likewise.
53061         * lib/fwritable.c (fwritable) [QNX]: Likewise.
53062         * lib/fwriting.c (fwriting) [QNX]: Likewise.
53063         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
53064         Reported by Alain Magloire.
53065
53066         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
53067
53068 2007-11-05  Bruno Haible  <bruno@clisp.org>
53069
53070         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
53071         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
53072         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
53073         Reported by Eric Blake.
53074
53075 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53076             Bruno Haible  <bruno@clisp.org>
53077
53078         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
53079         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
53080         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
53081         (malloc): Undefine also before including <stdlib.h>.
53082         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
53083         Needed on OSF/1 4.0.
53084
53085 2007-11-05  Jim Meyering  <meyering@redhat.com>
53086
53087         git-version-gen: sync from coreutils.
53088         * build-aux/git-version-gen: Add comments.
53089         Change the first '-' to '.' in the snapshot version string,
53090         e.g., 6.9-377-08144 -> 6.9.377-08144
53091         Remove first parameter.
53092         Don't declare a version "-dirty" merely because a time
53093         stamp has changed.
53094
53095 2007-11-04  Bruno Haible  <bruno@clisp.org>
53096
53097         * lib/lock.h: Protect all macro definitions containing an 'if'
53098         statement through a "do { ... } while (0)".
53099         * lib/tls.h: Likewise.
53100
53101 2007-11-04  Bruno Haible  <bruno@clisp.org>
53102
53103         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
53104
53105 2007-11-04  Bruno Haible  <bruno@clisp.org>
53106
53107         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
53108         * modules/fprintf-posix (Depends-on): Add nocrash.
53109         * modules/snprintf-posix (Depends-on): Likewise.
53110         * modules/sprintf-posix (Depends-on): Likewise.
53111         * modules/vasnprintf-posix (Depends-on): Likewise.
53112         * modules/vasprintf-posix (Depends-on): Likewise.
53113         * modules/vfprintf-posix (Depends-on): Likewise.
53114         * modules/vsnprintf-posix (Depends-on): Likewise.
53115         * modules/vsprintf-posix (Depends-on): Likewise.
53116         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
53117         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
53118         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
53119         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
53120         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
53121         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
53122         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
53123
53124 2007-11-04  Bruno Haible  <bruno@clisp.org>
53125
53126         * modules/nocrash: New file.
53127         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
53128         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
53129
53130 2007-11-04  Bruno Haible  <bruno@clisp.org>
53131
53132         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
53133         precision handling.
53134         * tests/test-vasprintf-posix.c (test_function): Likewise.
53135         * tests/test-snprintf-posix.h (test_function): Likewise.
53136         * tests/test-sprintf-posix.h (test_function): Likewise.
53137
53138         Fix *printf behaviour for large precisions on mingw and BeOS.
53139         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
53140         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
53141         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
53142         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
53143         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53144         gl_PRINTF_PRECISION and test its result. Invoke
53145         gl_PREREQ_VASNPRINTF_PRECISION.
53146         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53147         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53148         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53149         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53150         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53151         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53152         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53153         * doc/functions/fprintf.texi: Update.
53154         * doc/functions/printf.texi: Update.
53155         * doc/functions/snprintf.texi: Update.
53156         * doc/functions/sprintf.texi: Update.
53157         * doc/functions/vfprintf.texi: Update.
53158         * doc/functions/vprintf.texi: Update.
53159         * doc/functions/vsnprintf.texi: Update.
53160         * doc/functions/vsprintf.texi: Update.
53161
53162 2007-11-04  Bruno Haible  <bruno@clisp.org>
53163
53164         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
53165
53166 2007-11-04  Bruno Haible  <bruno@clisp.org>
53167
53168         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
53169         Reported by Sylvain Beucler <beuc@gnu.org>.
53170
53171 2007-11-03  Bruno Haible  <bruno@clisp.org>
53172
53173         * tests/test-fprintf-posix2.sh: New file.
53174         * tests/test-fprintf-posix2.c: New file.
53175         * modules/fprintf-posix-tests (Files): Add them.
53176         (TESTS): Add test-fprintf-posix2.sh.
53177         (configure.ac): Check for getrlimit and setrlimit.
53178         (check_PROGRAMS): Add test-fprintf-posix2.
53179
53180         * tests/test-printf-posix2.sh: New file.
53181         * tests/test-printf-posix2.c: New file.
53182         * modules/printf-posix-tests (Files): Add them.
53183         (TESTS): Add test-printf-posix2.sh.
53184         (configure.ac): Check for getrlimit and setrlimit.
53185         (check_PROGRAMS): Add test-printf-posix2.
53186
53187         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
53188         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
53189         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
53190         (decode_double): New function, copied from decode_long_double.
53191         (scale10_round_decimal_decoded): New function, extracted from
53192         scale10_round_decimal_long_double.
53193         (scale10_round_decimal_long_double): Use it.
53194         (scale10_round_decimal_double): New function.
53195         (floorlog10): New function.
53196         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
53197         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
53198         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
53199         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53200         gl_PRINTF_ENOMEM and test its result. Invoke
53201         gl_PREREQ_VASNPRINTF_ENOMEM.
53202         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53203         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53204         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53205         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53206         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53207         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53208         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53209         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
53210         * modules/snprintf-posix (Depends-on): Likewise.
53211         * modules/sprintf-posix (Depends-on): Likewise.
53212         * modules/vasnprintf-posix (Depends-on): Likewise.
53213         * modules/vasprintf-posix (Depends-on): Likewise.
53214         * modules/vfprintf-posix (Depends-on): Likewise.
53215         * modules/vsnprintf-posix (Depends-on): Likewise.
53216         * modules/vsprintf-posix (Depends-on): Likewise.
53217         * doc/functions/fprintf.texi: Update.
53218         * doc/functions/printf.texi: Update.
53219         * doc/functions/snprintf.texi: Update.
53220         * doc/functions/sprintf.texi: Update.
53221         * doc/functions/vfprintf.texi: Update.
53222         * doc/functions/vprintf.texi: Update.
53223         * doc/functions/vsnprintf.texi: Update.
53224         * doc/functions/vsprintf.texi: Update.
53225
53226 2007-11-03  Bruno Haible  <bruno@clisp.org>
53227
53228         * modules/frexp-nolibm-tests: New file.
53229
53230         * modules/frexp-nolibm: New file.
53231         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
53232
53233 2007-11-03  Bruno Haible  <bruno@clisp.org>
53234
53235         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
53236         value is C99 compliant.
53237         Needed for OSF/1 5.1.
53238
53239 2007-11-03  Bruno Haible  <bruno@clisp.org>
53240
53241         Fix out-of-memory handling of vasnprintf.
53242         * lib/printf-parse.c: Include <errno.h>.
53243         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
53244         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
53245         is already set.
53246
53247 2007-11-02  Eric Blake  <ebb9@byu.net>
53248
53249         Fix tests on cygwin.
53250         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
53251
53252 2007-11-01  Bruno Haible  <bruno@clisp.org>
53253
53254         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
53255         warning.
53256         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
53257         needed for POSIX compatibility.
53258
53259 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
53260
53261         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
53262         for compatibility with GNU.
53263
53264 2007-11-01  Bruno Haible  <bruno@clisp.org>
53265
53266         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
53267         (putenv): Renamed from rpl_putenv. Change argument type from
53268         'const char *' to 'char *'.
53269         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
53270         of defining putenv in config.h, just set REPLACE_PUTENV.
53271         * modules/putenv (Depends-on): Add stdlib.
53272         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53273         (Include): Use <stdlib.h>.
53274         * lib/stdlib.in.h (putenv): New declaration.
53275         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
53276         REPLACE_PUTENV.
53277         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
53278         REPLACE_PUTENV.
53279         Needed for MacOS X 10.5.0.
53280         Reported by Peter O'Gorman <peter@pogma.com>.
53281
53282 2007-11-01  Jim Meyering  <meyering@redhat.com>
53283
53284         Treat an empty date string exactly like "0".
53285         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
53286         if the remaining date string (to be parsed) is empty, use "0".
53287         Reported by Mischa Molhoek and discussed in this thread:
53288         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
53289
53290 2007-10-31  Bruno Haible  <bruno@clisp.org>
53291
53292         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
53293         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
53294         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
53295         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
53296         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
53297         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
53298
53299 2007-10-31  Bruno Haible  <bruno@clisp.org>
53300
53301         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
53302         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
53303         (AC_TYPE_LONG_LONG_INT): Use it.
53304         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
53305         it as well.
53306         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
53307         to m4/longlong.m4.
53308         * modules/stdint (Files): Remove m4/ulonglong.m4.
53309         * modules/strtoull (Files): Use m4/longlong.m4 instead of
53310         m4/ulonglong.m4.
53311         * modules/strtoumax (Files): Likewise.
53312
53313 2007-10-30  Bruno Haible  <bruno@clisp.org>
53314
53315         * modules/xvasprintf-posix: New file.
53316         Suggested by Eric Blake.
53317
53318 2007-10-30  Bruno Haible  <bruno@clisp.org>
53319
53320         * modules/xprintf-posix-tests: New file.
53321         * tests/test-xprintf-posix.sh: New file.
53322         * tests/test-xprintf-posix.c: New file.
53323         * tests/test-xfprintf-posix.c: New file.
53324
53325         * modules/xprintf-posix: New file.
53326
53327 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53328
53329         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
53330         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
53331         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
53332
53333 2007-10-29  Bruno Haible  <bruno@clisp.org>
53334
53335         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
53336         contain the special marker '_cv_'.
53337         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
53338         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
53339         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
53340         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
53341         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
53342         Reported by Ralf Wildenhues.
53343
53344 2007-10-29  Bruno Haible  <bruno@clisp.org>
53345
53346         * gnulib-tool (func_import): When --lgpl is not specified, set
53347         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
53348         GPLv3.
53349         Reported by Simon Josefsson.
53350
53351 2007-10-28  Bruno Haible  <bruno@clisp.org>
53352
53353         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
53354         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
53355         HAVE_DECL_ISFINITE.
53356         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
53357         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
53358         HAVE_DECL_ISFINITE.
53359
53360 2007-10-28  Bruno Haible  <bruno@clisp.org>
53361
53362         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
53363         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
53364
53365 2007-10-28  Bruno Haible  <bruno@clisp.org>
53366
53367         Fix link errors with Sun C 5.0 on Solaris 10.
53368         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
53369         function is declared but not present in the compiler's libm.
53370         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
53371         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
53372         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
53373         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
53374         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
53375         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
53376         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
53377         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
53378         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
53379         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
53380         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
53381         HAVE_DECL_FLOORL.
53382
53383 2007-10-28  Bruno Haible  <bruno@clisp.org>
53384
53385         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
53386         gl_FUNC_FLOORL. Cache the result.
53387         (gl_FUNC_FLOORL): Use it.
53388         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
53389         gl_FUNC_CEILL. Cache the result.
53390         (gl_FUNC_CEILL): Use it.
53391
53392         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
53393         gl_FUNC_FLOOR. Cache the result.
53394         (gl_FUNC_FLOOR): Use it.
53395         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
53396         gl_FUNC_CEIL. Cache the result.
53397         (gl_FUNC_CEIL): Use it.
53398
53399         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
53400         gl_FUNC_FLOORF. Cache the result.
53401         (gl_FUNC_FLOORF): Use it.
53402         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
53403         gl_FUNC_CEILF. Cache the result.
53404         (gl_FUNC_CEILF): Use it.
53405
53406 2007-10-28  Bruno Haible  <bruno@clisp.org>
53407
53408         * gnulib-tool: Allow specifying the LGPL version number through
53409         --lgpl=2 or --lgpl=3.
53410         (func_usage): Document --lgpl with argument.
53411         Handle --lgpl=... arguments.
53412         (func_import): Recognize also gl_LGPL calls with an argument. When
53413         --lgpl=2 is used and the module's license is just LGPL, report an
53414         error. Set sed_transform_lib_file according to the lgpl variable. In
53415         the generated files, use --lgpl or gl_LGPL invocations with argument,
53416         if necessary.
53417         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
53418         an LGPv2+ license.
53419         * doc/gnulib-tool.texi (Modified imports): Update explanation of
53420         gl_LGPL macro.
53421
53422 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53423             Bruno Haible  <bruno@clisp.org>
53424
53425         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
53426         (u16_uctomb_aux): Likewise.
53427         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
53428         !HAVE_INLINE.
53429         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
53430
53431 2007-10-28  Bruno Haible  <bruno@clisp.org>
53432
53433         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
53434         Invoke AM_GETTEXT_OPTION if it exists.
53435         * modules/vasprintf: Likewise.
53436         * modules/verror: Likewise.
53437         * modules/xprintf: Likewise.
53438         * modules/xvasprintf: Likewise.
53439
53440 2007-10-27  Ben Pfaff  <blp@gnu.org>
53441
53442         * lib/math.in.h: Define isfinite macro and prototypes for
53443         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
53444         implementations.
53445         * m4/math_h.m4: New substitutions for isfinite module.
53446         * lib/isfinite.c: New file.
53447         * m4/isfinite.m4: New file.
53448         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
53449         * modules/isfinite: New file.
53450         * modules/isfinite-tests: New file.
53451         * tests/tests-isfinite.c: New file.
53452         * doc/functions/isfinite.texi: Mention isfinite module.
53453         * MODULES.html.sh: Mention new module.
53454
53455 2007-10-27  Ben Pfaff  <blp@gnu.org>
53456
53457         Ralf Wildenhues reported that Tru64 4.0D declares the round
53458         functions but does not have definitions.
53459         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
53460         cannot be found in any library, set the output variable to
53461         "missing" instead of "".
53462         * m4/round.m4: Also use our substitute if we cannot find round in
53463         any library, even if it is declared.
53464         * m4/roundf.m4: Likewise for roundf.
53465         * m4/roundl.m4: Likewise for roundl.
53466         * lib/math.in.h: Undefine roundf, round, roundl before defining
53467         their replacements, to allow for hypothetical systems where these
53468         may be defined as macros but not available in libraries.
53469
53470 2007-10-27  Bruno Haible  <bruno@clisp.org>
53471
53472         * doc/gnulib.texi: Invoke @firstparagraphindent.
53473         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
53474         changes in gnulib.
53475         (Source changes): New section.
53476
53477 2007-10-26  Bruno Haible  <bruno@clisp.org>
53478
53479         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
53480         borrowed from autoconf.
53481
53482 2007-10-26  Bruno Haible  <bruno@clisp.org>
53483
53484         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
53485         strerror returned the empty string. Needed on HP-UX 11.00.
53486
53487 2007-10-24  Micah Cowan  <micah@cowan.name>
53488
53489         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
53490         * build-aux/bootstrap: Remove support for now-unnecessary option,
53491         --cvs-user, and envvars CVS_USER, CVS_RSH.
53492
53493 2007-10-24  Jim Meyering  <meyering@redhat.com>
53494
53495         Avoid diagnostics from sha1sum when there is no cached checksum.
53496         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
53497         if the po.s1 file hasn't been created yet.
53498
53499         * build-aux/bootstrap: Sync from coreutils:
53500         2007-10-24  Jim Meyering  <meyering@redhat.com>
53501         Get gnulib from the git repository, not from an obsolete cvs one.
53502         * build-aux/bootstrap: Suggestion from Micah Cowan.
53503         2007-10-04  Jim Meyering  <jim@meyering.net>
53504         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
53505         (update_po_files): Work also when there are no .po files in po/.
53506
53507 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
53508
53509         * README: Append ".git" to git and cg examples.
53510         Problem reported by Benoit Sigoure.
53511
53512 2007-10-23  Micah Cowan  <micah@cowan.name>
53513
53514         * users.txt: Add wget.
53515
53516 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53517
53518         Fix linking of some unistdio tests on FreeBSD.
53519         * modules/unistdio/u16-vsnprintf-tests
53520         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
53521         * modules/unistdio/u16-vsprintf-tests
53522         (test_u16_vsnprintf1_LDADD): Likewise.
53523         * modules/unistdio/u32-vsnprintf-tests
53524         (test_u32_vsnprintf1_LDADD): Likewise.
53525         * modules/unistdio/u32-vsprintf-tests
53526         (test_u32_vsprintf1_LDADD): Likewise.
53527         * modules/unistdio/u8-vsnprintf-tests
53528         (test_u8_vsnprintf1_LDADD): Likewise.
53529         * modules/unistdio/u8-vsprintf-tests
53530         (test_u8_vsprintf1_LDADD): Likewise.
53531         * modules/unistdio/ulc-vsnprintf-tests
53532         (test_ulc_vsnprintf1_LDADD): Likewise.
53533         * modules/unistdio/ulc-vsprintf-tests
53534         (test_ulc_vsprintf1_LDADD): Likewise.
53535
53536         Fix linking of some uniconv tests on FreeBSD.
53537         * modules/uniconv/u16-conv-from-enc-tests
53538         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
53539         * modules/uniconv/u16-conv-to-enc-tests
53540         (test_u16_conv_to_enc_LDADD): Likewise.
53541         * modules/uniconv/u16-strconv-from-enc-tests
53542         (test_u16_strconv_from_enc_LDADD): Likewise.
53543         * modules/uniconv/u16-strconv-to-enc-tests
53544         (test_u16_strconv_to_enc_LDADD): Likewise.
53545         * modules/uniconv/u32-conv-from-enc-tests
53546         (test_u32_conv_from_enc_LDADD): Likewise.
53547         * modules/uniconv/u32-conv-to-enc-tests
53548         (test_u32_conv_to_enc_LDADD): Likewise.
53549         * modules/uniconv/u32-strconv-from-enc-tests
53550         (test_u32_strconv_from_enc_LDADD): Likewise.
53551         * modules/uniconv/u32-strconv-to-enc-tests
53552         (test_u32_strconv_to_enc_LDADD): Likewise.
53553         * modules/uniconv/u8-conv-from-enc-tests
53554         (test_u8_conv_from_enc_LDADD): Likewise.
53555         * modules/uniconv/u8-conv-to-enc-tests
53556         (test_u8_conv_to_enc_LDADD): Likewise.
53557         * modules/uniconv/u8-strconv-from-enc-tests
53558         (test_u8_strconv_from_enc_LDADD): Likewise.
53559         * modules/uniconv/u8-strconv-to-enc-tests
53560         (test_u8_strconv_to_enc_LDADD): Likewise.
53561
53562 2007-10-22  Bruno Haible  <bruno@clisp.org>
53563
53564         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
53565         size.
53566
53567 2007-10-22  Eric Blake  <ebb9@byu.net>
53568
53569         Tweak x*printf documentation.
53570         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
53571         variable name and comments.
53572         Suggested by Bruno Haible.
53573
53574 2007-10-22  Bruno Haible  <bruno@clisp.org>
53575
53576         * lib/acl.c (copy_acl): Fix file name in comment.
53577
53578 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
53579
53580         Fix Tru64 problem with stdbool.h.
53581         * lib/stdbool.in.h (false, true):
53582         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
53583         Don't declare as an enum in this situation; it runs afoul of Tru64.
53584         Problem reported by Steven M. Schweda in
53585         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
53586
53587 2007-10-22  Eric Blake  <ebb9@byu.net>
53588
53589         Also wrap vf?printf.
53590         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
53591         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
53592         (xvprintf, xvfprintf): New functions.
53593
53594 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53595
53596         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
53597         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
53598
53599         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
53600         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
53601
53602 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
53603
53604         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
53605         by Bruno Haible.
53606
53607 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53608
53609         * lib/getloadavg.c
53610         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
53611         Undef `sys' after including sys/table.h, for Tru64 4.0D.
53612
53613         * tests/test-i-ring.c: Work for C89.
53614
53615 2007-10-22  Bruno Haible  <bruno@clisp.org>
53616
53617         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
53618         -1u, in preprocessor expression, so that we don't test for the bug
53619         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
53620         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
53621
53622 2007-10-22  Eric Blake  <ebb9@byu.net>
53623
53624         * tests/test-yesno.sh: Silence stderr during test.
53625
53626 2007-10-22  Simon Josefsson  <simon@josefsson.org>
53627
53628         * modules/crypto/gc-camellia: New file.
53629
53630         * m4/gc-camellia.m4: New file.
53631
53632         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
53633
53634         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
53635
53636 2007-10-22  Simon Josefsson  <simon@josefsson.org>
53637
53638         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
53639         --help to stdout.  Reported by sms@antinode.org (Steven
53640         M. Schweda).
53641
53642 2007-10-22  Simon Josefsson  <simon@josefsson.org>
53643
53644         * users.txt: Fix link to libksba.
53645
53646 2007-10-21  Ben Pfaff  <blp@gnu.org>
53647
53648         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
53649         round.c roundf implementation that depends on floorf and ceilf to
53650         be tested unconditionally.
53651
53652 2007-10-21  Ben Pfaff  <blp@gnu.org>
53653
53654         * m4/check-libm-func.m4: Removed.
53655         * m4/check-math-lib.m4: New file.
53656         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
53657         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
53658         definition and lack of AC_LIBOBJ([roundf]).
53659         * m4/roundl.m4: Ditto, and similarly for roundl.
53660         * modules/round: Reference new m4 file.
53661         * modules/roundf: Ditto.
53662         * modules/roundl: Ditto.
53663         * tests/test-round2.c (main): Use ROUND instead of round.
53664         Bug report from Bruno Haible.
53665
53666 2007-10-21  Bruno Haible  <bruno@clisp.org>
53667
53668         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
53669         context.
53670
53671 2007-10-21  Bruno Haible  <bruno@clisp.org>
53672
53673         * tests/test-wcwidth.c (main): Allow negative result for some control
53674         characters.
53675
53676         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
53677         Needed on OSF/1 5.1.
53678
53679 2007-10-21  Bruno Haible  <bruno@clisp.org>
53680
53681         * tests/test-floorf1.c: Include isnanf.h.
53682         (main): Use isnanf() instead of isnan().
53683         * tests/test-ceilf1.c: Include isnanf.h.
53684         (main): Use isnanf() instead of isnan().
53685         * tests/test-truncf1.c: Include isnanf.h.
53686         (main): Use isnanf() instead of isnan().
53687         * tests/test-roundf1.c: Include isnanf.h.
53688         (main): Use isnanf() instead of isnan().
53689
53690 2007-10-21  Eric Blake  <ebb9@byu.net>
53691
53692         * users.txt: Update URL for m4.
53693
53694 2007-10-21  Bruno Haible  <bruno@clisp.org>
53695
53696         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
53697
53698 2007-10-21  Bruno Haible  <bruno@clisp.org>
53699
53700         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
53701         Git's management files if the CVS files are not present.
53702
53703 2007-10-20  Bruno Haible  <bruno@clisp.org>
53704
53705         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
53706         gcc-3.4.x.
53707
53708 2007-10-20  Ben Pfaff  <blp@gnu.org>
53709
53710         * lib/math.in.h: Declare round, roundf, roundl if we are providing
53711         implementations.
53712         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
53713         * lib/round.c: New file.
53714         * lib/roundf.c: New file.
53715         * lib/roundl.c: New file.
53716         * m4/round.m4: New file.
53717         * m4/roundf.m4: New file.
53718         * m4/roundl.m4: New file.
53719         * m4/check-libm-func-m4: New file.
53720         * modules/math: Replace round, roundf, roundl related @VARS@ in
53721         math.in.h.
53722         * modules/round: New file.
53723         * modules/round-tests: New file.
53724         * modules/roundf: New file.
53725         * modules/roundf-tests: New file.
53726         * modules/roundl: New file.
53727         * modules/roundl-tests: New file.
53728         * tests/test-round1.c: New file.
53729         * tests/test-round2.c: New file.
53730         * tests/test-roundf1.c: New file.
53731         * tests/test-roundf2.c: New file.
53732         * tests/test-roundl.c: New file.
53733         * doc/functions/round.texi: Mention round module.
53734         * doc/functions/roundf.texi: Mention roundf module.
53735         * doc/functions/roundl.texi: Mention roundl module.
53736         * MODULES.html.sh: Mention new modules.
53737         Thanks to Bruno Haible for suggestions.
53738
53739 2007-10-20  Jim Meyering  <meyering@redhat.com>
53740
53741         * lib/xprintf.c: Include <config.h> unconditionally.
53742
53743         Change xprintf's license to GPL.
53744         * modules/xprintf (License): s/LGPL/GPL/, since this module
53745         depends on modules (exit and exitfail) which are GPL.
53746         Suggestion from Bruno Haible.
53747
53748         xprintf fixes.
53749         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
53750         Use a clearer diagnostic.
53751         Patch from Bruno Haible.
53752
53753 2007-10-20  Bruno Haible  <bruno@clisp.org>
53754
53755         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
53756         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
53757         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53758
53759 2007-10-20  Bruno Haible  <bruno@clisp.org>
53760
53761         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
53762         precision in the comparison result > x - 1 or similar.
53763         * tests/test-ceilf2.c (correct_result_p): Likewise.
53764         * tests/test-truncf2.c (correct_result_p): Likewise.
53765         * tests/test-trunc2.c (correct_result_p): Likewise.
53766         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53767
53768 2007-10-20  Bruno Haible  <bruno@clisp.org>
53769
53770         * modules/ceil: New file.
53771         * m4/ceil.m4: New file.
53772         * doc/functions/ceil.texi: Mention the 'ceil' module.
53773
53774 2007-10-20  Bruno Haible  <bruno@clisp.org>
53775
53776         * modules/floor: New file.
53777         * m4/floor.m4: New file.
53778         * doc/functions/floor.texi: Mention the 'floor' module.
53779
53780 2007-10-20  Bruno Haible  <bruno@clisp.org>
53781
53782         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
53783         of %a.
53784         * modules/floorf-tests (Depends-on): Likewise.
53785         * modules/truncf-tests (Depends-on): Likewise.
53786         * modules/trunc-tests (Depends-on): Likewise.
53787         Reported by Ben Pfaff.
53788
53789 2007-10-19  Jim Meyering  <meyering@redhat.com>
53790
53791         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
53792         Don't bother testing specific errno values.  Just test ferror.
53793
53794         New module: xprintf
53795         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
53796
53797 2007-10-19  Bruno Haible  <bruno@clisp.org>
53798
53799         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
53800         syntax.
53801         * modules/javaexec (Makefile.am): Likewise.
53802         * modules/relocatable-prog (Makefile.am): Likewise.
53803         Suggested by Jim Meyering.
53804
53805 2007-10-18  Bruno Haible  <bruno@clisp.org>
53806
53807         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
53808         Reported by Jim Meyering.
53809
53810 2007-10-18  Eric Blake  <ebb9@byu.net>
53811
53812         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
53813
53814 2007-10-18  Bruno Haible  <bruno@clisp.org>
53815
53816         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
53817         the format string into writable memory. Needed in Fortify conditions.
53818
53819 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
53820             Bruno Haible  <bruno@clisp.org>
53821
53822         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
53823         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
53824         * modules/trim (Depends-on): Add mbchar.
53825         (configure.ac): Add gl_FUNC_MBRTOWC.
53826         (Makefile.am): Augment lib_SOURCES.
53827
53828 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
53829
53830         Modify glob.c to use fstatat and dirfd, to simplify it.
53831         Suggested by Eric Blake.
53832         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
53833         Don't include <stdbool.h>; not used.
53834         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
53835         (link_exists_p): Simplify implementation, since we can now assume
53836         dirfd and fstatat.
53837         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
53838
53839 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53840
53841         * gnulib-tool (func_get_dependencies): Fix sed script to
53842         match only tests.
53843
53844 2007-10-17  Bruno Haible  <bruno@clisp.org>
53845
53846         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
53847         allow locale names without encoding suffix.
53848         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
53849         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
53850
53851 2007-10-16  Bruno Haible  <bruno@clisp.org>
53852
53853         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
53854         * lib/getgroups.c (getgroups): Likewise.
53855         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
53856
53857 2007-10-16  Bruno Haible  <bruno@clisp.org>
53858
53859         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
53860         * modules/malloc-posix (License): Likewise.
53861         * modules/realloc-posix (License): Likewise.
53862         * modules/calloc-posix (License): Likewise.
53863         * modules/intprops (License): Change from GPL to LGPL, with
53864         Paul Eggert's approval.
53865
53866 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
53867
53868         Merge glibc changes into lib/glob.c.
53869
53870         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
53871         2007-10-15 04:59:03 UTC.  Here are the changes:
53872
53873         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
53874
53875         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
53876
53877         * lib/glob.c: Add some branch prediction throughout.
53878
53879         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
53880
53881         [BZ #5103]
53882         * lib/glob.c (glob): Recognize patterns starting \/.
53883
53884         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
53885
53886         [BZ #3996]
53887         * lib/glob.c (attribute_hidden): Define if not defined.
53888         (glob): Unescape dirname, filename or username when needed and not
53889         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
53890         is NULL.  Handle unescaped [ in pattern without closing ].
53891         Don't pass GLOB_CHECK down to recursive glob for directories.
53892         (__glob_pattern_type): New function.
53893         (__glob_pattern_p): Implement using __glob_pattern_type.
53894         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
53895         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
53896         Remove unreachable code.
53897
53898         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
53899
53900         * lib/glob.c (glob_in_dir): Add some comments and asserts to
53901         explain why there are no leaks.
53902
53903         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
53904
53905         [BZ #3253]
53906         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
53907         time, rather allocate increasingly bigger arrays of pointers, if
53908         possible with alloca, if too large with malloc.
53909
53910 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
53911
53912         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
53913         Problem reported by H.Merijn Brand in
53914         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
53915         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
53916         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
53917
53918 2007-10-15  Bruno Haible  <bruno@clisp.org>
53919
53920         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
53921         with explicit rpl_ prefix.
53922         * lib/fopen.c (fopen): Likewise.
53923         * lib/freopen.c (freopen): Likewise.
53924         * lib/iconv.c (iconv): Likewise.
53925         * lib/iconv_close.c (iconv_close): Likewise.
53926
53927 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53928
53929         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
53930
53931 2007-10-15  Bruno Haible  <bruno@clisp.org>
53932
53933         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
53934         <stddef.h> instead of <stdlib.h> since we only need NULL.
53935         Reported by Ben Pfaff <blp@cs.stanford.edu>.
53936
53937 2007-10-15  Bruno Haible  <bruno@clisp.org>
53938
53939         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
53940         Replace paragraph talking about LIBOBJS.
53941         Reported by Colin Watson <cjwatson@debian.org>.
53942
53943 2007-10-15  Bruno Haible  <bruno@clisp.org>
53944
53945         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
53946         <stdlib.h> before using NULL.
53947
53948 2007-10-15  Simon Josefsson  <simon@josefsson.org>
53949
53950         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
53951         Reported by Albert Chin <china@thewrittenword.com>.
53952
53953 2007-10-14  Bruno Haible  <bruno@clisp.org>
53954
53955         * modules/iconv_open-utf-tests: New file.
53956         * tests/test-iconv-utf.c: New file.
53957
53958         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
53959         * modules/iconv_open-utf: New file.
53960         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
53961         (iconv, iconv_close): New declarations.
53962         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
53963         be defined.
53964         (iconv_open): Add special handling of conversion between UTF-8 and
53965         UTF-{16,32}{BE,LE}.
53966         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
53967         * lib/iconv_close.c: New file.
53968         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
53969         gl_FUNC_ICONV_OPEN.
53970         (gl_FUNC_ICONV_OPEN): Use it.
53971         (gl_FUNC_ICONV_OPEN_UTF): New macro.
53972         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
53973         and REPLACE_ICONV_UTF.
53974         * modules/iconv_open (Depends-on): Add c-strcase.
53975         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
53976         ICONV_CONST.
53977         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
53978
53979 2007-10-13  Albert Chin  <china@thewrittenword.com>
53980             Bruno Haible  <bruno@clisp.org>
53981
53982         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
53983         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
53984
53985 2007-10-13  Bruno Haible  <bruno@clisp.org>
53986
53987         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
53988         defined, use the ISO C99 inline semantics.
53989         * lib/argp.h (ARGP_EI): Likewise.
53990
53991 2007-10-13  Bruno Haible  <bruno@clisp.org>
53992
53993         Handle 'inline' change in gcc 4.3.0.
53994         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
53995         argp_fmtstream_write, argp_fmtstream_set_lmargin,
53996         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
53997         argp_fmtstream_point): Disable 'extern' declaration if the function
53998         definition is going to be provided inline.
53999         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
54000         semantics, not the ISO C99 inline semantics.
54001         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
54002         'extern' declaration if the function definition is going to be provided
54003         inline.
54004         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
54005         the GNU C inline semantics, not the ISO C99 inline semantics. With
54006         GCC 4.2, avoid a warning.
54007
54008 2007-10-13  Bruno Haible  <bruno@clisp.org>
54009
54010         * lib/freading.h (freading): Enable the use of __freading for
54011         glibc >= 2.7.
54012         * lib/freading.c (freading): Likewise.
54013
54014 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
54015
54016         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
54017         "warning: C99 inline functions are not supported; using GNU89".
54018
54019 2007-10-12  Bruno Haible  <bruno@clisp.org>
54020
54021         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
54022         of 2.
54023         * tests/test-ceilf2.c: New file.
54024         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
54025
54026         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
54027         * modules/ceilf-tests: Update.
54028
54029 2007-10-12  Bruno Haible  <bruno@clisp.org>
54030
54031         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
54032         of 2.
54033         * tests/test-floorf2.c: New file.
54034         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
54035
54036         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
54037         * modules/floorf-tests: Update.
54038
54039 2007-10-12  Bruno Haible  <bruno@clisp.org>
54040
54041         * tests/test-trunc2.c: New file.
54042         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
54043
54044         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
54045         * modules/trunc-tests: Update.
54046
54047 2007-10-12  Bruno Haible  <bruno@clisp.org>
54048
54049         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
54050         of 2.
54051         * tests/test-truncf2.c: New file.
54052         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
54053
54054         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
54055         * modules/truncf-tests: Update.
54056
54057 2007-10-11  Eric Blake  <ebb9@byu.net>
54058
54059         Don't claim strerror is broken on Interix.
54060         * doc/functions/strerror.texi (strerror): Known broken systems are
54061         now Solaris 8, and not Interix.
54062         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
54063         Interix on cross-compile.
54064         Reported by Martin Koeppe in
54065         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
54066
54067 2007-10-11  Bruno Haible  <bruno@clisp.org>
54068
54069         * modules/i-ring-tests: New file.
54070         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
54071         instead of assert.
54072
54073 2007-10-11  Bruno Haible  <bruno@clisp.org>
54074
54075         * modules/filenamecat-tests: New file.
54076         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
54077         * lib/filenamecat.c: Remove test code.
54078
54079 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
54080
54081         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
54082
54083         * lib/strerror.c: Include <string.h> always, to test interface,
54084         and to remove the need for the dummy.
54085         Include intprops.h to compute width instead of doing it ourselves
54086         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
54087         (strerror): Define it to return NULL if there's no system strerror.
54088         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
54089         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
54090         ancient pre-strerror Unix systems well any more.  Saying "unknown
54091         system error" is enough.
54092         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
54093         simpler strerror.c implementation.
54094         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
54095         Simplify the tests to reflect the simpler strerror implementation.
54096         * modules/strerror (Depends-on): Add intprops.
54097
54098 2007-10-09  Eric Blake  <ebb9@byu.net>
54099
54100         Silence test-fpending.
54101         * modules/fpending-tests (Files): Add wrapper script.
54102         * tests/test-fpending.sh: New file.
54103
54104 2007-10-09  Bruno Haible  <bruno@clisp.org>
54105
54106         * MODULES.html.sh (func_module): Don't create a hyperlink for
54107         function names like 'printf_frexp'.
54108         (Misc): Add crc, memxor.
54109         (Characteristics of floating types): New section.
54110         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
54111         isnanf-nolibm, signbit, trunc, truncf, truncl.
54112         (Enhancements for ISO C 99 functions): New subsection Input/output.
54113         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
54114         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
54115         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
54116         (Compatibility checks for POSIX:2001 functions): Add clock-time.
54117         (Enhancements for POSIX:2001 functions): Add chdir-long.
54118         (File system functions): Add areadlink, chdir-safer, read-file.
54119         Remove cycle-check.
54120         (File system as inode set): New section.
54121         (Date and time): Add gethrxtime.
54122         (Multithreading): Add openmp.
54123         (Internationalization functions): Add localename.
54124         (Unicode string functions): Add unistr/u*-mbsnlen.
54125         (Support for maintaining and releasing projects): Add git-version-gen.
54126         (Lone files): Remove directories.
54127
54128 2007-10-08  Ben Pfaff  <blp@gnu.org>
54129
54130         * lib/xmalloca.h: Fix typo in comment.
54131
54132 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
54133
54134         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
54135         when avoiding problems with integer overflow.  Use a portable test
54136         instead.
54137
54138 2007-10-08  Simon Josefsson  <simon@josefsson.org>
54139
54140         * modules/dummy (License): Change to LGPLv2+.
54141         * modules/float (License): Likewise
54142         * modules/realloc (License): Likewise
54143         * modules/stdlib (License): Likewise
54144
54145 2007-10-07  Bruno Haible  <bruno@clisp.org>
54146
54147         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
54148         * floor.c (TWO_MANT_DIG): Likewise.
54149         * ceil.c (TWO_MANT_DIG): Likewise.
54150         Reported by Ben Pfaff.
54151
54152 2007-10-07  Bruno Haible  <bruno@clisp.org>
54153
54154         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
54155         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
54156         * lib/frexp.c (FUNC): Likewise.
54157         * lib/printf-frexp.h (printf_frexp): Likewise.
54158         * lib/printf-frexpl.h (printf_frexpl): Likewise.
54159         * lib/printf-frexp.c (FUNC): Likewise.
54160         Suggested by Jim Meyering.
54161
54162 2007-10-07  Jim Meyering  <meyering@redhat.com>
54163
54164         Make xnanosleep's integer overflow test more robust.
54165         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
54166         so that gcc-4.3.0 doesn't optimize away this test for overflow.
54167
54168 2007-10-07  Bruno Haible  <bruno@clisp.org>
54169
54170         * NEWS: Mention the license change.
54171
54172         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
54173         abbreviations in the modules files.
54174
54175         Change copyright notice from GPLv2+ to GPLv3+.
54176         * README: Change copyright notice.
54177         * MODULES.html.sh: Likewise.
54178         * build-aux/bootstrap.conf: Likewise.
54179         * build-aux/config.libpath: Likewise.
54180         * build-aux/csharpcomp.sh.in: Likewise.
54181         * build-aux/csharpexec.sh.in: Likewise.
54182         * build-aux/install-reloc: Likewise.
54183         * build-aux/javacomp.sh.in: Likewise.
54184         * build-aux/javaexec.sh.in: Likewise.
54185         * build-aux/ldd.sh.in: Likewise.
54186         * build-aux/reloc-ldflags: Likewise.
54187         * build-aux/relocatable.sh.in: Likewise.
54188         * build-aux/x-to-1.in: Likewise.
54189         * check-module: Likewise.
54190         * config/srclistvars.sh: Likewise.
54191         * gnulib-tool: Likewise.
54192         * lib/acl-internal.h: Likewise.
54193         * lib/acl.c: Likewise.
54194         * lib/acl.h: Likewise.
54195         * lib/acl_entries.c: Likewise.
54196         * lib/areadlink-with-size.c: Likewise.
54197         * lib/areadlink.c: Likewise.
54198         * lib/areadlink.h: Likewise.
54199         * lib/argmatch.c: Likewise.
54200         * lib/argmatch.h: Likewise.
54201         * lib/argp-ba.c: Likewise.
54202         * lib/argp-eexst.c: Likewise.
54203         * lib/argp-fmtstream.c: Likewise.
54204         * lib/argp-fmtstream.h: Likewise.
54205         * lib/argp-fs-xinl.c: Likewise.
54206         * lib/argp-help.c: Likewise.
54207         * lib/argp-namefrob.h: Likewise.
54208         * lib/argp-parse.c: Likewise.
54209         * lib/argp-pin.c: Likewise.
54210         * lib/argp-pv.c: Likewise.
54211         * lib/argp-pvh.c: Likewise.
54212         * lib/argp-xinl.c: Likewise.
54213         * lib/argp.h: Likewise.
54214         * lib/at-func.c: Likewise.
54215         * lib/atanl.c: Likewise.
54216         * lib/backupfile.c: Likewise.
54217         * lib/backupfile.h: Likewise.
54218         * lib/basename.c: Likewise.
54219         * lib/binary-io.h: Likewise.
54220         * lib/byteswap.in.h: Likewise.
54221         * lib/c-stack.c: Likewise.
54222         * lib/c-stack.h: Likewise.
54223         * lib/c-strcasestr.c: Likewise.
54224         * lib/c-strcasestr.h: Likewise.
54225         * lib/c-strstr.c: Likewise.
54226         * lib/c-strstr.h: Likewise.
54227         * lib/c-strtod.c: Likewise.
54228         * lib/calloc.c: Likewise.
54229         * lib/canon-host.c: Likewise.
54230         * lib/canon-host.h: Likewise.
54231         * lib/canonicalize-lgpl.c: Likewise.
54232         * lib/canonicalize.c: Likewise.
54233         * lib/canonicalize.h: Likewise.
54234         * lib/ceil.c: Likewise.
54235         * lib/ceilf.c: Likewise.
54236         * lib/ceill.c: Likewise.
54237         * lib/chdir-long.c: Likewise.
54238         * lib/chdir-long.h: Likewise.
54239         * lib/chdir-safer.c: Likewise.
54240         * lib/chdir-safer.h: Likewise.
54241         * lib/chown.c: Likewise.
54242         * lib/classpath.c: Likewise.
54243         * lib/classpath.h: Likewise.
54244         * lib/clean-temp.c: Likewise.
54245         * lib/clean-temp.h: Likewise.
54246         * lib/cloexec.c: Likewise.
54247         * lib/close-stream.c: Likewise.
54248         * lib/closein.c: Likewise.
54249         * lib/closein.h: Likewise.
54250         * lib/closeout.c: Likewise.
54251         * lib/closeout.h: Likewise.
54252         * lib/concat-filename.c: Likewise.
54253         * lib/copy-file.c: Likewise.
54254         * lib/copy-file.h: Likewise.
54255         * lib/count-one-bits.h: Likewise.
54256         * lib/crc.c: Likewise.
54257         * lib/crc.h: Likewise.
54258         * lib/creat-safer.c: Likewise.
54259         * lib/csharpcomp.c: Likewise.
54260         * lib/csharpcomp.h: Likewise.
54261         * lib/csharpexec.c: Likewise.
54262         * lib/csharpexec.h: Likewise.
54263         * lib/cycle-check.c: Likewise.
54264         * lib/cycle-check.h: Likewise.
54265         * lib/diacrit.c: Likewise.
54266         * lib/diacrit.h: Likewise.
54267         * lib/diffseq.h: Likewise.
54268         * lib/dirchownmod.c: Likewise.
54269         * lib/dirent.in.h: Likewise.
54270         * lib/dirfd.c: Likewise.
54271         * lib/dirfd.h: Likewise.
54272         * lib/dirname.c: Likewise.
54273         * lib/dirname.h: Likewise.
54274         * lib/dummy.c: Likewise.
54275         * lib/dup-safer.c: Likewise.
54276         * lib/dup2.c: Likewise.
54277         * lib/eealloc.h: Likewise.
54278         * lib/error.c: Likewise.
54279         * lib/error.h: Likewise.
54280         * lib/euidaccess.c: Likewise.
54281         * lib/exclude.c: Likewise.
54282         * lib/exclude.h: Likewise.
54283         * lib/execute.c: Likewise.
54284         * lib/execute.h: Likewise.
54285         * lib/exitfail.c: Likewise.
54286         * lib/exitfail.h: Likewise.
54287         * lib/expl.c: Likewise.
54288         * lib/fatal-signal.c: Likewise.
54289         * lib/fatal-signal.h: Likewise.
54290         * lib/fbufmode.c: Likewise.
54291         * lib/fbufmode.h: Likewise.
54292         * lib/fchdir.c: Likewise.
54293         * lib/fchmodat.c: Likewise.
54294         * lib/fchownat.c: Likewise.
54295         * lib/fcntl--.h: Likewise.
54296         * lib/fcntl-safer.h: Likewise.
54297         * lib/fcntl.in.h: Likewise.
54298         * lib/fd-safer.c: Likewise.
54299         * lib/fflush.c: Likewise.
54300         * lib/file-has-acl.c: Likewise.
54301         * lib/file-set.c: Likewise.
54302         * lib/file-type.c: Likewise.
54303         * lib/file-type.h: Likewise.
54304         * lib/fileblocks.c: Likewise.
54305         * lib/filemode.c: Likewise.
54306         * lib/filemode.h: Likewise.
54307         * lib/filename.h: Likewise.
54308         * lib/filenamecat.c: Likewise.
54309         * lib/filenamecat.h: Likewise.
54310         * lib/findprog.c: Likewise.
54311         * lib/findprog.h: Likewise.
54312         * lib/float.in.h: Likewise.
54313         * lib/floor.c: Likewise.
54314         * lib/floorf.c: Likewise.
54315         * lib/floorl.c: Likewise.
54316         * lib/fopen-safer.c: Likewise.
54317         * lib/fopen.c: Likewise.
54318         * lib/fpending.c: Likewise.
54319         * lib/fpending.h: Likewise.
54320         * lib/fprintf.c: Likewise.
54321         * lib/fprintftime.h: Likewise.
54322         * lib/fpucw.h: Likewise.
54323         * lib/fpurge.c: Likewise.
54324         * lib/fpurge.h: Likewise.
54325         * lib/freadable.c: Likewise.
54326         * lib/freadable.h: Likewise.
54327         * lib/freadahead.c: Likewise.
54328         * lib/freadahead.h: Likewise.
54329         * lib/freading.c: Likewise.
54330         * lib/freading.h: Likewise.
54331         * lib/free.c: Likewise.
54332         * lib/freopen.c: Likewise.
54333         * lib/frexp.c: Likewise.
54334         * lib/frexpl.c: Likewise.
54335         * lib/fseek.c: Likewise.
54336         * lib/fseterr.c: Likewise.
54337         * lib/fseterr.h: Likewise.
54338         * lib/fstatat.c: Likewise.
54339         * lib/fstrcmp.c: Likewise.
54340         * lib/fstrcmp.h: Likewise.
54341         * lib/fsusage.c: Likewise.
54342         * lib/fsusage.h: Likewise.
54343         * lib/ftell.c: Likewise.
54344         * lib/ftello.c: Likewise.
54345         * lib/fts-cycle.c: Likewise.
54346         * lib/fts.c: Likewise.
54347         * lib/fts_.h: Likewise.
54348         * lib/full-read.c: Likewise.
54349         * lib/full-read.h: Likewise.
54350         * lib/full-write.c: Likewise.
54351         * lib/full-write.h: Likewise.
54352         * lib/fwritable.c: Likewise.
54353         * lib/fwritable.h: Likewise.
54354         * lib/fwriteerror.c: Likewise.
54355         * lib/fwriteerror.h: Likewise.
54356         * lib/fwriting.c: Likewise.
54357         * lib/fwriting.h: Likewise.
54358         * lib/gcd.c: Likewise.
54359         * lib/gcd.h: Likewise.
54360         * lib/getcwd.c: Likewise.
54361         * lib/getdate.h: Likewise.
54362         * lib/getdate.y: Likewise.
54363         * lib/getdomainname.c: Likewise.
54364         * lib/getdomainname.h: Likewise.
54365         * lib/getgroups.c: Likewise.
54366         * lib/gethostname.c: Likewise.
54367         * lib/gethrxtime.c: Likewise.
54368         * lib/gethrxtime.h: Likewise.
54369         * lib/getloadavg.c: Likewise.
54370         * lib/getndelim2.c: Likewise.
54371         * lib/getndelim2.h: Likewise.
54372         * lib/getnline.c: Likewise.
54373         * lib/getnline.h: Likewise.
54374         * lib/getopt.c: Likewise.
54375         * lib/getopt.in.h: Likewise.
54376         * lib/getopt1.c: Likewise.
54377         * lib/getopt_int.h: Likewise.
54378         * lib/getpagesize.h: Likewise.
54379         * lib/getsubopt.c: Likewise.
54380         * lib/gettime.c: Likewise.
54381         * lib/getugroups.c: Likewise.
54382         * lib/getugroups.h: Likewise.
54383         * lib/getusershell.c: Likewise.
54384         * lib/gl_anyavltree_list1.h: Likewise.
54385         * lib/gl_anyavltree_list2.h: Likewise.
54386         * lib/gl_anyhash_list1.h: Likewise.
54387         * lib/gl_anyhash_list2.h: Likewise.
54388         * lib/gl_anylinked_list1.h: Likewise.
54389         * lib/gl_anylinked_list2.h: Likewise.
54390         * lib/gl_anyrbtree_list1.h: Likewise.
54391         * lib/gl_anyrbtree_list2.h: Likewise.
54392         * lib/gl_anytree_list1.h: Likewise.
54393         * lib/gl_anytree_list2.h: Likewise.
54394         * lib/gl_anytree_oset.h: Likewise.
54395         * lib/gl_anytreehash_list1.h: Likewise.
54396         * lib/gl_anytreehash_list2.h: Likewise.
54397         * lib/gl_array_list.c: Likewise.
54398         * lib/gl_array_list.h: Likewise.
54399         * lib/gl_array_oset.c: Likewise.
54400         * lib/gl_array_oset.h: Likewise.
54401         * lib/gl_avltree_list.c: Likewise.
54402         * lib/gl_avltree_list.h: Likewise.
54403         * lib/gl_avltree_oset.c: Likewise.
54404         * lib/gl_avltree_oset.h: Likewise.
54405         * lib/gl_avltreehash_list.c: Likewise.
54406         * lib/gl_avltreehash_list.h: Likewise.
54407         * lib/gl_carray_list.c: Likewise.
54408         * lib/gl_carray_list.h: Likewise.
54409         * lib/gl_linked_list.c: Likewise.
54410         * lib/gl_linked_list.h: Likewise.
54411         * lib/gl_linkedhash_list.c: Likewise.
54412         * lib/gl_linkedhash_list.h: Likewise.
54413         * lib/gl_list.c: Likewise.
54414         * lib/gl_list.h: Likewise.
54415         * lib/gl_oset.c: Likewise.
54416         * lib/gl_oset.h: Likewise.
54417         * lib/gl_rbtree_list.c: Likewise.
54418         * lib/gl_rbtree_list.h: Likewise.
54419         * lib/gl_rbtree_oset.c: Likewise.
54420         * lib/gl_rbtree_oset.h: Likewise.
54421         * lib/gl_rbtreehash_list.c: Likewise.
54422         * lib/gl_rbtreehash_list.h: Likewise.
54423         * lib/gl_sublist.c: Likewise.
54424         * lib/gl_sublist.h: Likewise.
54425         * lib/group-member.c: Likewise.
54426         * lib/group-member.h: Likewise.
54427         * lib/hard-locale.c: Likewise.
54428         * lib/hard-locale.h: Likewise.
54429         * lib/hash-pjw.c: Likewise.
54430         * lib/hash-pjw.h: Likewise.
54431         * lib/hash-triple.c: Likewise.
54432         * lib/hash.c: Likewise.
54433         * lib/hash.h: Likewise.
54434         * lib/human.c: Likewise.
54435         * lib/human.h: Likewise.
54436         * lib/i-ring.c: Likewise.
54437         * lib/i-ring.h: Likewise.
54438         * lib/idcache.c: Likewise.
54439         * lib/imaxabs.c: Likewise.
54440         * lib/imaxdiv.c: Likewise.
54441         * lib/inet_pton.c: Likewise.
54442         * lib/inet_pton.h: Likewise.
54443         * lib/intprops.h: Likewise.
54444         * lib/inttostr.c: Likewise.
54445         * lib/inttostr.h: Likewise.
54446         * lib/inttypes.in.h: Likewise.
54447         * lib/isapipe.c: Likewise.
54448         * lib/isdir.c: Likewise.
54449         * lib/isnan.c: Likewise.
54450         * lib/isnan.h: Likewise.
54451         * lib/isnanf.c: Likewise.
54452         * lib/isnanf.h: Likewise.
54453         * lib/isnanl-nolibm.h: Likewise.
54454         * lib/isnanl.c: Likewise.
54455         * lib/isnanl.h: Likewise.
54456         * lib/javacomp.c: Likewise.
54457         * lib/javacomp.h: Likewise.
54458         * lib/javaexec.c: Likewise.
54459         * lib/javaexec.h: Likewise.
54460         * lib/javaversion.c: Likewise.
54461         * lib/javaversion.h: Likewise.
54462         * lib/javaversion.java: Likewise.
54463         * lib/lbrkprop.h: Likewise.
54464         * lib/lchmod.h: Likewise.
54465         * lib/lchown.c: Likewise.
54466         * lib/ldexpl.c: Likewise.
54467         * lib/linebreak.c: Likewise.
54468         * lib/linebreak.h: Likewise.
54469         * lib/linebuffer.c: Likewise.
54470         * lib/linebuffer.h: Likewise.
54471         * lib/locale.in.h: Likewise.
54472         * lib/logl.c: Likewise.
54473         * lib/long-options.c: Likewise.
54474         * lib/long-options.h: Likewise.
54475         * lib/lstat.c: Likewise.
54476         * lib/lstat.h: Likewise.
54477         * lib/math.in.h: Likewise.
54478         * lib/mbchar.c: Likewise.
54479         * lib/mbchar.h: Likewise.
54480         * lib/mbfile.h: Likewise.
54481         * lib/mbiter.h: Likewise.
54482         * lib/mbscasecmp.c: Likewise.
54483         * lib/mbscasestr.c: Likewise.
54484         * lib/mbschr.c: Likewise.
54485         * lib/mbscspn.c: Likewise.
54486         * lib/mbslen.c: Likewise.
54487         * lib/mbsncasecmp.c: Likewise.
54488         * lib/mbsnlen.c: Likewise.
54489         * lib/mbspbrk.c: Likewise.
54490         * lib/mbspcasecmp.c: Likewise.
54491         * lib/mbsrchr.c: Likewise.
54492         * lib/mbssep.c: Likewise.
54493         * lib/mbsspn.c: Likewise.
54494         * lib/mbsstr.c: Likewise.
54495         * lib/mbstok_r.c: Likewise.
54496         * lib/mbswidth.c: Likewise.
54497         * lib/mbswidth.h: Likewise.
54498         * lib/mbuiter.h: Likewise.
54499         * lib/memcasecmp.c: Likewise.
54500         * lib/memcasecmp.h: Likewise.
54501         * lib/memchr.c: Likewise.
54502         * lib/memcmp.c: Likewise.
54503         * lib/memcoll.c: Likewise.
54504         * lib/memcoll.h: Likewise.
54505         * lib/memcpy.c: Likewise.
54506         * lib/memrchr.c: Likewise.
54507         * lib/mkancesdirs.c: Likewise.
54508         * lib/mkdir-p.c: Likewise.
54509         * lib/mkdir-p.h: Likewise.
54510         * lib/mkdir.c: Likewise.
54511         * lib/mkdirat.c: Likewise.
54512         * lib/mkdtemp.c: Likewise.
54513         * lib/mkstemp-safer.c: Likewise.
54514         * lib/mkstemp.c: Likewise.
54515         * lib/modechange.c: Likewise.
54516         * lib/modechange.h: Likewise.
54517         * lib/mountlist.c: Likewise.
54518         * lib/mountlist.h: Likewise.
54519         * lib/mpsort.c: Likewise.
54520         * lib/nanosleep.c: Likewise.
54521         * lib/obstack.c: Likewise.
54522         * lib/obstack.h: Likewise.
54523         * lib/open-safer.c: Likewise.
54524         * lib/open.c: Likewise.
54525         * lib/openat-die.c: Likewise.
54526         * lib/openat-priv.h: Likewise.
54527         * lib/openat-proc.c: Likewise.
54528         * lib/openat.c: Likewise.
54529         * lib/openat.h: Likewise.
54530         * lib/pagealign_alloc.c: Likewise.
54531         * lib/pagealign_alloc.h: Likewise.
54532         * lib/physmem.c: Likewise.
54533         * lib/physmem.h: Likewise.
54534         * lib/pipe-safer.c: Likewise.
54535         * lib/pipe.c: Likewise.
54536         * lib/pipe.h: Likewise.
54537         * lib/posixtm.c: Likewise.
54538         * lib/posixtm.h: Likewise.
54539         * lib/posixver.c: Likewise.
54540         * lib/printf-frexp.c: Likewise.
54541         * lib/printf-frexp.h: Likewise.
54542         * lib/printf-frexpl.c: Likewise.
54543         * lib/printf-frexpl.h: Likewise.
54544         * lib/printf.c: Likewise.
54545         * lib/progname.c: Likewise.
54546         * lib/progname.h: Likewise.
54547         * lib/progreloc.c: Likewise.
54548         * lib/putenv.c: Likewise.
54549         * lib/quote.c: Likewise.
54550         * lib/quote.h: Likewise.
54551         * lib/quotearg.c: Likewise.
54552         * lib/quotearg.h: Likewise.
54553         * lib/raise.c: Likewise.
54554         * lib/readline.c: Likewise.
54555         * lib/readline.h: Likewise.
54556         * lib/readlink.c: Likewise.
54557         * lib/readtokens.c: Likewise.
54558         * lib/readtokens.h: Likewise.
54559         * lib/readtokens0.c: Likewise.
54560         * lib/readtokens0.h: Likewise.
54561         * lib/readutmp.c: Likewise.
54562         * lib/readutmp.h: Likewise.
54563         * lib/realloc.c: Likewise.
54564         * lib/relocwrapper.c: Likewise.
54565         * lib/rename-dest-slash.c: Likewise.
54566         * lib/rename.c: Likewise.
54567         * lib/rmdir.c: Likewise.
54568         * lib/rpmatch.c: Likewise.
54569         * lib/safe-read.c: Likewise.
54570         * lib/safe-read.h: Likewise.
54571         * lib/safe-write.c: Likewise.
54572         * lib/safe-write.h: Likewise.
54573         * lib/same-inode.h: Likewise.
54574         * lib/same.c: Likewise.
54575         * lib/same.h: Likewise.
54576         * lib/save-cwd.c: Likewise.
54577         * lib/save-cwd.h: Likewise.
54578         * lib/savedir.c: Likewise.
54579         * lib/savedir.h: Likewise.
54580         * lib/savewd.c: Likewise.
54581         * lib/savewd.h: Likewise.
54582         * lib/search.in.h: Likewise.
54583         * lib/setenv.c: Likewise.
54584         * lib/setenv.h: Likewise.
54585         * lib/settime.c: Likewise.
54586         * lib/sh-quote.c: Likewise.
54587         * lib/sh-quote.h: Likewise.
54588         * lib/sig2str.c: Likewise.
54589         * lib/sig2str.h: Likewise.
54590         * lib/signal.in.h: Likewise.
54591         * lib/signbitd.c: Likewise.
54592         * lib/signbitf.c: Likewise.
54593         * lib/signbitl.c: Likewise.
54594         * lib/sigprocmask.c: Likewise.
54595         * lib/sincosl.c: Likewise.
54596         * lib/sleep.c: Likewise.
54597         * lib/sprintf.c: Likewise.
54598         * lib/sqrtl.c: Likewise.
54599         * lib/stat-time.h: Likewise.
54600         * lib/stdio--.h: Likewise.
54601         * lib/stdio-safer.h: Likewise.
54602         * lib/stdlib--.h: Likewise.
54603         * lib/stdlib-safer.h: Likewise.
54604         * lib/stdlib.in.h: Likewise.
54605         * lib/stpcpy.c: Likewise.
54606         * lib/stpncpy.c: Likewise.
54607         * lib/strchrnul.c: Likewise.
54608         * lib/strcspn.c: Likewise.
54609         * lib/strerror.c: Likewise.
54610         * lib/strftime.c: Likewise.
54611         * lib/strftime.h: Likewise.
54612         * lib/striconveh.c: Likewise.
54613         * lib/striconveh.h: Likewise.
54614         * lib/striconveha.c: Likewise.
54615         * lib/striconveha.h: Likewise.
54616         * lib/stripslash.c: Likewise.
54617         * lib/strnlen1.c: Likewise.
54618         * lib/strnlen1.h: Likewise.
54619         * lib/strtod.c: Likewise.
54620         * lib/strtoimax.c: Likewise.
54621         * lib/strtok_r.c: Likewise.
54622         * lib/strtol.c: Likewise.
54623         * lib/strtoll.c: Likewise.
54624         * lib/strtoul.c: Likewise.
54625         * lib/strtoull.c: Likewise.
54626         * lib/sysexits.in.h: Likewise.
54627         * lib/tempname.c: Likewise.
54628         * lib/tempname.h: Likewise.
54629         * lib/timespec.h: Likewise.
54630         * lib/tls.c: Likewise.
54631         * lib/tls.h: Likewise.
54632         * lib/tmpdir.c: Likewise.
54633         * lib/tmpdir.h: Likewise.
54634         * lib/tmpfile-safer.c: Likewise.
54635         * lib/tmpfile.c: Likewise.
54636         * lib/trigl.c: Likewise.
54637         * lib/trigl.h: Likewise.
54638         * lib/trim.c: Likewise.
54639         * lib/trim.h: Likewise.
54640         * lib/trunc.c: Likewise.
54641         * lib/truncf.c: Likewise.
54642         * lib/truncl.c: Likewise.
54643         * lib/tsearch.c: Likewise.
54644         * lib/unicodeio.c: Likewise.
54645         * lib/unicodeio.h: Likewise.
54646         * lib/unistd--.h: Likewise.
54647         * lib/unistd-safer.h: Likewise.
54648         * lib/unistdio/ulc-fprintf.c: Likewise.
54649         * lib/unistdio/ulc-vfprintf.c: Likewise.
54650         * lib/unlinkdir.c: Likewise.
54651         * lib/unlinkdir.h: Likewise.
54652         * lib/unlocked-io.h: Likewise.
54653         * lib/unsetenv.c: Likewise.
54654         * lib/userspec.c: Likewise.
54655         * lib/utime.c: Likewise.
54656         * lib/utimecmp.c: Likewise.
54657         * lib/utimecmp.h: Likewise.
54658         * lib/utimens.c: Likewise.
54659         * lib/verify.h: Likewise.
54660         * lib/verror.c: Likewise.
54661         * lib/verror.h: Likewise.
54662         * lib/version-etc-fsf.c: Likewise.
54663         * lib/version-etc.c: Likewise.
54664         * lib/version-etc.h: Likewise.
54665         * lib/vfprintf.c: Likewise.
54666         * lib/vprintf.c: Likewise.
54667         * lib/vsprintf.c: Likewise.
54668         * lib/w32spawn.h: Likewise.
54669         * lib/wait-process.c: Likewise.
54670         * lib/wait-process.h: Likewise.
54671         * lib/wcwidth.c: Likewise.
54672         * lib/write-any-file.c: Likewise.
54673         * lib/xalloc-die.c: Likewise.
54674         * lib/xalloc.h: Likewise.
54675         * lib/xasprintf.c: Likewise.
54676         * lib/xgetcwd.c: Likewise.
54677         * lib/xgetcwd.h: Likewise.
54678         * lib/xgetdomainname.c: Likewise.
54679         * lib/xgetdomainname.h: Likewise.
54680         * lib/xgethostname.c: Likewise.
54681         * lib/xmalloc.c: Likewise.
54682         * lib/xmalloca.c: Likewise.
54683         * lib/xmalloca.h: Likewise.
54684         * lib/xmemcoll.c: Likewise.
54685         * lib/xnanosleep.c: Likewise.
54686         * lib/xreadlink.c: Likewise.
54687         * lib/xreadlink.h: Likewise.
54688         * lib/xsetenv.c: Likewise.
54689         * lib/xsetenv.h: Likewise.
54690         * lib/xstriconv.c: Likewise.
54691         * lib/xstriconv.h: Likewise.
54692         * lib/xstrndup.c: Likewise.
54693         * lib/xstrndup.h: Likewise.
54694         * lib/xstrtod.c: Likewise.
54695         * lib/xstrtod.h: Likewise.
54696         * lib/xstrtol-error.c: Likewise.
54697         * lib/xstrtol.c: Likewise.
54698         * lib/xstrtol.h: Likewise.
54699         * lib/xtime.h: Likewise.
54700         * lib/xvasprintf.c: Likewise.
54701         * lib/xvasprintf.h: Likewise.
54702         * lib/yesno.c: Likewise.
54703         * lib/yesno.h: Likewise.
54704         * posix-modules: Likewise.
54705         * tests/test-alloca-opt.c: Likewise.
54706         * tests/test-arcfour.c: Likewise.
54707         * tests/test-arctwo.c: Likewise.
54708         * tests/test-argmatch.c: Likewise.
54709         * tests/test-argp-2.sh: Likewise.
54710         * tests/test-argp.c: Likewise.
54711         * tests/test-arpa_inet.c: Likewise.
54712         * tests/test-array_list.c: Likewise.
54713         * tests/test-array_oset.c: Likewise.
54714         * tests/test-atexit.c: Likewise.
54715         * tests/test-avltree_list.c: Likewise.
54716         * tests/test-avltree_oset.c: Likewise.
54717         * tests/test-avltreehash_list.c: Likewise.
54718         * tests/test-base64.c: Likewise.
54719         * tests/test-binary-io.c: Likewise.
54720         * tests/test-byteswap.c: Likewise.
54721         * tests/test-c-ctype.c: Likewise.
54722         * tests/test-c-strcasecmp.c: Likewise.
54723         * tests/test-c-strcasestr.c: Likewise.
54724         * tests/test-c-strncasecmp.c: Likewise.
54725         * tests/test-c-strstr.c: Likewise.
54726         * tests/test-canonicalize-lgpl.c: Likewise.
54727         * tests/test-canonicalize.c: Likewise.
54728         * tests/test-carray_list.c: Likewise.
54729         * tests/test-ceilf.c: Likewise.
54730         * tests/test-ceill.c: Likewise.
54731         * tests/test-count-one-bits.c: Likewise.
54732         * tests/test-crc.c: Likewise.
54733         * tests/test-dirname.c: Likewise.
54734         * tests/test-fbufmode.c: Likewise.
54735         * tests/test-fcntl.c: Likewise.
54736         * tests/test-fflush.c: Likewise.
54737         * tests/test-floorf.c: Likewise.
54738         * tests/test-floorl.c: Likewise.
54739         * tests/test-fopen.c: Likewise.
54740         * tests/test-fprintf-posix.c: Likewise.
54741         * tests/test-fprintf-posix.h: Likewise.
54742         * tests/test-fpurge.c: Likewise.
54743         * tests/test-freadable.c: Likewise.
54744         * tests/test-freadahead.c: Likewise.
54745         * tests/test-freading.c: Likewise.
54746         * tests/test-freopen.c: Likewise.
54747         * tests/test-frexp.c: Likewise.
54748         * tests/test-frexpl.c: Likewise.
54749         * tests/test-fseek.c: Likewise.
54750         * tests/test-fseeko.c: Likewise.
54751         * tests/test-fseterr.c: Likewise.
54752         * tests/test-fstrcmp.c: Likewise.
54753         * tests/test-ftell.c: Likewise.
54754         * tests/test-ftello.c: Likewise.
54755         * tests/test-fwritable.c: Likewise.
54756         * tests/test-fwriting.c: Likewise.
54757         * tests/test-getaddrinfo.c: Likewise.
54758         * tests/test-getpass.c: Likewise.
54759         * tests/test-gettimeofday.c: Likewise.
54760         * tests/test-hmac-md5.c: Likewise.
54761         * tests/test-hmac-sha1.c: Likewise.
54762         * tests/test-iconv.c: Likewise.
54763         * tests/test-iconvme.c: Likewise.
54764         * tests/test-inttypes.c: Likewise.
54765         * tests/test-isnan.c: Likewise.
54766         * tests/test-isnanf.c: Likewise.
54767         * tests/test-isnanl-nolibm.c: Likewise.
54768         * tests/test-isnanl.c: Likewise.
54769         * tests/test-isnanl.h: Likewise.
54770         * tests/test-ldexpl.c: Likewise.
54771         * tests/test-linked_list.c: Likewise.
54772         * tests/test-linkedhash_list.c: Likewise.
54773         * tests/test-locale.c: Likewise.
54774         * tests/test-localename.c: Likewise.
54775         * tests/test-lock.c: Likewise.
54776         * tests/test-lseek.c: Likewise.
54777         * tests/test-malloca.c: Likewise.
54778         * tests/test-math.c: Likewise.
54779         * tests/test-mbscasecmp.c: Likewise.
54780         * tests/test-mbscasestr1.c: Likewise.
54781         * tests/test-mbscasestr2.c: Likewise.
54782         * tests/test-mbscasestr3.c: Likewise.
54783         * tests/test-mbscasestr4.c: Likewise.
54784         * tests/test-mbschr.c: Likewise.
54785         * tests/test-mbscspn.c: Likewise.
54786         * tests/test-mbsncasecmp.c: Likewise.
54787         * tests/test-mbspbrk.c: Likewise.
54788         * tests/test-mbspcasecmp.c: Likewise.
54789         * tests/test-mbsrchr.c: Likewise.
54790         * tests/test-mbsspn.c: Likewise.
54791         * tests/test-mbsstr1.c: Likewise.
54792         * tests/test-mbsstr2.c: Likewise.
54793         * tests/test-mbsstr3.c: Likewise.
54794         * tests/test-md5.c: Likewise.
54795         * tests/test-memmem.c: Likewise.
54796         * tests/test-netinet_in.c: Likewise.
54797         * tests/test-open.c: Likewise.
54798         * tests/test-printf-frexp.c: Likewise.
54799         * tests/test-printf-frexpl.c: Likewise.
54800         * tests/test-printf-posix.c: Likewise.
54801         * tests/test-printf-posix.h: Likewise.
54802         * tests/test-rbtree_list.c: Likewise.
54803         * tests/test-rbtree_oset.c: Likewise.
54804         * tests/test-rbtreehash_list.c: Likewise.
54805         * tests/test-read-file.c: Likewise.
54806         * tests/test-rijndael.c: Likewise.
54807         * tests/test-search.c: Likewise.
54808         * tests/test-signbit.c: Likewise.
54809         * tests/test-sleep.c: Likewise.
54810         * tests/test-snprintf-posix.c: Likewise.
54811         * tests/test-snprintf-posix.h: Likewise.
54812         * tests/test-snprintf.c: Likewise.
54813         * tests/test-sprintf-posix.c: Likewise.
54814         * tests/test-sprintf-posix.h: Likewise.
54815         * tests/test-stat-time.c: Likewise.
54816         * tests/test-stdbool.c: Likewise.
54817         * tests/test-stdint.c: Likewise.
54818         * tests/test-stdio.c: Likewise.
54819         * tests/test-stdlib.c: Likewise.
54820         * tests/test-stpncpy.c: Likewise.
54821         * tests/test-strcasestr.c: Likewise.
54822         * tests/test-striconv.c: Likewise.
54823         * tests/test-striconveh.c: Likewise.
54824         * tests/test-striconveha.c: Likewise.
54825         * tests/test-string.c: Likewise.
54826         * tests/test-sys_select.c: Likewise.
54827         * tests/test-sys_socket.c: Likewise.
54828         * tests/test-sys_stat.c: Likewise.
54829         * tests/test-sys_time.c: Likewise.
54830         * tests/test-sysexits.c: Likewise.
54831         * tests/test-time.c: Likewise.
54832         * tests/test-tls.c: Likewise.
54833         * tests/test-trunc.c: Likewise.
54834         * tests/test-truncf.c: Likewise.
54835         * tests/test-truncl.c: Likewise.
54836         * tests/test-unistd.c: Likewise.
54837         * tests/test-vasnprintf-posix.c: Likewise.
54838         * tests/test-vasnprintf-posix2.c: Likewise.
54839         * tests/test-vasnprintf.c: Likewise.
54840         * tests/test-vasprintf-posix.c: Likewise.
54841         * tests/test-vasprintf.c: Likewise.
54842         * tests/test-verify.c: Likewise.
54843         * tests/test-vfprintf-posix.c: Likewise.
54844         * tests/test-vprintf-posix.c: Likewise.
54845         * tests/test-vsnprintf-posix.c: Likewise.
54846         * tests/test-vsnprintf.c: Likewise.
54847         * tests/test-vsprintf-posix.c: Likewise.
54848         * tests/test-wchar.c: Likewise.
54849         * tests/test-wctype.c: Likewise.
54850         * tests/test-wcwidth.c: Likewise.
54851         * tests/test-xstrtol.c: Likewise.
54852         * tests/test-xvasprintf.c: Likewise.
54853         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
54854         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
54855         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
54856         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
54857         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
54858         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
54859         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
54860         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
54861         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
54862         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
54863         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
54864         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
54865         * tests/uniname/test-uninames.c: Likewise.
54866         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
54867         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
54868         * tests/unistdio/test-u16-printf1.h: Likewise.
54869         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
54870         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
54871         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
54872         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
54873         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
54874         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
54875         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
54876         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
54877         * tests/unistdio/test-u32-printf1.h: Likewise.
54878         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
54879         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
54880         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
54881         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
54882         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
54883         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
54884         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
54885         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
54886         * tests/unistdio/test-u8-printf1.h: Likewise.
54887         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
54888         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
54889         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
54890         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
54891         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
54892         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
54893         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
54894         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
54895         * tests/unistdio/test-ulc-printf1.h: Likewise.
54896         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
54897         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
54898         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
54899         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
54900         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
54901         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
54902         * tests/uniwidth/test-u16-strwidth.c: Likewise.
54903         * tests/uniwidth/test-u16-width.c: Likewise.
54904         * tests/uniwidth/test-u32-strwidth.c: Likewise.
54905         * tests/uniwidth/test-u32-width.c: Likewise.
54906         * tests/uniwidth/test-u8-strwidth.c: Likewise.
54907         * tests/uniwidth/test-u8-width.c: Likewise.
54908         * tests/uniwidth/test-uc_width.c: Likewise.
54909         * config/srclist-update: Likewise.
54910         (fixlicense): Update to GPLv3+.
54911
54912         Change copyright notice from LGPLv2.1+ to LGPLv3+.
54913         * tests/test-tsearch.c: Change copyright notice.
54914
54915         Change copyright notice from LGPLv2.0+ to LGPLv3+.
54916         * lib/c-strcaseeq.h: Change copyright notice.
54917         * lib/streq.h: Likewise.
54918         * lib/uniconv.h: Likewise.
54919         * lib/uniconv/u-conv-from-enc.h: Likewise.
54920         * lib/uniconv/u-conv-to-enc.h: Likewise.
54921         * lib/uniconv/u-strconv-from-enc.h: Likewise.
54922         * lib/uniconv/u-strconv-to-enc.h: Likewise.
54923         * lib/uniconv/u16-conv-from-enc.c: Likewise.
54924         * lib/uniconv/u16-conv-to-enc.c: Likewise.
54925         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
54926         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
54927         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
54928         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
54929         * lib/uniconv/u32-conv-from-enc.c: Likewise.
54930         * lib/uniconv/u32-conv-to-enc.c: Likewise.
54931         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
54932         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
54933         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
54934         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
54935         * lib/uniconv/u8-conv-from-enc.c: Likewise.
54936         * lib/uniconv/u8-conv-to-enc.c: Likewise.
54937         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
54938         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
54939         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
54940         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
54941         * lib/uniname.h: Likewise.
54942         * lib/uniname/uniname.c: Likewise.
54943         * lib/unistdio.h: Likewise.
54944         * lib/unistdio/u-asnprintf.h: Likewise.
54945         * lib/unistdio/u-asprintf.h: Likewise.
54946         * lib/unistdio/u-printf-args.c: Likewise.
54947         * lib/unistdio/u-printf-args.h: Likewise.
54948         * lib/unistdio/u-printf-parse.h: Likewise.
54949         * lib/unistdio/u-snprintf.h: Likewise.
54950         * lib/unistdio/u-sprintf.h: Likewise.
54951         * lib/unistdio/u-vasprintf.h: Likewise.
54952         * lib/unistdio/u-vsnprintf.h: Likewise.
54953         * lib/unistdio/u-vsprintf.h: Likewise.
54954         * lib/unistdio/u16-asnprintf.c: Likewise.
54955         * lib/unistdio/u16-asprintf.c: Likewise.
54956         * lib/unistdio/u16-printf-parse.c: Likewise.
54957         * lib/unistdio/u16-snprintf.c: Likewise.
54958         * lib/unistdio/u16-sprintf.c: Likewise.
54959         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
54960         * lib/unistdio/u16-u16-asprintf.c: Likewise.
54961         * lib/unistdio/u16-u16-snprintf.c: Likewise.
54962         * lib/unistdio/u16-u16-sprintf.c: Likewise.
54963         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
54964         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
54965         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
54966         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
54967         * lib/unistdio/u16-vasnprintf.c: Likewise.
54968         * lib/unistdio/u16-vasprintf.c: Likewise.
54969         * lib/unistdio/u16-vsnprintf.c: Likewise.
54970         * lib/unistdio/u16-vsprintf.c: Likewise.
54971         * lib/unistdio/u32-asnprintf.c: Likewise.
54972         * lib/unistdio/u32-asprintf.c: Likewise.
54973         * lib/unistdio/u32-printf-parse.c: Likewise.
54974         * lib/unistdio/u32-snprintf.c: Likewise.
54975         * lib/unistdio/u32-sprintf.c: Likewise.
54976         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
54977         * lib/unistdio/u32-u32-asprintf.c: Likewise.
54978         * lib/unistdio/u32-u32-snprintf.c: Likewise.
54979         * lib/unistdio/u32-u32-sprintf.c: Likewise.
54980         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
54981         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
54982         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
54983         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
54984         * lib/unistdio/u32-vasnprintf.c: Likewise.
54985         * lib/unistdio/u32-vasprintf.c: Likewise.
54986         * lib/unistdio/u32-vsnprintf.c: Likewise.
54987         * lib/unistdio/u32-vsprintf.c: Likewise.
54988         * lib/unistdio/u8-asnprintf.c: Likewise.
54989         * lib/unistdio/u8-asprintf.c: Likewise.
54990         * lib/unistdio/u8-printf-parse.c: Likewise.
54991         * lib/unistdio/u8-snprintf.c: Likewise.
54992         * lib/unistdio/u8-sprintf.c: Likewise.
54993         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
54994         * lib/unistdio/u8-u8-asprintf.c: Likewise.
54995         * lib/unistdio/u8-u8-snprintf.c: Likewise.
54996         * lib/unistdio/u8-u8-sprintf.c: Likewise.
54997         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
54998         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
54999         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
55000         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
55001         * lib/unistdio/u8-vasnprintf.c: Likewise.
55002         * lib/unistdio/u8-vasprintf.c: Likewise.
55003         * lib/unistdio/u8-vsnprintf.c: Likewise.
55004         * lib/unistdio/u8-vsprintf.c: Likewise.
55005         * lib/unistdio/ulc-asnprintf.c: Likewise.
55006         * lib/unistdio/ulc-asprintf.c: Likewise.
55007         * lib/unistdio/ulc-printf-parse.c: Likewise.
55008         * lib/unistdio/ulc-snprintf.c: Likewise.
55009         * lib/unistdio/ulc-sprintf.c: Likewise.
55010         * lib/unistdio/ulc-vasnprintf.c: Likewise.
55011         * lib/unistdio/ulc-vasprintf.c: Likewise.
55012         * lib/unistdio/ulc-vsnprintf.c: Likewise.
55013         * lib/unistdio/ulc-vsprintf.c: Likewise.
55014         * lib/unistr.h: Likewise.
55015         * lib/unistr/u-cpy-alloc.h: Likewise.
55016         * lib/unistr/u-cpy.h: Likewise.
55017         * lib/unistr/u-endswith.h: Likewise.
55018         * lib/unistr/u-move.h: Likewise.
55019         * lib/unistr/u-set.h: Likewise.
55020         * lib/unistr/u-startswith.h: Likewise.
55021         * lib/unistr/u-stpcpy.h: Likewise.
55022         * lib/unistr/u-stpncpy.h: Likewise.
55023         * lib/unistr/u-strcat.h: Likewise.
55024         * lib/unistr/u-strcpy.h: Likewise.
55025         * lib/unistr/u-strcspn.h: Likewise.
55026         * lib/unistr/u-strdup.h: Likewise.
55027         * lib/unistr/u-strlen.h: Likewise.
55028         * lib/unistr/u-strncat.h: Likewise.
55029         * lib/unistr/u-strncpy.h: Likewise.
55030         * lib/unistr/u-strnlen.h: Likewise.
55031         * lib/unistr/u-strpbrk.h: Likewise.
55032         * lib/unistr/u-strspn.h: Likewise.
55033         * lib/unistr/u-strstr.h: Likewise.
55034         * lib/unistr/u-strtok.h: Likewise.
55035         * lib/unistr/u16-check.c: Likewise.
55036         * lib/unistr/u16-chr.c: Likewise.
55037         * lib/unistr/u16-cmp.c: Likewise.
55038         * lib/unistr/u16-cpy-alloc.c: Likewise.
55039         * lib/unistr/u16-cpy.c: Likewise.
55040         * lib/unistr/u16-endswith.c: Likewise.
55041         * lib/unistr/u16-mblen.c: Likewise.
55042         * lib/unistr/u16-mbsnlen.c: Likewise.
55043         * lib/unistr/u16-mbtouc-aux.c: Likewise.
55044         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
55045         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
55046         * lib/unistr/u16-mbtouc.c: Likewise.
55047         * lib/unistr/u16-mbtoucr.c: Likewise.
55048         * lib/unistr/u16-move.c: Likewise.
55049         * lib/unistr/u16-next.c: Likewise.
55050         * lib/unistr/u16-prev.c: Likewise.
55051         * lib/unistr/u16-set.c: Likewise.
55052         * lib/unistr/u16-startswith.c: Likewise.
55053         * lib/unistr/u16-stpcpy.c: Likewise.
55054         * lib/unistr/u16-stpncpy.c: Likewise.
55055         * lib/unistr/u16-strcat.c: Likewise.
55056         * lib/unistr/u16-strchr.c: Likewise.
55057         * lib/unistr/u16-strcmp.c: Likewise.
55058         * lib/unistr/u16-strcpy.c: Likewise.
55059         * lib/unistr/u16-strcspn.c: Likewise.
55060         * lib/unistr/u16-strdup.c: Likewise.
55061         * lib/unistr/u16-strlen.c: Likewise.
55062         * lib/unistr/u16-strmblen.c: Likewise.
55063         * lib/unistr/u16-strmbtouc.c: Likewise.
55064         * lib/unistr/u16-strncat.c: Likewise.
55065         * lib/unistr/u16-strncmp.c: Likewise.
55066         * lib/unistr/u16-strncpy.c: Likewise.
55067         * lib/unistr/u16-strnlen.c: Likewise.
55068         * lib/unistr/u16-strpbrk.c: Likewise.
55069         * lib/unistr/u16-strrchr.c: Likewise.
55070         * lib/unistr/u16-strspn.c: Likewise.
55071         * lib/unistr/u16-strstr.c: Likewise.
55072         * lib/unistr/u16-strtok.c: Likewise.
55073         * lib/unistr/u16-to-u32.c: Likewise.
55074         * lib/unistr/u16-to-u8.c: Likewise.
55075         * lib/unistr/u16-uctomb-aux.c: Likewise.
55076         * lib/unistr/u16-uctomb.c: Likewise.
55077         * lib/unistr/u32-check.c: Likewise.
55078         * lib/unistr/u32-chr.c: Likewise.
55079         * lib/unistr/u32-cmp.c: Likewise.
55080         * lib/unistr/u32-cpy-alloc.c: Likewise.
55081         * lib/unistr/u32-cpy.c: Likewise.
55082         * lib/unistr/u32-endswith.c: Likewise.
55083         * lib/unistr/u32-mblen.c: Likewise.
55084         * lib/unistr/u32-mbsnlen.c: Likewise.
55085         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
55086         * lib/unistr/u32-mbtouc.c: Likewise.
55087         * lib/unistr/u32-mbtoucr.c: Likewise.
55088         * lib/unistr/u32-move.c: Likewise.
55089         * lib/unistr/u32-next.c: Likewise.
55090         * lib/unistr/u32-prev.c: Likewise.
55091         * lib/unistr/u32-set.c: Likewise.
55092         * lib/unistr/u32-startswith.c: Likewise.
55093         * lib/unistr/u32-stpcpy.c: Likewise.
55094         * lib/unistr/u32-stpncpy.c: Likewise.
55095         * lib/unistr/u32-strcat.c: Likewise.
55096         * lib/unistr/u32-strchr.c: Likewise.
55097         * lib/unistr/u32-strcmp.c: Likewise.
55098         * lib/unistr/u32-strcpy.c: Likewise.
55099         * lib/unistr/u32-strcspn.c: Likewise.
55100         * lib/unistr/u32-strdup.c: Likewise.
55101         * lib/unistr/u32-strlen.c: Likewise.
55102         * lib/unistr/u32-strmblen.c: Likewise.
55103         * lib/unistr/u32-strmbtouc.c: Likewise.
55104         * lib/unistr/u32-strncat.c: Likewise.
55105         * lib/unistr/u32-strncmp.c: Likewise.
55106         * lib/unistr/u32-strncpy.c: Likewise.
55107         * lib/unistr/u32-strnlen.c: Likewise.
55108         * lib/unistr/u32-strpbrk.c: Likewise.
55109         * lib/unistr/u32-strrchr.c: Likewise.
55110         * lib/unistr/u32-strspn.c: Likewise.
55111         * lib/unistr/u32-strstr.c: Likewise.
55112         * lib/unistr/u32-strtok.c: Likewise.
55113         * lib/unistr/u32-to-u16.c: Likewise.
55114         * lib/unistr/u32-to-u8.c: Likewise.
55115         * lib/unistr/u32-uctomb.c: Likewise.
55116         * lib/unistr/u8-check.c: Likewise.
55117         * lib/unistr/u8-chr.c: Likewise.
55118         * lib/unistr/u8-cmp.c: Likewise.
55119         * lib/unistr/u8-cpy-alloc.c: Likewise.
55120         * lib/unistr/u8-cpy.c: Likewise.
55121         * lib/unistr/u8-endswith.c: Likewise.
55122         * lib/unistr/u8-mblen.c: Likewise.
55123         * lib/unistr/u8-mbsnlen.c: Likewise.
55124         * lib/unistr/u8-mbtouc-aux.c: Likewise.
55125         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
55126         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
55127         * lib/unistr/u8-mbtouc.c: Likewise.
55128         * lib/unistr/u8-mbtoucr.c: Likewise.
55129         * lib/unistr/u8-move.c: Likewise.
55130         * lib/unistr/u8-next.c: Likewise.
55131         * lib/unistr/u8-prev.c: Likewise.
55132         * lib/unistr/u8-set.c: Likewise.
55133         * lib/unistr/u8-startswith.c: Likewise.
55134         * lib/unistr/u8-stpcpy.c: Likewise.
55135         * lib/unistr/u8-stpncpy.c: Likewise.
55136         * lib/unistr/u8-strcat.c: Likewise.
55137         * lib/unistr/u8-strchr.c: Likewise.
55138         * lib/unistr/u8-strcmp.c: Likewise.
55139         * lib/unistr/u8-strcpy.c: Likewise.
55140         * lib/unistr/u8-strcspn.c: Likewise.
55141         * lib/unistr/u8-strdup.c: Likewise.
55142         * lib/unistr/u8-strlen.c: Likewise.
55143         * lib/unistr/u8-strmblen.c: Likewise.
55144         * lib/unistr/u8-strmbtouc.c: Likewise.
55145         * lib/unistr/u8-strncat.c: Likewise.
55146         * lib/unistr/u8-strncmp.c: Likewise.
55147         * lib/unistr/u8-strncpy.c: Likewise.
55148         * lib/unistr/u8-strnlen.c: Likewise.
55149         * lib/unistr/u8-strpbrk.c: Likewise.
55150         * lib/unistr/u8-strrchr.c: Likewise.
55151         * lib/unistr/u8-strspn.c: Likewise.
55152         * lib/unistr/u8-strstr.c: Likewise.
55153         * lib/unistr/u8-strtok.c: Likewise.
55154         * lib/unistr/u8-to-u16.c: Likewise.
55155         * lib/unistr/u8-to-u32.c: Likewise.
55156         * lib/unistr/u8-uctomb-aux.c: Likewise.
55157         * lib/unistr/u8-uctomb.c: Likewise.
55158         * lib/unitypes.h: Likewise.
55159         * lib/uniwidth.h: Likewise.
55160         * lib/uniwidth/cjk.h: Likewise.
55161         * lib/uniwidth/u16-strwidth.c: Likewise.
55162         * lib/uniwidth/u16-width.c: Likewise.
55163         * lib/uniwidth/u32-strwidth.c: Likewise.
55164         * lib/uniwidth/u32-width.c: Likewise.
55165         * lib/uniwidth/u8-strwidth.c: Likewise.
55166         * lib/uniwidth/u8-width.c: Likewise.
55167         * lib/uniwidth/width.c: Likewise.
55168
55169 2007-10-07  Bruno Haible  <bruno@clisp.org>
55170
55171         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
55172         The file is still under LGPL (see modules/inttypes).
55173
55174 2007-10-06  Bruno Haible  <bruno@clisp.org>
55175
55176         * modules/trunc (Dependencies): Add 'extensions'.
55177         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
55178         Reported by Ben Pfaff <blp@gnu.org>.
55179
55180 2007-10-06  Bruno Haible  <bruno@clisp.org>
55181
55182         * modules/freopen-tests: New file.
55183         * tests/test-freopen.c: New file.
55184
55185         * modules/fopen-tests: New file.
55186         * tests/test-fopen.c: New file.
55187
55188         * modules/fopen: New file.
55189         * lib/fopen.c: New file.
55190         * m4/fopen.m4: New file.
55191         * modules/freopen: New file.
55192         * lib/freopen.c: New file.
55193         * m4/freopen.m4: New file.
55194         * lib/stdio.in.h (fopen, freopen): New declarations.
55195         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
55196         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
55197         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
55198         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
55199         * doc/functions/fopen.texi: Mention the 'fopen' module.
55200         * doc/functions/freopen.texi: Mention the 'freopen' module.
55201
55202 2007-10-06  Bruno Haible  <bruno@clisp.org>
55203
55204         * modules/open-tests: New file.
55205         * tests/test-open.c: New file.
55206
55207         * modules/open: New file.
55208         * lib/open.c: New file.
55209         * m4/open.m4: New file.
55210         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
55211         lib/open.c does.
55212         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
55213         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
55214         macros.
55215         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
55216         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
55217         REPLACE_OPEN.
55218         * doc/functions/open.texi: Mention the 'open' module.
55219
55220 2007-10-04  Bruno Haible  <bruno@clisp.org>
55221
55222         * modules/ceill-tests: New file.
55223         * tests/test-ceill.c: New file.
55224
55225         * modules/ceill: New file.
55226         * lib/ceill.c: Replace entire file.
55227         * m4/ceill.m4: New file.
55228         * lib/math.in.h (ceill): Replace declaration.
55229         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
55230         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
55231         * doc/functions/ceill.texi: Mention the 'ceill' module.
55232         * modules/mathl (Files): Remove lib/ceill.c.
55233         (Depends-on): Add ceill.
55234
55235 2007-10-04  Bruno Haible  <bruno@clisp.org>
55236
55237         * modules/ceilf-tests: New file.
55238         * tests/test-ceilf.c: New file.
55239
55240         * modules/ceilf: New file.
55241         * lib/ceil.c: New file.
55242         * lib/ceilf.c: New file.
55243         * m4/ceilf.m4: New file.
55244         * lib/math.in.h (ceilf): New declaration.
55245         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
55246         HAVE_DECL_CEILF.
55247         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
55248         HAVE_DECL_CEILF.
55249         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
55250
55251 2007-10-04  Bruno Haible  <bruno@clisp.org>
55252
55253         * modules/floorl-tests: New file.
55254         * tests/test-floorl.c: New file.
55255
55256         * modules/floorl: New file.
55257         * lib/floorl.c: Replace entire file.
55258         * m4/floorl.m4: New file.
55259         * lib/math.in.h (floorl): Replace declaration.
55260         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
55261         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
55262         * doc/functions/floorl.texi: Mention the 'floorl' module.
55263         * modules/mathl (Files): Remove lib/floorl.c.
55264         (Depends-on): Add floorl.
55265
55266 2007-10-04  Bruno Haible  <bruno@clisp.org>
55267
55268         * modules/floorf-tests: New file.
55269         * tests/test-floorf.c: New file.
55270
55271         * modules/floorf: New file.
55272         * lib/floor.c: New file.
55273         * lib/floorf.c: New file.
55274         * m4/floorf.m4: New file.
55275         * lib/math.in.h (floorf): New declaration.
55276         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
55277         HAVE_DECL_FLOORF.
55278         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
55279         HAVE_DECL_FLOORF.
55280         * doc/functions/floorf.texi: Mention the 'floorf' module.
55281
55282 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
55283             Bruno Haible  <bruno@clisp.org>
55284
55285         Advertise for the Git server instead of the CVS server.
55286         * doc/gnulib-intro.texi (Steady Development): Mention the Git
55287         repository instead of the CVS one.
55288         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
55289         about all VCS systems generically.
55290         * doc/gnulib.texi (Introduction): Capitalize `Git'.
55291
55292 2007-10-04  Bruno Haible  <bruno@clisp.org>
55293
55294         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
55295         means.
55296         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
55297
55298 2007-10-04  Bruno Haible  <bruno@clisp.org>
55299
55300         * modules/truncl-tests: New file.
55301         * tests/test-truncl.c: New file.
55302
55303         * modules/truncl: New file.
55304         * lib/truncl.c: New file.
55305         * m4/truncl.m4: New file.
55306         * lib/math.in.h (truncl): New declaration.
55307         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
55308         HAVE_DECL_TRUNCL.
55309         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
55310         HAVE_DECL_TRUNCL.
55311         * doc/functions/truncl.texi: Mention the 'truncl' module.
55312
55313 2007-10-04  Bruno Haible  <bruno@clisp.org>
55314
55315         * modules/truncf-tests: New file.
55316         * tests/test-truncf.c: New file.
55317
55318         * modules/truncf: New file.
55319         * lib/trunc.c: Make paramerizable through USE_* macros.
55320         * lib/truncf.c: New file.
55321         * m4/truncf.m4: New file.
55322         * lib/math.in.h (truncf): New declaration.
55323         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
55324         HAVE_DECL_TRUNCF.
55325         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
55326         HAVE_DECL_TRUNCF.
55327         * doc/functions/truncf.texi: Mention the 'truncf' module.
55328
55329 2007-10-03  Bruno Haible  <bruno@clisp.org>
55330
55331         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
55332         augmentation also for tests modules.
55333         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
55334         * modules/atexit-tests (Makefile.am): Likewise.
55335         * modules/binary-io-tests (Makefile.am): Likewise.
55336         * modules/c-strcase-tests (Makefile.am): Likewise.
55337         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
55338         * modules/canonicalize-tests (Makefile.am): Likewise.
55339         * modules/closein-tests (Makefile.am): Likewise.
55340         * modules/fprintf-posix-tests (Makefile.am): Likewise.
55341         * modules/freadahead-tests (Makefile.am): Likewise.
55342         * modules/fseek-tests (Makefile.am): Likewise.
55343         * modules/fseeko-tests (Makefile.am): Likewise.
55344         * modules/ftell-tests (Makefile.am): Likewise.
55345         * modules/ftello-tests (Makefile.am): Likewise.
55346         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
55347         * modules/isnanl-tests (Makefile.am): Likewise.
55348         * modules/lseek-tests (Makefile.am): Likewise.
55349         * modules/mbscasecmp-tests (Makefile.am): Likewise.
55350         * modules/mbscasestr-tests (Makefile.am): Likewise.
55351         * modules/mbschr-tests (Makefile.am): Likewise.
55352         * modules/mbscspn-tests (Makefile.am): Likewise.
55353         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
55354         * modules/mbspbrk-tests (Makefile.am): Likewise.
55355         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
55356         * modules/mbsrchr-tests (Makefile.am): Likewise.
55357         * modules/mbsspn-tests (Makefile.am): Likewise.
55358         * modules/mbsstr-tests (Makefile.am): Likewise.
55359         * modules/printf-posix-tests (Makefile.am): Likewise.
55360         * modules/snprintf-posix-tests (Makefile.am): Likewise.
55361         * modules/sprintf-posix-tests (Makefile.am): Likewise.
55362         * modules/tsearch-tests (Makefile.am): Likewise.
55363         * modules/uniname/uniname-tests (Makefile.am): Likewise.
55364         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
55365         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
55366         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
55367         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
55368         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
55369         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
55370         * modules/vprintf-posix-tests (Makefile.am): Likewise.
55371         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
55372         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
55373         * modules/xstrtoimax-tests (Makefile.am): Likewise.
55374         * modules/xstrtol-tests (Makefile.am): Likewise.
55375         * modules/xstrtoumax-tests (Makefile.am): Likewise.
55376         * modules/yesno-tests (Makefile.am): Likewise.
55377
55378 2007-10-03  Bruno Haible  <bruno@clisp.org>
55379
55380         * modules/trunc-tests: New file.
55381         * tests/test-trunc.c: New file.
55382
55383         * modules/trunc: New file.
55384         * lib/trunc.c: New file.
55385         * m4/trunc.m4: New file.
55386         * lib/math.in.h (trunc): New declaration.
55387         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
55388         HAVE_DECL_TRUNC.
55389         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
55390         HAVE_DECL_TRUNC.
55391         * doc/functions/trunc.texi: Mention the 'trunc' module.
55392
55393 2007-10-03  Bruno Haible  <bruno@clisp.org>
55394
55395         * tests/test-fpending.c: New file, mostly copied
55396         from coreutils/lib/t-fpending.c.
55397         * modules/fpending-tests: New file.
55398
55399 2007-10-03  Bruno Haible  <bruno@clisp.org>
55400
55401         Port the stdio extensions to QNX (untested).
55402         * lib/fseterr.c (fseterr): Add support for QNX.
55403         * lib/fbufmode.c (fbufmode): Likewise.
55404         * lib/freadable.c (freadable): Likewise.
55405         * lib/fwritable.c (fwritable): Likewise.
55406         * lib/freading.c (freading): Likewise.
55407         * lib/fwriting.c (fwriting): Likewise.
55408         * lib/freadahead.c (freadahed): Likewise.
55409         * lib/fpurge.c (fpurge): Likewise.
55410         * lib/fseeko.c (rpl_fseeko): Likewise.
55411
55412 2007-10-03  Bruno Haible  <bruno@clisp.org>
55413             Jim Meyering  <jim@meyering.net>
55414             Eric Blake  <ebb9@byu.net>
55415
55416         * doc/relocatable.texi: Use @command instead of @program.
55417
55418 2007-10-02  Jim Meyering  <jim@meyering.net>
55419
55420         Perform one more "_.h" -> ".in.h" substitution.
55421         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
55422         instead of unistd_.h here, too.
55423
55424 2007-10-01  Bruno Haible  <bruno@clisp.org>
55425
55426         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
55427         Needed for the alloca-opt module.
55428
55429 2007-09-30  Bruno Haible  <bruno@clisp.org>
55430
55431         * lib/alloca.in.h: Renamed from lib/alloca_.h.
55432         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
55433         alloca_.h.
55434         * lib/argz.in.h: Renamed from lib/argz_.h.
55435         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
55436         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
55437         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
55438         byteswap_.h.
55439         * lib/dirent.in.h: Renamed from lib/dirent_.h.
55440         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
55441         dirent_.h.
55442         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
55443         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
55444         fcntl_.h.
55445         * lib/float.in.h: Renamed from lib/float_.h.
55446         * modules/float (Files, Makefile.am): Use float.in.h instead of
55447         float_.h.
55448         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
55449         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
55450         fnmatch_.h.
55451         * lib/getopt.in.h: Renamed from lib/getopt_.h.
55452         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
55453         getopt_.h.
55454         * lib/glob.in.h: Renamed from lib/glob_.h.
55455         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
55456         * lib/iconv.in.h: Renamed from lib/iconv_.h.
55457         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
55458         iconv_.h.
55459         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
55460         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
55461         inttypes_.h.
55462         * lib/locale.in.h: Renamed from lib/locale_.h.
55463         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
55464         locale_.h.
55465         * lib/math.in.h: Renamed from lib/math_.h.
55466         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
55467         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
55468         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
55469         of netinet_in_.h. Add dependency.
55470         * lib/poll.in.h: Renamed from lib/poll_.h.
55471         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
55472         * lib/search.in.h: Renamed from lib/search_.h.
55473         * modules/search (Files, Makefile.am): Use search.in.h instead of
55474         search_.h.
55475         * lib/signal.in.h: Renamed from lib/signal_.h.
55476         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
55477         _signal.h.
55478         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
55479         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
55480         stdbool_.h.
55481         * lib/stdint.in.h: Renamed from lib/stdint_.h.
55482         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
55483         stdint_.h.
55484         * lib/stdio.in.h: Renamed from lib/stdio_.h.
55485         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
55486         stdio_.h.
55487         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
55488         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
55489         stdlib_.h.
55490         * lib/string.in.h: Renamed from lib/string_.h.
55491         * modules/string (Files, Makefile.am): Use string.in.h instead of
55492         string_.h.
55493         * doc/gnulib-tool.texi (Initial import): Update.
55494         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
55495         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
55496         of sys_select_.h. Add dependency.
55497         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
55498         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
55499         of sys_socket_.h.
55500         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
55501         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
55502         sys_stat_.h.
55503         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
55504         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
55505         sys_time_.h.
55506         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
55507         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
55508         sysexits_.h.
55509         * lib/time.in.h: Renamed from lib/time_.h.
55510         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
55511         * lib/unistd.in.h: Renamed from lib/unistd_.h.
55512         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
55513         unistd_.h.
55514         * lib/wchar.in.h: Renamed from lib/wchar_.h.
55515         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
55516         wchar_.h.
55517         * lib/wctype.in.h: Renamed from lib/wctype_.h.
55518         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
55519         wctype_.h.
55520         * build-aux/bootstrap (slurp): Update.
55521         * lib/.cppi-disable: Update.
55522
55523 2007-09-30  Bruno Haible  <bruno@clisp.org>
55524
55525         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
55526         Needed on BeOS.
55527
55528 2007-09-30  Bruno Haible  <bruno@clisp.org>
55529
55530         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
55531
55532 2007-09-29  Bruno Haible  <bruno@clisp.org>
55533
55534         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
55535
55536 2007-09-29  Bruno Haible  <bruno@clisp.org>
55537
55538         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
55539         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
55540         * build-aux/install-reloc: Compile also areadlink.c.
55541         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
55542
55543 2007-09-29  Bruno Haible  <bruno@clisp.org>
55544
55545         * gnulib-tool (func_emit_initmacro_done): Indentation.
55546
55547 2007-09-29  Bruno Haible  <bruno@clisp.org>
55548
55549         * README: Add CVS checkout update instructions.
55550         Info from Bob Proulx <bob@proulx.com>.
55551
55552 2007-09-28  Eric Blake  <ebb9@byu.net>
55553
55554         Provide move-if-change.
55555         * build-aux/move-if-change: New file, based on best practice
55556         rather than any canonical upstream location.
55557
55558 2007-09-28  Jim Meyering  <jim@meyering.net>
55559
55560         Fix canonicalize loop-detection corner case.
55561         Do not attempt to stat the symlink values stored via seen_triple.
55562         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
55563         on linux-2.6.18, (but not 2.6.22).
55564         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
55565         triple_compare.  The former compares dev,ino,filename, while the latter
55566         would actually stat dirname(filename) when dev and ino were equal.
55567         * lib/hash-triple.c: Install <string.h>.
55568         (STREQ): Define.
55569         (triple_compare_ino_str): New function.
55570         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
55571
55572 2007-09-28  Eric Blake  <ebb9@byu.net>
55573
55574         Enforce that AC_REPLACE_FUNCS files exist.
55575         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
55576         override check for typos.
55577
55578         Fix test-closein on Solaris 10.
55579         * tests/test-closein.c (main): Don't assume stdin can be inherited
55580         closed on all systems.
55581         * tests/test-closein.sh: Likewise.
55582         Reported by Piotr Tarnowski.
55583
55584 2007-09-28  Jim Meyering  <jim@meyering.net>
55585
55586         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
55587
55588 2007-09-27  Jim Meyering  <jim@meyering.net>
55589
55590         canonicalize: Avoid a false-positive cycle failure.
55591         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
55592         Sort.  Remove cycle-check.
55593         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
55594         not cycle-check.h.
55595         (seen_triple): New function.
55596         (canonicalize_filename_mode): Use it instead of cycle-check.
55597         * tests/test-canonicalize.c: Add a test for this bug.
55598         * tests/test-canonicalize.sh: Set up and run the test.
55599
55600         New module, file-set, from coreutils.
55601         * modules/file-set: Define it.
55602         * lib/file-set.c, lib/file-set.h: Implement.
55603
55604         New module, hash-triple, from coreutils.
55605         * modules/hash-triple: Define it.
55606         * lib/hash-triple.c, lib/hash-triple.h: Implement.
55607
55608 2007-09-25  Eric Blake  <ebb9@byu.net>
55609
55610         Fix strerror on Interix.
55611         * lib/string_.h (strerror): Declare replacement.
55612         * doc/functions/strerror.texi (strerror): Document the Interix
55613         shortcoming.
55614         * modules/string (Makefile.am): Support new hooks.
55615         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
55616         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
55617         gl_FUNC_STRERROR_SEPARATE.
55618         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
55619         * lib/strerror.c (rpl_strerror): Provide replacement.
55620         * modules/strerror (Depends-on): Add string.
55621         (configure.ac): Detect use of module.
55622         * tests/test-strerror.c: New file.
55623         * modules/strerror-tests: New test module.
55624         * modules/argp (Depends-on): Add strerror.
55625         * modules/error (Depends-on): Likewise.
55626         Reported by Martin Koeppe.
55627
55628 2007-09-24  Bruno Haible  <bruno@clisp.org>
55629
55630         * README: Update git instructions.
55631
55632 2007-09-24  Eric Blake  <ebb9@byu.net>
55633
55634         Revert fpending breakage from 2007-09-08.
55635         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
55636         __fpending.c.
55637
55638 2007-09-24  Jim Meyering  <jim@meyering.net>
55639
55640         filenamecat.c: Add a test.
55641         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
55642         showing how the function works when DIR is the empty string.
55643
55644 2007-09-21  Simon Josefsson  <simon@josefsson.org>
55645
55646         * tests/test-canonicalize.sh: Turn on executable bit.
55647
55648 2007-09-19  Eric Blake  <ebb9@byu.net>
55649
55650         * README: Update CVS instructions.
55651
55652 2007-09-18  Bruno Haible  <bruno@clisp.org>
55653
55654         * modules/areadlink: New file.
55655         * lib/areadlink.h (areadlink): New declaration.
55656         * lib/areadlink.c: New file, based on lib/xreadlink.c.
55657
55658 2007-09-17  Jim Meyering  <jim@meyering.net>
55659
55660         * lib/savewd.c (ESTALE) [!defined]: Define.
55661         Reported to be required on Interix by Martin Koeppe.
55662
55663 2007-09-17  Bruno Haible  <bruno@clisp.org>
55664
55665         * gnulib-tool (func_version): Use $version.
55666
55667 2007-09-16  Bruno Haible  <bruno@clisp.org>
55668
55669         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
55670         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
55671         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
55672         Reported by Greg Schafer <gschafer@zip.com.au>.
55673
55674 2007-09-15  Bruno Haible  <bruno@clisp.org>
55675
55676         * gnulib-tool (sed): Try a little harder to make bash understand the
55677         alias.
55678         Reported by Bruce Korb <bruce.korb@gmail.com>.
55679
55680 2007-09-13  Eric Blake  <ebb9@byu.net>
55681
55682         * ChangeLog: Remove conflict markers.
55683
55684 2007-09-13  Simon Josefsson  <simon@josefsson.org>
55685
55686         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
55687         Reported by Bruno Haible <bruno@clisp.org>.
55688
55689 2007-09-12  Bruno Haible  <bruno@clisp.org>
55690
55691         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
55692         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
55693         is not defined.
55694
55695 2007-09-12  Eric Blake  <ebb9@byu.net>
55696
55697         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
55698         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
55699         Autoconf definition.
55700         * modules/euidaccess (Depends-on): Add extensions, for
55701         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
55702         * modules/fnmatch (Depends-on): Likewise.
55703         * modules/getaddrinfo (Depends-on): Likewise.
55704         * modules/getdelim (Depends-on): Likewise.
55705         * modules/getline (Depends-on): Likewise.
55706         * modules/getsubopt (Depends-on): Likewise.
55707         * modules/gettext (Depends-on): Likewise.
55708         * modules/group-member (Depends-on): Likewise.
55709         * modules/mbchar (Depends-on): Likewise.
55710         * modules/memmem (Depends-on): Likewise.
55711         * modules/mempcpy (Depends-on): Likewise.
55712         * modules/memrchr (Depends-on): Likewise.
55713         * modules/pagealign_alloc (Depends-on): Likewise.
55714         * modules/readutmp (Depends-on): Likewise.
55715         * modules/stpcpy (Depends-on): Likewise.
55716         * modules/stpncpy (Depends-on): Likewise.
55717         * modules/strchrnul (Depends-on): Likewise.
55718         * modules/strndup (Depends-on): Likewise.
55719         * modules/strsep (Depends-on): Likewise.
55720         * modules/strverscmp (Depends-on): Likewise.
55721         * modules/vasprintf (Depends-on): Likewise.
55722         * modules/wcwidth (Depends-on): Likewise.
55723         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
55724         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
55725         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
55726         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
55727         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
55728         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
55729         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
55730         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
55731         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
55732         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
55733         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
55734         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
55735         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
55736         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
55737         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
55738         * m4/readutmp.m4 (gl_READUTMP): Likewise.
55739         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
55740         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
55741         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
55742         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
55743         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
55744         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
55745         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
55746         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
55747         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
55748         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
55749         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
55750         so that lock.m4 can be used in gettext without extensions module.
55751
55752 2007-09-11  Bruno Haible  <bruno@clisp.org>
55753
55754         * m4/isc-posix.m4: Remove file.
55755         Suggested by Eric Blake.
55756
55757 2007-09-11  Eric Blake  <ebb9@byu.net>
55758
55759         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
55760
55761 2007-09-10  Bruno Haible  <bruno@clisp.org>
55762
55763         * posix-modules: Fix typo in error message.
55764         Reported by Matt <mkraai@beckman.com>.
55765
55766 2007-09-09  Bruno Haible  <bruno@clisp.org>
55767
55768         * doc/functions/getdelim.texi: Update list of platforms lacking the
55769         function.
55770         * doc/functions/getline.texi: Likewise.
55771
55772 2007-09-09  Jim Meyering  <jim@meyering.net>
55773
55774         * lib/hash.c (hash_initialize): Detect calloc failure.
55775         Reported by Bruno Haible.
55776
55777 2007-09-09  Bruno Haible  <bruno@clisp.org>
55778
55779         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
55780         malloc or realloc fails.
55781
55782 2007-09-09  Bruno Haible  <bruno@clisp.org>
55783
55784         * modules/getcwd (Depends-on): Add malloc-posix.
55785         * modules/glob (Depends-on): Likewise.
55786         * modules/putenv (Depends-on): Likewise.
55787         * modules/strdup (Depends-on): Likewise.
55788         * modules/getdelim (Depends-on): Add realloc-posix.
55789         * modules/read-file (Depends-on): Likewise.
55790
55791 2007-09-09  Bruno Haible  <bruno@clisp.org>
55792
55793         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
55794         (gl_FUNC_MALLOC_POSIX): Require it.
55795         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
55796         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
55797         * modules/realloc (Files): Add m4/malloc.m4.
55798         * modules/calloc (Files): Likewise.
55799
55800 2007-09-09  Bruno Haible  <bruno@clisp.org>
55801
55802         * modules/malloc-posix: New file.
55803         * modules/malloc (Depends-on): Add malloc-posix.
55804         * lib/malloc.c: Include errno.h.
55805         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
55806         and a POSIX-compatible malloc into a single function. Set ENOMEM
55807         when returning NULL.
55808         * m4/malloc.m4: New file.
55809         * doc/functions/malloc.texi: Mention the malloc-posix module.
55810         * lib/stdlib_.h (malloc): New declaration.
55811         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
55812         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
55813         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
55814         and HAVE_MALLOC_POSIX.
55815
55816 2007-09-09  Bruno Haible  <bruno@clisp.org>
55817
55818         * modules/realloc-posix: New file.
55819         * modules/realloc (Depends-on): Add realloc-posix.
55820         * lib/realloc.c: Include errno.h.
55821         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
55822         and a POSIX-compatible realloc into a single function. Set ENOMEM
55823         when returning NULL.
55824         * m4/realloc.m4: New file.
55825         * doc/functions/realloc.texi: Mention the realloc-posix module.
55826         * lib/stdlib_.h (realloc): New declaration.
55827         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
55828         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
55829         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
55830         and HAVE_REALLOC_POSIX.
55831
55832 2007-09-09  Bruno Haible  <bruno@clisp.org>
55833
55834         * modules/calloc-posix: New file.
55835         * modules/calloc (Depends-on): Add calloc-posix.
55836         * lib/calloc.c: Include errno.h.
55837         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
55838         and a POSIX-compatible calloc into a single function. Set ENOMEM
55839         when returning NULL.
55840         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
55841         * doc/functions/calloc.texi: Mention the calloc-posix module.
55842         * lib/stdlib_.h (calloc): New declaration.
55843         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
55844         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
55845         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
55846         and HAVE_CALLOC_POSIX.
55847
55848 2007-09-09  Bruno Haible  <bruno@clisp.org>
55849
55850         Allow for modules to show an arbitrary notice.
55851         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
55852         * gnulib-tool: New option --extract-notice.
55853         (func_usage): Document it.
55854         (sed_extract_prog): Update.
55855         (func_get_notice): New function.
55856         (func_modules_notice): New function.
55857         (func_import, func_create_testdir): Invoke it.
55858         Suggested by Jim Meyering.
55859
55860 2007-09-09  Bruno Haible  <bruno@clisp.org>
55861
55862         * gnulib-tool: New options --verbose, --quiet.
55863         (func_usage): Document them.
55864         (verbose): New variable.
55865         (func_execute_command): New function.
55866         (func_import): Don't show the module list and the file list if
55867         $verbose < 0.
55868         (func_create_testdir): Likewise. Use func_execute_command.
55869         (func_create_megatestdir): Use func_execute_command.
55870
55871 2007-09-08  Bruno Haible  <bruno@clisp.org>
55872
55873         * gnulib-tool (func_import): Prefer rsync over wget when available,
55874         for fetching the PO files.
55875
55876 2007-09-08  Bruno Haible  <bruno@clisp.org>
55877
55878         * posix-modules: New file. Portions copied from gnulib-tool.
55879         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
55880
55881 2007-09-08  Jim Meyering  <jim@meyering.net>
55882
55883         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
55884         * lib/fpending.h: Rename from __fpending.h.
55885         * lib/fpending.c: Rename from __fpending.c.
55886         Include "fpending.h", not "__fpending.h".
55887         * lib/__fpending.h, lib/__fpending.c: Remove files.
55888         * modules/fpending (Files): Reflect new file names.
55889         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
55890
55891 2007-09-08  Bruno Haible  <bruno@clisp.org>
55892
55893         * m4/inttypes-h.m4: Remove stub file.
55894
55895 2007-09-07  Simon Josefsson  <simon@josefsson.org>
55896
55897         * doc/headers/stdint.texi: Discuss #include_next issue.
55898
55899 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
55900
55901         * build-aux/bootstrap: Remove obsolete comment about wget --help.
55902
55903 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55904
55905         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
55906         in variable name.
55907
55908 2007-09-03  Jim Meyering  <jim@meyering.net>
55909
55910         New module: git-version-gen.
55911         * modules/git-version-gen: New file.
55912
55913         Import changes from coreutils for bootstrap script.
55914
55915         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
55916
55917         bootstrap: uses rsync to download the .po files
55918         * build-aux/bootstrap (po_download_command_format): New global.
55919         (download_po_files): Use rsync.
55920         (update_po_files): Don't remove .po files after download,
55921         so future rsync runs can take advantage of the copies.
55922
55923         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
55924
55925         Solve the unnecessary-.po-file-regeneration problem once and for all.
55926         * build-aux/bootstrap (download_po_files): New function, renamed from
55927         get_translations.  Now, downloads, but doesn't update LINGUAS.
55928         (update_po_files): New function.
55929
55930         bootstrap: Ignore more.
55931         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
55932         uniwidth to e.g., lib/.gitignore.
55933         (slurp): Handle the sys_stat_.h -> sys mapping, too.
55934
55935         * build-aux/bootstrap: New setting: vc_ignore.
55936         (insert_sorted_if_absent): Create $file if absent.
55937         Adapt to new, possibly empty, list: $vc_ignore.
55938
55939         bootstrap: generate more ignorable names
55940         * build-aux/bootstrap (slurp): When generating ignorable names,
55941         also map .sin to .sed, .gperf to .c, and .y to .c.
55942
55943 2007-09-03  Jim Meyering  <jim@meyering.net>
55944
55945         * build-aux/git-version-gen: New file, from coreutils.  For details, see
55946         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
55947
55948 2007-09-02  Bruno Haible  <bruno@clisp.org>
55949
55950         Fix mis-recognition of 'mcs' on QNX 6.
55951         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
55952         output contains the string "Mono".
55953         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
55954         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
55955
55956 2007-09-01  Bruno Haible  <bruno@clisp.org>
55957
55958         Fix collision between uniwidth/* and linebreak modules.
55959         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
55960         u32_width): Remove declarations.
55961         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
55962         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
55963         streq3, streq2, streq1, streq0): Remove functions.
55964         (STREQ): Remove macro.
55965         (is_cjk_encoding): Remove function.
55966         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
55967         (uc_width, u8_width, u16_width, u32_width): Remove functions.
55968         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
55969         * NEWS: Document the change.
55970
55971 2007-09-01  Bruno Haible  <bruno@clisp.org>
55972
55973         * lib/streq.h: Add double-inclusion guard.
55974
55975 2007-09-01  Karl Berry  <karl@gnu.org>
55976
55977         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
55978
55979 2007-08-28  Jim Meyering  <jim@meyering.net>
55980
55981         Rename mreadlink_with_size to areadlink_with_size.
55982         * NEWS: Document the change.
55983         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
55984         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
55985         * lib/mreadlink.h: Rename this to...
55986         * lib/areadlink.h: ...this.
55987         * modules/mreadlink-with-size: Rename this to...
55988         * modules/areadlink-with-size: ...this.
55989         * lib/canonicalize.c: Reflect the renaming.
55990         * modules/canonicalize: Likewise.
55991
55992 2007-08-26  Bruno Haible  <bruno@clisp.org>
55993
55994         * gnulib-tool (func_import): When deciding which files to remove,
55995         consider also dangling symbolic links.
55996         Reported by Eric Blake.
55997
55998 2007-08-26  Bruno Haible  <bruno@clisp.org>
55999
56000         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
56001
56002 2007-08-23  Simon Josefsson  <simon@josefsson.org>
56003
56004         * lib/readline.c: Don't include getline.h, the prototype is now
56005         found in stdio.h.
56006
56007 2007-08-23  Jim Meyering  <jim@meyering.net>
56008
56009         Getdelim touchup.
56010         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
56011         around the funlockfile call, since funlockfile never sets errno.
56012         Don't set errno upon failed realloc.
56013
56014 2007-08-22  Eric Blake  <ebb9@byu.net>
56015
56016         Getline touchups.
56017         * lib/getdelim.c (getdelim): Revert regression that required *n to
56018         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
56019         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
56020         getdelim, rather than whether implementation is missing.
56021         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
56022         * lib/stdio_.h (getline): Also declare if replacement is
56023         required.
56024         * doc/functions/getdelim.texi: New file.
56025         * doc/functions/getline.texi: Likewise.
56026         * doc/gnulib.texi (Function Substitutes): Add new files.
56027         Reported by Bruno Haible.
56028
56029 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
56030
56031         * users.txt: Add Guile.
56032
56033 2007-08-22  Eric Blake  <ebb9@byu.net>
56034
56035         * tests/test-getdelim.c (main): Use remove, not unlink.
56036         * tests/test-getline.c (main): Likewise.
56037
56038         Move getline and getdelim into stdio.h, per POSIX 200x.
56039         * modules/getline (Files): Remove getline.h.
56040         (Depends-on): Add stdio.
56041         (configure.ac): Add module indicator.
56042         * modules/getdelim (Files): Remove getdelim.h.
56043         (Depends-on): Add stdio.
56044         (configure.ac): Add module indicator.
56045         * modules/stdio (Makefile.am): Work with new indicators.
56046         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
56047         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
56048         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
56049         * lib/getdelim.h: Delete.
56050         * lib/getline.h: Delete.
56051         * lib/stdio_.h (getdelim, getline): Declare.
56052         * modules/getdelim-tests: New module.
56053         * modules/getline-tests: Likewise.
56054         * tests/test-getdelim.c: New file.
56055         * tests/test-getline.c: Likewise.
56056         * NEWS: Document the change.
56057         * lib/getline.c: Update choice of header.
56058         * lib/csharpcomp.c: Likewise.
56059         * lib/getpass.c: Likewise.
56060         * lib/javacomp.c: Likewise.
56061         * lib/javaversion.c: Likewise.
56062         * lib/yesno.c: Likewise.
56063         * lib/getdelim.c: Likewise.
56064         (getdelim): Set errno on failure, and avoid memory leak.
56065
56066 2007-08-19  Bruno Haible  <bruno@clisp.org>
56067
56068         * modules/closein (Depends-on): Add freadahead.
56069         * lib/closein.c: Include freadahead.h.
56070         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
56071         is zero.
56072
56073 2007-08-19  Bruno Haible  <bruno@clisp.org>
56074
56075         * modules/freadahead-tests: New file.
56076         * tests/test-freadahead.sh: New file.
56077         * tests/test-freadahead.c: New file.
56078
56079         * modules/freadahead: New file.
56080         * lib/freadahead.h: New file.
56081         * lib/freadahead.c: New file.
56082         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
56083         fbufmode, fpurge, freadable, fwritable.
56084
56085 2007-08-19  Eric Blake  <ebb9@byu.net>
56086
56087         Test yesno in combination with closein.
56088         * lib/yesno.c (yesno): Document use of stdin.
56089         * modules/yesno-tests (Files): New module.
56090         * tests/test-yesno.c (main): New file.
56091         * tests/test-yesno.sh: Likewise.
56092
56093 2007-08-19  Bruno Haible  <bruno@clisp.org>
56094
56095         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
56096         * lib/fseeko.c (rpl_fseeko): Likewise.
56097         * lib/fseterr.c (fseterr): Likewise.
56098
56099 2007-08-19  Bruno Haible  <bruno@clisp.org>
56100
56101         * tests/test-lseek.c (main): Disable a test for BeOS.
56102         * doc/functions/lseek.texi: Document the BeOS bug.
56103
56104 2007-08-19  Bruno Haible  <bruno@clisp.org>
56105             Eric Blake  <ebb9@byu.net>
56106
56107         * lib/lseek.c: Include <sys/stat.h>.
56108         (rpl_lseek): Add workaround code also for Unix platforms.
56109         Needed for BeOS.
56110         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
56111         * doc/functions/lseek.texi: Document BeOS definiency.
56112
56113 2007-08-18  Bruno Haible  <bruno@clisp.org>
56114
56115         * modules/fstrcmp-tests: New file.
56116         * tests/test-fstrcmp.c: New file.
56117
56118 2007-08-18  Bruno Haible  <bruno@clisp.org>
56119
56120         * modules/fstrcmp: New file, from GNU gettext with modifications.
56121         * lib/fstrcmp.h: New file, from GNU gettext.
56122         * lib/fstrcmp.c: New file, from GNU gettext.
56123         * MODULES.html.sh (String handling): Add fstrcmp.
56124
56125 2007-08-18  Bruno Haible  <bruno@clisp.org>
56126
56127         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
56128         'bool'.
56129         (diag, compareseq): Remove const from the ctxt argument.
56130         (USE_HEURISTIC): Undefine at the end.
56131
56132 2007-08-18  Jim Meyering  <jim@meyering.net>
56133
56134         New file: lib/idcache.h
56135         * NEWS: Mention the addition.
56136         * modules/idcache (Files): Add lib/idcache.h
56137         * lib/idcache.c: Include "idcache.h".
56138         Don't include <sys/types.h>.
56139         Add a FIXME comment.
56140         Move file-scoped "static" declarations to the top.
56141         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
56142
56143 2007-08-17  Bruno Haible  <bruno@clisp.org>
56144         and Paul Eggert  <eggert@cs.ucla.edu>
56145
56146         * MODULES.html.sh: Add diffseq.
56147         * modules/diffseq: New file.
56148         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
56149         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
56150
56151 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
56152
56153         Import changes from coreutils for bootstrap script.
56154
56155         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
56156
56157         * build-aux/bootstrap (slurp): Work even in environments where
56158         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
56159         current code does not slurp files whose names start with ".", and
56160         this looks like it might be a troublesome area.
56161
56162         2007-07-11  Jim Meyering  <jim@meyering.net>
56163
56164         If there's a GPL vN copyright comment, require that N == 3.
56165
56166         2007-07-08  Jim Meyering  <jim@meyering.net>
56167
56168         Run the coreutils-specific code only if tests/Makefile.am.in exists.
56169         * build-aux/bootstrap (mam_template): Move definition out of loop.
56170
56171         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
56172
56173         * build-aux/bootstrap (symlink_to_dir): Rename function from
56174         symlink_to_gnulib.  Add a directory parameter.  Update all
56175         callers.
56176         (cp_mark_as_generated): Also check for -- and link to -- files in
56177         gl/.
56178
56179         2007-07-08  Jim Meyering  <jim@meyering.net>
56180
56181         Adapt to deeper hierarchy in gnulib.
56182         * build-aux/bootstrap (symlink_to_dir): If the destination
56183         directory doesn't exist, create it. This is required at least for
56184         "lib/uniwidth/cjk.h".
56185
56186         2007-05-15  Jim Meyering  <jim@meyering.net>
56187
56188         * build-aux/bootstrap: Now that generated Makefile.am files
56189         are no longer under version control, they must be created at
56190         bootstrap time.
56191
56192 2007-08-14  Ben Pfaff  <blp@gnu.org>
56193
56194         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
56195
56196 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
56197
56198         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
56199         given the changes below.
56200         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
56201         even on hosts that have padding bits beyond the supported 64.
56202
56203 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
56204
56205         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
56206         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
56207         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
56208         depends on it.
56209         (xstrtol_error): Remove.
56210         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
56211         but with a different signature.
56212         (ATTRIBUTE_NORETURN, __attribute__): New macros.
56213         * lib/xstrtol-error.c: Include exitfail.h.
56214         (xstrtol_fatal): New function, with a different signature from the
56215         old xstrtol_error, so that the caller need not worry about passing
56216         in an exit status, or about storage management of the option argument.
56217         (xstrtol_error): Now a static function.  Redo signature to
56218         implement xstrtol_fatal.  Output the correct number of hyphens in
56219         front of the option so that the caller need not worry about
56220         storage management.
56221         (N_): New macro.
56222         (_): Remove; not used now.
56223         * modules/xstrtol: Depend on getopt.
56224         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
56225         of old STRTOL_FATAL_ERROR macro.
56226         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
56227         of test program.
56228         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
56229         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
56230
56231 2007-08-08  Eric Blake  <ebb9@byu.net>
56232
56233         * lib/xstrtol-error.c: Add missing include.
56234
56235         Move xstrtol messages into gnulib domain, when --pobase is used.
56236         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
56237         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
56238         * modules/xstrtol (Files): Distribute new file.
56239         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
56240         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
56241         * tests/test-xstrtol.c: ...into new file.
56242         * tests/test-xstrtoul.c: Also test xstrtoul.
56243         * tests/test-xstrtoimax.c: Also test xstrtoimax.
56244         * tests/test-xstrtoumax.c: Also test xstrtoumax.
56245         * tests/test-xstrtol.sh: Drive the tests.
56246         * tests/test-xstrtoimax.sh: Likewise.
56247         * tests/test-xstrtoumax.sh: Likewise.
56248         * modules/xstrtol-tests: New module.
56249         * modules/xstrtoimax-tests: Likewise.
56250         * modules/xstrtoumax-tests: Likewise.
56251
56252 2007-08-08  Jim Meyering  <jim@meyering.net>
56253
56254         New function: mfile_name_concat.
56255         * lib/filenamecat.c (mfile_name_concat): New function, just like
56256         file_name_concat, but return NULL upon failure rather than exiting
56257         with a diagnostic.
56258         * lib/filenamecat.h: Declare it.
56259
56260 2007-08-07  Bruno Haible  <bruno@clisp.org>
56261
56262         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
56263         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
56264         warning from gcc.
56265         Reported by Eric Blake.
56266
56267 2007-08-07  Simon Josefsson  <simon@josefsson.org>
56268
56269         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
56270         * modules/crypto/arcfour (License): Likewise.
56271         * modules/crypto/des-tests (License): Likewise.
56272         * modules/crypto/gc-arctwo-tests (License): Likewise.
56273         * modules/crypto/gc-des-tests (License): Likewise.
56274         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
56275         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
56276         * modules/crypto/gc-md2-tests (License): Likewise.
56277         * modules/crypto/gc-md4-tests (License): Likewise.
56278         * modules/crypto/gc-md5-tests (License): Likewise.
56279         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
56280         * modules/crypto/gc-rijndael-tests (License): Likewise.
56281         * modules/crypto/gc-sha1-tests (License): Likewise.
56282         * modules/crypto/gc-tests (License): Likewise.
56283         * modules/crypto/hmac-md5 (License): Likewise.
56284         * modules/crypto/hmac-sha1 (License): Likewise.
56285         * modules/crypto/md2-tests (License): Likewise.
56286         * modules/crypto/md4-tests (License): Likewise.
56287         * modules/crypto/md5 (License): Likewise.
56288         * modules/crypto/rijndael (License): Likewise.
56289         * modules/crypto/sha1 (License): Likewise.
56290         * modules/memxor (License): Likewise.
56291
56292 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
56293         and Bruno Haible  <bruno@clisp.org>
56294
56295         * NEWS: Describe interface changes to human, xstrtol.
56296         * lib/human.h: Include <xstrtol.h>.
56297         (human_options): Return enum strtol_error, not int.  Remove
56298         bool arg; take int * instead.
56299         * lib/human.c: Don't include "gettext.h".
56300         (_): Remove; no longer used.
56301         Don't include <xstrtol.h>, since human.h does it.
56302         (human_options): Adjust to abovementioned interface changes.
56303         Do not report error to stderr; that's now the caller's
56304         responsibility.
56305         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
56306         interface change.
56307         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
56308         Str, Argument_type_string.  All uses changed.  Put " argument"
56309         in diagnostics to make them clearer.  Change wording of suffix
56310         message for clarity.
56311         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
56312         Argument_type_string.
56313         (STRTOL_FATAL_WARN): Remove; no longer used.
56314         * modules/human (Depends-on): Remove gettext-h.
56315
56316 2007-08-06  Simon Josefsson  <simon@josefsson.org>
56317
56318         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
56319
56320 2007-07-31  Bruno Haible  <bruno@clisp.org>
56321
56322         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
56323         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
56324         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
56325
56326 2007-07-31  Bruno Haible  <bruno@clisp.org>
56327
56328         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
56329         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
56330
56331 2007-07-30  Bruno Haible  <bruno@clisp.org>
56332
56333         * modules/base64 (License): Use the synonymous term "LGPLv2+".
56334         * modules/c-ctype (License): Likewise.
56335         * modules/c-strcase (License): Likewise.
56336         * modules/check-version (License): Likewise.
56337         * modules/iconv (License): Likewise.
56338         * modules/iconv_open (License): Likewise.
56339         * modules/read-file (License): Likewise.
56340         * modules/striconv (License): Likewise.
56341         * modules/strverscmp (License): Likewise.
56342         * modules/vasprintf (License): Likewise.
56343         * modules/crypto/des (License): Likewise.
56344         * modules/crypto/gc (License): Likewise.
56345         * modules/crypto/gc-arcfour (License): Likewise.
56346         * modules/crypto/gc-arctwo (License): Likewise.
56347         * modules/crypto/gc-des (License): Likewise.
56348         * modules/crypto/gc-hmac-md5 (License): Likewise.
56349         * modules/crypto/gc-hmac-sha1 (License): Likewise.
56350         * modules/crypto/gc-md2 (License): Likewise.
56351         * modules/crypto/gc-md4 (License): Likewise.
56352         * modules/crypto/gc-md5 (License): Likewise.
56353         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
56354         * modules/crypto/gc-random (License): Likewise.
56355         * modules/crypto/gc-rijndael (License): Likewise.
56356         * modules/crypto/gc-sha1 (License): Likewise.
56357         * modules/crypto/md2 (License): Likewise.
56358         * modules/crypto/md4 (License): Likewise.
56359
56360 2007-07-30  Jim Meyering  <jim@meyering.net>
56361
56362         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
56363         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
56364         it has valid stat data.  This bug would cause du not to count the
56365         sizes of inaccessible directories.
56366         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
56367         in <http://bugzilla.redhat.com/250077>.
56368
56369 2007-07-25  Peter O'Gorman  <peter@pogma.com>
56370             Bruno Haible  <bruno@clisp.org>
56371
56372         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
56373         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
56374         #include_next, gives a diagnostic about it, but reports no error in
56375         the exit code.
56376         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
56377
56378 2007-07-24  Ben Pfaff  <blp@gnu.org>
56379
56380         Improve name: "count-one-bits" is better than "popcount".
56381         * MODULES.html.sh: Update name.
56382         * lib/popcount.h: Renamed lib/count-one-bits.h.
56383         (popcount): Renamed count_one_bits.
56384         (popcountl): Renamed count_one_bits_l.
56385         (popcountll): Renamed count_one_bits_ll.
56386         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
56387         * modules/popcount: Renamed module/count-one-bits.
56388         * modules/popcount-tests: Renamed module/count-one-bits-tests.
56389         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
56390
56391 2007-07-23  Ben Pfaff  <blp@gnu.org>
56392
56393         * lib/popcount.h (popcount32): Reduce size of constants, to allow
56394         better code generation, and add U to large constants to avoid
56395         warnings, in non-GCC case.
56396         Suggested by Bruno Haible.
56397
56398 2007-07-23  Ben Pfaff  <blp@gnu.org>
56399
56400         * lib/popcount.h: Use verify_true instead of if...abort.
56401         * modules/popcount: Depend on verify module.
56402         Suggested by Jim Meyering.
56403
56404 2007-07-23  Bruno Haible  <bruno@clisp.org>
56405
56406         * gnulib-tool (func_import): Create a .cvsignore file also when the
56407         directory is not yet in CVS but the toplevel directory is. When
56408         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
56409         Reported by Karl Berry.
56410
56411 2007-07-22  Ben Pfaff  <blp@gnu.org>
56412
56413         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
56414         case.
56415         Suggested by Eric Blake.
56416
56417 2007-07-22  Ben Pfaff  <blp@gnu.org>
56418
56419         New module: popcount.
56420         * MODULES.html.sh: Add popcount.
56421         * modules/popcount: New file.
56422         * modules/popcount-tests: New file.
56423         * tests/test-popcount.c: New file.
56424         * lib/popcount.h: New file.
56425         * m4/popcount.m4: New file.
56426
56427 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
56428
56429         * build-aux/announce-gen: Update to GPLv3.
56430
56431         * build-aux/config.guess: Update from config.
56432
56433 2007-07-21  Bruno Haible  <bruno@clisp.org>
56434
56435         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
56436         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
56437
56438 2007-07-20  Jim Meyering  <jim@meyering.net>
56439
56440         * check-module: Diagnose a self-dependency.
56441
56442 2007-07-19  Bruno Haible  <bruno@clisp.org>
56443
56444         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
56445         empty.
56446         Reported by Eric Blake.
56447
56448 2007-07-18  Bruno Haible  <bruno@clisp.org>
56449
56450         * gnulib-tool: New options --po-base, --po-domain.
56451         (func_usage): Document them.
56452         (pobase, po_domain): New variables.
56453         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
56454         DEFAULT_TEXT_DOMAIN.
56455         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
56456         (func_import): Consider pobase and po_domain. Create a po/ directory.
56457         (func_create_testdir): Set pobase and po_domain to empty.
56458         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
56459         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
56460
56461 2007-07-18  Bruno Haible  <bruno@clisp.org>
56462
56463         * gnulib-tool (func_get_automake_snippet): Synthesize also an
56464         EXTRA_DIST augmentation for files in build-aux/.
56465
56466 2007-07-16  Bruno Haible  <bruno@clisp.org>
56467
56468         * modules/lseek (License): Use the synonymous term "LGPLv2+".
56469         * modules/getdelim (License): Likewise.
56470
56471 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56472
56473         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
56474         * modules/d-type (License): Likewise.
56475         * modules/extensions (License): Likewise.
56476         * modules/fnmatch (License): Likewise.
56477         * modules/fseeko (License): Likewise.
56478         * modules/getaddrinfo (License): Likewise.
56479         * modules/getline (License): Likewise.
56480         * modules/getlogin_r (License): Likewise.
56481         * modules/getpass (License): Likewise.
56482         * modules/gettimeofday (License): Likewise.
56483         * modules/glob (License): Likewise.
56484         * modules/inet_ntop (License): Likewise.
56485         * modules/malloc (License): Likewise.
56486         * modules/malloca (License): Likewise.
56487         * modules/memmem (License): Likewise.
56488         * modules/mempcpy (License): Likewise.
56489         * modules/memset (License): Likewise.
56490         * modules/minmax (License): Likewise.
56491         * modules/mktime (License): Likewise.
56492         * modules/netinet_in (License): Likewise.
56493         * modules/pathmax (License): Likewise.
56494         * modules/poll (License): Likewise.
56495         * modules/regex (License): Likewise.
56496         * modules/snprintf (License): Likewise.
56497         * modules/stdbool (License): Likewise.
56498         * modules/stdint (License): Likewise.
56499         * modules/stdio (License): Likewise.
56500         * modules/strcase (License): Likewise.
56501         * modules/strcasestr (License): Likewise.
56502         * modules/strdup (License): Likewise.
56503         * modules/string (License): Likewise.
56504         * modules/strndup (License): Likewise.
56505         * modules/strnlen (License): Likewise.
56506         * modules/strpbrk (License): Likewise.
56507         * modules/strptime (License): Likewise.
56508         * modules/strsep (License): Likewise.
56509         * modules/sys_select (License): Likewise.
56510         * modules/sys_socket (License): Likewise.
56511         * modules/sys_stat (License): Likewise.
56512         * modules/sys_time (License): Likewise.
56513         * modules/time (License): Likewise.
56514         * modules/time_r (License): Likewise.
56515         * modules/timegm (License): Likewise.
56516         * modules/unistd (License): Likewise.
56517         * modules/vsnprintf (License): Likewise.
56518         * modules/wctype (License): Likewise.
56519
56520 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56521
56522         * modules/argz (License): LGPLv2+.
56523
56524 2007-07-15  Karl Berry  <karl@gnu.org>
56525
56526         * doc/gnulib.texi: revise node structure per new fdl.texi.
56527
56528 2007-07-14  Bruno Haible  <bruno@clisp.org>
56529
56530         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
56531         the output file.
56532         * lib/uniname/uninames.h: Regenerated.
56533
56534 2007-07-14  Karl Berry  <karl@gnu.org>
56535
56536         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
56537         omitting sectioning and index commands.
56538
56539 2007-07-13  Bruno Haible  <bruno@clisp.org>
56540
56541         New gnulib-tool option --more-symlinks.
56542         * gnulib-tool (func_usage): Document --more-symlinks.
56543         (do_copyrights): New variable.
56544         Recognize option --more-symlinks.
56545         (func_import): Don't add a copyright notice transform to
56546         sed_transform_lib_file if do_copyrights is empty.
56547
56548 2007-07-13  Bruno Haible  <bruno@clisp.org>
56549
56550         * lib/vasnprintf.c (decimal_point_char): Define also if
56551         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
56552         && !NEED_PRINTF_DIRECTIVE_A.
56553         Reported by Clemens Koller <clemens.koller@anagramm.de> via
56554         Gary V. Vaughan <gary@gnu.org>.
56555
56556 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
56557
56558         * lib/inttypes_.h: Undo previous change, since it was fixed
56559         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
56560
56561 2007-07-13  Bruno Haible  <bruno@clisp.org>
56562
56563         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
56564         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
56565
56566 2007-07-13  Jim Meyering  <jim@meyering.net>
56567
56568         df: Don't fail for Tru64's "file-on-file mount".
56569         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
56570         so we fall through and use statfs instead.  Details here:
56571         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
56572         Reported by Albert Chin.
56573
56574 2007-07-13  Bruno Haible  <bruno@clisp.org>
56575
56576         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
56577         * modules/configmake (License): Likewise.
56578         * modules/gettext (License): Likewise.
56579         * modules/gettext-h (License): Likewise.
56580         * modules/include_next (License): Likewise.
56581         * modules/link-warning (License): Likewise.
56582         * modules/localcharset (License): Likewise.
56583         * modules/localename (License): Likewise.
56584         * modules/lock (License): Likewise.
56585         * modules/relocatable-lib-lgpl (License): Likewise.
56586         * modules/size_max (License): Likewise.
56587         * modules/vasnprintf (License): Likewise.
56588         * modules/wchar (License): Likewise.
56589         * modules/xsize (License): Likewise.
56590
56591 2007-07-13  Bruno Haible  <bruno@clisp.org>
56592
56593         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
56594         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
56595
56596 2007-07-12  Bruno Haible  <bruno@clisp.org>
56597
56598         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
56599         in the modules files.
56600
56601 2007-07-11  Karl Berry  <karl@gnu.org>
56602
56603         * MODULES.html.sh (func_module): use
56604          sed -e '\|^'"${includefile}"'$|d'
56605          instead of /.../d, to avoid errors on $includefile's containing /.
56606
56607 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
56608
56609         * gnulib-tool (func_import): Avoid duplication of --avoid
56610         statements
56611         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
56612         names to `_' in variable names.
56613
56614 2007-07-10  Eric Blake  <ebb9@byu.net>
56615
56616         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
56617         * NEWS: Document this change.
56618
56619 2007-07-08  Bruno Haible  <bruno@clisp.org>
56620
56621         Update to Unicode 5.0.
56622         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
56623         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
56624         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
56625         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
56626         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
56627         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
56628         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
56629         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
56630         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
56631         U+10A3F, U+1D242..U+1D244.
56632         (nonspacing_table_ind): Update.
56633         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
56634         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
56635
56636 2007-07-08  Bruno Haible  <bruno@clisp.org>
56637
56638         Update to Unicode 5.0.
56639         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
56640         code transform. Extend the name index field of unicode_name_to_code and
56641         unicode_code_to_name from 16 to 24 bits.
56642         * lib/uniname/uniname.c (unicode_character_name,
56643         unicode_name_character): Add the range 0x12xxx to the code transform.
56644         * lib/uniname/uninames.h: Regenerated.
56645         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
56646
56647 2007-07-07  Bruno Haible  <bruno@clisp.org>
56648
56649         * modules/wcwidth-tests: New file.
56650         * tests/test-wcwidth.c: New file.
56651
56652         Work around MacOS X wcwidth() bug.
56653         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
56654         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
56655         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
56656         original wcwidth in non-UTF-8 locales.
56657         * modules/wcwidth (Depends-on): Add localcharset, streq,
56658         uniwidth/width.
56659         * doc/functions/wcwidth.texi: Update.
56660
56661 2007-07-07  Bruno Haible  <bruno@clisp.org>
56662
56663         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
56664         (wcwidth): New declaration.
56665         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
56666         macros.
56667         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
56668         here. Prepare for creating <wchar.h> unconditionally.
56669         * modules/wchar (Depends-on): Add link-warning.
56670         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
56671         REPLACE_WCWIDTH, and GL_LINK_WARNING.
56672         * lib/wcwidth.h: Remove file.
56673         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
56674         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
56675         * modules/wcwidth (Files): Remove lib/wcwidth.h.
56676         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
56677         (Include): Replace wcwidth.h with <wchar.h>.
56678         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
56679         * lib/mbchar.h: Don't include wcwidth.h.
56680         * lib/mbswidth.c: Likewise.
56681         * NEWS: Mention the change.
56682
56683 2007-07-07  Bruno Haible  <bruno@clisp.org>
56684
56685         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
56686         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
56687         definition with an external declaration.
56688         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
56689         defined as a function. Remove AC_C_INLINE requirement.
56690         * modules/wcwidth (Files): Add lib/wcwidth.c.
56691         (Makefile.am): Remove redundant statement.
56692
56693 2007-07-07  Bruno Haible  <bruno@clisp.org>
56694
56695         * MODULES.html.sh (Unicode string functions): Add the new modules.
56696
56697         * tests/uniwidth/test-u32-strwidth.c: New file.
56698         * modules/uniwidth/u32-strwidth-tests: New file.
56699
56700         * lib/uniwidth/u32-strwidth.c: New file.
56701         * modules/uniwidth/u32-strwidth: New file.
56702
56703         * tests/uniwidth/test-u16-strwidth.c: New file.
56704         * modules/uniwidth/u16-strwidth-tests: New file.
56705
56706         * lib/uniwidth/u16-strwidth.c: New file.
56707         * modules/uniwidth/u16-strwidth: New file.
56708
56709         * tests/uniwidth/test-u8-strwidth.c: New file.
56710         * modules/uniwidth/u8-strwidth-tests: New file.
56711
56712         * lib/uniwidth/u8-strwidth.c: New file.
56713         * modules/uniwidth/u8-strwidth: New file.
56714
56715         * tests/uniwidth/test-u32-width.c: New file.
56716         * modules/uniwidth/u32-width-tests: New file.
56717
56718         * lib/uniwidth/u32-width.c: New file.
56719         * modules/uniwidth/u32-width: New file.
56720
56721         * tests/uniwidth/test-u16-width.c: New file.
56722         * modules/uniwidth/u16-width-tests: New file.
56723
56724         * lib/uniwidth/u16-width.c: New file.
56725         * modules/uniwidth/u16-width: New file.
56726
56727         * tests/uniwidth/test-u8-width.c: New file.
56728         * modules/uniwidth/u8-width-tests: New file.
56729
56730         * lib/uniwidth/u8-width.c: New file.
56731         * modules/uniwidth/u8-width: New file.
56732
56733         * tests/uniwidth/test-uc_width.c: New file.
56734         * modules/uniwidth/width-tests: New file.
56735
56736         * lib/uniwidth/width.c: New file, from GNU libiconv.
56737         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
56738         * modules/uniwidth/width: New file.
56739
56740         * lib/uniwidth.h: New file, from GNU libiconv.
56741         * modules/uniwidth/base: New file.
56742
56743 2007-07-07  Bruno Haible  <bruno@clisp.org>
56744
56745         * lib/uniname.h: New file, from GNU gettext.
56746         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
56747         * lib/uniname/uninames.h: New file, from GNU gettext.
56748         * lib/uniname/uniname.c: New file, from GNU gettext.
56749         * tests/uniname/test-uninames.sh: New file.
56750         * tests/uniname/test-uninames.c: New file, from GNU gettext.
56751         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
56752         * modules/uniname/base: New file.
56753         * modules/uniname/uniname: New file.
56754         * modules/uniname/uniname-tests: New file.
56755         * MODULES.html.sh (Unicode string functions): Add the new modules.
56756
56757 2007-07-06  Bruno Haible  <bruno@clisp.org>
56758
56759         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
56760
56761 2007-07-06  Bruno Haible  <bruno@clisp.org>
56762
56763         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
56764         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
56765         includes <cygwin/sys_time.h> which includes <sys/select.h> which
56766         include <sys/time.h>.
56767         Reported by Eric Blake.
56768
56769 2007-07-06  Eric Blake  <ebb9@byu.net>
56770
56771         Fix testing canonicalize on cygwin.
56772         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
56773         Revert patch from 2007-06-19.
56774         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
56775         canonicalize module is also in use.
56776         * tests/test-canonicalize.c: New file.
56777         * tests/test-canonicalize.sh: Likewise.
56778         * modules/canonicalize-tests: Likewise.
56779
56780 2007-07-06  Jim Meyering  <jim@meyering.net>
56781
56782         * lib/getugroups.c (getugroups): Detect getgrent failure.
56783         Adjust comment to reflect reality: this function may return -1.
56784
56785 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
56786
56787         * build-aux/bootstrap (TP_URL,get_translations): Update to use
56788         the new TP address.
56789         (usage): Fix typo
56790         (gnulib_mk): New variable.
56791
56792 2007-07-05  Jim Meyering  <jim@meyering.net>
56793
56794         Don't let endgrent clobber errno, no matter how improbable.
56795         * lib/getugroups.c (getugroups): Save and restore errno around
56796         endgrent call.
56797
56798         Close the group DB even when failing with 2^31 or more members.
56799         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
56800
56801 2007-07-04  Jim Meyering  <jim@meyering.net>
56802
56803         * lib/getugroups.h: New file.
56804         * lib/getugroups.c: Include "getugroups.h".
56805         Remove uses of "register" keyword.
56806         Move local variable, "cp", down into scope where used.
56807         Give "username" parameter the "const" attribute.
56808         * modules/getugroups (Files): Add lib/getugroups.h
56809
56810 2007-07-04  Karl Berry  <karl@gnu.org>
56811
56812         * MODULES.html.sh (func_all_modules): Complete rename of
56813         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
56814
56815 2007-07-02  Bruno Haible  <bruno@clisp.org>
56816
56817         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
56818         mode, when inttypes.h comes from gnulib.
56819         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
56820
56821 2007-07-02  Simon Josefsson  <simon@josefsson.org>
56822
56823         * NEWS: Mention lgpl module name change.
56824
56825         * modules/lgpl-2.1: Renamed from lgpl.
56826
56827         * NEWS: Mention gpl module name change.
56828
56829         * modules/gpl-3.0: New file, based on gpl-2.0.
56830
56831         * modules/gpl-2.0: Renamed from gpl.
56832
56833         * modules/gpl: Fix filename, doc/gpl.texi is now found at
56834         doc/gpl-2.0.texi.
56835
56836 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
56837
56838         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
56839         #define __STDC_LIMIT_MACROS temporarily while including
56840         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
56841         Problem reported by Joel E. Denny in
56842         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
56843
56844 2007-07-01  Bruno Haible  <bruno@clisp.org>
56845
56846         * lib/unistdio.h: New file.
56847         * lib/unistdio/u-asnprintf.h: New file.
56848         * lib/unistdio/u-asprintf.h: New file.
56849         * lib/unistdio/u-printf-args.c: New file.
56850         * lib/unistdio/u-printf-args.h: New file.
56851         * lib/unistdio/u-printf-parse.h: New file.
56852         * lib/unistdio/u-snprintf.h: New file.
56853         * lib/unistdio/u-sprintf.h: New file.
56854         * lib/unistdio/u-vasprintf.h: New file.
56855         * lib/unistdio/u-vsnprintf.h: New file.
56856         * lib/unistdio/u-vsprintf.h: New file.
56857         * lib/unistdio/ulc-asnprintf.c: New file.
56858         * lib/unistdio/ulc-asprintf.c: New file.
56859         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
56860         * lib/unistdio/ulc-printf-parse.c: New file.
56861         * lib/unistdio/ulc-snprintf.c: New file.
56862         * lib/unistdio/ulc-sprintf.c: New file.
56863         * lib/unistdio/ulc-vasnprintf.c: New file.
56864         * lib/unistdio/ulc-vasprintf.c: New file.
56865         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
56866         * lib/unistdio/ulc-vsnprintf.c: New file.
56867         * lib/unistdio/ulc-vsprintf.c: New file.
56868         * lib/unistdio/u8-asnprintf.c: New file.
56869         * lib/unistdio/u8-asprintf.c: New file.
56870         * lib/unistdio/u8-printf-parse.c: New file.
56871         * lib/unistdio/u8-snprintf.c: New file.
56872         * lib/unistdio/u8-sprintf.c: New file.
56873         * lib/unistdio/u8-vasnprintf.c: New file.
56874         * lib/unistdio/u8-vasprintf.c: New file.
56875         * lib/unistdio/u8-vsnprintf.c: New file.
56876         * lib/unistdio/u8-vsprintf.c: New file.
56877         * lib/unistdio/u8-u8-asnprintf.c: New file.
56878         * lib/unistdio/u8-u8-asprintf.c: New file.
56879         * lib/unistdio/u8-u8-snprintf.c: New file.
56880         * lib/unistdio/u8-u8-sprintf.c: New file.
56881         * lib/unistdio/u8-u8-vasnprintf.c: New file.
56882         * lib/unistdio/u8-u8-vasprintf.c: New file.
56883         * lib/unistdio/u8-u8-vsnprintf.c: New file.
56884         * lib/unistdio/u8-u8-vsprintf.c: New file.
56885         * lib/unistdio/u16-asnprintf.c: New file.
56886         * lib/unistdio/u16-asprintf.c: New file.
56887         * lib/unistdio/u16-printf-parse.c: New file.
56888         * lib/unistdio/u16-snprintf.c: New file.
56889         * lib/unistdio/u16-sprintf.c: New file.
56890         * lib/unistdio/u16-vasnprintf.c: New file.
56891         * lib/unistdio/u16-vasprintf.c: New file.
56892         * lib/unistdio/u16-vsnprintf.c: New file.
56893         * lib/unistdio/u16-vsprintf.c: New file.
56894         * lib/unistdio/u16-u16-asnprintf.c: New file.
56895         * lib/unistdio/u16-u16-asprintf.c: New file.
56896         * lib/unistdio/u16-u16-snprintf.c: New file.
56897         * lib/unistdio/u16-u16-sprintf.c: New file.
56898         * lib/unistdio/u16-u16-vasnprintf.c: New file.
56899         * lib/unistdio/u16-u16-vasprintf.c: New file.
56900         * lib/unistdio/u16-u16-vsnprintf.c: New file.
56901         * lib/unistdio/u16-u16-vsprintf.c: New file.
56902         * lib/unistdio/u32-asnprintf.c: New file.
56903         * lib/unistdio/u32-asprintf.c: New file.
56904         * lib/unistdio/u32-printf-parse.c: New file.
56905         * lib/unistdio/u32-snprintf.c: New file.
56906         * lib/unistdio/u32-sprintf.c: New file.
56907         * lib/unistdio/u32-vasnprintf.c: New file.
56908         * lib/unistdio/u32-vasprintf.c: New file.
56909         * lib/unistdio/u32-vsnprintf.c: New file.
56910         * lib/unistdio/u32-vsprintf.c: New file.
56911         * lib/unistdio/u32-u32-asnprintf.c: New file.
56912         * lib/unistdio/u32-u32-asprintf.c: New file.
56913         * lib/unistdio/u32-u32-snprintf.c: New file.
56914         * lib/unistdio/u32-u32-sprintf.c: New file.
56915         * lib/unistdio/u32-u32-vasnprintf.c: New file.
56916         * lib/unistdio/u32-u32-vasprintf.c: New file.
56917         * lib/unistdio/u32-u32-vsnprintf.c: New file.
56918         * lib/unistdio/u32-u32-vsprintf.c: New file.
56919         * tests/unistdio/test-ulc-asnprintf1.c: New file.
56920         * tests/unistdio/test-ulc-asnprintf1.h: New file.
56921         * tests/unistdio/test-ulc-printf1.h: New file.
56922         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
56923         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
56924         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
56925         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
56926         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
56927         * tests/unistdio/test-ulc-vasprintf1.c: New file.
56928         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
56929         * tests/unistdio/test-ulc-vsprintf1.c: New file.
56930         * tests/unistdio/test-u8-asnprintf1.c: New file.
56931         * tests/unistdio/test-u8-asnprintf1.h: New file.
56932         * tests/unistdio/test-u8-printf1.h: New file.
56933         * tests/unistdio/test-u8-vasnprintf1.c: New file.
56934         * tests/unistdio/test-u8-vasnprintf2.c: New file.
56935         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
56936         * tests/unistdio/test-u8-vasnprintf3.c: New file.
56937         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
56938         * tests/unistdio/test-u8-vasprintf1.c: New file.
56939         * tests/unistdio/test-u8-vsnprintf1.c: New file.
56940         * tests/unistdio/test-u8-vsprintf1.c: New file.
56941         * tests/unistdio/test-u16-asnprintf1.c: New file.
56942         * tests/unistdio/test-u16-asnprintf1.h: New file.
56943         * tests/unistdio/test-u16-printf1.h: New file.
56944         * tests/unistdio/test-u16-vasnprintf1.c: New file.
56945         * tests/unistdio/test-u16-vasnprintf2.c: New file.
56946         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
56947         * tests/unistdio/test-u16-vasnprintf3.c: New file.
56948         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
56949         * tests/unistdio/test-u16-vasprintf1.c: New file.
56950         * tests/unistdio/test-u16-vsnprintf1.c: New file.
56951         * tests/unistdio/test-u16-vsprintf1.c: New file.
56952         * tests/unistdio/test-u32-asnprintf1.c: New file.
56953         * tests/unistdio/test-u32-asnprintf1.h: New file.
56954         * tests/unistdio/test-u32-printf1.h: New file.
56955         * tests/unistdio/test-u32-vasnprintf1.c: New file.
56956         * tests/unistdio/test-u32-vasnprintf2.c: New file.
56957         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
56958         * tests/unistdio/test-u32-vasnprintf3.c: New file.
56959         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
56960         * tests/unistdio/test-u32-vasprintf1.c: New file.
56961         * tests/unistdio/test-u32-vsnprintf1.c: New file.
56962         * tests/unistdio/test-u32-vsprintf1.c: New file.
56963         * modules/unistdio/base: New file.
56964         * modules/unistdio/u-printf-args: New file.
56965         * modules/unistdio/ulc-asnprintf: New file.
56966         * modules/unistdio/ulc-asprintf: New file.
56967         * modules/unistdio/ulc-fprintf: New file.
56968         * modules/unistdio/ulc-printf-parse: New file.
56969         * modules/unistdio/ulc-snprintf: New file.
56970         * modules/unistdio/ulc-sprintf: New file.
56971         * modules/unistdio/ulc-vasnprintf: New file.
56972         * modules/unistdio/ulc-vasprintf: New file.
56973         * modules/unistdio/ulc-vfprintf: New file.
56974         * modules/unistdio/ulc-vsnprintf: New file.
56975         * modules/unistdio/ulc-vsprintf: New file.
56976         * modules/unistdio/u8-asnprintf: New file.
56977         * modules/unistdio/u8-asprintf: New file.
56978         * modules/unistdio/u8-printf-parse: New file.
56979         * modules/unistdio/u8-snprintf: New file.
56980         * modules/unistdio/u8-sprintf: New file.
56981         * modules/unistdio/u8-vasnprintf: New file.
56982         * modules/unistdio/u8-vasprintf: New file.
56983         * modules/unistdio/u8-vsnprintf: New file.
56984         * modules/unistdio/u8-vsprintf: New file.
56985         * modules/unistdio/u8-u8-asnprintf: New file.
56986         * modules/unistdio/u8-u8-asprintf: New file.
56987         * modules/unistdio/u8-u8-snprintf: New file.
56988         * modules/unistdio/u8-u8-sprintf: New file.
56989         * modules/unistdio/u8-u8-vasnprintf: New file.
56990         * modules/unistdio/u8-u8-vasprintf: New file.
56991         * modules/unistdio/u8-u8-vsnprintf: New file.
56992         * modules/unistdio/u8-u8-vsprintf: New file.
56993         * modules/unistdio/u16-asnprintf: New file.
56994         * modules/unistdio/u16-asprintf: New file.
56995         * modules/unistdio/u16-printf-parse: New file.
56996         * modules/unistdio/u16-snprintf: New file.
56997         * modules/unistdio/u16-sprintf: New file.
56998         * modules/unistdio/u16-vasnprintf: New file.
56999         * modules/unistdio/u16-vasprintf: New file.
57000         * modules/unistdio/u16-vsnprintf: New file.
57001         * modules/unistdio/u16-vsprintf: New file.
57002         * modules/unistdio/u16-u16-asnprintf: New file.
57003         * modules/unistdio/u16-u16-asprintf: New file.
57004         * modules/unistdio/u16-u16-snprintf: New file.
57005         * modules/unistdio/u16-u16-sprintf: New file.
57006         * modules/unistdio/u16-u16-vasnprintf: New file.
57007         * modules/unistdio/u16-u16-vasprintf: New file.
57008         * modules/unistdio/u16-u16-vsnprintf: New file.
57009         * modules/unistdio/u16-u16-vsprintf: New file.
57010         * modules/unistdio/u32-asnprintf: New file.
57011         * modules/unistdio/u32-asprintf: New file.
57012         * modules/unistdio/u32-printf-parse: New file.
57013         * modules/unistdio/u32-snprintf: New file.
57014         * modules/unistdio/u32-sprintf: New file.
57015         * modules/unistdio/u32-vasnprintf: New file.
57016         * modules/unistdio/u32-vasprintf: New file.
57017         * modules/unistdio/u32-vsnprintf: New file.
57018         * modules/unistdio/u32-vsprintf: New file.
57019         * modules/unistdio/u32-u32-asnprintf: New file.
57020         * modules/unistdio/u32-u32-asprintf: New file.
57021         * modules/unistdio/u32-u32-snprintf: New file.
57022         * modules/unistdio/u32-u32-sprintf: New file.
57023         * modules/unistdio/u32-u32-vasnprintf: New file.
57024         * modules/unistdio/u32-u32-vasprintf: New file.
57025         * modules/unistdio/u32-u32-vsnprintf: New file.
57026         * modules/unistdio/u32-u32-vsprintf: New file.
57027         * modules/unistdio/ulc-asnprintf-tests: New file.
57028         * modules/unistdio/ulc-vasnprintf-tests: New file.
57029         * modules/unistdio/ulc-vasprintf-tests: New file.
57030         * modules/unistdio/ulc-vsnprintf-tests: New file.
57031         * modules/unistdio/ulc-vsprintf-tests: New file.
57032         * modules/unistdio/u8-asnprintf-tests: New file.
57033         * modules/unistdio/u8-vasnprintf-tests: New file.
57034         * modules/unistdio/u8-vasprintf-tests: New file.
57035         * modules/unistdio/u8-vsnprintf-tests: New file.
57036         * modules/unistdio/u8-vsprintf-tests: New file.
57037         * modules/unistdio/u16-asnprintf-tests: New file.
57038         * modules/unistdio/u16-vasnprintf-tests: New file.
57039         * modules/unistdio/u16-vasprintf-tests: New file.
57040         * modules/unistdio/u16-vsnprintf-tests: New file.
57041         * modules/unistdio/u16-vsprintf-tests: New file.
57042         * modules/unistdio/u32-asnprintf-tests: New file.
57043         * modules/unistdio/u32-vasnprintf-tests: New file.
57044         * modules/unistdio/u32-vasprintf-tests: New file.
57045         * modules/unistdio/u32-vsnprintf-tests: New file.
57046         * modules/unistdio/u32-vsprintf-tests: New file.
57047         * MODULES.html.sh (Unicode string functions): Add the new modules.
57048
57049 2007-07-01  Bruno Haible  <bruno@clisp.org>
57050
57051         * lib/sprintf.c (sprintf): Limit the available length estimation,
57052         to avoid address wraparound.
57053         * lib/vsprintf.c (vsprintf): Likewise.
57054         * modules/sprintf-posix (Dependencies): Add stdint.
57055         * modules/vsprintf-posix (Dependencies): Likewise.
57056
57057 2007-07-01  Bruno Haible  <bruno@clisp.org>
57058
57059         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
57060         Windows PATH as well. Conservative double-quoting. Comments.
57061
57062 2007-07-01  Bruno Haible  <bruno@clisp.org>
57063             Eric Blake  <ebb9@byu.net>
57064             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57065
57066         * gnulib-tool (self_abspathname): Fix algorithm to cope with
57067         empty components in $PATH, denoting '.'.
57068
57069 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57070
57071         * gnulib-tool: Fix indentation.
57072         (func_create_megatestdir): Likewise.
57073         Report by Bruno Haible.
57074
57075 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57076
57077         Sync from Automake.
57078         * build-aux/gnupload: Fix shell portability issues with for loops.
57079         Report by Karl Berry.
57080
57081 2007-06-29  Simon Josefsson  <simon@josefsson.org>
57082
57083         * build-aux/maint.mk (POURL): Use translationproject.org.
57084
57085 2007-06-27  Simon Josefsson  <simon@josefsson.org>
57086             Bruno Haible  <bruno@clisp.org>
57087
57088         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
57089         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
57090         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
57091         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
57092         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
57093
57094 2007-06-27  Bruno Haible  <bruno@clisp.org>
57095
57096         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
57097         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
57098
57099 2007-06-26  Karl Berry  <karl@gnu.org>
57100
57101         * MODULES.html.sh: remove xreadlink-with-size.
57102
57103 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
57104
57105         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
57106         method that I hope also handles the double-include problem noted
57107         by Bruno Haible in
57108         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
57109
57110 2007-06-23  Bruno Haible  <bruno@clisp.org>
57111
57112         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
57113         Don't let the 'mostlyclean' target fail if the last subdirectory could
57114         not be removed.
57115         Reported by Karl Berry.
57116
57117 2007-06-23  Bruno Haible  <bruno@clisp.org>
57118
57119         * gnulib-tool (echo): Add a speedier workaround for ksh.
57120         * tests/test-echo.sh: Likewise.
57121
57122 2007-06-23  Bruno Haible  <bruno@clisp.org>
57123
57124         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
57125         * tests/test-echo.sh: Likewise.
57126
57127 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57128
57129         * gnulib-tool (IFS): Initialize early, so we don't set it to
57130         empty later.
57131         (self_abspathname): Rewrite algorithm to set it, reindent.
57132         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
57133         (func_create_megatestdir): Merge some sed scripts.
57134
57135 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
57136
57137         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
57138         exposed by Sun Studio 11 cc on Solaris 8.
57139
57140 2007-06-22  Bruno Haible  <bruno@clisp.org>
57141
57142         * gnulib-tool (echo): Ensure the echo primitive does not interpret
57143         backslashes.
57144         * tests/test-echo.sh: New file.
57145
57146 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57147
57148         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
57149         simplify `sed_replace_build_aux' scripts, they are portable but
57150         echoing them with `echo' is not.
57151         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
57152
57153 2007-06-21  Karl Berry  <karl@gnu.org>
57154
57155         * config/srclist.txt: guess we can't handle the licenses via
57156         srclist at the moment.
57157
57158 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
57159
57160         * MODULES.html.sh: Add include_next.
57161         * modules/include_next: New file.
57162
57163 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
57164
57165         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
57166         INCLUDE_NEXT.
57167         (gl_CHECK_NEXT_HEADERS): New macro.
57168         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
57169         the obsolescent gl_ABSOLUTE_HEADER.
57170         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
57171         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
57172         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
57173         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
57174         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
57175         * m4/math_h.m4 (gl_MATH_H): Likewise.
57176         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
57177         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
57178         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
57179         * m4/stdint.m4 (gl_STDINT_H): Likewise.
57180         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
57181         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
57182         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
57183         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
57184         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
57185         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
57186         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
57187         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
57188         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
57189         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
57190         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
57191         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
57192         * m4/inttypes.m4 (gl_INTTYPES_H): Define
57193         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
57194         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
57195         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
57196         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
57197         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
57198         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
57199         * lib/float_.h: Likewise.
57200         * lib/inttypes_.h: Likewise.
57201         * lib/math_.h: Likewise.
57202         * lib/search_.h: Likewise.
57203         * lib/signal_.h: Likewise.
57204         * lib/stdint_.h: Likewise.
57205         * lib/stdio_.h: Likewise.
57206         * lib/stdlib_.h: Likewise.
57207         * lib/string_.h: Likewise.
57208         * lib/sys_stat_.h: Likewise.
57209         * lib/sys_time_.h: Likewise.
57210         * lib/time_.h: Likewise.
57211         * lib/unistd_.h: Likewise.
57212         * lib/wchar_.h: Likewise.
57213         * lib/wctype_.h: Likewise.
57214         * lib/dirent_.h: Likewise.
57215         * lib/iconv_.h: Likewise.
57216         * lib/locale_.h: Likewise.
57217         * lib/netinet_in_.h: Likewise.
57218         * lib/sys_select_.h: Likewise.
57219         * lib/sys_socket_.h: Likewise.
57220         * lib/sysexits_.h: Likewise.
57221         * modules/fcntl (Depends-on): Depend on include_next, not
57222         absolute_header.
57223         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
57224         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
57225         * modules/fchdir: Likewise.
57226         * modules/float: Likewise.
57227         * modules/iconv_open: Likewise.
57228         * modules/inttypes: Likewise.
57229         * modules/locale: Likewise.
57230         * modules/math: Likewise.
57231         * modules/netinet_in: Likewise.
57232         * modules/search: Likewise.
57233         * modules/signal: Likewise.
57234         * modules/stdint: Likewise.
57235         * modules/stdio: Likewise.
57236         * modules/stdlib: Likewise.
57237         * modules/string: Likewise.
57238         * modules/sys_select: Likewise.
57239         * modules/sys_socket: Likewise.
57240         * modules/sys_stat: Likewise.
57241         * modules/sys_time: Likewise.
57242         * modules/sysexits: Likewise.
57243         * modules/time: Likewise.
57244         * modules/unistd: Likewise.
57245         * modules/wchar: Likewise.
57246         * modules/wctype: Likewise.
57247         * modules/sys_stat: Change maintainer to "all".
57248         * modules/unistd: Likewise.
57249
57250 2007-06-20  Karl Berry  <karl@gnu.org>
57251
57252         * config/srclist.txt: track www changes in license files.
57253
57254 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
57255
57256         * build-aux/bootstrap: Remove stray dot.
57257         Make sure build_aux settings are honored when linking
57258         gnulib_extra_files.
57259
57260 2007-06-19  Eric Blake  <ebb9@byu.net>
57261
57262         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
57263         Allow compilation on cygwin.
57264
57265 2007-06-19  Jim Meyering  <jim@meyering.net>
57266
57267         xreadlink-with-size: Remove module.  No longer used.
57268         Ex-callers now use xreadlink or mreadlink-with-size.
57269         * modules/xreadlink-with-size: Remove module.
57270         * lib/xreadlink-with-size.c: Remove file.
57271         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
57272         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
57273         just before the function definition *is* accurate.
57274
57275         Eliminate one way canonicalize_filename_mode could exit.
57276         * lib/canonicalize.c (canonicalize_filename_mode):
57277         Use mreadlink_with_size, not xreadlink_with_size.
57278
57279 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
57280
57281         Detect porting problems to FreeBSD/arm, which has time_t wider than
57282         long int.  Original problem reported for GNU diff by Xin Li in
57283         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
57284         * modules/getdate (Depends-on): Add intprops, verify.
57285         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
57286         is an integer type no wider than long int.
57287
57288 2007-06-18  Jim Meyering  <jim@meyering.net>
57289
57290         New module: mreadlink-with-size.
57291         * MODULES.html.sh: Add mreadlink-with-size.
57292         * modules/mreadlink-with-size: New module
57293         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
57294         not xreadlink-with-size.
57295         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
57296
57297 2007-06-16  Bruno Haible  <bruno@clisp.org>
57298
57299         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
57300         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
57301         Reported by Gary V. Vaughan <gary@gnu.org>.
57302
57303 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
57304
57305         Revamp lchown so that it lives in unistd.h where it belongs.
57306         * lib/lchown.h: Remove.
57307         * lib/dirchownmod.c: Don't include lib/lchown.h.
57308         * lib/fchownat.c: Likewise.
57309         * lib/openat.c: Likewise.
57310         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
57311         does not follow symlinks.
57312         (EOPNOTSUPP): Define if not defined.
57313         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
57314         is defined to 0.
57315         (lchown): New decl.
57316         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
57317         Do not check for lchown decl.
57318         Set REPLACE_LCHOWN.
57319         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
57320         REPLACE_LCHOWN.
57321         * modules/chown: Make it clear it follows symlinks.
57322         * modules/lchown: Make it clear it doesn't follow symlinks.
57323         (Files): Remove lib/lchown.h
57324         (Depends-on): Add unistd.
57325         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
57326         (Include): Include <unistd.h>, not "lchown.h".
57327         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
57328         REPLACE_LCHOWN.
57329
57330 2007-06-15  Jim Meyering  <jim@meyering.net>
57331
57332         Change license (GPL to LGPL) of fsusage and dependents.
57333         * modules/fsusage (License): Change to LGPL.
57334         * modules/full-read (License): Likewise.
57335         * modules/full-write (License): Likewise.
57336         * modules/safe-read (License): Likewise.
57337         * modules/safe-write (License): Likewise.
57338
57339 2007-06-14  Ben Pfaff  <blp@gnu.org>
57340
57341         Missing part of allocsa -> malloca transition.
57342         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
57343         gl_MALLOCA.
57344
57345 2007-06-12  Bruno Haible  <bruno@clisp.org>
57346
57347         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
57348         to ia64, x86_64, i386.
57349         Reported by Eric Blake.
57350
57351 2007-06-12  Bruno Haible  <bruno@clisp.org>
57352
57353         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
57354         cross-compiling to x86_64.
57355
57356 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
57357
57358         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
57359         glitch reported by Ralf Wildenhues in
57360         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
57361
57362         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
57363         Vin Shelton.
57364
57365 2007-06-11  Bruno Haible  <bruno@clisp.org>
57366
57367         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
57368         replacement string.
57369         Reported by Eric Blake.
57370
57371 2007-06-10  Bruno Haible  <bruno@clisp.org>
57372
57373         Prepare vasnprintf code for use with Unicode strings.
57374         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
57375         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
57376         TYPE_U32_STRING.
57377         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
57378         a_u32_string variants.
57379         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
57380         * lib/printf-args.c: Don't include config.h and the specification
57381         header if PRINTF_FETCHARGS is already defined.
57382         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
57383         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
57384         TYPE_U16_STRING, TYPE_U32_STRING.
57385         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
57386         u16_directive, u16_directives, u32_directive, u32_directives): New
57387         types.
57388         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
57389         New declarations.
57390         * lib/printf-parse.c: Don't include config.h and the specification
57391         header if PRINTF_PARSE is already defined. Eliminate the set of
57392         parameters for WIDE_CHAR_VERSION; the user of this file must provide
57393         them now. Include c-ctype.h.
57394         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
57395         directive and CHAR_T_ONLY_ASCII.
57396         * lib/vasnprintf.c: Don't include config.h and the specification header
57397         if VASNPRINTF is already defined.
57398         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
57399         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
57400         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
57401         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
57402         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
57403         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
57404         code accordingly.
57405         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
57406         pad_ourselves also in this case, with the 'c' and 's' directives, and
57407         with a different notion of "width".
57408         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
57409
57410 2007-06-10  Bruno Haible  <bruno@clisp.org>
57411
57412         * modules/unistr/u32-mbsnlen: New file.
57413         * lib/unistr/u32-mbsnlen.c: New file.
57414
57415         * modules/unistr/u16-mbsnlen: New file.
57416         * lib/unistr/u16-mbsnlen.c: New file.
57417
57418         * modules/unistr/u8-mbsnlen: New file.
57419         * lib/unistr/u8-mbsnlen.c: New file.
57420
57421         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
57422         declarations.
57423
57424 2007-06-10  Bruno Haible  <bruno@clisp.org>
57425
57426         * lib/string_.h (mbsnlen): New declaration.
57427         * lib/mbsnlen.c: New file.
57428         * m4/mbsnlen.m4: New file.
57429         * modules/mbsnlen: New file.
57430         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
57431         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
57432         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
57433
57434 2007-06-10  Bruno Haible  <bruno@clisp.org>
57435
57436         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
57437
57438 2007-06-10  Bruno Haible  <bruno@clisp.org>
57439
57440         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
57441         * lib/mbuiter.h: Likewise.
57442
57443 2007-06-10  Bruno Haible  <bruno@clisp.org>
57444
57445         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
57446         declaration.
57447
57448 2007-06-10  Karl Berry  <karl@gnu.org>
57449
57450         * config/srclist.txt: remove gettext entries, Bruno prefers
57451         to update individually.
57452
57453 2007-06-10  Bruno Haible  <bruno@clisp.org>
57454
57455         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
57456         'maxlen'. Ensure only length + width bytes are allocated, not
57457         length + 1 + width.
57458
57459 2007-06-09  Bruno Haible  <bruno@clisp.org>
57460
57461         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
57462         (CHAR_T): Remove macro.
57463         (VASNPRINTF): Update.
57464
57465 2007-06-09  Bruno Haible  <bruno@clisp.org>
57466
57467         * MODULES.html.sh (Unicode string functions): Add the new modules.
57468
57469         * modules/uniconv/u32-conv-to-enc: New file.
57470         * lib/uniconv/u32-conv-to-enc.c: New file.
57471         * modules/uniconv/u32-conv-to-enc-tests: New file.
57472         * tests/uniconv/test-u32-conv-to-enc.c: New file.
57473
57474         * modules/uniconv/u16-conv-to-enc: New file.
57475         * lib/uniconv/u16-conv-to-enc.c: New file.
57476         * lib/uniconv/u-conv-to-enc.h: New file.
57477         * modules/uniconv/u16-conv-to-enc-tests: New file.
57478         * tests/uniconv/test-u16-conv-to-enc.c: New file.
57479
57480         * modules/uniconv/u8-conv-to-enc: New file.
57481         * lib/uniconv/u8-conv-to-enc.c: New file.
57482         * modules/uniconv/u8-conv-to-enc-tests: New file.
57483         * tests/uniconv/test-u8-conv-to-enc.c: New file.
57484
57485         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
57486         u32_conv_to_encoding): New declarations.
57487
57488 2007-06-09  Bruno Haible  <bruno@clisp.org>
57489
57490         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
57491
57492 2007-06-09  Bruno Haible  <bruno@clisp.org>
57493
57494         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
57495         * modules/malloca: Renamed from modules/allocsa, updated.
57496         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
57497         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
57498         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
57499         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
57500         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
57501         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
57502         * modules/xmalloca: Renamed from modules/xallocsa, updated.
57503         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
57504         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
57505         * modules/c-strcasestr (Depends-on): Update.
57506         * lib/c-strcasestr.c: Update.
57507         * modules/c-strstr (Depends-on): Update.
57508         * lib/c-strstr.c: Update.
57509         * modules/canonicalize-lgpl (Depends-on): Update.
57510         * lib/canonicalize-lgpl.c: Update.
57511         * modules/clean-temp (Depends-on): Update.
57512         * lib/clean-temp.c: Update.
57513         * modules/csharpcomp (Depends-on): Update.
57514         * lib/csharpcomp.c: Update.
57515         * modules/csharpexec (Depends-on): Update.
57516         * lib/csharpexec.c: Update.
57517         * modules/javacomp (Depends-on): Update.
57518         * lib/javacomp.c: Update.
57519         * modules/javaexec (Depends-on): Update.
57520         * lib/javaexec.c: Update.
57521         * modules/mbscasestr (Depends-on): Update.
57522         * lib/mbscasestr.c: Update.
57523         * modules/mbsstr (Depends-on): Update.
57524         * lib/mbsstr.c: Update.
57525         * modules/setenv (Depends-on): Update.
57526         * lib/setenv.c: Update.
57527         * modules/strcasestr (Depends-on): Update.
57528         * lib/strcasestr.c: Update.
57529         * modules/striconveha (Depends-on): Update.
57530         * lib/striconveha.c: Update.
57531         * modules/relocatable-prog-wrapper (Files): Update.
57532         * lib/relocwrapper.c: Update.
57533         * build-aux/install-reloc: Update.
57534         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
57535
57536 2007-06-08  Bruno Haible  <bruno@clisp.org>
57537
57538         Port to uClibc.
57539         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
57540         * lib/fpurge.c (fpurge): Likewise.
57541         * lib/freading.c (freading): Likewise.
57542         * lib/fseeko.c (rpl_fseeko): Likewise.
57543         * lib/fseterr.c (fseterr): Likewise.
57544         * lib/fwriting.c (fwriting): Likewise.
57545         * tests/test-fflush.c (main): Avoid a failure on uClibc.
57546
57547 2007-06-08  Bruno Haible  <bruno@clisp.org>
57548
57549         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
57550         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
57551         * modules/gettext (Files): Add m4/intlmacosx.m4.
57552
57553 2007-06-07  Bruno Haible  <bruno@clisp.org>
57554
57555         * modules/localename-tests: New file.
57556         * tests/test-localename.c: New file.
57557
57558         New module 'localename'.
57559         * lib/localename.h: New file.
57560         * lib/localename.c: New file, from GNU gettext.
57561         * m4/localename.m4: New file.
57562         * modules/localename: New file.
57563
57564 2007-06-07  Bruno Haible  <bruno@clisp.org>
57565
57566         Work around the lack of <wchar.h> on some builds of uClibc.
57567         * doc/headers/wchar.texi: Update.
57568         * lib/wchar_.h: Include <wchar.h> only if it exists.
57569         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
57570         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
57571         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
57572         doesn't exist.
57573         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
57574         * modules/mbfile (Depends-on): Add wchar.
57575         * modules/mbiter (Depends-on): Likewise.
57576         * modules/mbuiter (Depends-on): Likewise.
57577         Reported by Simon Josefsson.
57578
57579 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
57580
57581         Work around problem reported by Steven M. Schweda in
57582         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
57583         Tru64 5.1B with the Compaq compiler environment installed declares
57584         an 'isblank' function but does not define it in the C library.
57585         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
57586         * lib/regex_internal.h (isblank): Likewise.
57587         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
57588         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
57589
57590 2007-06-05  Bruno Haible  <bruno@clisp.org>
57591
57592         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
57593         ia64.
57594         * modules/printf-safe: New file.
57595         * modules/fprintf-posix (Depends-on): Add printf-safe.
57596         * modules/printf-posix (Depends-on): Likewise.
57597         * modules/snprintf-posix (Depends-on): Likewise.
57598         * modules/sprintf-posix (Depends-on): Likewise.
57599         * modules/vasnprintf-posix (Depends-on): Likewise.
57600         * modules/vasprintf-posix (Depends-on): Likewise.
57601         * modules/vfprintf-posix (Depends-on): Likewise.
57602         * modules/vprintf-posix (Depends-on): Likewise.
57603         * modules/vsnprintf-posix (Depends-on): Likewise.
57604         * modules/vsprintf-posix (Depends-on): Likewise.
57605         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
57606         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
57607         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
57608         "no" on i386, x86_64, ia64.
57609         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
57610         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
57611         on i386, x86_64, ia64.
57612         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
57613         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
57614         on i386, x86_64, ia64.
57615         * tests/test-vasnprintf-posix.c: Include float.h.
57616         (LDBL80_WORDS): New macro.
57617         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
57618         on i386, x86_64, ia64.
57619         * tests/test-vasprintf-posix.c: Include float.h.
57620         (LDBL80_WORDS): New macro.
57621         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
57622         on i386, x86_64, ia64.
57623         * tests/test-snprintf-posix.c: Include float.h.
57624         * tests/test-sprintf-posix.c: Likewise.
57625         * tests/test-vsnprintf-posix.c: Likewise.
57626         * tests/test-vsprintf-posix.c: Likewise.
57627
57628 2007-06-05  Bruno Haible  <bruno@clisp.org>
57629
57630         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
57631         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
57632         non-IEEE numbers on i386, x86_64, ia64.
57633         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
57634         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
57635         * tests/test-isnanl.h: Include float.h.
57636         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
57637
57638 2007-06-05  Bruno Haible  <bruno@clisp.org>
57639
57640         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
57641         also the %a / %A. Handle the %a / %A code before this extra handling.
57642
57643 2007-06-05  Bruno Haible  <bruno@clisp.org>
57644
57645         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
57646         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
57647
57648 2007-06-05  Bruno Haible  <bruno@clisp.org>
57649
57650         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
57651         typo in variable name.
57652
57653 2007-06-05  Eric Blake  <ebb9@byu.net>
57654
57655         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
57656         Reported by Simon Josefsson.
57657
57658 2007-06-04  Bruno Haible  <bruno@clisp.org>
57659
57660         Avoid test failures on some PowerPC platforms.
57661         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
57662         Define differently for PowerPC.
57663         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
57664         Reported by Gary V. Vaughan <gary@gnu.org>.
57665
57666 2007-06-02  Bruno Haible  <bruno@clisp.org>
57667
57668         Fix test-stdint failure on FreeBSD/ia64.
57669         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
57670         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
57671         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
57672         * doc/headers/stdint.texi: Update.
57673
57674 2007-06-01  Bruno Haible  <bruno@clisp.org>
57675
57676         * tests/test-binary-io.c (main): Pass a third argument to open().
57677         Reported by Gary V. Vaughan <gary@gnu.org>.
57678
57679 2007-06-01  Bruno Haible  <bruno@clisp.org>
57680
57681         * doc/functions/frexpl.texi: Update for mingw.
57682
57683 2007-06-01  Bruno Haible  <bruno@clisp.org>
57684
57685         * tests/test-lseek.c (main): Disable test of errno for invalid third
57686         argument.
57687         * doc/functions/lseek.texi: Update.
57688         Reported by Gary V. Vaughan <gary@gnu.org>.
57689
57690 2007-05-28  Bruno Haible  <bruno@clisp.org>
57691
57692         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
57693
57694 2007-05-31  Eric Blake  <ebb9@byu.net>
57695
57696         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
57697         cross compiling.
57698
57699 2007-05-30  Eric Blake  <ebb9@byu.net>
57700         and Bruno Haible  <bruno@clisp.org>
57701
57702         Work around mingw test failures exposed by m4-1.4.9b.
57703         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
57704         * tests/test-unistd.c: Disable uid_t and git_t tests for the
57705         moment.
57706
57707 2007-05-30  Bruno Haible  <bruno@clisp.org>
57708
57709         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
57710         assuming that they are closed. Needed on HP-UX 11.
57711
57712 2007-05-29  Bruno Haible  <bruno@clisp.org>
57713
57714         Fix a problem with #include_next.
57715         * lib/dirent_.h: Split the double-inclusion guard.
57716         * lib/fcntl_.h: Likewise.
57717         * lib/float_.h: Likewise.
57718         * lib/iconv_.h: Likewise.
57719         * lib/inttypes_.h: Likewise.
57720         * lib/locale_.h: Likewise.
57721         * lib/math_.h: Likewise.
57722         * lib/netinet_in_.h: Likewise.
57723         * lib/search_.h: Likewise.
57724         * lib/signal_.h: Likewise.
57725         * lib/stdint_.h: Likewise.
57726         * lib/stdio_.h: Likewise.
57727         * lib/stdlib_.h: Likewise.
57728         * lib/string_.h: Likewise.
57729         * lib/sys_select_.h: Likewise.
57730         * lib/sys_socket_.h: Likewise.
57731         * lib/sys_stat_.h: Likewise.
57732         * lib/sys_time_.h: Likewise.
57733         * lib/sysexits_.h: Likewise.
57734         * lib/time_.h: Likewise.
57735         * lib/unistd_.h: Likewise.
57736         * lib/wchar_.h: Likewise.
57737         * lib/wctype_.h: Likewise.
57738
57739 2007-05-29  Bruno Haible  <bruno@clisp.org>
57740
57741         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
57742         for the moment.
57743
57744 2007-05-29  Bruno Haible  <bruno@clisp.org>
57745
57746         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
57747         invocation.
57748         Reported by Eric Blake.
57749
57750 2007-05-29  Bruno Haible  <bruno@clisp.org>
57751
57752         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
57753         compiling case.
57754
57755 2007-05-29  Eric Blake  <ebb9@byu.net>
57756             Bruno Haible  <bruno@clisp.org>
57757
57758         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
57759         cross compiles.
57760
57761 2007-05-28  Eric Blake  <ebb9@byu.net>
57762
57763         * modules/closein-tests (test_closein_LDADD): Support test on
57764         cygwin with libtool.
57765
57766 2007-05-28  Bruno Haible  <bruno@clisp.org>
57767
57768         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
57769         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
57770         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
57771         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
57772         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
57773         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
57774         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
57775         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
57776         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
57777
57778 2007-05-28  Eric Blake  <ebb9@byu.net>
57779
57780         Unconditionally include <config.h> in unit tests.
57781         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
57782         * tests/test-allocsa.c, tests/test-arcfour.c,
57783         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
57784         tests/test-array_list.c, tests/test-array_oset.c,
57785         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
57786         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
57787         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
57788         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
57789         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
57790         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
57791         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
57792         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
57793         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
57794         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
57795         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
57796         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
57797         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
57798         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
57799         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
57800         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
57801         test-md5.c, test-memmem.c, test-printf-posix.c,
57802         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
57803         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
57804         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
57805         test-strcasestr.c, test-striconv.c, test-striconveh.c,
57806         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
57807         test-vasnprintf-posix2.c, test-vasnprintf.c,
57808         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
57809         test-vfprintf-posix.c, test-vprintf-posix.c,
57810         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
57811         test-xvasprintf.c: Likewise.
57812
57813 2007-05-28  Bruno Haible  <bruno@clisp.org>
57814
57815         * gnulib-tool (func_import): Remember the --with-tests command-line
57816         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
57817         Reported by Eric Blake.
57818
57819 2007-05-28  Bruno Haible  <bruno@clisp.org>
57820
57821         * modules/ftell-tests: New file.
57822         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
57823         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
57824
57825         * lib/ftell.c: New file.
57826         * modules/ftell: New file.
57827         * m4/ftell.m4: New file.
57828         * doc/functions/ftell.texi: Update.
57829         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
57830         REPLACE_FTELL.
57831         * lib/stdio_.h (rpl_ftell): New declaration.
57832         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
57833         REPLACE_FTELL.
57834
57835 2007-05-28  Eric Blake  <ebb9@byu.net>
57836
57837         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
57838
57839 2007-05-28  Bruno Haible  <bruno@clisp.org>
57840
57841         * modules/fseek-tests: New file.
57842         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
57843         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
57844
57845         * lib/fseek.c: New file.
57846         * modules/fseek: New file.
57847         * m4/fseek.m4: New file.
57848         * doc/functions/fseek.texi: Update.
57849         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
57850         REPLACE_FSEEK.
57851         * lib/stdio_.h (rpl_fseek): New declaration.
57852         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
57853         REPLACE_FSEEK.
57854
57855 2007-05-28  Bruno Haible  <bruno@clisp.org>
57856
57857         * lib/stdio_.h (fflush): More comments.
57858
57859 2007-05-28  Bruno Haible  <bruno@clisp.org>
57860
57861         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
57862         runtime test.
57863
57864 2007-05-28  Eric Blake  <ebb9@byu.net>
57865
57866         Improve lseek module.
57867         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
57868         * lib/unistd_.h (lseek): Scale back link warning message.
57869         * tests/test-lseek.c: Beef up test.
57870         * tests/test-lseek.sh: Exercise more facets of lseek.
57871         Reported by Bruno Haible.
57872
57873 2007-05-28  Bruno Haible  <bruno@clisp.org>
57874
57875         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
57876         to define.
57877
57878 2007-05-27  Bruno Haible  <bruno@clisp.org>
57879
57880         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
57881
57882 2007-05-27  Bruno Haible  <bruno@clisp.org>
57883
57884         * modules/openmp: New file.
57885         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
57886         Noah Misch.
57887
57888 2007-05-26  Bruno Haible  <bruno@clisp.org>
57889
57890         * modules/chdir-long (Depends-on): Add fchdir.
57891         * modules/chdir-safer (Depends-on): Likewise.
57892         * modules/fts (Depends-on): Likewise.
57893         * modules/fts-lgpl (Depends-on): Likewise.
57894         * modules/openat (Depends-on): Likewise.
57895         * modules/savewd (Depends-on): Likewise.
57896
57897 2007-05-24  Eric Blake  <ebb9@byu.net>
57898
57899         Fix lseek on mingw.
57900         * modules/lseek: New module.
57901         * m4/lseek.m4: New file.
57902         * lib/lseek.c: New file.
57903         * modules/lseek-tests: New file.
57904         * tests/test-lseek.c: New file.
57905         * tests/test-lseek.sh: New file.
57906         * MODULES.html.sh: Document lseek module.
57907         * modules/fflush (Depends-on): Add lseek, fseeko.
57908         * modules/fseeko (Depends-on): Likewise.
57909         * modules/ftello (Depends-on): Likewise.
57910         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
57911         broken.
57912         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
57913         broken.
57914         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
57915         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
57916         * lib/ftello.c (rpl_ftello): Likewise.
57917         * tests/test-fseeko.c (main): Test this.
57918         * tests/test-fseeko.sh: Likewise.
57919         * tests/test-ftello.c (main): Likewise.
57920         * tests/test-ftello.sh: Likewise.
57921         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
57922         implies replacing fseek.
57923         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
57924         HAVE_FTELLO.
57925         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
57926         * modules/unistd (Makefile.am): Likewise.
57927         * lib/unistd_.h (lseek): Declare a replacement.
57928         * doc/functions/lseek.texi (lseek): Document this fix.
57929         * doc/functions/fseek.texi (fseek): Likewise.
57930         * doc/functions/ftell.texi (ftell): Likewise.
57931
57932 2007-05-24  Bruno Haible  <bruno@clisp.org>
57933
57934         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
57935         in the printed representation of a NaN.
57936         * tests/test-vasprintf-posix.c (test_function): Likewise.
57937         * tests/test-snprintf-posix.h (test_function): Likewise.
57938         * tests/test-sprintf-posix.h (test_function): Likewise.
57939         Reported by Eric Blake.
57940
57941 2007-05-23  Eric Blake  <ebb9@byu.net>
57942
57943         Fix fseeko/ftello on cygwin 1.5.24.
57944         * doc/functions/fseeko.texi (fseeko): Document the fix.
57945         * doc/functions/ftello.texi (ftello): Document the fix.
57946         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
57947         * doc/functions/stdout.text (stdout): New file.
57948         * doc/functions/stderr.text (stderr): New file.
57949         * doc/gnulib.texi (Function Substitutes): Use new files.
57950         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
57951         prior to 1.7.0.
57952         * tests/test-ftello.c (main): Likewise for ftello.
57953         * tests/test-fseeko.sh: New file.
57954         * tests/test-ftello.sh: New file.
57955         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
57956         with seekable stdin.
57957         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
57958         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
57959         (gl_REPLACE_FSEEKO): New macro.
57960         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
57961         * modules/fseeko (Files): Distribute fseeko.c.
57962         * modules/ftello (Files): Distribute ftello.c.
57963         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
57964         mode.
57965         * lib/ftello.c (rpl_ftello): New file.
57966         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
57967         fseeko, ftello.
57968         (gl_STDIN_LARGE_OFFSET): New macro.
57969         * modules/stdio (Makefile.am): Perform the replacement.
57970         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
57971
57972 2007-05-23  Bruno Haible  <bruno@clisp.org>
57973
57974         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
57975         GNULIB_POSIXCHECK is defined.
57976
57977 2007-05-21  Bruno Haible  <bruno@clisp.org>
57978
57979         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
57980         Check also the output for NaN arguments. When cross-compiling, guess
57981         no on IRIX.
57982         * lib/vasnprintf.c: Update comments.
57983         * tests/test-vasnprintf-posix.c (strisnan): New function.
57984         (test_function): Use it.
57985         * tests/test-vasprintf-posix.c (strisnan): New function.
57986         (test_function): Use it.
57987         * tests/test-snprintf-posix.h (strisnan): New function.
57988         (test_function): Use it.
57989         * tests/test-sprintf-posix.h (strisnan): New function.
57990         (test_function): Use it.
57991         Reported by Eric Blake.
57992
57993 2007-05-20  Bruno Haible  <bruno@clisp.org>
57994
57995         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
57996         numbers that fails on BeOS.
57997         * doc/functions/frexpl.texi: Update.
57998
57999 2007-05-20  Jim Meyering  <jim@meyering.net>
58000
58001         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
58002         forced upon us by glibc-2.6.
58003
58004 2007-05-20  Bruno Haible  <bruno@clisp.org>
58005
58006         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
58007         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
58008         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
58009         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
58010         NEED_PRINTF_INFINITE.
58011         (is_infinitel): New function.
58012         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
58013         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
58014         gl_PREREQ_VASNPRINTF_INFINITE.
58015         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
58016         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
58017         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
58018         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
58019         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
58020         gl_PREREQ_VASNPRINTF_INFINITE.
58021         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
58022         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58023         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58024         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58025         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58026         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58027         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58028         * doc/functions/fprintf.texi: Update.
58029         * doc/functions/printf.texi: Update.
58030         * doc/functions/snprintf.texi: Update.
58031         * doc/functions/sprintf.texi: Update.
58032         * doc/functions/vfprintf.texi: Update.
58033         * doc/functions/vprintf.texi: Update.
58034         * doc/functions/vsnprintf.texi: Update.
58035         * doc/functions/vsprintf.texi: Update.
58036
58037 2007-05-20  Bruno Haible  <bruno@clisp.org>
58038
58039         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
58040         was not found in libc.
58041         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
58042
58043 2007-05-20  Bruno Haible  <bruno@clisp.org>
58044
58045         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
58046         printed as "-nan" instead of "nan".
58047         * tests/test-vasprintf-posix.c (test_function): Likewise.
58048         * tests/test-snprintf-posix.h (test_function): Likewise.
58049         * tests/test-sprintf-posix.h (test_function): Likewise.
58050         Needed for HP-UX 11.
58051
58052 2007-05-20  Jim Meyering  <jim@meyering.net>
58053
58054         Fix buggy test for the fchownat-deref bug.
58055         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
58056         symlink required for the run-test.  Without it, this test would
58057         always declare that fchownat doesn't work, and client code would
58058         unnecessarily use the replacement function with fixed libc.
58059         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
58060         Reported by Greg Schafer.
58061
58062 2007-05-19  Bruno Haible  <bruno@clisp.org>
58063
58064         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
58065         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
58066         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
58067         Needed for IRIX 6.5 and Solaris 2.5.1.
58068
58069 2007-05-19  Bruno Haible  <bruno@clisp.org>
58070
58071         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
58072         (test_function): Skip tests involving -0.0 on platforms where
58073         -0.0 = 0.0.
58074         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
58075         (test_function): Skip tests involving -0.0 on platforms where
58076         -0.0 = 0.0.
58077         * tests/test-snprintf-posix.h (have_minus_zero): New function.
58078         (test_function): Skip tests involving -0.0 on platforms where
58079         -0.0 = 0.0.
58080         * tests/test-sprintf-posix.h (have_minus_zero): New function.
58081         (test_function): Skip tests involving -0.0 on platforms where
58082         -0.0 = 0.0.
58083         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
58084         tests.
58085         * tests/test-printf-posix.h (test_function): Likewise.
58086         * tests/test-printf-posix.output: Remove all -0.0 related results.
58087         Needed for IRIX 6.5.
58088
58089 2007-05-19  Bruno Haible  <bruno@clisp.org>
58090
58091         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
58092         printed as "nan0x7fffffff" instead of "nan".
58093         * tests/test-vasprintf-posix.c (test_function): Likewise.
58094         * tests/test-snprintf-posix.h (test_function): Likewise.
58095         * tests/test-sprintf-posix.h (test_function): Likewise.
58096         * tests/test-fprintf-posix.h (NaN): Remove macro.
58097         (test_function): Remove all NaN related tests.
58098         * tests/test-printf-posix.h (NaN): Remove macro.
58099         (test_function): Remove all NaN related tests.
58100         * tests/test-printf-posix.output: Remove all NaN related results.
58101         Needed for IRIX 6.5.
58102
58103 2007-05-19  Bruno Haible  <bruno@clisp.org>
58104
58105         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
58106         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
58107
58108 2007-05-19  Bruno Haible  <bruno@clisp.org>
58109
58110         * lib/float_.h: New file.
58111         * m4/float_h.m4: New file.
58112         * modules/float: New file.
58113         * modules/isnanl (Dependencies): Add float.
58114         * modules/isnanl-nolibm (Dependencies): Likewise.
58115         * modules/mathl (Dependencies): Likewise.
58116         * modules/printf-frexpl (Dependencies): Likewise.
58117         * modules/signbit (Dependencies): Likewise.
58118         * modules/vasnprintf (Dependencies): Likewise.
58119         * doc/headers/float.texi: Update.
58120
58121 2007-05-19  Jim Meyering  <jim@meyering.net>
58122
58123         * lib/utimens.c (gl_futimens): Rename from futimens,
58124         now that glibc-2.6 declares futimens.
58125         * lib/utimens.h: Likewise.
58126
58127 2007-05-19  Bruno Haible  <bruno@clisp.org>
58128
58129         Avoid test failures on mingw.
58130         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
58131         * tests/test-printf-posix.sh: Likewise.
58132         * tests/test-vfprintf-posix.sh: Likewise.
58133         * tests/test-vprintf-posix.sh: Likewise.
58134
58135 2007-05-19  Bruno Haible  <bruno@clisp.org>
58136
58137         Fix *printf result for NaN, Inf, -0.0 on mingw.
58138         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
58139         * lib/vasnprintf.c: Include math.h and isnan.h.
58140         (is_infinite_or_zero): New function.
58141         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
58142         values in the %f, %F, %e, %E, %g, %G directives.
58143         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
58144         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
58145         gl_PRINTF_INFINITE and test its result. Invoke
58146         gl_PREREQ_VASNPRINTF_INFINITE.
58147         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
58148         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58149         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58150         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58151         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58152         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58153         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58154         * doc/functions/fprintf.texi: Update.
58155         * doc/functions/printf.texi: Update.
58156         * doc/functions/snprintf.texi: Update.
58157         * doc/functions/sprintf.texi: Update.
58158         * doc/functions/vfprintf.texi: Update.
58159         * doc/functions/vprintf.texi: Update.
58160         * doc/functions/vsnprintf.texi: Update.
58161         * doc/functions/vsprintf.texi: Update.
58162
58163 2007-05-19  Bruno Haible  <bruno@clisp.org>
58164
58165         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
58166         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
58167         Instead of multiplying with 10^k, set extra_zeroes to k.
58168         (scale10_round_long_double): Remove function.
58169
58170 2007-05-18  Bruno Haible  <bruno@clisp.org>
58171
58172         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
58173         introduced on 2007-05-06.
58174
58175 2007-05-18  Bruno Haible  <bruno@clisp.org>
58176
58177         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
58178         %g directives.
58179         * tests/test-vasprintf-posix.c (test_function): Likewise.
58180         * tests/test-snprintf-posix.h (test_function): Likewise.
58181         * tests/test-sprintf-posix.h (test_function): Likewise.
58182
58183 2007-05-18  Bruno Haible  <bruno@clisp.org>
58184
58185         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
58186         (strmatch): New function.
58187         (test_function): Test the %f directive on numbers of various exponents.
58188         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
58189         (strmatch): New function.
58190         (test_function): Test the %f directive on numbers of various exponents.
58191         * tests/test-snprintf-posix.h (strmatch): New function.
58192         (test_function): Test the %f directive on numbers of various exponents.
58193         * tests/test-sprintf-posix.h (strmatch): New function.
58194         (test_function): Test the %f directive on numbers of various exponents.
58195         * tests/test-snprintf-posix.c (SIZEOF): New macro.
58196         * tests/test-sprintf-posix.c (SIZEOF): New macro.
58197         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
58198         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
58199
58200 2007-05-18  Bruno Haible  <bruno@clisp.org>
58201
58202         Add support for 'long double' number output.
58203         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
58204         * lib/vasnprintf.c: Include math.h and float+.h.
58205         (mp_limb_t): New type.
58206         (GMP_LIMB_BITS): New macro.
58207         (mp_twolimb_t): New type.
58208         (GMP_TWOLIMB_BITS): New macro.
58209         (mpn_t): New type.
58210         (multiply, divide, convert_to_decimal, decode_long_double,
58211         scale10_round_long_double, scale10_round_decimal_long_double,
58212         floorlog10l): New functions.
58213         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
58214         for the %f, %F, %e, %E, %g, %G directives.
58215         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
58216         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
58217         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
58218         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
58219         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
58220         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58221         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58222         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58223         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58224         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58225         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58226         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
58227         * modules/snprintf-posix (Depends-on): Likewise.
58228         * modules/sprintf-posix (Depends-on): Likewise.
58229         * modules/vasnprintf-posix (Depends-on): Likewise.
58230         * modules/vasprintf-posix (Depends-on): Likewise.
58231         * modules/vfprintf-posix (Depends-on): Likewise.
58232         * modules/vsnprintf-posix (Depends-on): Likewise.
58233         * modules/vsprintf-posix (Depends-on): Likewise.
58234         * modules/vasnprintf (Files): Add lib/float+.h.
58235         * doc/functions/fprintf.texi: Update.
58236         * doc/functions/printf.texi: Update.
58237         * doc/functions/snprintf.texi: Update.
58238         * doc/functions/sprintf.texi: Update.
58239         * doc/functions/vfprintf.texi: Update.
58240         * doc/functions/vprintf.texi: Update.
58241         * doc/functions/vsnprintf.texi: Update.
58242         * doc/functions/vsprintf.texi: Update.
58243
58244 2007-05-18  Bruno Haible  <bruno@clisp.org>
58245
58246         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
58247
58248 2007-05-18  Bruno Haible  <bruno@clisp.org>
58249
58250         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
58251         for printing 64-bit integers. Needed for mingw.
58252
58253 2007-05-18  Bruno Haible  <bruno@clisp.org>
58254
58255         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
58256         gl_FUNC_FREXPL_WORKS.
58257         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
58258
58259 2007-05-18  Bruno Haible  <bruno@clisp.org>
58260
58261         * modules/frexpl-nolibm-tests: New file.
58262
58263         * modules/frexpl-nolibm: New file.
58264         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
58265
58266 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
58267
58268         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
58269         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
58270         GCC 4.2, which otherwise issues a lot of warnings.
58271         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
58272         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
58273         Likewise.
58274         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
58275         * modules/iconv_open (iconv.h): Likewise.
58276         * modules/locale (locale.h): Likewise.
58277         * modules/netinet_in (netinet/in.h): Likewise.
58278         * modules/sys_select (sys_select.h): Likewise.
58279         * modules/sys_socket (sys/socket.h): Likewise.
58280         * modules/sys_stat (sys/stat.h): Likewise.
58281         * modules/sysexits (sysexits.h): Likewise.
58282         * modules/unistd (unistd.h): Likewise.
58283
58284 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58285
58286         * modules/closein-tests (Makefile.am): Distribute
58287         `test-closein.sh'.
58288
58289 2007-05-17  Bruno Haible  <bruno@clisp.org>
58290
58291         * tests/test-printf-posix.output: Renamed from
58292         tests/test-fprintf-posix.out.
58293         * modules/fprintf-posix-tests: Update.
58294         * modules/printf-posix-tests: Update.
58295         * modules/vfprintf-posix-tests: Update.
58296         * modules/vprintf-posix-tests: Update.
58297         * tests/test-fprintf-posix.sh: Update.
58298         * tests/test-printf-posix.sh: Update.
58299         * tests/test-vfprintf-posix.sh: Update.
58300         * tests/test-vprintf-posix.sh: Update.
58301         Reported by Ralf Wildenhues.
58302
58303 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
58304
58305         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
58306         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
58307         GCC 4.2, which otherwise issues a lot of warnings.
58308         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
58309         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
58310         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
58311         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
58312         it should no longer be needed.
58313         * lib/string_.h: Likewise.
58314         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
58315         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
58316         * modules/inttypes (inttypes.h): Likewise.
58317         * modules/math (math.h): Likewise.
58318         * modules/search (search.h): Likewise.
58319         * modules/signal (signal.h): Likewise.
58320         * modules/stdint (stdint.h): Likewise.
58321         * modules/stdio (stdio.h): Likewise.
58322         * modules/stdlib (stdlib.h): Likewise.
58323         * modules/string (string.h): Likewise.
58324         * modules/sys_time (sys/time.h): Likewise.
58325         * modules/time (time.h): Likewise.
58326         * modules/wchar (wchar.h): Likewise.
58327         * modules/wctype (wtype.h): Likewise.
58328
58329 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
58330
58331         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
58332
58333 2007-05-13  Bruno Haible  <bruno@clisp.org>
58334
58335         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
58336         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
58337         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
58338         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
58339         (gl_PREREQ_STRTOK_R): Don't require it here.
58340
58341 2007-05-13  Bruno Haible  <bruno@clisp.org>
58342
58343         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
58344         when used in C++ mode.
58345
58346 2007-05-12  Bruno Haible  <bruno@clisp.org>
58347
58348         * lib/linebuffer.h: Tweak doc.
58349         * lib/linebuffer.c: Likewise.
58350
58351 2007-05-12  James Youngman  <jay@gnu.org>
58352
58353         * lib/linebuffer.c (readlinebuffer_delim): New function,
58354         like readlinebuffer, but use a caller-specified delimiter.
58355         (readlinebuffer): Just call readlinebuffer_delim with '\n'
58356         as the delimiter.
58357         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
58358
58359 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
58360
58361         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
58362         * modules/openat (Files): Remove openat-die.c.
58363         (Depends-on): Add openat-die.
58364         * modules/openat-die: New module.
58365
58366 2007-05-06  Bruno Haible  <bruno@clisp.org>
58367
58368         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
58369         Update with info about Cygwin.
58370         * doc/functions/fprintf.texi: Update.
58371         * doc/functions/printf.texi: Update.
58372         * doc/functions/snprintf.texi: Update.
58373         * doc/functions/sprintf.texi: Update.
58374         * doc/functions/vfprintf.texi: Update.
58375         * doc/functions/vprintf.texi: Update.
58376         * doc/functions/vsnprintf.texi: Update.
58377         * doc/functions/vsprintf.texi: Update.
58378         Reported by Eric Blake.
58379
58380 2007-05-06  Bruno Haible  <bruno@clisp.org>
58381
58382         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
58383         padding ourselves for the floating-point directives.
58384         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
58385         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
58386         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
58387         gl_PRINTF_FLAG_ZERO and test its result. Invoke
58388         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
58389         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58390         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
58391         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58392         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58393         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58394         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58395         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58396         * tests/test-snprintf-posix.h (test_function): Also check the width
58397         and some flags in the %f directive.
58398         * tests/test-sprintf-posix.h (test_function): Likewise.
58399         * tests/test-vasnprintf-posix.c (test_function): Likewise.
58400         * tests/test-vasprintf-posix.c (test_function): Likewise.
58401         * doc/functions/fprintf.texi: Update.
58402         * doc/functions/printf.texi: Update.
58403         * doc/functions/snprintf.texi: Update.
58404         * doc/functions/sprintf.texi: Update.
58405         * doc/functions/vfprintf.texi: Update.
58406         * doc/functions/vprintf.texi: Update.
58407         * doc/functions/vsnprintf.texi: Update.
58408         * doc/functions/vsprintf.texi: Update.
58409
58410 2007-05-06  Bruno Haible  <bruno@clisp.org>
58411
58412         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
58413         pass the ' flag character to sprintf or snprintf.
58414         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
58415         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
58416         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
58417         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
58418         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
58419         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58420         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
58421         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58422         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58423         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58424         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58425         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58426         * tests/test-snprintf-posix.h (test_function): Also check the grouping
58427         flag.
58428         * tests/test-sprintf-posix.h (test_function): Likewise.
58429         * tests/test-vasnprintf-posix.c (test_function): Likewise.
58430         * tests/test-vasprintf-posix.c (test_function): Likewise.
58431         * doc/functions/fprintf.texi: Update.
58432         * doc/functions/printf.texi: Update.
58433         * doc/functions/snprintf.texi: Update.
58434         * doc/functions/sprintf.texi: Update.
58435         * doc/functions/vfprintf.texi: Update.
58436         * doc/functions/vprintf.texi: Update.
58437         * doc/functions/vsnprintf.texi: Update.
58438         * doc/functions/vsprintf.texi: Update.
58439
58440 2007-05-01  Bruno Haible  <bruno@clisp.org>
58441
58442         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
58443
58444 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
58445
58446         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
58447         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
58448
58449 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
58450
58451         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
58452         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
58453         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
58454
58455 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
58456
58457         * lib/argp-help.c (struct hol_entry): New member `ord'.
58458         (HOL_ENTRY_PTRCMP): Use ord for comparison
58459         (hol_sort): Initialize ord.
58460
58461 2007-05-01  Bruno Haible  <bruno@clisp.org>
58462
58463         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
58464         Reported by Eric Blake.
58465         * doc/gnulib.texi (Function Substitutes): Update.
58466
58467 2007-05-01  Bruno Haible  <bruno@clisp.org>
58468
58469         * doc/functions.texi: Remove file, now redundant through
58470         doc/functions/*.texi.
58471
58472 2007-05-01  Bruno Haible  <bruno@clisp.org>
58473
58474         * modules/argp (Depends-on): Add sleep.
58475
58476 2007-05-01  Bruno Haible  <bruno@clisp.org>
58477
58478         * modules/sleep-tests: New file.
58479         * tests/test-sleep.c: New file.
58480
58481         * modules/sleep: New file.
58482         * lib/sleep.c: New file.
58483         * m4/sleep.m4: New file.
58484         * lib/unistd_.h (sleep): New declaration.
58485         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
58486         HAVE_SLEEP.
58487         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
58488         * doc/functions/sleep.texi: Document the sleep module.
58489
58490 2007-05-01  Bruno Haible  <bruno@clisp.org>
58491
58492         * lib/sigprocmask.h: Remove file.
58493         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
58494         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
58495         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
58496         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
58497         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
58498         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
58499         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
58500         HAVE_SIGSET_T as a shell variable.
58501         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
58502         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
58503         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
58504         (Depends-on): Add signal. Remove verify.
58505         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
58506         (Include): Mention <signal.h> instead of sigprocmask.h.
58507         * NEWS: Mention the change.
58508         * lib/fatal-signal.c: Don't include sigprocmask.h.
58509
58510 2007-05-01  Bruno Haible  <bruno@clisp.org>
58511
58512         * modules/signal: New file.
58513         * lib/signal_.h: New file.
58514         * m4/signal_h.m4: New file.
58515
58516 2007-05-01  Bruno Haible  <bruno@clisp.org>
58517
58518         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
58519         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
58520         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
58521         HAVE_WCTYPE_CTMP_BUG into wctype.h.
58522
58523 2007-05-01  Bruno Haible  <bruno@clisp.org>
58524
58525         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
58526         configure time.
58527         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
58528         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
58529         * modules/sys_stat (Makefile.am): Substitute their values into
58530         sys/stat.h.
58531
58532 2007-05-01  Bruno Haible  <bruno@clisp.org>
58533
58534         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
58535         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
58536         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
58537
58538 2007-05-01  Bruno Haible  <bruno@clisp.org>
58539
58540         * doc/header/assert.texi: Undo last change: don't mention the gnulib
58541         'assert' module here.
58542
58543 2007-05-01  Bruno Haible  <bruno@clisp.org>
58544
58545         * doc/functions/*.texi: New files.
58546         * doc/functions/google-ranking.txt: New file.
58547         * doc/gnulib.texi (Function Substitutes): New chapter.
58548         (ctime, inet_ntoa): Remove sections.
58549         * doc/ctime.texi: Remove file.
58550         * doc/inet_ntoa.texi: Remove file.
58551         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
58552         dependencies.
58553         (%.info): New rule, specifying a --reference-limit.
58554
58555 2007-05-01  Bruno Haible  <bruno@clisp.org>
58556
58557         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
58558
58559 2007-05-01  Bruno Haible  <bruno@clisp.org>
58560
58561         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
58562         the portability of 'mkdir' to mingw systems.
58563
58564 2007-05-01  Bruno Haible  <bruno@clisp.org>
58565
58566         * doc/headers/google-ranking.txt: New file.
58567
58568 2007-04-30  Eric Blake  <ebb9@byu.net>
58569
58570         Prefer fseeko to fseek.
58571         * modules/getpass (Depends-on): Add fseeko.
58572         * lib/getpass.c (getpass): Use fseeko, not fseek.
58573
58574 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
58575
58576         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
58577         assumes the sorting is stable, while most qsort implementations
58578         are not.  Use argument addresses to ensure they never compare as
58579         equal.
58580
58581         * tests/test-argp-2.sh (usage-indent test): Fix output
58582         (func_compare): Restore diff options
58583         * tests/test-argp.c: Restore #include "progname.h"
58584
58585 2007-04-29  Bruno Haible  <bruno@clisp.org>
58586
58587         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
58588         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
58589         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
58590         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58591         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
58592         (configure.ac): Define CHECK_SNPRINTF_POSIX.
58593         (TESTS, check_PROGRAMS): Add test-snprintf.
58594         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
58595         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
58596         (TESTS, check_PROGRAMS): Add test-vsnprintf.
58597         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
58598         assertions that fail on HP-UX, OSF/1, or IRIX.
58599         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
58600
58601 2007-04-29  Bruno Haible  <bruno@clisp.org>
58602
58603         * MODULES.html.sh (posix_functions): Remove 'contents'.
58604
58605 2007-04-29  Karl Berry  <karl@gnu.org>
58606
58607         * config/srclist.txt (gendocs_template_min): new entry.
58608
58609 2007-04-29  Bruno Haible  <bruno@clisp.org>
58610
58611         Work around fpurge bug on BSD systems.
58612         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
58613         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
58614         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
58615         fpurge to rpl_fpurge if the system already has this function.
58616         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
58617         the case where the system already has this function. Correct invariants
58618         on BSD systems.
58619         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
58620         BSD systems.
58621
58622 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
58623
58624         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
58625         proposed by Sven Verdoolaege.
58626
58627         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
58628         options.
58629         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
58630         (usage and help tests): Update
58631
58632 2007-04-29  Bruno Haible  <bruno@clisp.org>
58633
58634         * tests/test-fflush.c (main): Use a file of size 17, not 10.
58635         Print more information in case of failure. Disable a test on BeOS.
58636
58637 2007-04-29  Bruno Haible  <bruno@clisp.org>
58638
58639         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
58640         This helps debugging on systems on which no gdb is available.
58641
58642 2007-04-29  Bruno Haible  <bruno@clisp.org>
58643
58644         * lib/freading.h: Improve comments.
58645         * lib/fwriting.h: Likewise.
58646         * tests/test-freading.c (main): Don't check freading immediately after
58647         repositioning. Needed for glibc.
58648
58649 2007-04-29  Bruno Haible  <bruno@clisp.org>
58650
58651         * lib/freading.c (freading): Trivial simplification.
58652
58653 2007-04-28  Bruno Haible  <bruno@clisp.org>
58654
58655         * tests/test-fwriting.c (main): Also test the interaction between
58656         fflush and fwriting.
58657         * modules/fwriting-tests (Depends-on): Add fflush.
58658
58659         * tests/test-freading.c (main): Also test the interaction between
58660         fflush and freading.
58661         * modules/freading-tests (Depends-on): Add fflush.
58662
58663 2007-04-28  Bruno Haible  <bruno@clisp.org>
58664
58665         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
58666         fseeko and ftello.
58667         Suggested by Eric Blake.
58668
58669 2007-04-28  Jim Meyering  <jim@meyering.net>
58670
58671         Avoid false-negative in gl_STDINT_H's C99 conformance test.
58672         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
58673         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
58674
58675 2007-04-27  Eric Blake  <ebb9@byu.net>
58676
58677         * doc/headers/assert.texi (assert.h): Document assert module use.
58678
58679 2007-04-27  Bruno Haible  <bruno@clisp.org>
58680
58681         * doc/headers/*.texi: New files.
58682         * doc/gnulib.texi (Header File Substitutes): New chapter.
58683         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
58684         dependencies.
58685         (standards.info ,standards.html, standards.dvi): Update dependencies.
58686         (mostlyclean, clean): New targets.
58687
58688 2007-04-27  Bruno Haible  <bruno@clisp.org>
58689
58690         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
58691         * modules/sysexits (Files, Makefile.am): Update.
58692
58693         * lib/sys_socket_.h: Renamed from lib/socket_.h.
58694         * modules/sys_socket (Files, Makefile.am): Update.
58695
58696         * lib/sys_stat_.h: Renamed from lib/stat_.h.
58697         * modules/sys_stat (Files, Makefile.am): Update.
58698
58699 2007-04-27  Eric Blake  <ebb9@byu.net>
58700
58701         * lib/freading.h: Improve comments.
58702         * lib/fwriting.h: Likewise.
58703         * lib/fflush.c: Likewise.
58704
58705         Fix closein for mingw.
58706         * modules/closein-tests: Add tests for closein.
58707         * tests/test-closein.c: New file.
58708         * tests/test-closein.sh: Likewise.
58709         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
58710         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
58711
58712 2007-04-27  Bruno Haible  <bruno@clisp.org>
58713
58714         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
58715         version is < 6.
58716         * lib/math_.h [__DECC]: Likewise.
58717         * lib/stdio_.h [__DECC]: Likewise.
58718         * lib/stdlib_.h [__DECC]: Likewise.
58719         * lib/string_.h [__DECC]: Likewise.
58720         * lib/time_.h [__DECC]: Likewise.
58721         * lib/wchar_.h [__DECC]: Likewise.
58722         * lib/wctype_.h [__DECC]: Likewise.
58723
58724 2007-04-27  Bruno Haible  <bruno@clisp.org>
58725
58726         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
58727
58728 2007-04-27  Bruno Haible  <bruno@clisp.org>
58729
58730         * lib/fflush.c: Add comments.
58731         * modules/fpurge-tests (Depends-on): Add fflush.
58732         * modules/freadable-tests (Depends-on): Likewise.
58733         * modules/fwritable-tests (Depends-on): Likewise.
58734
58735 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
58736
58737         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
58738         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
58739         Report by Bruno Haible <bruno@clisp.org>.
58740
58741 2007-04-26  Eric Blake  <ebb9@byu.net>
58742
58743         Fix fflush on mingw.
58744         * modules/fflush (Depends-on): Add freading.
58745         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
58746         but unread data.
58747
58748 2007-04-26  Eric Blake  <ebb9@byu.net>
58749         and Bruno Haible  <bruno@clisp.org>
58750
58751         Implement freading and fwriting.
58752         * lib/freading.c: New file.
58753         * lib/freading.h: Likewise.
58754         * m4/freading.m4: Likewise.
58755         * modules/freading: Likewise.
58756         * modules/freading-tests: Likewise.
58757         * tests/test-freading.c: Likewise.
58758         * lib/fwriting.c: New file.
58759         * lib/fwriting.h: Likewise.
58760         * m4/fwriting.m4: Likewise.
58761         * modules/fwriting: Likewise.
58762         * modules/fwriting-tests: Likewise.
58763         * tests/test-fwriting.c: Likewise.
58764         * MODULES.html.sh (File stream based Input/Output): Mention them.
58765
58766 2007-04-26  Bruno Haible  <bruno@clisp.org>
58767
58768         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
58769         'long' when we assume it.
58770         Suggested by Eric Blake.
58771
58772 2007-04-26  Bruno Haible  <bruno@clisp.org>
58773
58774         Ensure fseeko, ftello are declared on glibc systems.
58775         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
58776         * modules/fseeko (configure.ac-early): Likewise.
58777         * modules/ftello (configure.ac-early): Likewise.
58778         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
58779         AC_FUNC_FSEEKO for this.
58780         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
58781         (gl_CHECK_FSEEKO): Remove macro.
58782
58783 2007-04-26  Bruno Haible  <bruno@clisp.org>
58784
58785         * tests/test-fflush.c (main): Also check the ftell result after
58786         fflush and fseek/fseeko.
58787         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
58788         file descriptor position cache in the stream.
58789         * lib/fseeko.c (rpl_fseeko): Likewise.
58790
58791 2007-04-26  Bruno Haible  <bruno@clisp.org>
58792
58793         * modules/fflush-tests (Depends-on): Add fseeko.
58794
58795 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
58796             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58797
58798         * lib/argz_.h: ensure error_t definition is obtained in same
58799         mechanism system argz.h would have.
58800         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
58801         argz facilities are known bad.  Err on the side of caution if
58802         cross-compiling.
58803
58804 2007-04-25  Eric Blake  <ebb9@byu.net>
58805
58806         * lib/fpurge.c (includes): Use stdlib.h for free.
58807         * tests/test-fflush.c (main): Also test fflush-fseeko.
58808
58809 2007-04-25  Bruno Haible  <bruno@clisp.org>
58810
58811         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
58812         * lib/fseeko.c: New file.
58813         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
58814         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
58815         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
58816         gl_FUNC_FSEEKO.
58817         (gl_FUNC_FSEEKO): Invoke it.
58818         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
58819         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
58820         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
58821
58822 2007-04-25  Bruno Haible  <bruno@clisp.org>
58823
58824         * modules/fflush (Depends-on): Add ftello.
58825
58826 2007-04-25  Bruno Haible  <bruno@clisp.org>
58827
58828         * modules/ftello-tests: New file.
58829         * tests/test-ftello.c: New file.
58830
58831         * modules/ftello: New file.
58832         * m4/ftello.m4: New file.
58833         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
58834         HAVE_FTELLO.
58835         * lib/stdio_.h (ftello): New declaration.
58836         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
58837         HAVE_FTELLO.
58838
58839 2007-04-25  Bruno Haible  <bruno@clisp.org>
58840
58841         * modules/fseeko-tests: New file.
58842         * tests/test-fseeko.c: New file.
58843
58844         * modules/fseeko: New file.
58845         * m4/fseeko.m4: New file.
58846         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
58847         HAVE_FSEEKO.
58848         * lib/stdio_.h (fseeko): New declaration.
58849         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
58850         HAVE_FSEEKO.
58851
58852 2007-04-25  Bruno Haible  <bruno@clisp.org>
58853
58854         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
58855
58856 2007-04-25  Bruno Haible  <bruno@clisp.org>
58857
58858         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
58859         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
58860         * tests/test-unistd.c: Likewise.
58861         * tests/test-fcntl.c: Likewise.
58862
58863 2007-04-23  Eric Blake  <ebb9@byu.net>
58864
58865         * lib/fflush.c: Fix missing include.
58866         Reported by Bruno Haible.
58867
58868 2007-04-23  Bruno Haible  <bruno@clisp.org>
58869
58870         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
58871         Reported by Eric Blake.
58872
58873 2007-04-23  Bruno Haible  <bruno@clisp.org>
58874
58875         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
58876
58877 2007-04-23  Bruno Haible  <bruno@clisp.org>
58878
58879         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
58880
58881 2007-04-23  Bruno Haible  <bruno@clisp.org>
58882
58883         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
58884         Needed on HP-UX 11.
58885
58886 2007-04-16  Eric Blake  <ebb9@byu.net>
58887
58888         Make fflush rely on fpurge.
58889         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
58890         open coding all variants.
58891         * modules/fflush (Depends-on): Add fpurge and unistd.
58892         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
58893         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
58894
58895         Fix --with-tests compilation on cygwin.
58896         * modules/argmatch-tests (Makefile.am): List gnulib library first
58897         in LDADD.
58898         * modules/argp-tests (Makefile.am): Likewise.
58899         * modules/array-list-tests (Makefile.am): Likewise.
58900         * modules/array-oset-tests (Makefile.am): Likewise.
58901         * modules/avltree-list-tests (Makefile.am): Likewise.
58902         * modules/avltree-oset-tests (Makefile.am): Likewise.
58903         * modules/avltreehash-list-tests (Makefile.am): Likewise.
58904         * modules/carray-list-tests (Makefile.am): Likewise.
58905         * modules/dirname-tests (Makefile.am): Likewise.
58906         * modules/frexp-tests (Makefile.am): Likewise.
58907         * modules/isnanl-tests (Makefile.am): Likewise.
58908         * modules/linked-list-tests (Makefile.am): Likewise.
58909         * modules/linkedhash-list-tests (Makefile.am): Likewise.
58910         * modules/lock-tests (Makefile.am): Likewise.
58911         * modules/rbtree-list-tests (Makefile.am): Likewise.
58912         * modules/rbtree-oset-tests (Makefile.am): Likewise.
58913         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
58914         * modules/tls-tests (Makefile.am): Likewise.
58915         * modules/tsearch-tests (Makefile.am): Likewise.
58916         * modules/xvasprintf-tests (Makefile.am): Likewise.
58917
58918         Fix fpurge for cygwin.
58919         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
58920         value.
58921         * modules/fpurge-tests (Depends-on): Clean up trash.
58922
58923 2007-04-16  Simon Josefsson  <simon@josefsson.org>
58924
58925         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
58926
58927         * m4/autobuild.m4: Re-indent.
58928
58929 2007-04-13  Bruno Haible  <bruno@clisp.org>
58930
58931         * modules/fpurge-tests: New file.
58932         * tests/test-fpurge.c: New file.
58933
58934         * modules/fpurge: New file.
58935         * lib/fpurge.h: New file.
58936         * lib/fpurge.c: New file.
58937         * m4/fpurge.m4: New file.
58938
58939 2007-04-13  Bruno Haible  <bruno@clisp.org>
58940
58941         * modules/fbufmode-tests: New file.
58942         * tests/test-fbufmode.c: New file.
58943
58944         * modules/fbufmode: New file.
58945         * lib/fbufmode.h: New file.
58946         * lib/fbufmode.c: New file.
58947         * m4/fbufmode.m4: New file.
58948
58949 2007-04-13  Bruno Haible  <bruno@clisp.org>
58950
58951         * modules/fwritable-tests: New file.
58952         * tests/test-fwritable.c: New file.
58953
58954         * modules/fwritable: New file.
58955         * lib/fwritable.h: New file.
58956         * lib/fwritable.c: New file.
58957         * m4/fwritable.m4: New file.
58958
58959 2007-04-13  Bruno Haible  <bruno@clisp.org>
58960
58961         * modules/freadable-tests: New file.
58962         * tests/test-freadable.c: New file.
58963
58964         * modules/freadable: New file.
58965         * lib/freadable.h: New file.
58966         * lib/freadable.c: New file.
58967         * m4/freadable.m4: New file.
58968
58969 2007-04-13  Bruno Haible  <bruno@clisp.org>
58970
58971         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
58972         MOSTLYCLEANFILES.
58973
58974 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
58975
58976         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
58977         gzip bootstrap.conf to avoid dragging in i18n machinery.
58978         (gnulib_tool_option): Use it.
58979
58980 2007-04-13  Bruno Haible  <bruno@clisp.org>
58981
58982         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
58983         %F directives.
58984         * tests/test-vasprintf-posix.c (test_function): Likewise.
58985         * tests/test-snprintf-posix.h (test_function): Likewise.
58986         * tests/test-sprintf-posix.h (test_function): Likewise.
58987         * tests/test-fprintf-posix.h (test_function): Likewise.
58988         * tests/test-printf-posix.h (test_function): Likewise.
58989         * tests/test-fprintf-posix.out: Likewise.
58990
58991 2007-04-13  Bruno Haible  <bruno@clisp.org>
58992
58993         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
58994         * modules/tls-tests (configure.ac): Likewise.
58995         Reported by Arto C. Nirkko <anirkko@insel.ch>.
58996
58997 2007-04-13  Bruno Haible  <bruno@clisp.org>
58998
58999         * lib/tls.c (glthread_tls_get): Fix return type.
59000         Patch by Arto C. Nirkko <anirkko@insel.ch>.
59001
59002 2007-04-12  Eric Blake  <ebb9@byu.net>
59003
59004         * modules/gettime (Depends-on): Remove gettime.
59005         Reported by Dmitry V. Levin.
59006
59007 2007-04-12  Bruno Haible  <bruno@clisp.org>
59008
59009         * modules/fflush (Include): Mention <stdio.h>.
59010         * modules/strtoimax (Include): Mention <inttypes.h>.
59011         * modules/strtoumax (Include): Likewise.
59012
59013 2007-04-12  Eric Blake  <ebb9@byu.net>
59014
59015         * .cvsignore: New file.
59016         * .gitignore: Likewise.
59017
59018 2007-04-12  Bruno Haible  <bruno@clisp.org>
59019
59020         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
59021         not before, since $(LDADD) often contains libgnu.a.
59022         * modules/striconv-tests (test_striconv_LDADD): Likewise.
59023         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
59024         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
59025         Needed on Cygwin.
59026
59027 2007-04-12  Eric Blake  <ebb9@byu.net>
59028
59029         Work around glibc's failure to flush stdin on fclose.
59030         * lib/closein.c (close_stdin): Flush stdin before closing.
59031
59032         Work around glibc's failure to reset seekable stdin on exit.
59033         * modules/closein: New module.
59034         * lib/closein.c: New file.
59035         * lib/closein.h: Likewise.
59036         * m4/closein.m4: Likewise.
59037         * MODULES.html.sh (File stream based Input/Output): Document it.
59038
59039 2007-04-12  Simon Josefsson  <simon@josefsson.org>
59040
59041         * gnulib-tool: Rename generated 'autobuild' script to
59042         'do-autobuild' in --create-megatestdir output.
59043
59044         * doc/gnulib.texi (Build robot for gnulib): Fix.
59045
59046 2007-04-12  Simon Josefsson  <simon@josefsson.org>
59047
59048         * modules/sysexits (Depends-on): Add absolute-header.
59049
59050 2007-04-12  Eric Blake  <ebb9@byu.net>
59051
59052         No need to preserve errno on success.
59053         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
59054         Reported by Bruno Haible.
59055
59056 2007-04-12  Simon Josefsson  <simon@josefsson.org>
59057
59058         * MODULES.html.sh (Support for maintaining and releasing
59059         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
59060
59061 2007-04-12  Simon Josefsson  <simon@josefsson.org>
59062
59063         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
59064
59065 2007-04-12  Simon Josefsson  <simon@josefsson.org>
59066
59067         * modules/autobuild: New module.
59068
59069         * m4/autobuild.m4: New file.
59070
59071 2007-04-11  Bruno Haible  <bruno@clisp.org>
59072
59073         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
59074         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
59075         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
59076         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
59077         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59078         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59079         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59080         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59081         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59082         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59083         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
59084         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59085         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59086         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
59087         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59088         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59089         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
59090         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59091         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59092         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
59093         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59094         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59095         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
59096         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59097         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59098         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
59099         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59100         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59101         Reported by Eric Blake.
59102
59103 2007-04-11  Bruno Haible  <bruno@clisp.org>
59104
59105         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
59106
59107 2007-04-10  Bruno Haible  <bruno@clisp.org>
59108
59109         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
59110         for NaN and Infinity. Needed on FreeBSD 6.1.
59111         * tests/test-vasnprintf-posix.c (test_function): Undo last change
59112         regarding results for "%010a" of Infinity and NaN.
59113         * tests/test-vasprintf-posix.c (test_function): Likewise.
59114         * tests/test-snprintf-posix.h (test_function): Likewise.
59115         * tests/test-sprintf-posix.h (test_function): Likewise.
59116         * tests/test-fprintf-posix.h (test_function): Likewise.
59117         * tests/test-printf-posix.h (test_function): Likewise.
59118         * tests/test-fprintf-posix.out: Likewise.
59119
59120 2007-04-10  Bruno Haible  <bruno@clisp.org>
59121
59122         * modules/locale-tests: New file.
59123         * tests/test-locale.c: New file.
59124
59125         * modules/locale: New file.
59126         * lib/locale_.h: New file.
59127         * m4/locale_h.m4: New file.
59128
59129 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
59130             Bruno Haible  <bruno@clisp.org>
59131
59132         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
59133         be determined, test for availability of the copysignf, copysign,
59134         copysignl functions.
59135         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
59136         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
59137         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
59138
59139 2007-04-09  Eric Blake  <ebb9@byu.net>
59140
59141         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
59142         * modules/stdio (Makefile.am): Support fflush.
59143         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
59144         * modules/fflush: New file.
59145         * lib/fflush.c: Likewise.
59146         * m4/fflush.m4: Likewise.
59147         * modules/fflush-tests: New test.
59148         * tests/test-fflush.c: Likewise.
59149         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
59150
59151 2007-04-06  Bruno Haible  <bruno@clisp.org>
59152
59153         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
59154         (VASNPRINTF): Use signbit for faster determination whether to print a
59155         minus sign.
59156         * modules/vasnprintf (Files): Remove lib/float+.h.
59157         * modules/fprintf-posix (Depends-on): Add signbit.
59158         * modules/snprintf-posix (Depends-on): Likewise.
59159         * modules/sprintf-posix (Depends-on): Likewise.
59160         * modules/vasnprintf-posix (Depends-on): Likewise.
59161         * modules/vasprintf-posix (Depends-on): Likewise.
59162         * modules/vfprintf-posix (Depends-on): Likewise.
59163         * modules/vsnprintf-posix (Depends-on): Likewise.
59164         * modules/vsprintf-posix (Depends-on): Likewise.
59165
59166 2007-04-06  Bruno Haible  <bruno@clisp.org>
59167
59168         * tests/test-frexp.c (main): Test also the sign bit of zero results.
59169         * tests/test-frexpl.c (main): Likewise.
59170         * tests/test-ldexpl.c (main): Likewise.
59171         * modules/frexp-tests (Depends-on): Add signbit.
59172         * modules/frexpl-tests (Depdends-on): Likewise.
59173         * modules/ldexpl-tests (Depdends-on): Likewise.
59174
59175 2007-04-06  Bruno Haible  <bruno@clisp.org>
59176
59177         * modules/signbit-tests: New file.
59178         * tests/test-signbit.c: New file.
59179
59180         * modules/signbit: New file.
59181         * lib/signbitf.c: New file.
59182         * lib/signbitd.c: New file.
59183         * lib/signbitl.c: New file.
59184         * m4/signbit.m4: New file.
59185         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
59186         (signbit): New macro.
59187         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
59188         REPLACE_SIGNBIT.
59189         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
59190         REPLACE_FREXPL into math.h.
59191
59192 2007-04-06  Bruno Haible  <bruno@clisp.org>
59193
59194         * modules/isnanf-nolibm-tests: New file.
59195         * tests/test-isnanf.c: New file.
59196
59197         * modules/isnanf-nolibm: New file.
59198         * lib/isnanf.h: New file.
59199         * lib/isnanf.c: New file.
59200         * lib/isnan.c: Consider the USE_FLOAT macro.
59201         * m4/isnanf.m4: New file.
59202
59203 2007-04-06  Bruno Haible  <bruno@clisp.org>
59204
59205         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
59206         (Link): New section.
59207
59208         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
59209
59210 2007-04-06  Bruno Haible  <bruno@clisp.org>
59211
59212         Assume the 'long double' type.
59213         * m4/longdouble.m4: Remove file.
59214         * config/srclist.txt: Don't mention longdouble.m4.
59215         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
59216         * lib/float+.h: Likewise.
59217         * lib/frexp.c: Likewise.
59218         * lib/printf-args.h: Likewise.
59219         * lib/printf-args.c: Likewise.
59220         * lib/printf-frexp.c: Likewise.
59221         * lib/printf-parse.c: Likewise.
59222         * lib/vasnprintf.c: Likewise.
59223         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
59224         * m4/intl.m4: Likewise.
59225         * m4/isnanl.m4: Likewise.
59226         * m4/printf.m4: Likewise.
59227         * m4/printf-frexpl.m4: Likewise.
59228         * m4/vasnprintf.m4: Likewise.
59229         * modules/allocsa (Files): Remove m4/longdouble.m4.
59230         * modules/gettext (Files): Likewise.
59231         * modules/relocatable-prog-wrapper (Files): Likewise.
59232         * modules/vasnprintf (Files): Likewise.
59233         * modules/isnanl (Files): Likewise.
59234         (Include): Simplify.
59235         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
59236         (Include): Simplify.
59237         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
59238         (Include): Simplify.
59239         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
59240         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
59241         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
59242         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
59243         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
59244         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
59245         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
59246         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
59247         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
59248         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
59249         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
59250         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
59251         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
59252         * tests/test-isnanl.c: Likewise.
59253         * tests/test-snprintf-posix.h: Likewise.
59254         * tests/test-sprintf-posix.h: Likewise.
59255         * tests/test-vasnprintf-posix.c: Likewise.
59256         * tests/test-vasnprintf-posix2.c: Likewise.
59257         * tests/test-vasprintf-posix.c: Likewise.
59258
59259 2007-04-06  Bruno Haible  <bruno@clisp.org>
59260
59261         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
59262         * lib/math_.h [__DECC]: Include the overridden include file through
59263         #include_next, outside the double-inclusion guard.
59264         * lib/stdio_.h [__DECC]: Likewise.
59265         * lib/stdlib_.h [__DECC]: Likewise.
59266         * lib/string_.h [__DECC]: Likewise.
59267         * lib/time_.h [__DECC]: Likewise.
59268         * lib/wchar_.h [__DECC]: Likewise.
59269         * lib/wctype_.h [__DECC]: Likewise.
59270         * lib/inttypes_.h [__DECC]: Likewise.
59271         Reported by Albert Chin <china@thewrittenword.com> in
59272         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
59273
59274 2007-04-04  Eric Blake  <ebb9@byu.net>
59275
59276         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
59277         1.5.x.
59278
59279 2007-04-04  Bruno Haible  <bruno@clisp.org>
59280
59281         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
59282         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
59283
59284 2007-04-04  Bruno Haible  <bruno@clisp.org>
59285
59286         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
59287         results for "%010a" of Infinity and NaN.
59288         * tests/test-vasprintf-posix.c (test_function): Likewise.
59289         * tests/test-snprintf-posix.h (test_function): Likewise.
59290         * tests/test-sprintf-posix.h (test_function): Likewise.
59291         * tests/test-fprintf-posix.h (test_function): Remove these tests.
59292         * tests/test-printf-posix.h (test_function): Likewise.
59293         * tests/test-fprintf-posix.out: Update.
59294         Needed for FreeBSD 6.1.
59295
59296 2007-04-04  Bruno Haible  <bruno@clisp.org>
59297
59298         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
59299         directly used by the gnulib modules nor by gnulib-tool.
59300
59301 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
59302
59303         * DEPENDENCIES: Give overall description of version dependency
59304         desirability.  Use more-typical names for apps.
59305         Add shell, coreutils, diffutils, grep, tar, gzip.
59306
59307 2007-04-04  Simon Josefsson  <simon@josefsson.org>
59308
59309         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
59310
59311 2007-04-04  Karl Berry  <karl@gnu.org>
59312
59313         * MODULES.html.sh (func_module): missing '.
59314
59315 2007-04-03  Bruno Haible  <bruno@clisp.org>
59316
59317         * modules/argmatch-tests (Makefile.am): New variable
59318         test_argmatch_LDADD.
59319         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
59320         * modules/array-list-tests (Makefile.am): New variable
59321         test_array_list_LDADD.
59322         * modules/array-oset-tests (Makefile.am): New variable
59323         test_array_oset_LDADD.
59324         * modules/avltree-list-tests (Makefile.am): New variable
59325         test_avltree_list_LDADD.
59326         * modules/avltree-oset-tests (Makefile.am): New variable
59327         test_avltree_oset_LDADD.
59328         * modules/avltreehash-list-tests (Makefile.am): New variable
59329         test_avltreehash_list_LDADD.
59330         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
59331         test_canonicalize_lgpl_LDADD.
59332         * modules/carray-list-tests (Makefile.am): New variable
59333         test_carray_list_LDADD.
59334         * modules/dirname-tests (Makefile.am): New variable
59335         test_dirname_LDADD.
59336         * modules/linked-list-tests (Makefile.am): New variable
59337         test_linked_list_LDADD.
59338         * modules/linkedhash-list-tests (Makefile.am): New variable
59339         test_linkedhash_list_LDADD.
59340         * modules/rbtree-list-tests (Makefile.am): New variable
59341         test_rbtree_list_LDADD.
59342         * modules/rbtree-oset-tests (Makefile.am): New variable
59343         test_rbtree_oset_LDADD.
59344         * modules/rbtreehash-list-tests (Makefile.am): New variable
59345         test_rbtreehash_list_LDADD.
59346         * modules/xvasprintf-tests (Makefile.am): New variable
59347         test_xvasprintf_LDADD.
59348         Reported by Eric Blake.
59349
59350 2007-04-03  Eric Blake  <ebb9@byu.net>
59351
59352         * DEPENDENCIES: Weaken m4 requirements.
59353
59354 2007-04-03  Bruno Haible  <bruno@clisp.org>
59355
59356         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
59357         * modules/isnanl-tests (configure.ac): Likewise.
59358
59359 2007-04-03  Ben Pfaff  <blp@gnu.org>
59360
59361         * modules/iconv_open: Add $(srcdir)/ to source directory
59362         references in Makefile fragments that call gperf, to fix VPATH
59363         builds.
59364
59365 2007-04-03  Bruno Haible  <bruno@clisp.org>
59366
59367         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
59368         * lib/ldexpl.c: Undo last change.
59369
59370 2007-04-03  Bruno Haible  <bruno@clisp.org>
59371
59372         * modules/printf-frexpl (Depends-on): Undo last change.
59373         (Files): Add m4/ldexpl.m4.
59374
59375 2007-04-03  Bruno Haible  <bruno@clisp.org>
59376
59377         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
59378         * modules/isnanl (Link): New section.
59379
59380         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
59381         * modules/frexp (Link): New section.
59382
59383         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
59384         * modules/frexpl (Link): New section.
59385
59386         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
59387         * modules/ldexpl (Link): New section.
59388
59389 2007-04-03  Bruno Haible  <bruno@clisp.org>
59390
59391         * modules/TEMPLATE-EXTENDED: New file.
59392         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
59393
59394 2007-04-03  Bruno Haible  <bruno@clisp.org>
59395
59396         * DEPENDENCIES: New file.
59397         Suggested by Simon Josefsson.
59398
59399 2007-04-03  Bruno Haible  <bruno@clisp.org>
59400
59401         * doc/gnulib.texi: Escape @.
59402
59403 2007-04-03  James Youngman  <jay@gnu.org>
59404         and Paul Eggert  <eggert@cs.ucla.edu>
59405
59406         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
59407         birthtime on all systems that have birthtime, not just those which
59408         use st_birthtimensec rather than st_birthtim.  Putting zero in
59409         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
59410         that the birth time is not available for files on an NFS mount.
59411
59412 2007-04-03  Simon Josefsson  <simon@josefsson.org>
59413
59414         * modules/memxor: Move back from crypto/, suggested by Bruno.
59415         * modules/crypto/hmac-sha1: Fix memxor dependency.
59416
59417         * modules/crypto/gc: Moved from ../.
59418
59419 2007-04-02  Eric Blake  <ebb9@byu.net>
59420
59421         * lib/ldexpl.c (includes): Avoid libm.
59422
59423         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
59424
59425 2007-04-02  Bruno Haible  <bruno@clisp.org>
59426
59427         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
59428         on IRIX.
59429
59430 2007-04-02  Bruno Haible  <bruno@clisp.org>
59431
59432         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
59433         x86 or x86_64 platforms running MacOS X.
59434         Reported by Ryan Schmidt <@ryandesign.com>.
59435
59436 2007-04-02  Bruno Haible  <bruno@clisp.org>
59437
59438         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
59439         i386.
59440
59441 2007-04-01  Simon Josefsson  <simon@josefsson.org>
59442
59443         * modules/crypto/arcfour: Moved from ../.
59444         * modules/crypto/arcfour-tests: Moved from ../.
59445         * modules/crypto/arctwo: Moved from ../.
59446         * modules/crypto/arctwo-tests: Moved from ../.
59447         * modules/crypto/des: Moved from ../.
59448         * modules/crypto/des-tests: Moved from ../.
59449         * modules/crypto/gc-arcfour: Moved from ../.
59450         * modules/crypto/gc-arcfour-tests: Moved from ../.
59451         * modules/crypto/gc-arctwo: Moved from ../.
59452         * modules/crypto/gc-arctwo-tests: Moved from ../.
59453         * modules/crypto/gc-des: Moved from ../.
59454         * modules/crypto/gc-des-tests: Moved from ../.
59455         * modules/crypto/gc-hmac-md5: Moved from ../.
59456         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
59457         * modules/crypto/gc-hmac-sha1: Moved from ../.
59458         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
59459         * modules/crypto/gc-md2: Moved from ../.
59460         * modules/crypto/gc-md2-tests: Moved from ../.
59461         * modules/crypto/gc-md4: Moved from ../.
59462         * modules/crypto/gc-md4-tests: Moved from ../.
59463         * modules/crypto/gc-md5: Moved from ../.
59464         * modules/crypto/gc-md5-tests: Moved from ../.
59465         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
59466         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
59467         * modules/crypto/gc-random: Moved from ../.
59468         * modules/crypto/gc-rijndael: Moved from ../.
59469         * modules/crypto/gc-rijndael-tests: Moved from ../.
59470         * modules/crypto/gc-sha1: Moved from ../.
59471         * modules/crypto/gc-sha1-tests: Moved from ../.
59472         * modules/crypto/gc-tests: Moved from ../.
59473         * modules/crypto/hmac-md5: Moved from ../.
59474         * modules/crypto/hmac-md5-tests: Moved from ../.
59475         * modules/crypto/hmac-sha1: Moved from ../.
59476         * modules/crypto/hmac-sha1-tests: Moved from ../.
59477         * modules/crypto/md2: Moved from ../.
59478         * modules/crypto/md2-tests: Moved from ../.
59479         * modules/crypto/md4: Moved from ../.
59480         * modules/crypto/md4-tests: Moved from ../.
59481         * modules/crypto/md5: Moved from ../.
59482         * modules/crypto/md5-tests: Moved from ../.
59483         * modules/crypto/memxor: Moved from ../.
59484         * modules/crypto/rijndael: Moved from ../.
59485         * modules/crypto/rijndael-tests: Moved from ../.
59486         * modules/crypto/sha1: Moved from ../.
59487
59488 2007-03-30  James Youngman  <jay@gnu.org>
59489
59490         * tests/test-stat-time.c (prepare_test): use chmod() rather than
59491         rename() to change the ctime of a file (because ctime is unaffected
59492         by rename on jfs2 on AIX 5.1).
59493         (main): Start by doing cleanup, in case a previous run failed leaving
59494         test files behind.
59495
59496 2007-03-31  Bruno Haible  <bruno@clisp.org>
59497
59498         Support old proprietary implementations of iconv.
59499         * modules/iconv_open: New file.
59500         * lib/iconv_.h: New file.
59501         * m4/iconv_h.m4: New file.
59502         * lib/iconv_open.c: New file.
59503         * lib/iconv_open-aix.gperf: New file.
59504         * lib/iconv_open-hpux.gperf: New file.
59505         * lib/iconv_open-irix.gperf: New file.
59506         * lib/iconv_open-osf.gperf: New file.
59507         * m4/iconv_open.m4: New file.
59508         * modules/linebreak (Depends-on): Add iconv_open.
59509         * modules/striconv (Depends-on): Likewise.
59510         * modules/striconveh (Depends-on): Likewise.
59511         * modules/unicodeio (Depends-on): Likewise.
59512         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
59513         (iconv_t)(-1).
59514         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
59515         conversion if cd is (iconv_t)(-1).
59516         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
59517         is not possible.
59518
59519 2007-03-31  Bruno Haible  <bruno@clisp.org>
59520
59521         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
59522         work on Solaris either. Protect also second use of "autodetect_jp".
59523
59524 2007-03-31  Bruno Haible  <bruno@clisp.org>
59525
59526         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
59527         the function is not present.
59528
59529 2007-03-31  Bruno Haible  <bruno@clisp.org>
59530
59531         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
59532         the function is not present.
59533
59534 2007-03-31  Bruno Haible  <bruno@clisp.org>
59535
59536         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
59537         a bug in HP-UX iconv_open().
59538
59539 2007-03-31  Bruno Haible  <bruno@clisp.org>
59540
59541         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
59542         (Mathematics <math.h>): New section, add fpieee.
59543         (Input/output <stdio.h>): Add fseterr.
59544         (Mathematics <math.h>): New section, add printf-frexp.
59545         (Container data structures): Add sublist.
59546         (Core language properties): Add fpucw, inline.
59547         (Functions for greatest-width integer types <inttypes.h>): Add
59548         imaxabs, imaxdiv, inttypes.
59549         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
59550         isnanl-nolibm, ldexp.
59551         (Mathematics <math.h>): New section, add printf-frexpl.
59552         (Support for systems lacking POSIX:2001): Add fprintf-posix,
59553         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
59554         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
59555         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
59556         (Unicode string functions): Add unistr/u*-mbtoucr.
59557         (Java): Add javacomp-script, javaexec-script.
59558         (C#): Add csharpcomp-script, csharpexec-script.
59559         (Support for building libraries and executables): Add havelib,
59560         relocatable-*.
59561         (Support for maintaining and releasing projects): Renamed from
59562         'Support for maintaining and release projects'. Add announce-gen.
59563
59564 2007-03-31  Bruno Haible  <bruno@clisp.org>
59565
59566         * README: Talk primarily about git.
59567         (git and CVS): Renamed from CVS.
59568         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
59569         gnulib is available through git.
59570         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
59571
59572 2007-03-30  Bruno Haible  <bruno@clisp.org>
59573
59574         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
59575         * lib/poll_.h: Likewise.
59576         * lib/stat_.h: Likewise.
59577         * lib/sys_time_.h: Likewise.
59578         * lib/sysexit_.h: Likewise.
59579         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
59580         * lib/stdbool_.h: Likewise.
59581         * lib/byteswap_.h: Add double-inclusion guard.
59582
59583 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
59584
59585         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
59586
59587 2007-03-30  Karl Berry  <karl@gnu.org>
59588
59589         * config/srclist-update: double space after USA in the license
59590         substitution, since that's how it's usually (?) written.
59591
59592 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
59593
59594         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
59595         reported by Bruno Haible.
59596
59597 2007-03-29  Bruno Haible  <bruno@clisp.org>
59598
59599         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
59600         a bug in AIX iconv().
59601
59602 2007-03-29  Bruno Haible  <bruno@clisp.org>
59603
59604         * modules/ldexpl-tests: New file.
59605         * tests/test-ldexpl.c: New file.
59606
59607 2007-03-29  Bruno Haible  <bruno@clisp.org>
59608
59609         * lib/ldexpl.c: Include fpucw.h.
59610         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
59611         multiplication.
59612         * modules/ldexpl (Depends-on): Add fpucw.
59613
59614 2007-03-29  Bruno Haible  <bruno@clisp.org>
59615
59616         * modules/ldexpl: New file.
59617         * m4/ldexpl.m4: New file.
59618         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
59619         set.
59620         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
59621         REPLACE_LDEXPL.
59622         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
59623         REPLACE_LDEXPL.
59624         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
59625         gl_FUNC_LDEXPL_WORKS.
59626         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
59627         * modules/mathl (Files): Remove lib/ldexpl.c.
59628         (Depends-on): Add ldexpl.
59629
59630 2007-03-29  Bruno Haible  <bruno@clisp.org>
59631
59632         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
59633
59634 2007-03-29  Bruno Haible  <bruno@clisp.org>
59635
59636         * tests/test-striconveh.c (main): Don't assume that a direct conversion
59637         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
59638         and possibly also HP-UX.
59639         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
59640         work on AIX, IRIX, HP-UX, OSF/1.
59641         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
59642         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
59643         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
59644         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
59645         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
59646         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
59647
59648 2007-03-29  Bruno Haible  <bruno@clisp.org>
59649
59650         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
59651
59652 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
59653
59654         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
59655         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
59656
59657 2007-03-29  Eric Blake  <ebb9@byu.net>
59658
59659         * lib/acl-internal.h: Remove redundant include.
59660         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
59661         Cygwin when a file is locked.
59662
59663 2007-03-29  Bruno Haible  <bruno@clisp.org>
59664
59665         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
59666         file.
59667         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
59668
59669 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
59670
59671         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
59672         try to remove a parent directory if the child couldn't be removed
59673         (except for the first rmdir, which could fail because the child
59674         doesn't exist).  Problem reported by Jeff Blaine in
59675         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
59676
59677 2007-03-28  Bruno Haible  <bruno@clisp.org>
59678
59679         * lib/striconveh.c (utf8conv_carefully): New function.
59680         (mem_cd_iconveh_internal): Invoke it.
59681
59682 2007-03-28  Bruno Haible  <bruno@clisp.org>
59683
59684         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
59685         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
59686         input.
59687         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
59688         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
59689         unistr/u8-uctomb.
59690
59691 2007-03-28  Bruno Haible  <bruno@clisp.org>
59692
59693         * modules/unistr/u8-mbtoucr: New file.
59694         * lib/unistr/u8-mbtoucr.c: New file.
59695         * modules/unistr/u16-mbtoucr: New file.
59696         * lib/unistr/u16-mbtoucr.c: New file.
59697         * modules/unistr/u16-mbtoucr: New file.
59698         * lib/unistr/u16-mbtoucr.c: New file.
59699         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
59700
59701 2007-03-27  Simon Josefsson  <simon@josefsson.org>
59702             Bruno Haible  <bruno@clisp.org>
59703
59704         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
59705         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
59706         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
59707
59708         * m4/stdio_h.m4: Add stubs for vasprintf too.
59709
59710         * modules/stdio: Support vasprintf in sed command.
59711
59712         * modules/vasprintf: Depend on stdio for prototypes.  Remove
59713         vasprintf.h.  Add stdio module indicator.
59714
59715         * lib/stdio_.h: Declare asprintf and vasprintf, based on
59716         vasprintf.h.
59717
59718         * lib/vasprintf.h: File removed.
59719
59720         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
59721         * lib/vasprintf.c: Ditto.
59722         * lib/xvasprintf.c: Ditto.
59723         * tests/test-vasprintf-posix.c: Ditto.
59724         * tests/test-vasprintf.c: Ditto.
59725
59726 2007-03-27  Bruno Haible  <bruno@clisp.org>
59727
59728         Make vasnprintf multithread-safe.
59729         * lib/vasnprintf.c (decimal_point_char): New function.
59730         (VASNPRINTF): Use it.
59731         Suggested by Simon Josefsson.
59732
59733 2007-03-27  Eric Blake  <ebb9@byu.net>
59734
59735         Support sub-second birthtime on cygwin.
59736         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
59737         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
59738         (get_stat_birthtime): Also work with st_birthtim.
59739
59740 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
59741
59742         * lib/stat-time.h (USE_BIRTHTIME): Remove.
59743         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
59744         (get_stat_birthtime_ns): Do not try to use "spare" fields.
59745         (get_stat_birthtime_ns): Simplify compile-time tests.
59746         (get_stat_birthtime): Change the API to look like
59747         get_stat_mtime etc., except return a negative tv_nsec on error.
59748         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
59749         Don't check for "spare" fields.
59750         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
59751         or for struct stat.st_birthtime, as these tests aren't used.
59752         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
59753
59754 2007-03-27  Bruno Haible  <bruno@clisp.org>
59755
59756         * lib/stat-time.h: Include <sys/stat.h>.
59757
59758 2007-03-27  James Youngman  <jay@gnu.org>
59759
59760         * lib/stat-time.h (get_stat_birthtime): New function for
59761           retrieving st_birthtime as provided by UFS2 (hence *BSD).
59762         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
59763           and its variants.
59764         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
59765         * modules/stat-time-test: New file.
59766         * tests/test-stat-time.c: New test, devised by Bruno Haible.
59767
59768 2007-03-26  Bruno Haible  <bruno@clisp.org>
59769
59770         Better support of signalling NaNs.
59771         * lib/atanl.c: Include isnanl.h.
59772         (atanl): Perform test for NaN at the beginning of the function and
59773         through a call to isnanl.
59774         * lib/cosl.c: Include isnanl.h.
59775         (cosl): Perform test for NaN at the beginning of the function and
59776         through a call to isnanl.
59777         * lib/ldexpl.c: Include isnanl.h.
59778         (ldexpl): Perform test for NaN through a call to isnanl.
59779         * lib/logl.c: Include isnanl.h.
59780         (logl): Perform test for NaN at the beginning of the function and
59781         through a call to isnanl.
59782         * lib/sinl.c: Include isnanl.h.
59783         (sinl): Perform test for NaN at the beginning of the function and
59784         through a call to isnanl.
59785         * lib/sqrtl.c: Include isnanl.h.
59786         (sqrtl): Perform test for NaN at the beginning of the function and
59787         through a call to isnanl.
59788         * lib/tanl.c: Include isnanl.h.
59789         (tanl): Perform test for NaN at the beginning of the function and
59790         through a call to isnanl.
59791         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
59792         * modules/mathl (Depends-on): Add isnanl.
59793
59794 2007-03-26  Eric Blake  <ebb9@byu.net>
59795
59796         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
59797         regression in logic sense of previous patch.
59798
59799 2007-03-26  Bruno Haible  <bruno@clisp.org>
59800
59801         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
59802         unportable shell command "if ! ...".
59803         Reported by Ralf Wildenhues.
59804
59805 2007-03-25  Bruno Haible  <bruno@clisp.org>
59806
59807         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
59808         <sysexits.h> file, and only add EX_CONFIG.
59809         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
59810         absolute file name and whether it is sufficient. Substitute also
59811         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
59812         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
59813         ABSOLUTE_SYSEXITS_H into sysexits.h.
59814
59815 2007-03-25  Bruno Haible  <bruno@clisp.org>
59816
59817         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
59818         hints is NULL.
59819
59820 2007-03-25  Bruno Haible  <bruno@clisp.org>
59821
59822         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
59823         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
59824
59825 2007-03-25  Bruno Haible  <bruno@clisp.org>
59826
59827         * lib/vasnprintf.c: Include langinfo.h.
59828         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
59829         multithread-safe.
59830         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
59831         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
59832         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59833         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59834         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59835         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59836         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59837         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
59838         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59839         Reported by Simon Josefsson.
59840
59841 2007-03-25  Bruno Haible  <bruno@clisp.org>
59842
59843         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
59844         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
59845         * modules/vasnprintf (Depends-on): Add stdint.
59846
59847 2007-03-25  Bruno Haible  <bruno@clisp.org>
59848
59849         * modules/fpieee: New file.
59850         * m4/fpieee.m4: New file.
59851         * modules/isnan-nolibm (Depends-on): Add fpieee.
59852         * modules/isnanl-nolibm (Depends-on): Add fpieee.
59853         * modules/isnanl (Depends-on): Add fpieee.
59854
59855 2007-03-25  Bruno Haible  <bruno@clisp.org>
59856
59857         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
59858
59859 2007-03-25  Bruno Haible  <bruno@clisp.org>
59860
59861         Avoid test failures on IRIX 6.5.
59862         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
59863         (main): Use it.
59864         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
59865         macros.
59866         (main): Use them.
59867
59868 2007-03-25  Bruno Haible  <bruno@clisp.org>
59869
59870         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
59871         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
59872         exists but doesn't work.
59873         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
59874         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
59875         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
59876         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
59877         math.h.
59878
59879 2007-03-25  Bruno Haible  <bruno@clisp.org>
59880
59881         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
59882         returns inf. Needed on IRIX 6.5.
59883
59884 2007-03-25  Bruno Haible  <bruno@clisp.org>
59885
59886         * tests/test-frexpl.c: Include isnanl-nolibm.h.
59887         (main): Use isnanl instead of x != x idiom.
59888         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
59889
59890         * tests/test-frexp.c: Include isnan.h.
59891         (main): Use isnan instead of x != x idiom.
59892         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
59893
59894 2007-03-25  Bruno Haible  <bruno@clisp.org>
59895
59896         * tests/test-frexp.c (NaN): New function/macro.
59897         (main): Use it instead of 0.0 / 0.0.
59898         * tests/test-isnan.c (NaN): New function/macro.
59899         (main): Use it instead of 0.0 / 0.0.
59900         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
59901         (test_function): Use it instead of 0.0 / 0.0.
59902         * tests/test-vasprintf-posix.c (NaN): New function/macro.
59903         (test_function): Use it instead of 0.0 / 0.0.
59904         * tests/test-snprintf-posix.h (NaN): New function/macro.
59905         (test_function): Use it instead of 0.0 / 0.0.
59906         * tests/test-sprintf-posix.h (NaN): New function/macro.
59907         (test_function): Use it instead of 0.0 / 0.0.
59908         * tests/test-fprintf-posix.h (NaN): New function/macro.
59909         (test_function): Use it instead of 0.0 / 0.0.
59910         * tests/test-printf-posix.h (NaN): New function/macro.
59911         (test_function): Use it instead of 0.0 / 0.0.
59912
59913         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
59914
59915 2007-03-25  Bruno Haible  <bruno@clisp.org>
59916
59917         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
59918
59919 2007-03-25  Bruno Haible  <bruno@clisp.org>
59920
59921         * lib/regexec.c (merge_state_with_log): Make static.
59922
59923 2007-03-25  Bruno Haible  <bruno@clisp.org>
59924
59925         * lib/trigl.c (kernel_rem_pio2): Make static.
59926
59927 2007-03-25  Bruno Haible  <bruno@clisp.org>
59928
59929         * lib/sincosl.c (sincosl_table): Make static.
59930
59931 2007-03-25  Bruno Haible  <bruno@clisp.org>
59932
59933         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
59934         if the compiler does not support C99.
59935
59936 2007-03-25  Bruno Haible  <bruno@clisp.org>
59937
59938         * modules/time (Makefile.am): Ensure all rule action lines start with a
59939         tab.
59940
59941 2007-03-24  Bruno Haible  <bruno@clisp.org>
59942
59943         * modules/tsearch-tests: New file.
59944         * tests/test-tsearch.sh: New file.
59945         * tests/test-tsearch.c: New file, mostly copied from glibc.
59946
59947         * modules/search-tests: New file.
59948         * tests/test-search.c: New file.
59949
59950         * modules/search: New file.
59951         * lib/search_.h: New file, incorporating lib/tsearch.h.
59952         * m4/search_h.m4: New file.
59953         * lib/tsearch.h: Remove file.
59954         * lib/tsearch.c: Include search.h instead of tsearch.h.
59955         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
59956         HAVE_TSEARCH.
59957         * modules/tsearch (Files): Remove lib/tsearch.h.
59958         (Depends-on): Add search.
59959         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
59960         (Include): Change tsearch.h into search.h.
59961
59962 2007-03-24  Bruno Haible  <bruno@clisp.org>
59963
59964         * modules/fpucw: New file.
59965         * lib/fpucw.h: New file.
59966         * lib/frexp.c: Include fpucw.h.
59967         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
59968         (FUNC): Use them.
59969         * lib/printf-frexp.c: Include fpucw.h.
59970         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
59971         (FUNC): Use them.
59972         * lib/vasnprintf.c: Include fpucw.h.
59973         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
59974         'long double' calculations.
59975         * tests/test-frexpl.c: Include fpucw.h.
59976         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
59977         * tests/test-printf-frexpl.c: Include fpucw.h.
59978         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
59979         * modules/frexpl (Depends-on): Add fpucw.
59980         * modules/printf-frexpl (Depends-on): Likewise.
59981         * modules/fprintf-posix (Depends-on): Likewise.
59982         * modules/snprintf-posix (Depends-on): Likewise.
59983         * modules/sprintf-posix (Depends-on): Likewise.
59984         * modules/vasnprintf-posix (Depends-on): Likewise.
59985         * modules/vasprintf-posix (Depends-on): Likewise.
59986         * modules/vfprintf-posix (Depends-on): Likewise.
59987         * modules/vsnprintf-posix (Depends-on): Likewise.
59988         * modules/vsprintf-posix (Depends-on): Likewise.
59989         * modules/frexpl-tests (Depends-on): Likewise.
59990         * modules/printf-frexpl-tests (Depends-on): Likewise.
59991
59992 2007-03-24  Bruno Haible  <bruno@clisp.org>
59993
59994         * lib/float+.h: New file.
59995         * lib/isnan.c: Include float+.h.
59996         (SIZE): New macro.
59997         (FUNC): Compare only SIZE bytes of the value.
59998         * lib/vasnprintf.c: Include float+.h.
59999         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
60000         SIZEOF_LDBL or SIZEOF_DBL bytes.
60001         * modules/isnan-nolibm (Files): Add lib/float+.h.
60002         * modules/isnanl-nolibm (Files): Add lib/float+.h.
60003         * modules/isnanl (Files): Add lib/float+.h.
60004         * modules/vasnprintf (Files): Add lib/float+.h.
60005
60006 2007-03-24  Bruno Haible  <bruno@clisp.org>
60007
60008         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
60009         include isnanl-nolibm.h.
60010
60011 2007-03-24  Bruno Haible  <bruno@clisp.org>
60012
60013         * tests/test-read-file.c (main): Don't produce spurious output for
60014         expected situations. Make the test fail if it encountered unexpected
60015         results.
60016
60017 2007-03-24  Bruno Haible  <bruno@clisp.org>
60018
60019         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
60020         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
60021
60022 2007-03-24  Bruno Haible  <bruno@clisp.org>
60023
60024         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
60025
60026 2007-03-24  Bruno Haible  <bruno@clisp.org>
60027
60028         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
60029         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
60030
60031         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
60032         * modules/utf8-ucs4: Turn into a symbolic link to module
60033         unistr/u8-mbtouc.
60034
60035         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
60036         utf8-ucs4-unsafe.
60037         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
60038         unistr/u8-mbtouc-unsafe.
60039
60040         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
60041         * modules/utf16-ucs4: Turn into a symbolic link to module
60042         unistr/u16-mbtouc.
60043
60044         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
60045         utf16-ucs4-unsafe.
60046         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
60047         unistr/u16-mbtouc-unsafe.
60048
60049         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
60050         * modules/ucs4-utf8: Turn into a symbolic link to module
60051         unistr/u8-ubtomb.
60052
60053         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
60054         * modules/ucs4-utf16: Turn into a symbolic link to module
60055         unistr/u16-ubtomb.
60056
60057 2007-03-24  Bruno Haible  <bruno@clisp.org>
60058
60059         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
60060         Enable the function only if HAVE_INLINE.
60061         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
60062         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
60063         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
60064         Enable the function only if HAVE_INLINE.
60065         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
60066         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
60067         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
60068         Enable the function only if HAVE_INLINE.
60069         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
60070         Enable the function only if HAVE_INLINE.
60071         * modules/utf8-ucs4: Update.
60072         * modules/utf8-ucs4-unsafe: Update.
60073         * modules/utf16-ucs4: Update.
60074         * modules/utf16-ucs4-unsafe: Update.
60075         * modules/ucs4-utf8: Update.
60076         * modules/ucs4-utf16: Update.
60077
60078 2007-03-24  Bruno Haible  <bruno@clisp.org>
60079
60080         * lib/utf8-ucs4.h: Remove file.
60081         * lib/utf8-ucs4-unsafe.h: Remove file.
60082         * lib/utf16-ucs4.h: Remove file.
60083         * lib/utf16-ucs4-unsafe.h: Remove file.
60084         * lib/ucs4-utf8.h: Remove file.
60085         * lib/ucs4-utf16.h: Remove file.
60086         * lib/unistr.h: Include their previous contents.
60087         * m4/utf-ucs4.m4: Remove file.
60088         * m4/ucs4-utf.m4: Remove file.
60089         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
60090         (Depends-on): Add unistr/base.
60091         (configure.ac): Remove gl_UTF_UCS4.
60092         (Makefile.am): Update.
60093         (Include): Change to unistr.h.
60094         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
60095         (Depends-on): Add unistr/base.
60096         (configure.ac): Remove gl_UTF_UCS4.
60097         (Makefile.am): Update.
60098         (Include): Change to unistr.h.
60099         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
60100         (Depends-on): Add unistr/base.
60101         (configure.ac): Remove gl_UTF_UCS4.
60102         (Makefile.am): Update.
60103         (Include): Change to unistr.h.
60104         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
60105         (Depends-on): Add unistr/base.
60106         (configure.ac): Remove gl_UTF_UCS4.
60107         (Makefile.am): Update.
60108         (Include): Change to unistr.h.
60109         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
60110         (Depends-on): Add unistr/base.
60111         (configure.ac): Remove gl_UCS4_UTF.
60112         (Makefile.am): Update.
60113         (Include): Change to unistr.h.
60114         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
60115         (Depends-on): Add unistr/base.
60116         (configure.ac): Remove gl_UCS4_UTF.
60117         (Makefile.am): Update.
60118         (Include): Change to unistr.h.
60119         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
60120         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
60121         utf8-ucs4-unsafe.h.
60122         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
60123         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
60124         utf16-ucs4-unsafe.h.
60125         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
60126         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
60127         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
60128         * lib/unistr/u8-strchr.c: Likewise.
60129         * lib/unistr/u8-strrchr.c: Likewise.
60130         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
60131         * lib/unistr/u16-strchr.c: Likewise.
60132         * lib/unistr/u16-strrchr.c: Likewise.
60133         * lib/striconveh.c: Update.
60134         * lib/linebreak.c: Update.
60135
60136 2007-03-24  Bruno Haible  <bruno@clisp.org>
60137
60138         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
60139         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
60140
60141 2007-03-22  Bruno Haible  <bruno@clisp.org>
60142
60143         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
60144
60145 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
60146
60147         * MODULES.html.sh (File system functions): New module write-any-file.
60148         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
60149         * m4/write-any-file.m4: New files.
60150
60151 2007-03-23  Eric Blake  <ebb9@byu.net>
60152
60153         * gnulib-tool: Rearrange space-tab sequences, since some editors
60154         like to eat them.
60155
60156 2007-03-23  Eric Blake  <ebb9@byu.net>
60157
60158         * lib/version-etc.c (version_etc_va): Update license wording to
60159         be more concise.  Recommended by Richard Stallman.
60160
60161 2007-03-22  Bruno Haible  <bruno@clisp.org>
60162
60163         * lib/poll.c (MSG_PEEK): New fallback definition.
60164
60165 2007-03-22  Bruno Haible  <bruno@clisp.org>
60166
60167         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
60168         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
60169         (main): Update.
60170         Fixes a compilation error on BeOS.
60171
60172 2007-03-22  Bruno Haible  <bruno@clisp.org>
60173
60174         * modules/frexpl-tests: New file.
60175         * tests/test-frexpl.c: New file.
60176
60177         * modules/frexpl: New file.
60178         * m4/frexpl.m4: New file.
60179         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
60180         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
60181         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
60182         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
60183         (Depends-on): Add frexpl. Remove isnanl-nolibm.
60184         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
60185
60186 2007-03-22  Bruno Haible  <bruno@clisp.org>
60187
60188         * lib/frexpl.c: Share code with lib/frexp.c.
60189         * modules/mathl (Files): Add lib/frexp.c.
60190         (Depends-on): Add isnanl-nolibm.
60191
60192 2007-03-22  Bruno Haible  <bruno@clisp.org>
60193
60194         * modules/printf-frexp (Files): Add m4/frexp.m4.
60195         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
60196         only if the found frexp function actually works.
60197
60198 2007-03-22  Bruno Haible  <bruno@clisp.org>
60199
60200         * lib/frexp.c: Remove older implementation that uses divisions.
60201
60202 2007-03-21  Bruno Haible  <bruno@clisp.org>
60203
60204         * modules/frexp-tests: New file.
60205         * tests/test-frexp.c: New file.
60206
60207         * modules/frexp: New file.
60208         * lib/frexp.c: New file.
60209         * m4/frexp.m4: New file.
60210         * lib/math_.h (frexp): New declaration.
60211         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
60212         REPLACE_FREXP.
60213         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
60214
60215 2007-03-21  Bruno Haible  <bruno@clisp.org>
60216
60217         * modules/isnanl-tests: New file.
60218         * tests/test-isnanl.c: New file.
60219
60220         * modules/isnanl: New file.
60221         * lib/isnanl.h: New file.
60222         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
60223         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
60224         gl_FUNC_ISNANL_WORKS.
60225         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
60226         New macros.
60227
60228 2007-03-21  Bruno Haible  <bruno@clisp.org>
60229
60230         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
60231         lib/isnanl.h.
60232         (Include): Update.
60233         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
60234         * lib/vasnprintf.c: Update.
60235         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
60236         tests/test-isnanl.h, remove tests/test-isnanl.c.
60237         (Makefile.am): Update.
60238         * tests/test-isnanl-nolibm.c: New file.
60239         * tests/test-isnanl.h: New file.
60240         * tests/test-isnanl.c: Remove file.
60241
60242 2007-03-21  Jim Meyering  <jim@meyering.net>
60243
60244         When trying to open ".", treat ESTALE like EACCES.
60245         * lib/savewd.c (savewd_save): Resort to forking not just upon
60246         failure with EACCES, but also when errno is ESTALE.
60247
60248 2007-03-20  Bruno Haible  <bruno@clisp.org>
60249
60250         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
60251         Needed on AIX 5.1. Reported by Matthew Woehlke.
60252
60253 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
60254
60255         Suggestions by Bruno Haible:
60256         * lib/acl-internal.h: Include "gettext.h" rather than rolling
60257         our own.
60258         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
60259         * modules/acl (Depends-on): Add gettext.
60260
60261 2007-03-19  Bruno Haible  <bruno@clisp.org>
60262
60263         * modules/iconvme: Remove file.
60264         * lib/iconvme.h: Remove file.
60265         * lib/iconvme.c: Remove file.
60266         * m4/iconvme.m4: Remove file.
60267
60268 2007-03-19  Bruno Haible  <bruno@clisp.org>
60269
60270         * doc/relocatable-maint.texi: Break long shell script line.
60271         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
60272
60273 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
60274
60275         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
60276         handle file_has_acl.
60277         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
60278         * lib/acl.c: Move header inclusions and related macro defns into
60279         lib/acl-internal.h.
60280         (S_ISLNK): Remove defn, since that's now done for us.
60281         (file_has_acl): Move to lib/file-has-acl.c.
60282         Call acl_trivial if available.  This is the crucial part of the fix.
60283         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
60284         shared within the library.  Rewrite a bit, partly to make it compatible
60285         with the GNU coding style.
60286         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
60287         Remove unnecessary double-quotes.
60288         Don't test for acl_to_text; the build will catch that.
60289         Replace acl_entries if it doesn't exist and it is needed.
60290         Check for -lsec and acl_trivial (as used on Solaris 10).
60291         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
60292         lib/file-has-acl.c.
60293         (Depends-on): Add sys_stat, for S_ISLNK.
60294
60295 2007-03-19  Ben Pfaff  <blp@gnu.org>
60296
60297         * doc/gnulib.texi: Fix typos.
60298         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
60299
60300 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
60301
60302         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
60303         If size is zero here, buf must be zero.
60304
60305 2007-03-19  Simon Josefsson  <simon@josefsson.org>
60306
60307         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
60308         <bruno@clisp.org>.
60309
60310 2007-03-18  Bruno Haible  <bruno@clisp.org>
60311
60312         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
60313         Suggested by Eric Blake.
60314
60315 2007-03-18  Ben Pfaff  <blp@gnu.org>
60316
60317         * doc/relocatable.texi: Recommend using as prefix a directory
60318         that does not exist and will never be created.  Based on
60319         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
60320         and others.
60321
60322 2007-03-17  Bruno Haible  <bruno@clisp.org>
60323
60324         * lib/fchownat.c: Include lchown.h.
60325
60326 2007-03-17  Bruno Haible  <bruno@clisp.org>
60327
60328         Fix endless loop when the given allocated size was > INT_MAX.
60329         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
60330         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
60331         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
60332         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
60333         * lib/sprintf.c (sprintf): Likewise.
60334
60335 2007-03-17  Bruno Haible  <bruno@clisp.org>
60336
60337         * tests/test-argp-2.sh (func_compare): Output a context diff.
60338
60339 2007-03-17  Bruno Haible  <bruno@clisp.org>
60340
60341         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
60342         locale's decimal-point character.
60343
60344 2007-03-17  Bruno Haible  <bruno@clisp.org>
60345
60346         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
60347         before comparing it. Needed because on some platforms (e.g. x86) a
60348         'long double' occupies less bytes than sizeof (long double).
60349
60350 2007-03-17  Bruno Haible  <bruno@clisp.org>
60351
60352         * tests/test-crc.c (main): Make printf statements 64-bit clean.
60353         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
60354         * tests/test-getaddrinfo.c (simple): Likewise.
60355         * tests/test-read-file.c (main): Likewise.
60356
60357 2007-03-17  Bruno Haible  <bruno@clisp.org>
60358
60359         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
60360
60361 2007-03-17  Bruno Haible  <bruno@clisp.org>
60362
60363         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
60364         unused variable.
60365
60366 2007-03-17  Bruno Haible  <bruno@clisp.org>
60367
60368         * tests/test-c-strcasecmp.c: Include c-strcase.h.
60369         * tests/test-c-strncasecmp.c: Likewise.
60370
60371 2007-03-17  Bruno Haible  <bruno@clisp.org>
60372
60373         * modules/stdlib (Depends-on): Add unistd.
60374         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
60375         Needed for MacOS X 10.3.
60376
60377 2007-03-17  Bruno Haible  <bruno@clisp.org>
60378
60379         * lib/unistr/u-strdup.h: Include <stdlib.h>.
60380
60381 2007-03-17  Bruno Haible  <bruno@clisp.org>
60382
60383         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
60384
60385 2007-03-17  Bruno Haible  <bruno@clisp.org>
60386
60387         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
60388         to reflect files copied from gnulib (with or without modifications).
60389         Suggested by Jim Meyering.
60390
60391 2007-03-17  Eric Blake  <ebb9@byu.net>
60392
60393         * NEWS: Document stdlib change from 2007-02-18.
60394
60395 2007-03-17  Jim Meyering  <jim@meyering.net>
60396
60397         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
60398         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
60399         someone uses a name containing shell meta-characters.
60400         Reported by Alfred M. Szmidt.
60401
60402         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
60403
60404 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
60405
60406         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
60407         and copy gettext configuration files only if configure.ac contains
60408         a use of AM_GNU_GETTEXT_VERSION.
60409
60410 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
60411
60412         * build-aux/bootstrap (gnulib_name): New variable.
60413         (gnulib_tool_options): Use it.
60414
60415 2007-03-13  Simon Josefsson  <simon@josefsson.org>
60416
60417         * tests/test-des.c: Use new namespace.
60418
60419 2007-03-15  Bruno Haible  <bruno@clisp.org>
60420
60421         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
60422         Reported by James Youngman <jay@gnu.org>.
60423
60424 2007-03-15  Bruno Haible  <bruno@clisp.org>
60425
60426         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
60427         declared prototype. Needed with cc on OSF/1 5.1.
60428
60429 2007-03-15  Bruno Haible  <bruno@clisp.org>
60430
60431         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
60432         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
60433         (struct gl_list_implementation): Add dispose_fn argument to the
60434         'create_empty', 'create' methods.
60435         (struct gl_list_impl_base): Add field 'dispose_fn'.
60436         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
60437         argument.
60438         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
60439         dispose_fn argument.
60440         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
60441         dispose_fn on the dropped values.
60442         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
60443         dispose_fn argument.
60444         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
60445         dropped values.
60446         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
60447         (gl_tree_remove_node): Call dispose_fn on the dropped value.
60448         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
60449         (gl_tree_remove_node): Call dispose_fn on the dropped value.
60450         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
60451         argument.
60452         (gl_tree_list_free): Call dispose_fn on the dropped values.
60453         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
60454         the dropped values.
60455         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
60456         Add dispose_fn argument.
60457         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
60458         Call dispose_fn on the dropped values.
60459         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
60460         Add dispose_fn argument.
60461         (gl_sublist_create): Initialize the 'dispose_fn' field.
60462         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
60463         * tests/test-array_list.c (main): Update.
60464         * tests/test-carray_list.c (main): Update.
60465         * tests/test-avltree_list.c (main): Update.
60466         * tests/test-rbtree_list.c (main): Update.
60467         * tests/test-avltreehash_list.c (main): Update.
60468         * tests/test-rbtreehash_list.c (main): Update.
60469         * tests/test-linked_list.c (main): Update.
60470         * tests/test-linkedhash_list.c (main): Update.
60471         * tests/test-array_oset.c (main): Update.
60472
60473 2007-03-15  Bruno Haible  <bruno@clisp.org>
60474
60475         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
60476         (gl_oset_create_empty): Add dispose_fn argument.
60477         (struct gl_oset_implementation): Add dispose_fn argument to
60478         'create_empty' method.
60479         (struct gl_oset_impl_base): Add dispose_fn field.
60480         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
60481         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
60482         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
60483         values.
60484         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
60485         (gl_tree_oset_free): Call dispose_fn on the dropped values.
60486         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
60487         dropped value.
60488         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
60489         dropped value.
60490         * tests/test-array_oset.c (main): Update.
60491         * tests/test-avltree_oset.c (main): Update.
60492         * tests/test-rbtree_oset.c (main): Update.
60493         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
60494
60495 2007-03-13  Bruno Haible  <bruno@clisp.org>
60496
60497         * tests/test-stdbool.c (i): Update after last patch.
60498
60499 2007-03-12  Bruno Haible  <bruno@clisp.org>
60500
60501         * lib/quotearg.c: Include <wctype.h> early, before the definition of
60502         the iswprint macro. Needed on Solaris 2.5.1.
60503
60504 2007-03-12  Bruno Haible  <bruno@clisp.org>
60505
60506         * tests/test-printf-frexp.c (main): Declare x as volatile.
60507
60508 2007-03-12  Simon Josefsson  <simon@josefsson.org>
60509
60510         * doc/gnulib.texi (Build robot for gnulib): New section.
60511
60512 2007-03-12  Jim Meyering  <jim@meyering.net>
60513
60514         * build-aux/bootstrap: New file.
60515         * build-aux/bootstrap.conf: New file, from coreutils.
60516
60517 2007-03-11  Bruno Haible  <bruno@clisp.org>
60518
60519         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
60520
60521 2007-03-12  Simon Josefsson  <simon@josefsson.org>
60522
60523         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
60524         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
60525         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
60526
60527 2007-03-11  Bruno Haible  <bruno@clisp.org>
60528
60529         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
60530         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
60531
60532 2007-03-11  Bruno Haible  <bruno@clisp.org>
60533
60534         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
60535         formula. Needed for SunPRO C 5.0.
60536
60537 2007-03-11  Bruno Haible  <bruno@clisp.org>
60538
60539         * modules/long-options (Depends-on): Add getopt.
60540
60541 2007-03-11  Bruno Haible  <bruno@clisp.org>
60542
60543         * modules/modechange (Depends-on): Add stdbool.
60544
60545 2007-03-11  Bruno Haible  <bruno@clisp.org>
60546
60547         * modules/i-ring (Depends-on): Add stdbool.
60548
60549 2007-03-11  Bruno Haible  <bruno@clisp.org>
60550
60551         * modules/gc-des (Depends-on): Add stdbool.
60552
60553 2007-03-11  Bruno Haible  <bruno@clisp.org>
60554
60555         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
60556
60557 2007-03-11  Bruno Haible  <bruno@clisp.org>
60558
60559         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
60560
60561 2007-03-11  Bruno Haible  <bruno@clisp.org>
60562
60563         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
60564
60565 2007-03-11  Bruno Haible  <bruno@clisp.org>
60566
60567         * lib/vasnprintf.c (sprintf): Undefine.
60568
60569 2007-03-11  Bruno Haible  <bruno@clisp.org>
60570
60571         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
60572         initializers in SunPRO C and Compaq C compilers.
60573
60574 2007-03-11  Bruno Haible  <bruno@clisp.org>
60575
60576         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
60577         decrementing code ANSI C compliant.
60578
60579 2007-03-11  Bruno Haible  <bruno@clisp.org>
60580
60581         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
60582         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
60583
60584 2007-03-11  Bruno Haible  <bruno@clisp.org>
60585
60586         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
60587         <stdbool.h> substitute doesn't pass.
60588
60589 2007-03-11  Bruno Haible  <bruno@clisp.org>
60590
60591         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
60592
60593 2007-03-11  Bruno Haible  <bruno@clisp.org>
60594
60595         * gnulib-tool (func_create_megatestdir): Create also an autobuild
60596         script, for submission to autobuild.josefsson.org.
60597
60598 2007-03-10  Bruno Haible  <bruno@clisp.org>
60599
60600         * modules/canonicalize-lgpl-tests: New file.
60601         * tests/test-canonicalize-lgpl.sh: New file.
60602         * tests/test-canonicalize-lgpl.c: New file.
60603
60604         * modules/c-strcase-tests: New file.
60605         * tests/test-c-strcase.sh: New file.
60606         * tests/test-c-strcasecmp.c: New file.
60607         * tests/test-c-strncasecmp.c: New file.
60608
60609         * modules/atexit-tests: New file.
60610         * tests/test-atexit.sh: New file.
60611         * tests/test-atexit.c: New file.
60612
60613 2007-03-10  Bruno Haible  <bruno@clisp.org>
60614
60615         * tests/test-binary-io.sh: Use temporary filenames that are not so
60616         likely to clash with those of other tests (in a parallel make).
60617         * tests/test-binary-io.c: Likewise.
60618
60619 2007-03-10  Bruno Haible  <bruno@clisp.org>
60620
60621         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
60622         fallback; use #error instead.
60623         Suggested by Simon Josefsson.
60624
60625 2007-03-10  Bruno Haible  <bruno@clisp.org>
60626
60627         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
60628         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
60629         first and the last.
60630
60631 2007-03-10  Bruno Haible  <bruno@clisp.org>
60632
60633         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
60634
60635 2007-03-10  Bruno Haible  <bruno@clisp.org>
60636
60637         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
60638         "make distcheck".
60639         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
60640         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
60641         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
60642
60643 2007-03-10  Bruno Haible  <bruno@clisp.org>
60644
60645         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
60646         variable.
60647         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
60648         variable.
60649
60650 2007-03-09  Eric Blake  <ebb9@byu.net>
60651         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
60652
60653         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
60654         types are not being provided by gnulib.
60655         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
60656         types are supported.
60657
60658 2007-03-10  Bruno Haible  <bruno@clisp.org>
60659
60660         * lib/stdio_.h (__attribute__): New macro.
60661         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
60662         vsprintf): Specify __attribute__ __format__ for GCC.
60663         Suggested by Eric Blake.
60664
60665 2007-03-09  Bruno Haible  <bruno@clisp.org>
60666
60667         * modules/printf-posix-tests: New file.
60668         * tests/test-printf-posix.sh: New file.
60669         * tests/test-printf-posix.c: New file.
60670
60671         * modules/printf-posix: New file.
60672         * lib/printf.c: New file.
60673         * m4/printf-posix-rpl.m4: New file.
60674         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
60675         REPLACE_PRINTF.
60676         * lib/stdio_.h (printf): New declaration.
60677         (format, __format__, ____printf____, ____scanf____, ____strftime____,
60678         ____strfmon____): New macros.
60679         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
60680         REPLACE_PRINTF.
60681
60682 2007-03-09  Bruno Haible  <bruno@clisp.org>
60683
60684         * tests/test-vasnprintf-posix2.sh: New file.
60685         * tests/test-vasnprintf-posix2.c: New file.
60686         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
60687         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
60688         (Makefile.am): Activate test-vasnprintf-posix2.sh.
60689
60690         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
60691         a locale dependent decimal point, rather than always '.'.
60692
60693 2007-03-09  Eric Blake  <ebb9@byu.net>
60694
60695         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
60696         spite of platforms like Tandem/NSK that define it to -1.
60697
60698 2007-03-08  Bruno Haible  <bruno@clisp.org>
60699
60700         * modules/vprintf-posix-tests: New file.
60701         * tests/test-vprintf-posix.sh: New file.
60702         * tests/test-vprintf-posix.c: New file.
60703         * tests/test-printf-posix.h: New file.
60704
60705         * modules/vprintf-posix: New file.
60706         * lib/vprintf.c: New file.
60707         * m4/vprintf-posix.m4: New file.
60708         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
60709         REPLACE_VPRINTF.
60710         * lib/stdio_.h (vprintf): New declaration.
60711         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
60712         REPLACE_VPRINTF.
60713
60714 2007-03-08  Bruno Haible  <bruno@clisp.org>
60715
60716         * modules/fprintf-posix-tests: New file.
60717         * tests/test-fprintf-posix.sh: New file.
60718         * tests/test-fprintf-posix.c: New file.
60719
60720         * modules/fprintf-posix: New file.
60721         * lib/fprintf.c: New file.
60722         * m4/fprintf-posix.m4: New file.
60723         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
60724         REPLACE_FPRINTF.
60725         * lib/stdio_.h (fprintf): New declaration.
60726         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
60727         REPLACE_FPRINTF.
60728
60729 2007-03-08  Bruno Haible  <bruno@clisp.org>
60730
60731         * modules/vfprintf-posix-tests: New file.
60732         * tests/test-vfprintf-posix.sh: New file.
60733         * tests/test-vfprintf-posix.c: New file.
60734         * tests/test-fprintf-posix.h: New file.
60735         * tests/test-fprintf-posix.out: New file.
60736
60737         * modules/vfprintf-posix: New file.
60738         * lib/vfprintf.c: New file.
60739         * m4/vfprintf-posix.m4: New file.
60740         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
60741         REPLACE_VFPRINTF.
60742         * lib/stdio_.h (vfprintf): New declaration.
60743         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
60744         REPLACE_VFPRINTF.
60745
60746 2007-03-08  Bruno Haible  <bruno@clisp.org>
60747
60748         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
60749
60750 2007-03-08  Bruno Haible  <bruno@clisp.org>
60751
60752         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
60753         instead of 'expr' invocations.
60754         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60755         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60756         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60757         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60758         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60759         Suggested by Paul Eggert.
60760
60761 2007-03-08  Bruno Haible  <bruno@clisp.org>
60762
60763         * modules/fseterr-tests: New file.
60764         * tests/test-fseterr.c: New file.
60765
60766         * modules/fseterr: New file.
60767         * lib/fseterr.h: New file.
60768         * lib/fseterr.c: New file.
60769
60770 2007-03-08  Bruno Haible  <bruno@clisp.org>
60771
60772         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
60773         * lib/getopt_.h: Likewise.
60774         * lib/mbswidth.h: Likewise.
60775         * lib/setenv.h: Likewise.
60776         * lib/vasnprintf.h: Likewise.
60777         * lib/vasprintf.h: Likewise.
60778         * lib/verror.h: Likewise.
60779         * lib/xsetenv.h: Likewise.
60780         * lib/xvasprintf.h: Likewise.
60781
60782 2007-03-08  Jim Meyering  <jim@meyering.net>
60783
60784         * users.txt: Add parted.
60785
60786         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
60787
60788 2007-03-07  Bruno Haible  <bruno@clisp.org>
60789
60790         * m4/printf.m4: Make the shell script snippets copy&pastable.
60791
60792 2007-03-02  Bruno Haible  <bruno@clisp.org>
60793
60794         * lib/netinet_in_.h: New file.
60795         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
60796         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
60797         * modules/netinet_in (Files): Add lib/netinet_in_.h.
60798         (Depends-on): Add absolute-header.
60799         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
60800         into netinet/in.h.
60801
60802 2007-03-03  Bruno Haible  <bruno@clisp.org>
60803
60804         * lib/sys_select_.h: New file.
60805         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
60806         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
60807         * modules/sys_select (Files): Add lib/sys_select_.h.
60808         (Depends-on): Add absolute-header.
60809         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
60810         into sys/select.h.
60811
60812 2007-03-02  Bruno Haible  <bruno@clisp.org>
60813
60814         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
60815         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
60816         values.
60817         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
60818         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
60819         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
60820         * modules/sys_socket (Depends-on): Add absolute-header.
60821         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
60822         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
60823         (Include): Remove requirement of inclusion of <sys/types.h>.
60824
60825 2007-03-02  Bruno Haible  <bruno@clisp.org>
60826
60827         * lib/byteswap_.h (bswap_32): Fix formula.
60828
60829 2007-03-06  Bruno Haible  <bruno@clisp.org>
60830
60831         * modules/sprintf-posix-tests: New file.
60832         * tests/test-sprintf-posix.c: New file.
60833
60834         * modules/sprintf-posix: New file.
60835         * lib/sprintf.c: New file.
60836         * m4/sprintf-posix.m4: New file.
60837         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
60838         REPLACE_SPRINTF.
60839         * lib/stdio_.h (sprintf): New declaration.
60840         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
60841         REPLACE_SPRINTF.
60842
60843 2007-03-06  Bruno Haible  <bruno@clisp.org>
60844
60845         * modules/vsprintf-posix-tests: New file.
60846         * tests/test-vsprintf-posix.c: New file.
60847         * tests/test-sprintf-posix.h: New file.
60848
60849         * modules/vsprintf-posix: New file.
60850         * lib/vsprintf.c: New file.
60851         * m4/vsprintf-posix.m4: New file.
60852         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
60853         REPLACE_VSPRINTF.
60854         * lib/stdio_.h (vsprintf): New declaration.
60855         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
60856         REPLACE_VSPRINTF.
60857
60858 2007-03-06  Bruno Haible  <bruno@clisp.org>
60859
60860         * modules/vsnprintf (Depend-on): Remove minmax.
60861
60862 2007-03-06  Bruno Haible  <bruno@clisp.org>
60863
60864         * modules/snprintf-posix-tests: New file.
60865         * tests/test-snprintf-posix.c: New file.
60866
60867         * modules/snprintf-posix: New file.
60868         * m4/snprintf-posix.m4: New file.
60869         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
60870         gl_FUNC_SNPRINTF.
60871         (gl_FUNC_SNPRINTF): Invoke it.
60872         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
60873         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
60874         is set.
60875         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
60876
60877 2007-03-06  Bruno Haible  <bruno@clisp.org>
60878
60879         * modules/vsnprintf-posix-tests: New file.
60880         * tests/test-vsnprintf-posix.c: New file.
60881         * tests/test-snprintf-posix.h: New file.
60882
60883         * modules/vsnprintf-posix: New file.
60884         * m4/vsnprintf-posix.m4: New file.
60885         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
60886         gl_FUNC_VSNPRINTF.
60887         (gl_FUNC_VSNPRINTF): Invoke it.
60888         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
60889         * lib/stdio_.h (vsnprintf): Define as a replacement if
60890         REPLACE_VSNPRINTF is set.
60891         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
60892
60893 2007-03-06  Bruno Haible  <bruno@clisp.org>
60894
60895         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
60896         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
60897
60898 2007-03-06  Bruno Haible  <bruno@clisp.org>
60899
60900         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
60901         (asinl): Declare also if HAVE_DECL_ASINL is set.
60902         (atanl): Declare also if HAVE_DECL_ATANL is set.
60903         (ceill): Declare also if HAVE_DECL_CEILL is set.
60904         (cosl): Declare also if HAVE_DECL_COSL is set.
60905         (expl): Declare also if HAVE_DECL_EXPL is set.
60906         (floorl): Declare also if HAVE_DECL_FLOORL is set.
60907         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
60908         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
60909         (logl): Declare also if HAVE_DECL_LOGL is set.
60910         (sinl): Declare also if HAVE_DECL_SINL is set.
60911         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
60912         (tanl): Declare also if HAVE_DECL_TANL is set.
60913         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
60914         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
60915         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
60916         declaration of frexpl, ldexpl.
60917         * modules/printf-frexpl (Depends-on): Add math.
60918         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
60919
60920 2007-03-05  Bruno Haible  <bruno@clisp.org>
60921
60922         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
60923         frexpl and ldexpl are declared.
60924         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
60925
60926 2007-03-05  Bruno Haible  <bruno@clisp.org>
60927
60928         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
60929         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
60930
60931 2007-03-05  Bruno Haible  <bruno@clisp.org>
60932
60933         * lib/stdio_.h: Include <stddef.h>.
60934
60935 2007-03-05  Bruno Haible  <bruno@clisp.org>
60936
60937         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
60938
60939 2007-03-05  Bruno Haible  <bruno@clisp.org>
60940
60941         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
60942         NetBSD 4, from Ralf Wildenhues.
60943
60944 2007-03-04  Bruno Haible  <bruno@clisp.org>
60945
60946         * lib/vasprintf.h: Update #if logic for the case when the functions
60947         exist but are overridden.
60948
60949 2007-03-04  Bruno Haible  <bruno@clisp.org>
60950
60951         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
60952         implementations: glibc-2.4 and MacOS X 10.3.
60953         * tests/test-vasnprintf-posix.c (test_function): Test also the case
60954         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
60955         * tests/test-vasprintf-posix.c (test_function): Likewise.
60956
60957 2007-03-04  Bruno Haible  <bruno@clisp.org>
60958
60959         * modules/vasprintf-posix-tests: New file.
60960         * tests/test-vasprintf-posix.c: New file.
60961
60962         * modules/vasprintf-posix: New file.
60963         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
60964         defined.
60965         * m4/vasprintf-posix.m4: New file.
60966         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
60967         gl_FUNC_VASPRINTF.
60968         (gl_FUNC_VASPRINTF): Invoke it.
60969         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
60970         here.
60971         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
60972
60973 2007-03-04  Bruno Haible  <bruno@clisp.org>
60974
60975         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
60976         REPLACE_GETTIMEOFDAY.
60977         * modules/sys_time (Makefile.am): Likewise.
60978         * m4/sys_time_h.m4: Likewise.
60979         * m4/gettimeofday.m4: Likewise.
60980
60981 2007-03-04  Bruno Haible  <bruno@clisp.org>
60982
60983         * modules/vasnprintf-posix-tests: New file.
60984         * tests/test-vasnprintf-posix.c: New file.
60985
60986         * modules/vasnprintf-posix: New file.
60987         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
60988         printf-frexpl.h.
60989         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
60990         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
60991         REPLACE_VASNPRINTF is defined.
60992         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
60993         gl_FUNC_VASNPRINTF.
60994         (gl_FUNC_VASNPRINTF): Invoke it.
60995         * m4/vasnprintf-posix.m4: New file.
60996         * m4/printf.m4: New file.
60997
60998 2007-03-04  Bruno Haible  <bruno@clisp.org>
60999
61000         Compile progreloc.c only if --enable-relocatable is specified.
61001         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
61002         if --enable-relocatable was specified.
61003         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
61004         lib_SOURCES.
61005
61006 2007-03-04  Jim Meyering  <jim@meyering.net>
61007
61008         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
61009         Use it consistently, rather than enumerating errno constants.
61010
61011 2007-03-04  Bruno Haible  <bruno@clisp.org>
61012
61013         * modules/xvasprintf-tests: New file.
61014         * tests/test-xvasprintf.c: New file.
61015
61016         * modules/vasprintf-tests: New file.
61017         * tests/test-vasprintf.c: New file.
61018
61019         * modules/vasnprintf-tests: New file.
61020         * tests/test-vasnprintf.c: New file.
61021
61022         * modules/vsnprintf-tests: New file.
61023         * tests/test-vsnprintf.c: New file.
61024
61025         * modules/snprintf-tests: New file.
61026         * tests/test-snprintf.c: New file.
61027
61028 2007-03-04  Bruno Haible  <bruno@clisp.org>
61029
61030         Compile relocatable.c only if --enable-relocatable is specified.
61031         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
61032         gl_RELOCATABLE_LIBRARY.
61033         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
61034         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
61035         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
61036         gl_RELOCATABLE_LIBRARY.
61037         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
61038         (Makefile.am): Remove lib_SOURCES.
61039         * modules/relocatable-lib-lgpl (configure.ac): Invoke
61040         gl_RELOCATABLE_LIBRARY.
61041         (Makefile.am): Remove lib_SOURCES.
61042         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
61043         always.
61044         * modules/relocatable-prog-wrapper (configure.ac): Invoke
61045         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
61046
61047 2007-03-04  Bruno Haible  <bruno@clisp.org>
61048
61049         * modules/argmatch-tests: New file.
61050         * tests/test-argmatch.c: New file.
61051
61052         * tests/test-allocsa.c (main): Halve the number of loop runs.
61053
61054         * modules/alloca-opt-tests: New file.
61055         * tests/test-alloca-opt.c: New file.
61056
61057 2007-03-04  Jim Meyering  <jim@meyering.net>
61058
61059         Work around difference between Linux ACLs and Solaris 10 ZFS.
61060         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
61061         for EINVAL.
61062
61063 2007-03-03  Bruno Haible  <bruno@clisp.org>
61064
61065         * modules/relocatable-prog (Depends-on): Add back progreloc's
61066         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
61067
61068 2007-03-03  Bruno Haible  <bruno@clisp.org>
61069
61070         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
61071         * modules/relocatable-lib: New file.
61072
61073 2007-03-03  Bruno Haible  <bruno@clisp.org>
61074
61075         * modules/relocatable-prog: Renamed from modules/relocatable.
61076         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
61077
61078 2007-03-03  Bruno Haible  <bruno@clisp.org>
61079
61080         * modules/relocatable-script (Files): Add doc/relocatable.texi,
61081         m4/relocatable-lib.m4.
61082         (Depends-on): Remove 'relocatable'.
61083         (configure.ac): Add gl_RELOCATABLE_NOP.
61084
61085 2007-03-03  Bruno Haible  <bruno@clisp.org>
61086
61087         * modules/relocatable-prog-wrapper: New file.
61088         * modules/relocatable (Depends-on): Add it. Remove all other
61089         dependencies except progname.
61090         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
61091
61092         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
61093         (gl_FUNC_STRERROR): Nop.
61094         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
61095
61096         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
61097         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
61098
61099         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
61100         (gl_FUNC_READLINK): Update.
61101
61102         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
61103
61104 2007-03-03  Bruno Haible  <bruno@clisp.org>
61105
61106         * lib/xreadlink.c: Include <unistd.h> unconditionally.
61107         * modules/xreadlink (Depends-on): Add unistd.
61108         * modules/xreadlink-with-size (Depends-on): Likewise.
61109
61110 2007-03-03  Bruno Haible  <bruno@clisp.org>
61111
61112         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
61113         extracted from gt_FUNC_SETENV.
61114         (gt_FUNC_SETENV): Remove macro.
61115         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
61116         remove gt_FUNC_SETENV.
61117
61118 2007-03-03  Bruno Haible  <bruno@clisp.org>
61119
61120         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
61121         ENABLE_RELOCATABLE here.
61122         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
61123
61124 2007-03-03  Bruno Haible  <bruno@clisp.org>
61125
61126         * modules/rbtreehash-list-tests (Depends-on): Add progname.
61127         * tests/test-rbtreehash_list.c: Include progname.h.
61128         (main): Call set_program_name.
61129
61130         * modules/rbtree-oset-tests (Depends-on): Add progname.
61131         * tests/test-rbtree_oset.c: Include progname.h.
61132         (main): Call set_program_name.
61133
61134         * modules/rbtree-list-tests (Depends-on): Add progname.
61135         * tests/test-rbtree_list.c: Include progname.h.
61136         (main): Call set_program_name.
61137
61138         * modules/linked-list-tests (Depends-on): Add progname.
61139         * tests/test-linked_list.c: Include progname.h.
61140         (main): Call set_program_name.
61141
61142 2007-03-03  Bruno Haible  <bruno@clisp.org>
61143
61144         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
61145         All uses of __restrict changed to _Restrict_.
61146         * lib/glob_.h (__restrict): Remove macro.
61147
61148 2007-03-02  Bruno Haible  <bruno@clisp.org>
61149
61150         * modules/gettext (configure.ac): Require gettext infrastructure
61151         from version 0.16.1.
61152
61153 2007-03-02  Bruno Haible  <bruno@clisp.org>
61154
61155         * modules/linkedhash-list-tests (Depends-on): Add progname.
61156         * tests/test-linkedhash_list.c: Include progname.h.
61157         (main): Call set_program_name.
61158
61159         * modules/carray-list-tests (Depends-on): Add progname.
61160         * tests/test-carray_list.c: Include progname.h.
61161         (main): Call set_program_name.
61162
61163         * modules/avltreehash-list-tests (Depends-on): Add progname.
61164         * tests/test-avltreehash_list.c: Include progname.h.
61165         (main): Call set_program_name.
61166
61167         * modules/avltree-oset-tests (Depends-on): Add progname.
61168         * tests/test-avltree_oset.c: Include progname.h.
61169         (main): Call set_program_name.
61170
61171         * modules/avltree-list-tests (Depends-on): Add progname.
61172         * tests/test-avltree_list.c: Include progname.h.
61173         (main): Call set_program_name.
61174
61175         * modules/array-oset-tests (Depends-on): Add progname.
61176         * tests/test-array_oset.c: Include progname.h.
61177         (main): Call set_program_name.
61178
61179         * modules/array-list-tests (Depends-on): Add progname.
61180         * tests/test-array_list.c: Include progname.h.
61181         (main): Call set_program_name.
61182
61183         * modules/argp-tests (Depends-on): Add progname.
61184         * tests/test-argp.c: Include argp.h first. Include progname.h.
61185         (main): Call set_program_name.
61186
61187 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
61188
61189         * doc/gnulib-tool.texi (Initial import): Reword description of
61190         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
61191         limited effect even if defined after the first system include.
61192
61193 2007-03-01  Bruno Haible  <bruno@clisp.org>
61194
61195         * build-aux/config.libpath: Update to libtool-1.5.22.
61196         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
61197
61198 2007-03-01  Bruno Haible  <bruno@clisp.org>
61199
61200         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
61201         foo_CFLAGS.
61202         Reported by Ralf Wildenhues.
61203
61204 2007-03-01  Bruno Haible  <bruno@clisp.org>
61205
61206         * build-aux/install-reloc: Remove object files left over by some
61207         compilers.
61208         Reported by Ralf Wildenhues.
61209
61210 2007-03-01  Bruno Haible  <bruno@clisp.org>
61211
61212         * build-aux/install-reloc: Break long lines.
61213
61214 2007-03-01  Bruno Haible  <bruno@clisp.org>
61215
61216         * doc/relocatable.texi: Document that it may not work on OpenBSD.
61217         Reported by Ralf Wildenhues.
61218
61219 2007-03-01  Bruno Haible  <bruno@clisp.org>
61220
61221         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
61222         include ordering constraints.
61223
61224 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
61225
61226         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
61227         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
61228         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
61229         as another example.
61230         * lib/time_.h: Fix misspelling.
61231         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
61232         Require gl_HEADER_TIME_H_DEFAULTS.
61233         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
61234         * m4/time_r.m4 (gl_TIME_R): Likewise.
61235         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
61236
61237 2007-03-01  Bruno Haible  <bruno@clisp.org>
61238
61239         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
61240         * m4/utimens.m4 (gl_UTIMENS): Likewise.
61241
61242 2007-03-01  Jim Meyering  <jim@meyering.net>
61243
61244         * modules/xreadlink (Maintainer): Add my name.
61245         * modules/xreadlink-with-size (Depends-on): Alphabetize.
61246
61247 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
61248             Bruno Haible  <bruno@clisp.org>
61249
61250         * build-aux/install-reloc: Compile also c-ctype.c.
61251         * build-aux/relocatable.sh.in: New file.
61252         * doc/relocatable.texi: New file.
61253         * doc/relocatable-maint.texi: New file.
61254         * doc/gnulib.texi: Include relocatable-maint.texi.
61255         * lib/progreloc.c: Include unistd.h unconditionally.
61256         * lib/relocwrapper.c: Include unistd.h unconditionally.
61257         Include c-ctype.h.
61258         (add_dotbin): Use c_tolower.
61259         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
61260         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
61261         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
61262         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
61263         to m4/relocatable-lib.m4.
61264         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
61265         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
61266         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
61267         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
61268         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
61269         * modules/relocatable: New file.
61270         * modules/relocatable-lib: New file.
61271         * modules/relocatable-script: New file.
61272
61273 2007-02-28  Bruno Haible  <bruno@clisp.org>
61274
61275         Import --enable-relocatable infrastructure.
61276         * build-aux/config.libpath: New file, from GNU gettext.
61277         * build-aux/install-reloc: New file, from GNU gettext.
61278         * build-aux/reloc-ldflags: New file, from GNU gettext.
61279         * lib/relocatable.h: New file, from GNU gettext.
61280         * lib/relocatable.c: New file, from GNU gettext.
61281         * lib/relocwrapper.c: New file, from GNU gettext.
61282         * m4/relocatable.m4: New file, from GNU gettext.
61283
61284 2007-02-28  Bruno Haible  <bruno@clisp.org>
61285
61286         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
61287
61288         * modules/xreadlink: New file, from GNU gettext with modifications.
61289         * lib/xreadlink.c: New file, from GNU gettext.
61290         * lib/xreadlink.h: Add comments.
61291         (xreadlink): New declaration.
61292
61293         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
61294         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
61295         lib/xreadlink-with-size.c.
61296         (configure.ac): Remove gl_XREADLINK invocation.
61297         (Makefile.am): Augment lib_SOURCES.
61298         * m4/xreadlink.m4: Remove file.
61299         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
61300         (xreadlink_with_size): Renamed from xreadink.
61301         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
61302         * modules/canonicalize (Depends-on): Replace xreadlink with
61303         xreadlink-with-size.
61304         * lib/canonicalize.c (canonicalize_filename_mode): Update.
61305
61306 2007-02-25  Jim Meyering  <jim@meyering.net>
61307
61308         * build-aux/announce-gen: When complaining about excess arguments,
61309         list them.
61310
61311 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
61312
61313         * README: Document signed integer overflow situation more
61314         accurately.
61315
61316 2007-02-25  Bruno Haible  <bruno@clisp.org>
61317
61318         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
61319         'a' or 'A' conversion.
61320
61321 2007-02-25  Bruno Haible  <bruno@clisp.org>
61322
61323         * modules/filename: Renamed from modules/pathname.
61324         (Files): Replace lib/pathname.h with lib/filename.h. Replace
61325         lib/concatpath.c with lib/concat-filename.c.
61326         (Makefile.am): Update.
61327         (Include): Replace pathname.h with filename.h.
61328         * lib/filename.h: Renamed from lib/pathname.h.
61329         (concatenated_filename): Renamed from concatenated_pathname.
61330         * lib/concat-filename.c: Renamed from lib/concatpath.c.
61331         (concatenated_filename): Renamed from concatenated_pathname.
61332         * lib/findprog.c: Include filename.h instead of pathname.h.
61333         (find_in_path): Update.
61334         * lib/javacomp.c: Include filename.h instead of pathname.h.
61335         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
61336         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
61337         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
61338         is_oldgcj_14_13_usable, is_javac_usable): Update.
61339         * lib/javaexec.c: Include filename.h instead of pathname.h.
61340         (execute_java_class): Update.
61341         * modules/findprog: Update.
61342         * modules/javacomp: Update.
61343         * modules/javaexec: Update.
61344         * MODULES.html.sh (File system functions): Add 'filename', remove
61345         'pathname'.
61346
61347 2007-02-25  Bruno Haible  <bruno@clisp.org>
61348
61349         * modules/printf-frexpl-tests: New file.
61350         * tests/test-printf-frexpl.c: New file.
61351
61352         * modules/printf-frexpl: New file.
61353         * lib/printf-frexpl.h: New file.
61354         * lib/printf-frexpl.c: New file.
61355         * m4/printf-frexpl.m4: New file.
61356
61357 2007-02-25  Bruno Haible  <bruno@clisp.org>
61358
61359         * modules/printf-frexp-tests: New file.
61360         * tests/test-printf-frexp.c: New file.
61361
61362         * modules/printf-frexp: New file.
61363         * lib/printf-frexp.h: New file.
61364         * lib/printf-frexp.c: New file.
61365         * m4/printf-frexp.m4: New file.
61366
61367 2007-02-25  Bruno Haible  <bruno@clisp.org>
61368
61369         Assume automake >= 1.10 for the tests.
61370         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
61371         * modules/arctwo-tests: Likewise.
61372         * modules/argp-tests: Likewise.
61373         * modules/avltree-list-tests: Likewise.
61374         * modules/avltree-oset-tests: Likewise.
61375         * modules/avltreehash-list-tests: Likewise.
61376         * modules/carray-list-tests: Likewise.
61377         * modules/crc-tests: Likewise.
61378         * modules/des-tests: Likewise.
61379         * modules/gc-arcfour-tests: Likewise.
61380         * modules/gc-arctwo-tests: Likewise.
61381         * modules/gc-des-tests: Likewise.
61382         * modules/gc-hmac-md5-tests: Likewise.
61383         * modules/gc-hmac-sha1-tests: Likewise.
61384         * modules/gc-md2-tests: Likewise.
61385         * modules/gc-md4-tests: Likewise.
61386         * modules/gc-md5-tests: Likewise.
61387         * modules/gc-pbkdf2-sha1-tests: Likewise.
61388         * modules/gc-rijndael-tests: Likewise.
61389         * modules/gc-sha1-tests: Likewise.
61390         * modules/gc-tests: Likewise.
61391         * modules/getaddrinfo-tests: Likewise.
61392         * modules/hmac-md5-tests: Likewise.
61393         * modules/hmac-sha1-tests: Likewise.
61394         * modules/linked-list-tests: Likewise.
61395         * modules/linkedhash-list-tests: Likewise.
61396         * modules/lock-tests: Likewise.
61397         * modules/md2-tests: Likewise.
61398         * modules/md4-tests: Likewise.
61399         * modules/md5-tests: Likewise.
61400         * modules/rbtree-list-tests: Likewise.
61401         * modules/rbtree-oset-tests: Likewise.
61402         * modules/rbtreehash-list-tests: Likewise.
61403         * modules/read-file-tests: Likewise.
61404         * modules/rijndael-tests: Likewise.
61405         * modules/stdint-tests: Likewise.
61406         * modules/tls-tests: Likewise.
61407
61408 2007-02-24  Bruno Haible  <bruno@clisp.org>
61409
61410         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
61411         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
61412         function; instead check whether isnan with a double argument links.
61413         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
61414         function; instead check whether isnan with a 'long double' argument
61415         links.
61416         Reported by Eric Blake <ebb9@byu.net>.
61417
61418 2007-02-24  Bruno Haible  <bruno@clisp.org>
61419
61420         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
61421         defined.
61422         * lib/isnanl.c: Remove all code. Just include isnan.c.
61423         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
61424
61425 2007-02-25  Jim Meyering  <jim@meyering.net>
61426
61427         Avoid conflicting types for 'unsetenv' on FreeBSD.
61428         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
61429         conflicting with FreeBSD's (5.0 and 6.1) function declaration
61430         in stdlib.h.
61431
61432 2007-02-24  Bruno Haible  <bruno@clisp.org>
61433
61434         * modules/isnanl-nolibm-tests: New file.
61435         * tests/test-isnanl.c: New file.
61436
61437         * modules/isnanl-nolibm: New file.
61438         * lib/isnanl.h: New file.
61439         * lib/isnanl.c: New file.
61440         * m4/isnanl.m4: New file.
61441
61442 2007-02-24  Bruno Haible  <bruno@clisp.org>
61443
61444         * modules/isnan-nolibm-tests: New file.
61445         * tests/test-isnan.c: New file.
61446
61447         * modules/isnan-nolibm: New file.
61448         * lib/isnan.h: New file.
61449         * lib/isnan.c: New file.
61450         * m4/isnan.m4: New file.
61451
61452 2007-02-24  Bruno Haible  <bruno@clisp.org>
61453
61454         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
61455         assume that an exponent fits in 20 bits.
61456
61457 2007-02-24  Jim Meyering  <jim@meyering.net>
61458
61459         * m4/regex.m4: Update the description of the configure-time option,
61460         --without-included-regex, to state accurately what the defaults are,
61461         and perhaps to give people an idea why using this option is risky.
61462
61463 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
61464
61465         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
61466         loops on small arguments.  This attempts to avoid the problem
61467         Bruno Haible reported for AIX 4.3.2 in
61468         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
61469
61470 2007-02-23  Bruno Haible  <bruno@clisp.org>
61471
61472         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
61473         Needed for help2man.
61474
61475 2007-02-23  Karl Berry  <karl@gnu.org>
61476
61477         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
61478         exists, foo.h should be cvs-ignored, not committed.
61479
61480 2007-02-23  Eric Blake  <ebb9@byu.net>
61481
61482         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
61483         * lib/stat-time.h (includes): Likewise.
61484         * lib/utimecmp.c (includes): Likewise.
61485         * lib/utimens.h (includes): Likewise.
61486         * lib/getdate.y (includes): Also include "timespec.h" for use
61487         internal to the module.
61488         * modules/utimens (Depends-on): Revert yesterday's patch.
61489         * modules/nanosleep (Depends-on): Add missing dependency.
61490
61491 2007-02-22  Bruno Haible  <bruno@clisp.org>
61492
61493         * lib/glob.c: Don't include getlogin_r.h.
61494
61495 2007-02-22  Jim Meyering  <jim@meyering.net>
61496
61497         * modules/utimens (Depends-on): Add timespec, required for
61498         utimens.h's inclusion of timespec.h.
61499
61500 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
61501
61502         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
61503         long unreadable paths in GNU/Linux.  Problem reported by Andreas
61504         Schwab in
61505         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
61506         I'll try to think of a better way to fix the Solaris problem.
61507
61508         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
61509         like glibc; on Solaris 10, it fails with errno == EINVAL.
61510         POSIX says the behavior is unspecified if the first argument is NULL,
61511         so play it safe and never pass NULL to the system getcwd.
61512
61513 2007-02-21  Jim Meyering  <jim@meyering.net>
61514
61515         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
61516         of gettimeofday.  It would conflict with the one now always
61517         provided via sys_time_.h.  Reported by Matthew Woehlke, as
61518         an IRIX 6.5 build failure.
61519
61520 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
61521
61522         Minor fixups to port to Solaris 10 with Sun C 5.8.
61523         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
61524         * modules/getcwd (Depends-on): Add dirfd.
61525         * lib/putenv.c (putenv): #undef it.
61526         (rpl_putenv): New decl.
61527         (malloc, free): Include <stdlib.h> rather than prototyping separately.
61528
61529 2007-02-20  Bruno Haible  <bruno@clisp.org>
61530
61531         * modules/stdio-tests: New file.
61532         * tests/test-stdio.c: New file.
61533
61534         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
61535         (Depends-on): Add stdio.
61536         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
61537         (Include): Use <stdio.h> instead of vsnprintf.h.
61538         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
61539         HAVE_DECL_VSNPRINTF.
61540         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
61541
61542         * modules/snprintf (Files): Remove lib/snprintf.h.
61543         (Depends-on): Add stdio.
61544         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
61545         (Include): Use <stdio.h> instead of snprintf.h.
61546         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
61547         HAVE_DECL_SNPRINTF.
61548         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
61549         * lib/getaddrinfo.c: Likewise.
61550
61551         * modules/stdio: New file.
61552         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
61553         * lib/snprintf.h: Remove file.
61554         * lib/vsnprintf.h: Remove file.
61555         * lib/.cppi-disable: Remove snprintf.h.
61556         * m4/stdio_h.m4: New file.
61557         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
61558
61559 2007-02-20  Jim Meyering  <jim@meyering.net>
61560
61561         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
61562         used by e.g., mingw.  From Bruno Haible.
61563
61564 2007-02-19  Bruno Haible  <bruno@clisp.org>
61565
61566         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
61567         warnings.
61568         Reported by Ben Pfaff <blp@cs.stanford.edu>.
61569
61570 2007-02-19  Bruno Haible  <bruno@clisp.org>
61571
61572         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
61573         from mingw users.
61574
61575 2007-02-19  Bruno Haible  <bruno@clisp.org>
61576
61577         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
61578         warnings.
61579         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
61580
61581 2007-02-19  Jim Meyering  <jim@meyering.net>
61582
61583         Don't use FD after a successful "fdopendir (fd)".
61584         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
61585         Reset it by calling dirfd on the just-obtained DIR*.
61586
61587         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
61588         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
61589
61590 2007-02-18  Bruno Haible  <bruno@clisp.org>
61591
61592         * lib/readlink.c: Include <unistd.h>.
61593         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
61594         HAVE_READLINK.
61595         * modules/readlink (Depends-on): Add unistd.
61596         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61597         (Include): Add <unistd.h>.
61598
61599         * lib/getlogin_r.h: Remove file.
61600         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
61601         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
61602         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
61603         HAVE_DECL_GETLOGIN_R.
61604         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
61605         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61606         (Include): Use <unistd.h> instead of getlogin_r.h.
61607
61608         * lib/getcwd.h: Remove file.
61609         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
61610         * lib/xgetcwd.c: Likewise.
61611         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
61612         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
61613         * modules/getcwd (Files): Remove lib/getcwd.h.
61614         (Depends-on): Add unistd.
61615         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61616         (Include): Use <unistd.h> instad of getcwd.h.
61617
61618         * lib/ftruncate.c: Include <unistd.h> first.
61619         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
61620         Set HAVE_FTRUNCATE.
61621         * modules/ftruncate (Depends-on): Add unistd.
61622         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61623
61624         * lib/fchdir.c: Include <unistd.h> first.
61625         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
61626         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
61627         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
61628         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61629         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
61630
61631         * lib/dup2.c: Include <unistd.h> first.
61632         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
61633         HAVE_DUP2.
61634         * modules/dup2 (Depends-on): Add unistd.
61635         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61636
61637         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
61638         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
61639         REPLACE_CHOWN. Don't define chown as a macro here.
61640         * modules/chown (Depends-on): Add unistd.
61641         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61642
61643         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
61644         Add definition for GL_LINK_WARNING.
61645         (chown, dup2): New declarations.
61646         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
61647         link warning.
61648         (ftruncate): New declaration.
61649         (getcwd): New declaration, taken from old getcwd.h.
61650         (getlogin_r): New declaration, taken from old getlogin_r.h.
61651         (readlink): New declaration.
61652         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
61653         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
61654         (gl_PREREQ_UNISTD): Remove macro.
61655         (gl_UNISTD_MODULE_INDICATOR): New macro.
61656         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
61657         many new variables. Don't set UNISTD_H.
61658         * modules/unistd (Description): Change.
61659         (Depends-on): Add link-warning.
61660         (configure.ac): Update.
61661         (Makefile.am): Create unistd.h always. Substitute many new variables
61662         into it.
61663
61664 2007-02-18  Bruno Haible  <bruno@clisp.org>
61665
61666         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
61667         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
61668         HAVE_GETSUBOPT.
61669         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
61670         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
61671         * lib/getsubopt.h: Remove file.
61672         * modules/getsubopt (Files): Remove lib/getsubopt.h.
61673         (Depends-on): Add stdlib.
61674         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
61675         (Includes): Use <stdlib.h> instead of getsubopt.h.
61676         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
61677         Set HAVE_GETSUBOPT.
61678         * lib/getsubopt.c: Don't include getsubopt.h.
61679
61680 2007-02-18  Bruno Haible  <bruno@clisp.org>
61681
61682         * modules/fchdir (Depends-on): Add dup2.
61683
61684 2007-02-18  Bruno Haible  <bruno@clisp.org>
61685
61686         * lib/stdlib_.h: Handle glibc's special invocation convention
61687         specially.
61688
61689 2007-02-18  Bruno Haible  <bruno@clisp.org>
61690
61691         * modules/stdlib-tests: New file.
61692         * tests/test-stdlib.c: New file.
61693
61694         * modules/mkstemp (Files): Remove lib/mkstemp.h.
61695         (Depends-on): Add stdlib.
61696         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
61697         (Includes): Use <stdlib.h> instead of mkstemp.h.
61698         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
61699         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
61700         * lib/mkstemp.c: Don't include mkstemp.h.
61701         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
61702         * lib/stdlib--.h: Don't include mkstemp.h.
61703
61704         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
61705         (Depends-on): Add stdlib.
61706         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
61707         (Includes): Use <stdlib.h> instead of mkdtemp.h.
61708         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
61709         HAVE_MKDTEMP.
61710         * lib/mkdtemp.c: Don't include mkdtemp.h.
61711         * lib/clean-temp.c: Don't include mkdtemp.h.
61712
61713         * modules/exit (Files): Remove lib/exit.h.
61714         (Depends-on): Add stdlib.
61715         (Makefile.am): Remove lib_SOURCES.
61716         (Include): Use <stdlib.h> instead of exit.h.
61717         * lib/argmatch.c: Don't include exit.h.
61718         * lib/execute.c: Likewise.
61719         * lib/pagealign_alloc.c: Likewise.
61720         * lib/pipe.c: Likewise.
61721         * lib/wait-process.c: Likewise.
61722         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
61723         * lib/exitfail.c: Likewise.
61724         * lib/savewd.c: Likewise.
61725         * lib/xsetenv.c: Likewise.
61726
61727         * modules/stdlib: New file.
61728         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
61729         and extra comments about mkstemp().
61730         * lib/exit.h: Remove file.
61731         * lib/mkdtemp.h: Remove file.
61732         * lib/mkstemp.h: Remove file.
61733         * m4/stdlib_h.m4: New file.
61734         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
61735
61736 2007-02-18  Bruno Haible  <bruno@clisp.org>
61737
61738         * modules/math-tests: New file.
61739         * tests/test-math.c: New file.
61740
61741         * modules/math: New file.
61742         * modules/mathl (Files): Remove lib/mathl.h.
61743         (Depends-on): Add math.
61744         (Makefile.am): Don't mention mathl.h.
61745         (Include): Use <math.h> instead of mathl.h.
61746         * lib/math_.h: New file.
61747         * lib/mathl.h: Remove file.
61748         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
61749         mathl.h.
61750         * lib/asinl.c: Likewise.
61751         * lib/atanl.c: Likewise.
61752         * lib/ceill.c: Likewise.
61753         * lib/cosl.c: Likewise.
61754         * lib/expl.c: Likewise.
61755         * lib/floorl.c: Likewise.
61756         * lib/frexpl.c: Likewise.
61757         * lib/ldexpl.c: Likewise.
61758         * lib/logl.c: Likewise.
61759         * lib/sincosl.c: Likewise.
61760         * lib/sinl.c: Likewise.
61761         * lib/sqrtl.c: Likewise.
61762         * lib/tanl.c: Likewise.
61763         * lib/trigl.c: Likewise.
61764         * m4/math_h.m4: New file.
61765         * MODULES.html.sh (Mathematics): Add math.
61766
61767 2007-02-17  Bruno Haible  <bruno@clisp.org>
61768
61769         * modules/wctype-tests: New file.
61770         * tests/test-wctype.c: New file.
61771
61772         * modules/wchar-tests: New file.
61773         * tests/test-wchar.c: New file.
61774
61775         * modules/unistd-tests: New file.
61776         * tests/test-unistd.c: New file.
61777
61778         * modules/time-tests: New file.
61779         * tests/test-time.c: New file.
61780
61781         * modules/sysexits-tests: New file.
61782         * tests/test-sysexits.c: New file.
61783
61784         * modules/sys_time-tests: New file.
61785         * tests/test-sys_time.c: New file.
61786
61787         * modules/sys_stat-tests: New file.
61788         * tests/test-sys_stat.c: New file.
61789
61790         * modules/sys_socket-tests: New file.
61791         * tests/test-sys_socket.c: New file.
61792
61793         * modules/sys_select-tests: New file.
61794         * tests/test-sys_select.c: New file.
61795
61796         * modules/string-tests: New file.
61797         * tests/test-string.c: New file.
61798
61799         * modules/stdbool-tests: New file.
61800         * tests/test-stdbool.c: New file.
61801
61802         * modules/netinet_in-tests: New file.
61803         * tests/test-netinet_in.c: New file.
61804
61805         * modules/inttypes-tests: New file.
61806         * tests/test-inttypes.c: New file.
61807
61808         * modules/fcntl-tests: New file.
61809         * tests/test-fcntl.c: New file.
61810
61811         * modules/byteswap-tests: New file.
61812         * tests/test-byteswap.c: New file.
61813
61814         * modules/arpa_inet-tests: New file.
61815         * tests/test-arpa_inet.c: New file.
61816
61817 2007-02-17  Bruno Haible  <bruno@clisp.org>
61818
61819         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
61820         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
61821         if the corresponding module is not enabled. Emit link warnings if
61822         the function is used nevertheless.
61823         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
61824         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
61825         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
61826         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
61827         * modules/inttypes (Depends-on): Add link-warning.
61828         (Makefile.am): Copy the contents of build-aux/link-warning.h into
61829         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
61830         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
61831         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
61832         * modules/imaxdiv (configure.ac): Likewise.
61833         * modules/strtoimax (configure.ac): Likewise.
61834         * modules/strtoumax (configure.ac): Likewise.
61835
61836 2007-02-17  Bruno Haible  <bruno@clisp.org>
61837
61838         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
61839         gl_STRING_MODULE_INDICATOR_DEFAULTS.
61840         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
61841         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
61842
61843 2007-02-17  Bruno Haible  <bruno@clisp.org>
61844
61845         * modules/link-warning: New file.
61846         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
61847         * lib/string_.h (GL_LINK_WARNING): Remove definition.
61848         * modules/string (Depends-on): Add link-warning.
61849         (Makefile.am): Copy the contents of build-aux/link-warning.h into
61850         string.h.
61851         * MODULES.html.sh (Support for building libraries and executables): Add
61852         link-warning.
61853
61854 2007-02-17  Bruno Haible  <bruno@clisp.org>
61855
61856         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
61857         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
61858         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
61859         long lines.
61860
61861 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
61862             Bruno Haible  <bruno@clisp.org>
61863
61864         * modules/tmpfile: New file.
61865         * lib/tmpfile.c: New file.
61866         * m4/tmpfile.m4: New file.
61867         * MODULES.html.sh (func_all_modules): New section "Input/output".
61868
61869 2007-02-15  Bruno Haible  <bruno@clisp.org>
61870
61871         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
61872         (supports_delete_on_close): New function.
61873         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
61874
61875 2007-02-14  Bruno Haible  <bruno@clisp.org>
61876
61877         * modules/mbspcasecmp-tests: New file.
61878         * tests/test-mbspcasecmp.sh: New file.
61879         * tests/test-mbspcasecmp.c: New file.
61880
61881         New module mbspcasecmp.
61882         * modules/mbspcasecmp: New file.
61883         * lib/mbspcasecmp.c: New file.
61884         * lib/string_.h (strncasecmp): Change warning message.
61885         (mbspcasecmp): New declaration.
61886         * m4/mbspcasecmp.m4: New file.
61887         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
61888         GNULIB_MBSPCASECMP.
61889         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
61890         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
61891
61892 2007-02-14  Bruno Haible  <bruno@clisp.org>
61893
61894         * modules/mbsncasecmp-tests: New file.
61895         * tests/test-mbsncasecmp.sh: New file.
61896         * tests/test-mbsncasecmp.c: New file.
61897
61898         New module mbsncasecmp.
61899         * modules/mbsncasecmp: New file.
61900         * lib/mbsncasecmp.c: New file.
61901         * lib/string_.h (mbsncasecmp): New declaration.
61902         * m4/mbsncasecmp.m4: New file.
61903         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
61904         GNULIB_MBSNCASECMP.
61905         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
61906         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
61907
61908 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
61909
61910         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
61911         Verify that it doesn't overlap with our flags.
61912         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
61913         do not have the desired effect in multibyte locales; instead, use
61914         mbscasecmp.
61915         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
61916         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
61917         we don't require GNU fnmatch ourselves (if our users require it, they
61918         should do so explicitly).
61919
61920         Fix regex code so it doesn't rely on strcasecmp.
61921         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
61922         Otherwise, include gnulib's langinfo.h.
61923         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
61924         undesirable behavior in non-C locales.  Instead, rely on localecharset.
61925         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
61926         * modules/regex (FILES): Remove m4/codeset.m4.
61927         (Depends-on): Add localcharset.  Remove strcase.
61928
61929 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61930
61931         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
61932         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
61933
61934 2007-02-13  Bruno Haible  <bruno@clisp.org>
61935
61936         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
61937         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61938
61939 2007-02-12  Bruno Haible  <bruno@clisp.org>
61940
61941         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
61942         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
61943         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
61944         time warning rather than a link error.
61945
61946 2007-02-12  Bruno Haible  <bruno@clisp.org>
61947
61948         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
61949         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
61950         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61951
61952 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
61953
61954         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
61955         args, not 2.
61956
61957 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
61958
61959         New module 'time', so that apps can include <time.h> as per
61960         POSIX and GNU instead of separate include files like time_r.h
61961         and timegm.h.  This implementation tries out a simpler approach
61962         for replacing decls in standard include files (as compared to
61963         the string module), somewhat as an experiment.
61964
61965         * config/srclist.txt: Comment out mktime.c for now.
61966         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
61967         since it doesn't apply any more.  Use generic wording instead.
61968         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
61969         'time'.
61970         * lib/time_.h, m4/time_h.m4, modules/time: New files.
61971         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
61972         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
61973         Don't include <sys/types.h>; no longer needed since we assume C89.
61974         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
61975         * lib/strftime.c: Likewise.
61976         * lib/time_r.c: Likewise.
61977         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
61978         * lib/nanosleep.c: Include <time.h> first, to check interface.
61979         * lib/strptime.c: Likewise.
61980         * lib/time_r.c: Likewise.
61981         * lib/timegm.c: Likewise.
61982         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
61983         needed.
61984         * lib/timegm.c: Don't include timegm.h; no longer needed.
61985         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
61986         time.h now handles any problems in that area.
61987         (struct timespec, nanosleep): Remove; time.h now arranges for these.
61988         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
61989         that time.h defines struct timespec.
61990         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
61991         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
61992         handles that.
61993         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
61994         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
61995         needed.  Set REPLACE_LOCALTIME.
61996         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
61997         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
61998         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
61999         nanosleep; time_h.m4 now does that.  Don't require
62000         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
62001         module handles this now.
62002         * modules/getdate (Depends-on): Remove timespec.  Add time.
62003         * modules/nanosleep (Depends-on): Likewise.
62004         * modules/stat-time (Depends-on): Likewise.
62005         * modules/nanosleep (Include): Include time.h, not timespec.h.
62006         * modules/strptime (Files): Remove lib/strptime.h.
62007         (Depends-on): Add extensions, time.
62008         (Include): Include time.h, not strptime.h.
62009         * modules/time_r (Files): Remove lib/time_r.h.
62010         (Depends-on): Add time.
62011         (Include): Include time.h, not time_r.h.
62012         * modules/timegm: Likewise.
62013         * modules/timespec (Description): Now does timespec-related decls
62014         of our own, instead of struct timespec itself.
62015         (Depends-on): Add time; remove extensions.
62016         (Maintainer): Add self.
62017         * modules/utimecmp (Depends-on): Add time; remove timespec.
62018         * modules/utimens (Depends-on): Likewise.
62019         * modules/xnanosleep (Depends-on): Likewise.
62020
62021 2007-02-11  Bruno Haible  <bruno@clisp.org>
62022
62023         * lib/c-strstr.c: Include allocsa.h.
62024         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
62025         * lib/c-strcasestr.c: Include allocsa.h.
62026         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
62027         * lib/strcasestr.c: Include allocsa.h.
62028         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
62029         * lib/mbsstr.c: Include allocsa.h.
62030         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
62031         allocsa/freesa instead of malloc/free.
62032         * lib/mbscasestr.c: Include allocsa.h.
62033         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
62034         allocsa/freesa instead of malloc/free.
62035         * modules/c-strstr (Depends-on): Add allocsa.
62036         * modules/c-strcasestr (Depends-on): Likewise.
62037         * modules/strcasestr (Depends-on): Likewise.
62038         * modules/mbsstr (Depends-on): Likewise.
62039         * modules/mbscasestr (Depends-on): Likewise.
62040
62041 2007-02-11  Bruno Haible  <bruno@clisp.org>
62042
62043         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
62044
62045         * modules/mbsspn-tests: New file.
62046         * tests/test-mbsspn.sh: New file.
62047         * tests/test-mbsspn.c: New file.
62048
62049 2007-02-11  Bruno Haible  <bruno@clisp.org>
62050
62051         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
62052
62053         * modules/mbspbrk-tests: New file.
62054         * tests/test-mbspbrk.sh: New file.
62055         * tests/test-mbspbrk.c: New file.
62056
62057 2007-02-11  Bruno Haible  <bruno@clisp.org>
62058
62059         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
62060         unneeded cast.
62061
62062         * modules/mbscspn-tests: New file.
62063         * tests/test-mbscspn.sh: New file.
62064         * tests/test-mbscspn.c: New file.
62065
62066 2007-02-11  Bruno Haible  <bruno@clisp.org>
62067
62068         * modules/mbscasecmp-tests: New file.
62069         * tests/test-mbscasecmp.sh: New file.
62070         * tests/test-mbscasecmp.c: New file.
62071
62072 2007-02-11  Bruno Haible  <bruno@clisp.org>
62073
62074         Ensure O(n) worst-case complexity of mbscasestr.
62075         * lib/mbscasestr.c: Include stdbool.h.
62076         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
62077         functions.
62078         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
62079         the bookkeeping indicates that it's worth it.
62080         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
62081
62082         * modules/mbscasestr-tests: New file.
62083         * tests/test-mbscasestr1.c: New file.
62084         * tests/test-mbscasestr2.sh: New file.
62085         * tests/test-mbscasestr2.c: New file.
62086         * tests/test-mbscasestr3.sh: New file.
62087         * tests/test-mbscasestr3.c: New file.
62088         * tests/test-mbscasestr4.sh: New file.
62089         * tests/test-mbscasestr4.c: New file.
62090         * m4/locale-tr.m4: New file.
62091
62092 2007-02-11  Bruno Haible  <bruno@clisp.org>
62093
62094         Ensure O(n) worst-case complexity of mbsstr.
62095         * lib/mbsstr.c: Include stdbool.h.
62096         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
62097         functions.
62098         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
62099         bookkeeping indicates that it's worth it.
62100         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
62101
62102         * modules/mbsstr-tests: New file.
62103         * tests/test-mbsstr1.c: New file.
62104         * tests/test-mbsstr2.sh: New file.
62105         * tests/test-mbsstr2.c: New file.
62106         * tests/test-mbsstr3.sh: New file.
62107         * tests/test-mbsstr3.c: New file.
62108         * m4/locale-fr.m4: New file.
62109
62110 2007-02-11  Bruno Haible  <bruno@clisp.org>
62111
62112         * lib/mbsrchr.c (mbsrchr): Fix bug.
62113
62114         * modules/mbsrchr-tests: New file.
62115         * tests/test-mbsrchr.sh: New file.
62116         * tests/test-mbsrchr.c: New file.
62117
62118 2007-02-11  Bruno Haible  <bruno@clisp.org>
62119
62120         * lib/mbschr.c (mbschr): Fix bug.
62121
62122         * modules/mbschr-tests: New file.
62123         * tests/test-mbschr.sh: New file.
62124         * tests/test-mbschr.c: New file.
62125         * m4/locale-zh.m4: New file.
62126
62127 2007-02-11  Bruno Haible  <bruno@clisp.org>
62128
62129         Support for copying multibyte string iterators.
62130         * lib/mbiter.h: Include <string.h>.
62131         (mbiter_multi_copy): New function.
62132         (mbi_copy): New macro.
62133         * lib/mbuiter.h: Include <string.h>.
62134         (mbuiter_multi_copy): New function.
62135         (mbui_copy): New macro.
62136
62137 2007-02-11  Bruno Haible  <bruno@clisp.org>
62138
62139         New module mbslen.
62140         * modules/mbslen: New file.
62141         * lib/mbslen.c: New file.
62142         * lib/string_.h (mbslen): New declaration.
62143         * m4/mbslen.m4: New file.
62144         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62145         GNULIB_MBSLEN.
62146         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
62147         * MODULES.html.sh (Internationalization functions): Add mbslen.
62148
62149 2007-02-11  Bruno Haible  <bruno@clisp.org>
62150
62151         Ensure O(n) worst-case complexity of strcasestr substitute.
62152         * lib/strcasestr.c: Include stdbool.h.
62153         (knuth_morris_pratt): New function.
62154         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
62155         bookkeeping indicates that it's worth it.
62156         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
62157
62158         * modules/strcasestr-tests: New file.
62159         * tests/test-strcasestr.c: New file.
62160
62161 2007-02-11  Bruno Haible  <bruno@clisp.org>
62162
62163         Ensure O(n) worst-case complexity of c_strcasestr.
62164         * lib/c-strcasestr.c: Include stdbool.h, string.h.
62165         (knuth_morris_pratt): New function.
62166         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
62167         the bookkeeping indicates that it's worth it.
62168         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
62169
62170         * modules/c-strcasestr-tests: New file.
62171         * tests/test-c-strcasestr.c: New file.
62172
62173 2007-02-11  Bruno Haible  <bruno@clisp.org>
62174
62175         Ensure O(n) worst-case complexity of c_strstr.
62176         * lib/c-strstr.c: Include stdbool.h, string.h.
62177         (knuth_morris_pratt): New function.
62178         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
62179         bookkeeping indicates that it's worth it.
62180         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
62181
62182         * lib/c-strstr.c: Complete rewrite for maintainability.
62183
62184         * modules/c-strstr-tests: New file.
62185         * tests/test-c-strstr.c: New file.
62186
62187 2007-02-11  Bruno Haible  <bruno@clisp.org>
62188
62189         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
62190         5.2.1 and earlier, whereby \055 was treated just like the range
62191         delimiter '-'.
62192         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
62193
62194 2007-02-08  Bruno Haible  <bruno@clisp.org>
62195
62196         * modules/regex (Depends-on): Add stdbool.
62197         Reported by Dalibor Topic <robilad@kaffe.org>.
62198
62199 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
62200
62201         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
62202         Prefer returning from main to exiting from it.
62203         Remove unnecessary parens after sizeof.
62204
62205 2007-02-05  Bruno Haible  <bruno@clisp.org>
62206
62207         New module mbssep.
62208         * modules/mbssep: New file.
62209         * lib/mbssep.c: New file.
62210         * lib/string_.h (strsep): Add a conditional link warning.
62211         (mbssep): New declaration.
62212         * m4/mbssep.m4: New file.
62213         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62214         GNULIB_MBSSEP.
62215         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
62216         * MODULES.html.sh (Internationalization functions): Add mbssep.
62217
62218 2007-02-05  Bruno Haible  <bruno@clisp.org>
62219
62220         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
62221         Optimize search in case of 1 delimiter.
62222
62223 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
62224
62225         * lib/acl.h: Include sys/types.h before sys/acl.h.
62226
62227 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
62228
62229         Merge upstream fix for glibc bugzilla #3957:
62230
62231         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
62232
62233         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
62234         bit for RE_HAT_LISTS_NOT_NEWLINE.
62235         (build_charclass_op): Remove bogus comment.
62236
62237 2007-02-05  Simon Josefsson  <simon@josefsson.org>
62238
62239         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
62240
62241 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
62242
62243         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
62244         * lib/memmem.c [!defined _LIBC]: Include config.h.
62245
62246 2007-02-04  Bruno Haible  <bruno@clisp.org>
62247
62248         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
62249         warning message.
62250
62251 2007-02-04  Bruno Haible  <bruno@clisp.org>
62252
62253         New module mbstok_r.
62254         * modules/mbstok_r: New file.
62255         * lib/mbstok_r.c: New file.
62256         * lib/string_.h (strtok_r): Change argument names to match the
62257         comments. Add a conditional link warning.
62258         (mbstok_r): New declaration.
62259         * m4/mbstok_r.m4: New file.
62260         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62261         GNULIB_MBSTOK_R.
62262         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
62263         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
62264
62265 2007-02-04  Bruno Haible  <bruno@clisp.org>
62266
62267         New module mbsspn.
62268         * modules/mbsspn: New file.
62269         * lib/mbsspn.c: New file.
62270         * lib/string_.h (strspn): Add a conditional link warning.
62271         (mbsspn): New declaration.
62272         * m4/mbsspn.m4: New file.
62273         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62274         GNULIB_MBSSPN.
62275         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
62276         * MODULES.html.sh (Internationalization functions): Add mbsspn.
62277
62278 2007-02-04  Bruno Haible  <bruno@clisp.org>
62279
62280         New module mbspbrk.
62281         * modules/mbspbrk: New file.
62282         * lib/mbspbrk.c: New file.
62283         * lib/string_.h (strpbrk): Add a conditional link warning.
62284         (mbspbrk): New declaration.
62285         * m4/mbspbrk.m4: New file.
62286         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62287         GNULIB_MBSPBRK.
62288         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
62289         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
62290
62291 2007-02-04  Bruno Haible  <bruno@clisp.org>
62292
62293         New module mbscspn.
62294         * modules/mbscspn: New file.
62295         * lib/mbscspn.c: New file.
62296         * lib/string_.h (strcspn): Add a conditional link warning.
62297         (mbscspn): New declaration.
62298         * m4/mbscspn.m4: New file.
62299         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62300         GNULIB_MBSCSPN.
62301         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
62302         * MODULES.html.sh (Internationalization functions): Add mbscspn.
62303
62304 2007-02-04  Bruno Haible  <bruno@clisp.org>
62305
62306         New module mbscasestr, reduced goal of strcasestr.
62307         * modules/mbscasestr: New file.
62308         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
62309         (mbscasestr): Renamed from strcasestr.
62310         * lib/strcasestr.c: Don't include mbuiter.h.
62311         (strcasestr): Remove support for multibyte locales.
62312         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
62313         Change the conditional link warning.
62314         (mbscasestr): New declaration.
62315         * m4/mbscasestr.m4: New file.
62316         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
62317         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
62318         REPLACE_STRCASESTR.
62319         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
62320         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
62321         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
62322         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
62323         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
62324         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
62325         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
62326         (Depends-on): Remove mbuiter.
62327         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
62328
62329 2007-02-04  Bruno Haible  <bruno@clisp.org>
62330
62331         Simplify handling of strncasecmp.
62332         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
62333         the conditional link warning.
62334         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
62335         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
62336         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
62337         * modules/strcase (configure.ac): Don't invoke
62338         gl_STRING_MODULE_INDICATOR.
62339         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
62340
62341 2007-02-04  Bruno Haible  <bruno@clisp.org>
62342
62343         New module mbscasecmp, reduced goal of strcasecmp.
62344         * modules/mbscasecmp: New file.
62345         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
62346         (mbscasecmp): Renamed from strcasecmp.
62347         * lib/strcasecmp.c: Don't include mbuiter.h.
62348         (strcasecmp): Remove support for multibyte locales.
62349         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
62350         Change the conditional link warning.
62351         (mbscasecmp): New declaration.
62352         * m4/mbscasecmp.m4: New file.
62353         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
62354         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
62355         REPLACE_STRCASECMP.
62356         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
62357         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62358         GNULIB_MBSCASECMP.
62359         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
62360         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
62361         * modules/strcase (Files): Remove m4/mbrtowc.m4.
62362         (Depends-on): Remove mbuiter.
62363         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
62364
62365 2007-02-04  Bruno Haible  <bruno@clisp.org>
62366
62367         New module mbsstr. Remove module strstr.
62368         * modules/mbsstr: New file.
62369         * modules/strstr: Remove file.
62370         * lib/mbsstr.c: Renamed from lib/strstr.c.
62371         (mbsstr): Renamed from strstr.
62372         * lib/string_.h (strstr): Remove declaration. Change the conditional
62373         link warning.
62374         (mbsstr): New declaration.
62375         * m4/mbsstr.m4: New file.
62376         * m4/strstr.m4: Remove file.
62377         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
62378         REPLACE_STRSTR.
62379         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
62380         Don't initialize GNULIB_STRSTR.
62381         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
62382         substitute GNULIB_STRSTR and REPLACE_STRSTR.
62383         * MODULES.html.sh (Internationalization functions): Add mbsstr.
62384         (Support for systems lacking ANSI C 89): Remove strstr.
62385
62386 2007-02-04  Bruno Haible  <bruno@clisp.org>
62387
62388         New module mbsrchr.
62389         * modules/mbsrchr: New file.
62390         * lib/mbsrchr.c: New file.
62391         * lib/string_.h (strrchr): Add a conditional link warning.
62392         (mbsrchr): New declaration.
62393         * m4/mbsrchr.m4: New file.
62394         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62395         GNULIB_MBSRCHR.
62396         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
62397         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
62398
62399 2007-02-04  Bruno Haible  <bruno@clisp.org>
62400
62401         New module mbschr.
62402         * modules/mbschr: New file.
62403         * lib/mbschr.c: New file.
62404         * lib/string_.h (strchr): Add a conditional link warning.
62405         (mbschr): New declaration.
62406         * m4/mbschr.m4: New file.
62407         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62408         GNULIB_MBSCHR.
62409         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
62410         * MODULES.html.sh (Internationalization functions): Add mbschr.
62411
62412 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
62413
62414         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
62415
62416         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
62417
62418 2007-02-04  Bruno Haible  <bruno@clisp.org>
62419
62420         New module description section 'configure.ac-early'.
62421         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
62422         (func_get_autoconf_early_snippet): New function.
62423         (func_import, func_create_testdir): Use it. Remove special cases for
62424         modules 'extensions' and 'lock'.
62425         * modules/extensions (configure.ac-early): Require
62426         gl_USE_SYSTEM_EXTENSIONS.
62427         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
62428
62429 2007-02-04  Bruno Haible  <bruno@clisp.org>
62430
62431         Make use of gcj-4.3's -fsource and -ftarget option.
62432         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
62433         and if so try the options -fsource and -ftarget.
62434         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
62435         source_version, ftarget_option, target_version arguments.
62436         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
62437         (is_envjavac_oldgcj_14_14_usable): Renamed from
62438         is_envjavac_gcj_14_14_usable.
62439         (is_envjavac_oldgcj_14_13_usable): Renamed from
62440         is_envjavac_gcj_14_13_usable.
62441         (is_gcj_present): Update.
62442         (is_gcj_43, is_gcj43_usable): New functions.
62443         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
62444         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
62445         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
62446         try the options -fsource and -ftarget.
62447
62448 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
62449
62450         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
62451         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
62452         larger value.
62453
62454 2007-02-03  Jim Meyering  <jim@meyering.net>
62455
62456         Give tools a better chance to allocate space for very large buffers.
62457         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
62458
62459         Make pwd and readlink work also when run with an unreadable parent dir
62460         on systems with openat support.
62461         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
62462         provided getcwd function, even when we have openat support.
62463         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
62464
62465 2007-02-02  Bruno Haible  <bruno@clisp.org>
62466
62467         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
62468         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
62469         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
62470         portability problems if one of these functions is only used on specific
62471         platforms.
62472         Reported by Paul Eggert.
62473
62474 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
62475
62476         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
62477         is causing more trouble than it's curing.
62478         * lib/regex_internal.h (__mempcpy): Remove.
62479         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
62480         (and make the code a tad smaller to boot).
62481         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
62482
62483 2007-02-02  Jim Meyering  <jim@meyering.net>
62484
62485         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
62486         section, not in the Makefile.am: one.
62487
62488 2007-02-02  Eric Blake  <ebb9@byu.net>
62489
62490         * lib/strchrnul.c: Always include config.h first.
62491
62492         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
62493         gnulib strstr is not necessary here.
62494
62495 2007-02-02  Simon Josefsson  <simon@josefsson.org>
62496
62497         * m4/socklen.m4: Fix typo.
62498
62499 2007-02-02  Eric Blake  <ebb9@byu.net>
62500
62501         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
62502         * modules/netinet_in (Makefile.am): Likewise.
62503
62504 2007-02-01  Bruno Haible  <bruno@clisp.org>
62505
62506         * lib/string_.h (GL_LINK_WARNING): New macro.
62507         (strcasecmp, strstr, strcasestr): If provided by the system,
62508         conditionally define as a macro that leads to a warning instead of to
62509         an error.
62510         (strncasecmp): Conditionally define as a macro that leads to a warning.
62511
62512 2007-02-01  Karl Berry  <karl@gnu.org>
62513
62514         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
62515
62516 2007-02-01  Bruno Haible  <bruno@clisp.org>
62517
62518         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
62519         renamings.
62520
62521 2007-02-01  Eric Blake  <ebb9@byu.net>
62522
62523         * modules/regex (Depends-on): Revert dependence on mempcpy.
62524         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
62525         module's definition of mempcpy.
62526         Reported by Paul Eggert.
62527
62528 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
62529
62530         * lib/string_.h: If the gnulib module XYZ is not present, undefine
62531         the symbol XYZ before redefining it.  This fixes a problem with
62532         programs that don't use XYZ, when compiled on systems that define
62533         XYZ to something else.
62534
62535 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
62536
62537         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
62538         occurs when "mkdir -m foo" creates a setgid directory that is (1)
62539         writeable to group or other and (2) is intended to have a special
62540         mode bit that is set or cleared.  In such a case, the directory
62541         should be neither group- nor other-writeable until the special
62542         mode bits are right.
62543
62544 2007-01-31  Eric Blake  <ebb9@byu.net>
62545
62546         * modules/mountlist (Depends-on): Add strstr.
62547
62548         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
62549         bug.
62550         * modules/string (Makefile.am): Remove redundant replacement.
62551         * modules/regex (Depends-on): Add mempcpy.
62552
62553 2007-01-31  Bruno Haible  <bruno@clisp.org>
62554
62555         New module description field 'Link'.
62556         * gnulib-tool (func_usage): Document --extract-link-directive.
62557         (sed_extract_prog): Recognize 'Link' directive.
62558         (func_get_link_directive): New function.
62559         (func_import): Show summary of link directives.
62560         Handle --extract-link-directive option.
62561         * modules/acl (Link): New section.
62562         * modules/clock-time (Link): New section.
62563         * modules/euidaccess (Link): New section.
62564         * modules/gettext (Link): New section.
62565         * modules/iconv (Link): New section.
62566         * modules/lock (Link): New section.
62567         * modules/nanosleep (Link): New section.
62568         * modules/readline (Link): New section.
62569
62570 2007-01-27  Bruno Haible  <bruno@clisp.org>
62571
62572         Enforce the use of gnulib modules for unportable <string.h> functions.
62573         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
62574         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
62575         (gl_HEADER_STRING_H_BODY): Require it.
62576         * lib/string_.h: If the gnulib module XYZ is not present, redefine
62577         the symbol XYZ to one that gives a link error.
62578         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
62579         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
62580         * modules/mempcpy (configure.ac): Likewise.
62581         * modules/memrchr (configure.ac): Likewise.
62582         * modules/stpcpy (configure.ac): Likewise.
62583         * modules/stpncpy (configure.ac): Likewise.
62584         * modules/strcase (configure.ac): Likewise.
62585         * modules/strcasestr (configure.ac): Likewise.
62586         * modules/strchrnul (configure.ac): Likewise.
62587         * modules/strdup (configure.ac): Likewise.
62588         * modules/strndup (configure.ac): Likewise.
62589         * modules/strnlen (configure.ac): Likewise.
62590         * modules/strpbrk (configure.ac): Likewise.
62591         * modules/strsep (configure.ac): Likewise.
62592         * modules/strstr (configure.ac): Likewise.
62593         * modules/strtok_r (configure.ac): Likewise.
62594
62595 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
62596
62597         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
62598
62599 2007-01-30  Jim Meyering  <jim@meyering.net>
62600
62601         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
62602
62603 2007-01-29  Bruno Haible  <bruno@clisp.org>
62604
62605         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
62606         * lib/execute.c: Likewise.
62607         * lib/pipe.c: Likewise.
62608         * lib/printf-args.h: Likewise.
62609         * lib/printf-args.c: Likewise.
62610         * lib/printf-parse.c: Likewise.
62611         * lib/vasnprintf.c: Likewise.
62612
62613 2007-01-29  Eric Blake  <ebb9@byu.net>
62614
62615         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
62616         declaration.
62617
62618 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
62619
62620         * lib/strptime.h (strptime): Use 'restrict' for args where
62621         POSIX requires this.
62622         * lib/strptime.c (strptime): Likewise.
62623         Change license notice from LGPL to GPL, since gnulib-tool will
62624         change this as needed.
62625         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
62626         defined.
62627         Include "strptime.h" first, to check interface.
62628         Do not #undef _LIBC and _NL_CURRENT.
62629         Do not include <stdlib.h>; no longer needed.
62630         Include "time_r.h" and declare ptime_locale_status
62631         only if _LIBC is not defined.
62632         (__P): Remove unused macro.
62633         (match_string): Bring back glibc version, but use it only if _LIBC
62634         is defined.
62635         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
62636         Remove unnecessary assertion and abort() call.
62637         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
62638         * m4/strptime.m4: Fix serial number comment.
62639         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
62640         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
62641         (Depends-on): Add time_r.
62642
62643 2007-01-29  Bruno Haible  <bruno@clisp.org>
62644
62645         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
62646         strptime.
62647         * modules/strptime (Depends-on): Add stdbool.
62648         * lib/strptime.h: Include <time.h> always. Add comments.
62649
62650 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
62651
62652         * modules/strptime: New file.
62653         * lib/strptime.h: New file.
62654         * lib/strptime.c: New file.
62655         * m4/strptime.m4: New file.
62656
62657 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
62658
62659         * MODULES.html.sh: New module mpsort.
62660         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
62661
62662         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
62663         a circularity problem with HP-UX ia64 reported by Bob Proulx in
62664         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
62665         All uses changed.
62666         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
62667         All uses changed.
62668         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
62669         to _Restrict_.
62670         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
62671         the parameter matches the prototype.
62672
62673 2007-01-28  Jim Meyering  <jim@meyering.net>
62674
62675         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
62676         sys/time.h here, reverting that part of the previous patch:
62677         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
62678
62679 2007-01-28  Bruno Haible  <bruno@clisp.org>
62680
62681         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
62682         value of $(SYS_TIME_H).
62683         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
62684         remove it conditionally, too. [added by Jim Meyering]
62685         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
62686         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
62687         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
62688         GETTIMEOFDAY_REPLACEMENT to 1.
62689
62690 2007-01-28  Bruno Haible  <bruno@clisp.org>
62691
62692         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
62693         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
62694         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
62695         Set UNISTD_H instead of UNISTD_H2.
62696         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
62697
62698 2007-01-28  Bruno Haible  <bruno@clisp.org>
62699
62700         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
62701         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
62702
62703 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62704
62705         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
62706         (func_create_testdir): Ensure C locale for `grep' and `tr'
62707         character ranges.
62708         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
62709         ACLOCAL_AMFLAGS parsing state machine.
62710
62711 2007-01-27  Bruno Haible  <bruno@clisp.org>
62712
62713         * modules/unistr/base: Update.
62714
62715 2007-01-27  Bruno Haible  <bruno@clisp.org>
62716
62717         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
62718         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
62719         * modules/unistr/u32-mbtouc-unsafe: Renamed from
62720         modules/unistr/u32-mbtouc.
62721         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
62722         * lib/unistr.h: Update.
62723         * lib/linebreak.c: Update.
62724         * modules/unistr/u32-mbtouc: Renamed from
62725         modules/unistr/u32-mbtouc-safe.
62726         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
62727         * lib/unistr.h: Update.
62728         * lib/unistr/u32-to-u8.c: Update.
62729         * lib/unistr/u32-to-u16.c: Update.
62730
62731 2007-01-27  Bruno Haible  <bruno@clisp.org>
62732
62733         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
62734         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
62735         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
62736         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
62737         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
62738         * modules/unistr/u16-mbtouc-unsafe: Renamed from
62739         modules/unistr/u16-mbtouc.
62740         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
62741         * lib/unistr.h: Update.
62742         * lib/linebreak.c: Update.
62743         * modules/linebreak: Update.
62744         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
62745         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
62746         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
62747         * modules/unistr/u16-mbtouc: Renamed from
62748         modules/unistr/u16-mbtouc-safe.
62749         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
62750         * lib/unistr.h: Update.
62751         * lib/unistr/u16-to-u8.c: Update.
62752         * modules/unistr/u16-to-u8: Update.
62753         * lib/unistr/u16-to-u32.c: Update.
62754         * modules/unistr/u16-to-u32: Update.
62755
62756 2007-01-27  Bruno Haible  <bruno@clisp.org>
62757
62758         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
62759         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
62760         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
62761         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
62762         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
62763         * modules/unistr/u8-mbtouc-unsafe: Renamed from
62764         modules/unistr/u8-mbtouc.
62765         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
62766         * lib/unistr.h: Update.
62767         * lib/striconveh.c: Update.
62768         * modules/striconveh: Update.
62769         * lib/linebreak.c: Update.
62770         * modules/linebreak: Update.
62771         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
62772         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
62773         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
62774         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
62775         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
62776         * lib/unistr.h: Update.
62777         * lib/striconveh.c: Update.
62778         * modules/striconveh: Update.
62779         * lib/unistr/u8-to-u16.c: Update.
62780         * modules/unistr/u8-to-u16: Update.
62781         * lib/unistr/u8-to-u32.c: Update.
62782         * modules/unistr/u8-to-u32: Update.
62783
62784 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62785
62786         Sync from Libtool.
62787         * lib/argz.c: Do not include strings.h nor memory.h, include
62788         string.h unconditionally.  Patch by Simon Josefsson.
62789
62790 2007-01-27  Bruno Haible  <bruno@clisp.org>
62791
62792         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
62793         from gl_HEADER_STRING_H_BODY.
62794         (gl_HEADER_STRING_H_BODY): Require it.
62795         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
62796         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
62797         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
62798         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
62799         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
62800         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
62801         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
62802         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
62803         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
62804         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
62805         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
62806         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
62807         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
62808         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
62809         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
62810
62811 2007-01-27  Bruno Haible  <bruno@clisp.org>
62812
62813         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
62814         check_PROGRAMS into noinst_PROGRAMS.
62815         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
62816         check_PROGRAMS in this case.
62817         (func_import): Set for_test to false.
62818         (func_create_testdir): Set for_test to true.
62819
62820 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
62821             Bruno Haible  <bruno@clisp.org>
62822
62823         * modules/strcasestr (Files): Remove lib/strcasestr.h.
62824         (Depends-on): Add string.
62825         (Includes): Use <string.h> instead of strcasestr.h.
62826         * modules/string (Makefile.am): Also substitute the value of
62827         REPLACE_STRCASESTR.
62828         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
62829         assume strcasestr is declared in <string.h> not <strings.h>. Also
62830         set REPLACE_STRCASESTR.
62831         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
62832         REPLACE_STRCASESTR.
62833         * lib/strcasestr.h: Remove file.
62834         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
62835         * lib/string_.h (strcasestr): New declaration.
62836
62837 2007-01-27  Bruno Haible  <bruno@clisp.org>
62838
62839         * lib/string_.h: Use 'extern'.
62840
62841 2007-01-27  Jim Meyering  <jim@meyering.net>
62842
62843         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
62844         of set-but-not-used local, "q".
62845
62846         * lib/mempcpy.c: Include <config.h> before <string.h>.
62847         This fixes a compilation error on HP-UX, due to the system's
62848         "restrict"-using mempcpy prototype.
62849
62850 2007-01-26  Bruno Haible  <bruno@clisp.org>
62851
62852         Small optimization.
62853         * lib/javacomp.c: Include c-strstr.h.
62854          (is_envjavac_gcj): Use c_strstr instead of strstr.
62855         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
62856
62857 2007-01-26  Bruno Haible  <bruno@clisp.org>
62858
62859         * MODULES.html.sh (Unicode string functions): Add the new modules.
62860
62861         * modules/uniconv/u32-strconv-to-locale: New file.
62862         * lib/uniconv/u32-strconv-to-locale.c: New file.
62863
62864         * modules/uniconv/u16-strconv-to-locale: New file.
62865         * lib/uniconv/u16-strconv-to-locale.c: New file.
62866
62867         * modules/uniconv/u8-strconv-to-locale: New file.
62868         * lib/uniconv/u8-strconv-to-locale.c: New file.
62869
62870         * modules/uniconv/u32-strconv-from-locale: New file.
62871         * lib/uniconv/u32-strconv-from-locale.c: New file.
62872
62873         * modules/uniconv/u16-strconv-from-locale: New file.
62874         * lib/uniconv/u16-strconv-from-locale.c: New file.
62875
62876         * modules/uniconv/u8-strconv-from-locale: New file.
62877         * lib/uniconv/u8-strconv-from-locale.c: New file.
62878
62879         * modules/uniconv/u32-strconv-to-enc: New file.
62880         * lib/uniconv/u32-strconv-to-enc.c: New file.
62881         * modules/uniconv/u32-strconv-to-enc-tests: New file.
62882         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
62883
62884         * modules/uniconv/u16-strconv-to-enc: New file.
62885         * lib/uniconv/u16-strconv-to-enc.c: New file.
62886         * lib/uniconv/u-strconv-to-enc.h: New file.
62887         * modules/uniconv/u16-strconv-to-enc-tests: New file.
62888         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
62889
62890         * modules/uniconv/u8-strconv-to-enc: New file.
62891         * lib/uniconv/u8-strconv-to-enc.c: New file.
62892         * modules/uniconv/u8-strconv-to-enc-tests: New file.
62893         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
62894
62895         * modules/uniconv/u32-strconv-from-enc: New file.
62896         * lib/uniconv/u32-strconv-from-enc.c: New file.
62897         * modules/uniconv/u32-strconv-from-enc-tests: New file.
62898         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
62899
62900         * modules/uniconv/u16-strconv-from-enc: New file.
62901         * lib/uniconv/u16-strconv-from-enc.c: New file.
62902         * modules/uniconv/u16-strconv-from-enc-tests: New file.
62903         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
62904
62905         * modules/uniconv/u8-strconv-from-enc: New file.
62906         * lib/uniconv/u8-strconv-from-enc.c: New file.
62907         * lib/uniconv/u-strconv-from-enc.h: New file.
62908         * modules/uniconv/u8-strconv-from-enc-tests: New file.
62909         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
62910
62911         * modules/uniconv/u32-conv-from-enc: New file.
62912         * lib/uniconv/u32-conv-from-enc.c: New file.
62913         * modules/uniconv/u32-conv-from-enc-tests: New file.
62914         * tests/uniconv/test-u32-conv-from-enc.c: New file.
62915
62916         * modules/uniconv/u16-conv-from-enc: New file.
62917         * lib/uniconv/u16-conv-from-enc.c: New file.
62918         * lib/uniconv/u-conv-from-enc.h: New file.
62919         * modules/uniconv/u16-conv-from-enc-tests: New file.
62920         * tests/uniconv/test-u16-conv-from-enc.c: New file.
62921
62922         * modules/uniconv/u8-conv-from-enc: New file.
62923         * lib/uniconv/u8-conv-from-enc.c: New file.
62924         * modules/uniconv/u8-conv-from-enc-tests: New file.
62925         * tests/uniconv/test-u8-conv-from-enc.c: New file.
62926
62927         * modules/uniconv/base: New file.
62928         * lib/uniconv.h: New file.
62929
62930 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
62931
62932         * doc/gnulib-tool.texi (Initial import): Update to match current
62933         behavior with strdup module.
62934         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
62935         * lib/memmem.h: Remove; all uses removed.  This is now done
62936         by <string.h>.
62937         * lib/mempcpy.h: Likewise.
62938         * lib/memrchr.h: Likewise.
62939         * lib/stpcpy.h: Likewise.
62940         * lib/stpncpy.h: Likewise.
62941         * lib/strcase.h: Likewise.
62942         * lib/strchrnul.h: Likewise.
62943         * lib/strdup.h: Likewise.
62944         * lib/strndup.h: Likewise.
62945         * lib/strnlen.h: Likewise.
62946         * lib/strpbrk.h: Likewise.
62947         * lib/strsep.h: Likewise.
62948         * lib/strstr.h: Likewise.
62949         * lib/strtok_r.h: Likewise.
62950         * lib/string_.h: New file.
62951         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
62952         Rely on <string.h> instead.
62953         * lib/canon-host.c: Likewise.
62954         * lib/chdir-long.c: Likewise.
62955         * lib/concatpath.c: Likewise.
62956         * lib/exclude.c: Likewise.
62957         * lib/fchdir.c: Likewise.
62958         * lib/getaddrinfo.c: Likewise.
62959         * lib/getcwd.c: Likewise.
62960         * lib/getsubopt.c: Likewise.
62961         * lib/glob.c: Likewise.
62962         * lib/hard-locale.c: Likewise.
62963         * lib/iconvme.c: Likewise.
62964         * lib/javacomp.c: Likewise.
62965         * lib/mempcpy.c: Likewise.
62966         * lib/memrchr.c: Likewise.
62967         * lib/regex_internal.h: Likewise.
62968         * lib/stpncpy.c: Likewise.
62969         * lib/strcasecmp.c: Likewise.
62970         * lib/strchrnul.c: Likewise.
62971         * lib/strdup.c: Likewise.
62972         * lib/striconv.c: Likewise.
62973         * lib/striconveh.c: Likewise.
62974         * lib/striconveha.c: Likewise.
62975         * lib/strncasecmp.c: Likewise.
62976         * lib/strndup.c: Likewise.
62977         * lib/strnlen.c: Likewise.
62978         * lib/strsep.c: Likewise.
62979         * lib/strstr.c: Likewise.
62980         * lib/strtok_r.c: Likewise.
62981         * lib/userspec.c: Likewise.
62982         * lib/w32spawn.h: Likewise.
62983         * lib/xstrndup.c: Likewise.
62984         * lib/mountlist.c (strstr): Remove decl.
62985         * m4/string_h.m4: New file.
62986         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
62987         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
62988         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
62989         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
62990         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
62991         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
62992         Set REPLACE_STRCASECMP if necessary.
62993         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
62994         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
62995         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
62996         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
62997         HAVE_DECL_STRDUP if necessary.
62998         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
62999         since gl_FUNC_STRNDUP does that now.
63000         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
63001         Check for decl here...
63002         (gl_PREREQ_STRNLEN): ... not here.
63003         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
63004         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
63005         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
63006         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
63007         necessary.
63008         * modules/string: New file.
63009         * modules/memmem (Files): Remove special-purpose include file.
63010         (Depends-on): Add string.
63011         (Include): Include <string.h>, not the removed file.
63012         * modules/mempcpy: Likewise.
63013         * modules/memrchr: Likewise.
63014         * modules/stpcpy: Likewise.
63015         * modules/stpncpy: Likewise.
63016         * modules/strcase: Likewise.
63017         * modules/strchrnul: Likewise.
63018         * modules/strdup: Likewise.
63019         * modules/strndup: Likewise.
63020         * modules/strnlen: Likewise.
63021         * modules/strpbrk: Likewise.
63022         * modules/strsep: Likewise.
63023         * modules/strstr: Likewise.
63024         * modules/strtok_r: Likewise.
63025         * tests/test-dirname.c: Don't include "strdup.h", since
63026         <string.h> now suffices.
63027         * tests/test-memmem.c: Don't include "memmem.h", since
63028         <string.h> now suffices.
63029
63030 2007-01-25  Bruno Haible  <bruno@clisp.org>
63031
63032         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
63033         *resultp is 0.
63034
63035         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
63036         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
63037         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
63038         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
63039
63040         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
63041         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
63042         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
63043         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
63044         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
63045         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
63046
63047 2007-01-24  Bruno Haible  <bruno@clisp.org>
63048
63049         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
63050         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
63051         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
63052         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
63053         gl_FUNC_FTS_CORE.
63054         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
63055         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
63056         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
63057         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
63058         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
63059         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
63060         gl_FUNC_FCHOWNAT.
63061         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
63062         gl_FUNC_STRFTIME.
63063         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
63064         Reported by Ralf Wildenhues.
63065
63066 2007-01-24  Bruno Haible  <bruno@clisp.org>
63067
63068         Drop AC_REQUIRE calls that are redundant with the module dependencies.
63069         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
63070         gl_GETADDRINFO.
63071         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
63072         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
63073         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
63074
63075 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
63076
63077         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
63078         Don't use 'exit'; just return from 'main'.
63079         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
63080
63081         * lib/fnmatch_.h: Readjust white space and comments to match
63082         glibc, to avoid spurious diffs.
63083
63084 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
63085
63086         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
63087         2004-12-01 change by Jakub Jelinek, since this code won't compile
63088         if !LIBC.  Problem reported by Bob Proulx.
63089
63090 2007-01-23  Bruno Haible  <bruno@clisp.org>
63091
63092         * lib/striconveh.c: Include c-strcaseeq.h.
63093         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
63094         * modules/striconveh (Depends-on): Add c-strcaseeq.
63095
63096 2007-01-23  Bruno Haible  <bruno@clisp.org>
63097
63098         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
63099
63100         * modules/c-strcaseeq: New file.
63101         * lib/c-strcaseeq.h: New file.
63102
63103         * modules/streq: New file.
63104         * lib/streq.h: New file.
63105
63106 2007-01-23  Bruno Haible  <bruno@clisp.org>
63107
63108         * modules/striconveha-tests: New file.
63109         * tests/test-striconveha.c: New file.
63110
63111         * lib/striconveha.h: Include <stdbool.h>.
63112         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
63113         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
63114         (mem_iconveha_notranslit): Renamed from mem_iconveha.
63115         (mem_iconveha): New function.
63116         (str_iconveha_notranslit): Renamed from str_iconveha.
63117         (str_iconveha): New function.
63118         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
63119         c-strcase.
63120
63121 2007-01-23  Bruno Haible  <bruno@clisp.org>
63122
63123         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
63124         encodings without forgiving before trying any encoding with handler.
63125         (str_iconveha): Try all encodings without forgiving before trying any
63126         encoding with handler.
63127
63128 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
63129
63130         Import the following changes from libc.
63131
63132         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
63133
63134         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
63135
63136         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
63137
63138         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
63139         normal_bracket label.
63140
63141         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
63142
63143         [BZ #361]
63144         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
63145         to normal_bracket after fetching the next character.
63146
63147 2007-01-22  Bruno Haible  <bruno@clisp.org>
63148
63149         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
63150         argument.
63151         * lib/striconveh.c (iconv_carefully_1): New function.
63152         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
63153         argument.
63154         (str_cd_iconveh): Update.
63155         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
63156         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
63157         * tests/test-striconveh.c (MAGIC): New macro.
63158         (new_offsets): New function.
63159         (main): Test call with and without offsets.
63160
63161 2007-01-22  Bruno Haible  <bruno@clisp.org>
63162
63163         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
63164         * modules/sys_select (Makefile.am): Likewise.
63165         * modules/sys_socket (Makefile.am): Likewise.
63166         * modules/sys_time (Makefile.am): Likewise.
63167
63168 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
63169
63170         * modules/gettimeofday (License): Change from GPL to LGPL, since
63171         gettimeofday is a library function.
63172
63173 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63174
63175         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
63176
63177 2007-01-21  Bruno Haible  <bruno@clisp.org>
63178
63179         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
63180
63181 2007-01-21  Bruno Haible  <bruno@clisp.org>
63182
63183         * modules/striconveha: New file.
63184         * lib/striconveha.h: New file.
63185         * lib/striconveha.c: New file.
63186         * MODULES.html.sh (Internationalization functions): Add striconveha.
63187         * lib/striconv.c (str_iconv): Optimize the case of an empty input
63188         string.
63189         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
63190
63191 2007-01-21  Bruno Haible  <bruno@clisp.org>
63192
63193         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
63194         * lib/striconveh.c (str_iconveh): Likewise.
63195
63196 2007-01-21  Bruno Haible  <bruno@clisp.org>
63197
63198         * lib/striconveh.h (mem_iconveh): New declaration.
63199         * lib/striconveh.c (mem_iconveh): New function.
63200         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
63201
63202 2007-01-21  Bruno Haible  <bruno@clisp.org>
63203
63204         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
63205
63206         * lib/striconveh.h (mem_cd_iconveh): Change specification.
63207         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
63208         original result buffer.
63209         (str_cd_iconveh): Update.
63210         * tests/test-striconveh.c (main): Update.
63211
63212         * lib/striconv.h (mem_cd_iconv): Change specification.
63213         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
63214         result buffer.
63215         (str_cd_iconv): Update.
63216         * tests/test-striconv.c (main): Update.
63217
63218 2007-01-21  Bruno Haible  <bruno@clisp.org>
63219
63220         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
63221
63222 2007-01-20  Jim Meyering  <jim@meyering.net>
63223
63224         * lib/userspec.c (parse_with_separator): If a user or group string
63225         starts with "+", skip the corresponding name-to-ID look-up, since
63226         such a look-up must fail: user and group names may not include "+".
63227
63228 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
63229
63230         * lib/poll.c: Include sys/time.h and time.h unconditionally,
63231         since we now assume the sys_time module.
63232         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
63233         check for sys/time.h; no longer needed.
63234         * modules/poll (Depends-on): Depend on sys_time.
63235
63236 2007-01-18  Bruno Haible  <bruno@clisp.org>
63237
63238         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
63239         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
63240
63241         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
63242         gettimeofday.
63243
63244         * tests/test-gettimeofday.c: Include <time.h>.
63245         (dummy): Remove variable.
63246
63247         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
63248         gl_HEADER_SYS_TIME_H.
63249         (gl_HEADER_SYS_TIME_H): New macro.
63250
63251         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
63252         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
63253         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
63254         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
63255         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
63256         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
63257         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
63258         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
63259         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
63260         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
63261         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
63262
63263         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
63264         last change; it caused a compilation error when cross-compiling to
63265         Cygwin.
63266
63267 2007-01-18  Jim Meyering  <jim@meyering.net>
63268
63269         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
63270         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
63271         than the race-prone "test -d sys || mkdir sys".
63272         (configure.ac): Use AC_PROG_MKDIR_P.
63273         * modules/sys_select: Likewise.
63274         * modules/sys_socket: Likewise.
63275         * modules/sys_time: Likewise.
63276
63277 2007-01-18  Eric Blake  <ebb9@byu.net>
63278
63279         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
63280         replace gettimeofday.
63281         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
63282         name, to avoid infinite recursion.
63283
63284 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
63285
63286         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
63287         module sys_time.
63288         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
63289         assume timespec.h defines struct timeval.
63290         * lib/settime.c: Likewise.
63291         * lib/utimens.c: Likewise.
63292         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
63293         since we now assume the gettimeofday module.
63294         * lib/tempname.c (__gen_tempname): Likewise.
63295         * lib/gettimeofday.h: Remove.
63296         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
63297         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
63298         Include <time.h>, for 'time()'.
63299         (localtime_buffer_addr): Also use this workaround if
63300         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
63301         to simplify the uses.  All uses changed.
63302         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
63303         that #undef is inside {}, and 'const' follows type name consistently.
63304         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
63305         (gettimeofday): Do not use the maximum possible value for
63306         tv->tv_usec, since that might break usages other than ls.c.
63307         Instead, we'll leave ls.c alone.  This undoes today's patch
63308         by Bruno.  Add a compile-time warning for 1s-clock resolution;
63309         we've never observed the problem but might as well keep the
63310         canary.
63311         * lib/nanosleep.c: Include timespec.h first, for interface check.
63312         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
63313         now assume the sys_time module.
63314         * lib/tempname.c: Likewise.
63315         * lib/timespec.h: Likewise.
63316         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
63317         needed.
63318         * lib/strftime.c: Likewise.
63319         * lib/timespec.h: Likewise.
63320         * lib/posixtm.c: Include posixtm.h first, for interface check.
63321         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
63322         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
63323         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
63324         * lib/sys_time_.h: New file.
63325         * lib/timespec.h (struct timespec): Use long int, not long.
63326         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
63327         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
63328         Remove obsolescent call to AC_HEADER_TIME.
63329         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
63330         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
63331         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
63332         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
63333         Likewise.
63334         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
63335         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
63336         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
63337         into the sys_time module.  Check for gettimeofday just once.
63338         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
63339         for gettimeofday signature to just check the signature.  Merely
63340         compile it, since linking doesn't test signature.  Improve test for
63341         whether gettimeofday.o is actually needed.
63342         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
63343         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
63344         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
63345         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
63346         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
63347         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
63348         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
63349         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
63350         than worrying about sys/time.h.
63351         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
63352         Don't bother worrying about TIME_WITH_SYS_TIME.
63353         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
63354         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
63355         * m4/sys_time_h.m4: New file.
63356         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
63357         Don't include sys/time.h.  Return from main rather than exiting.
63358         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
63359         all uses changed.
63360         * modules/gethrxtime (Depends-on): Add sys_time.
63361         * modules/gettime (Depends-on): Likewise.
63362         * modules/gettimeofday (Depends-on): Likewise.
63363         * modules/nanosleep (Depends-on): Likewise.
63364         * modules/settime (Depends-on): Likewise.
63365         * modules/tempname (Depends-on): Likewise.
63366         * modules/utimens (Depends-on): Likewise.
63367         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
63368         (Include): Change back to <sys/time.h>.
63369         (Maintainer): Add self.
63370         * modules/sys_time: New file.
63371         * modules/tempname (Depends-on): Add gettimeofday.
63372         * tests/test-gettimeofday.c: Include <sys/time.h>
63373         rather than gettimeofday.h.
63374
63375 2007-01-17  Bruno Haible  <bruno@clisp.org>
63376
63377         * gnulib-tool (func_get_license): Revert last patch. Instead, let
63378         the license default to GPL.
63379         (func_create_testdir): Don't complain if a module is LGPL and its
63380         tests module depends on GPLed modules.
63381
63382 2007-01-17  Bruno Haible  <bruno@clisp.org>
63383
63384         * lib/gettimeofday.c (gettimeofday): Add code for the case
63385         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
63386         maximum possible value for tv->tv_usec, rather than the minimum one.
63387
63388 2005-10-08  Martin Lambers  <marlam@marlam.de>
63389 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
63390 2007-01-16  Bruno Haible  <bruno@clisp.org>
63391
63392         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
63393         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
63394         gl_FUNC_GETTIMEOFDAY.
63395         (Include): Add gettimeofday.h.
63396         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
63397         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
63398         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
63399         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
63400         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
63401         * lib/gettimeofday.h: New file.
63402         * lib/gettimeofday.c: Include <sys/timeb.h>.
63403         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
63404         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
63405         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
63406         fall back on time().
63407
63408         * tests/test-gettimeofday.c: New file.
63409         * modules/gettimeofday-tests: New file.
63410
63411 2007-01-16  Eric Blake  <ebb9@byu.net>
63412
63413         * modules/fnmatch (Depends-on): Depend on wchar.
63414         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
63415         * m4/fnmatch.m4: Likewise.
63416         * modules/mbchar (Makefile.am): Assume <wchar.h>.
63417         * m4/mbchar.m4: Likewise.
63418         * modules/mbswidth (Depends-on): Depend on wchar.
63419         * lib/mbswidth.c: Assume <wchar.h>.
63420         * m4/mbswidth.m4: Likewise.
63421         * modules/quotearg (Depends-on): Depend on wchar.
63422         * lib/quotearg.c: Assume <wchar.h>.
63423         * m4/quotearg.m4: Likewise.
63424         * modules/regex (Depends-on): Depend on wchar.
63425         * lib/regex_internal.h: Assume <wchar.h>.
63426         * m4/regex.m4: Likewise.
63427         * modules/stdint (Depends-on): Depend on wchar.
63428         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
63429         * m4/stdint.m4: Likewise.
63430         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
63431         * modules/strftime (Depends-on): Depend on wchar.
63432         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
63433         * modules/strtol (Depends-on): Depend on wchar.
63434         * lib/strtol.c: Assume <wchar.h>.
63435         * modules/wcwidth (Depends-on): Depend on wchar.
63436         * lib/wcwidth.h: Assume <wchar.h>.
63437         * m4/wcwidth.m4: Likewise.
63438
63439 2007-01-16  Bruno Haible  <bruno@clisp.org>
63440
63441         * modules/csharpexec-script: New, created from...
63442         * modules/csharpexec: ... this.
63443
63444 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
63445
63446         * modules/javaexec-script: New, created from...
63447         * modules/javaexec: ... this.
63448
63449 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63450
63451         * modules/poll (Dependencies): Add sys_select.
63452
63453 2007-01-15  Jim Meyering  <jim@meyering.net>
63454
63455         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
63456         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
63457         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
63458         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
63459
63460 2007-01-15  Bruno Haible  <bruno@clisp.org>
63461
63462         * modules/striconveh: New file.
63463         * lib/striconveh.h: New file.
63464         * lib/striconveh.c: New file.
63465         * MODULES.html.sh (Internationalization functions): Add striconveh.
63466
63467         * modules/striconveh-tests: New file.
63468         * tests/test-striconveh.c: New file.
63469
63470 2007-01-15  Bruno Haible  <bruno@clisp.org>
63471
63472         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
63473         not from GNU libiconv or GNU libc.
63474
63475 2007-01-15  Bruno Haible  <bruno@clisp.org>
63476
63477         * doc/gnulib-intro.texi (Copyright): Explain the different license
63478         terms for module descriptions, autoconf macros, tests, documentation.
63479
63480 2007-01-14  Bruno Haible  <bruno@clisp.org>
63481
63482         * modules/striconv-tests: New file.
63483         * tests/test-striconv.c: New file.
63484
63485 2007-01-14  Bruno Haible  <bruno@clisp.org>
63486
63487         * modules/iconv-tests: New file.
63488         * tests/test-iconv.c: New file.
63489
63490 2007-01-14  Bruno Haible  <bruno@clisp.org>
63491
63492         * gnulib-tool (func_get_license): For test modules, use the license of
63493         the main module.
63494
63495 2007-01-14  Bruno Haible  <bruno@clisp.org>
63496
63497         * modules/iconv (Include): Clarify that <iconv.h> can only be included
63498         if iconv is found to exist.
63499
63500 2007-01-14  Bruno Haible  <bruno@clisp.org>
63501
63502         * modules/c-ctype-tests: New file.
63503         * tests/test-c-ctype.c: New file.
63504
63505 2007-01-14  Bruno Haible  <bruno@clisp.org>
63506
63507         * modules/binary-io-tests: New file.
63508         * tests/test-binary-io.sh: New file.
63509         * tests/test-binary-io.c: New file.
63510
63511 2007-01-14  Bruno Haible  <bruno@clisp.org>
63512
63513         * modules/array-oset-tests: New file.
63514         * tests/test-array_oset.c: New file.
63515
63516 2007-01-14  Bruno Haible  <bruno@clisp.org>
63517
63518         * modules/array-list-tests: New file.
63519         * tests/test-array_list.c: New file.
63520
63521 2007-01-14  Bruno Haible  <bruno@clisp.org>
63522
63523         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
63524         and make.
63525         Reported by Simon Josefsson in
63526         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
63527
63528 2007-01-14  Bruno Haible  <bruno@clisp.org>
63529
63530         * modules/allocsa-tests: New file.
63531         * tests/test-allocsa.c: New file.
63532
63533 2007-01-14  Bruno Haible  <bruno@clisp.org>
63534
63535         * modules/fchdir (Depends-on): Add absolute-header.
63536         * modules/unistd (Depends-on): Likewise.
63537
63538 2006-12-30  Bruno Haible  <bruno@clisp.org>
63539
63540         * modules/fchdir: New file.
63541         * modules/unistd (Files): Add lib/unistd_.h.
63542         (Makefile.am): Generate unistd.h from unistd_.h.
63543         * lib/fchdir.c: New file.
63544         * lib/dirent_.h: New file.
63545         * lib/unistd_.h: New file.
63546         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
63547         * m4/fchdir.m4: New file.
63548         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
63549         (gl_HEADER_UNISTD): Invoke it.
63550         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
63551         function.
63552         * lib/backupfile.c (opendir, closedir): Undefine.
63553         * lib/chown.c (open, close): Undefine.
63554         * lib/clean-temp.c (open, close): Undefine.
63555         * lib/copy-file.c (open, close): Undefine.
63556         * lib/execute.c (open, close): Undefine.
63557         * lib/fsusage.c (open, close): Undefine.
63558         * lib/gc-gnulib.c (open, close): Undefine.
63559         * lib/getcwd.c (opendir, closedir): Undefine.
63560         * lib/glob.c (opendir, closedir): Undefine.
63561         * lib/javacomp.c (open, close): Undefine.
63562         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
63563         * lib/openat-proc.c (open, close): Undefine.
63564         * lib/pagealign_alloc.c (open, close): Undefine.
63565         * lib/pipe.c (open, close): Undefine.
63566         * lib/progreloc.c (open, close): Undefine.
63567         * lib/savedir.c (opendir, closedir): Undefine.
63568         * lib/utime.c (open, close): Undefine.
63569         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
63570
63571 2007-01-10  Bruno Haible  <bruno@clisp.org>
63572
63573         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
63574
63575 2007-01-12  Eric Blake  <ebb9@byu.net>
63576
63577         Provide a robust <wchar.h>.  Further simplifications are now
63578         possible in other modules, but not included here.
63579         * modules/wchar: New module.
63580         * m4/wchar.m4: New file.
63581         * lib/wchar_.h: Likewise.
63582         * modules/mbchar (Depends-on): Depend on wchar, as the first use
63583         of the new module.
63584         * MODULES.html.sh (Extended multibyte and wide character utilities):
63585         New section.
63586
63587 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
63588
63589         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
63590         to a reasonable default for memory allocation.
63591         (xreadlink): Don't allocate a huge buffer, to work around a buggy
63592         file system that reports garbage st_size values for symlinks.
63593         Problem reported by Liyang Hu.
63594
63595 2007-01-11  Simon Josefsson  <simon@josefsson.org>
63596
63597         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
63598         Emacs .#* auto-save files).
63599
63600 2007-01-11  Bruno Haible  <bruno@clisp.org>
63601
63602         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
63603         directory.
63604
63605 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
63606
63607         Use @...@ consistently in lib/wctype_.h.
63608         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
63609         on it being set to 1 or 0.
63610         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
63611         go back to AC_SUBSTing it.
63612         * modules/wctype (Makefile.am): Undo previous change.
63613
63614 2007-01-10  Eric Blake  <ebb9@byu.net>
63615
63616         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
63617         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
63618         * modules/wctype (Makefile.am): Likewise.
63619         Reported by Chris McGuire.
63620
63621 2007-01-10  Jim Meyering  <jim@meyering.net>
63622
63623         fts.c: a small readability/maintainability improvement
63624         * lib/fts.c (fts_read): Make this code slightly more readable and
63625         maintainable by hoisting the "sp->fts_cur = p" assignments to
63626         immediately follow the statements that set P.  Derived from
63627         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
63628
63629 2007-01-10  Eric Blake  <ebb9@byu.net>
63630
63631         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
63632         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
63633         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
63634         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
63635         Reported by Chris McGuire.
63636
63637 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63638
63639         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
63640         in sed script.
63641
63642 2007-01-09  Bruno Haible  <bruno@clisp.org>
63643
63644         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
63645         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
63646         variables.
63647         (func_module): Use them.
63648
63649 2007-01-09  Bruno Haible  <bruno@clisp.org>
63650
63651         * modules/unistr/base: New file.
63652         * lib/unistr.h: New file.
63653
63654         * modules/unistr/u8-to-u16: New file.
63655         * lib/unistr/u8-to-u16.c: New file.
63656
63657         * modules/unistr/u8-to-u32: New file.
63658         * lib/unistr/u8-to-u32.c: New file.
63659
63660         * modules/unistr/u16-to-u8: New file.
63661         * lib/unistr/u16-to-u8.c: New file.
63662
63663         * modules/unistr/u16-to-u32: New file.
63664         * lib/unistr/u16-to-u32.c: New file.
63665
63666         * modules/unistr/u32-to-u8: New file.
63667         * lib/unistr/u32-to-u8.c: New file.
63668
63669         * modules/unistr/u32-to-u16: New file.
63670         * lib/unistr/u32-to-u16.c: New file.
63671
63672         * modules/unistr/u8-check: New file.
63673         * modules/unistr/u16-check: New file.
63674         * modules/unistr/u32-check: New file.
63675         * lib/unistr/u8-check.c: New file.
63676         * lib/unistr/u16-check.c: New file.
63677         * lib/unistr/u32-check.c: New file.
63678
63679         * modules/unistr/u8-chr: New file.
63680         * modules/unistr/u16-chr: New file.
63681         * modules/unistr/u32-chr: New file.
63682         * lib/unistr/u8-chr.c: New file.
63683         * lib/unistr/u16-chr.c: New file.
63684         * lib/unistr/u32-chr.c: New file.
63685
63686         * modules/unistr/u8-cmp: New file.
63687         * modules/unistr/u16-cmp: New file.
63688         * modules/unistr/u32-cmp: New file.
63689         * lib/unistr/u8-cmp.c: New file.
63690         * lib/unistr/u16-cmp.c: New file.
63691         * lib/unistr/u32-cmp.c: New file.
63692
63693         * modules/unistr/u8-cpy: New file.
63694         * modules/unistr/u16-cpy: New file.
63695         * modules/unistr/u32-cpy: New file.
63696         * lib/unistr/u8-cpy.c: New file.
63697         * lib/unistr/u16-cpy.c: New file.
63698         * lib/unistr/u32-cpy.c: New file.
63699         * lib/unistr/u-cpy.h: New file.
63700
63701         * modules/unistr/u8-cpy-alloc: New file.
63702         * modules/unistr/u16-cpy-alloc: New file.
63703         * modules/unistr/u32-cpy-alloc: New file.
63704         * lib/unistr/u8-cpy-alloc.c: New file.
63705         * lib/unistr/u16-cpy-alloc.c: New file.
63706         * lib/unistr/u32-cpy-alloc.c: New file.
63707         * lib/unistr/u-cpy-alloc.h: New file.
63708
63709         * modules/unistr/u8-endswith: New file.
63710         * modules/unistr/u16-endswith: New file.
63711         * modules/unistr/u32-endswith: New file.
63712         * lib/unistr/u8-endswith.c: New file.
63713         * lib/unistr/u16-endswith.c: New file.
63714         * lib/unistr/u32-endswith.c: New file.
63715         * lib/unistr/u-endswith.h: New file.
63716
63717         * modules/unistr/u8-mblen: New file.
63718         * modules/unistr/u16-mblen: New file.
63719         * modules/unistr/u32-mblen: New file.
63720         * lib/unistr/u8-mblen.c: New file.
63721         * lib/unistr/u16-mblen.c: New file.
63722         * lib/unistr/u32-mblen.c: New file.
63723
63724         * modules/unistr/u8-mbtouc: New file.
63725         * modules/unistr/u16-mbtouc: New file.
63726         * modules/unistr/u32-mbtouc: New file.
63727         * lib/unistr/u8-mbtouc.c: New file.
63728         * lib/unistr/u16-mbtouc.c: New file.
63729         * lib/unistr/u32-mbtouc.c: New file.
63730
63731         * modules/unistr/u8-mbtouc-safe: New file.
63732         * modules/unistr/u16-mbtouc-safe: New file.
63733         * modules/unistr/u32-mbtouc-safe: New file.
63734         * lib/unistr/u8-mbtouc-safe.c: New file.
63735         * lib/unistr/u16-mbtouc-safe.c: New file.
63736         * lib/unistr/u32-mbtouc-safe.c: New file.
63737
63738         * modules/unistr/u8-move: New file.
63739         * modules/unistr/u16-move: New file.
63740         * modules/unistr/u32-move: New file.
63741         * lib/unistr/u8-move.c: New file.
63742         * lib/unistr/u16-move.c: New file.
63743         * lib/unistr/u32-move.c: New file.
63744         * lib/unistr/u-move.h: New file.
63745
63746         * modules/unistr/u8-next: New file.
63747         * modules/unistr/u16-next: New file.
63748         * modules/unistr/u32-next: New file.
63749         * lib/unistr/u8-next.c: New file.
63750         * lib/unistr/u16-next.c: New file.
63751         * lib/unistr/u32-next.c: New file.
63752
63753         * modules/unistr/u8-prev: New file.
63754         * modules/unistr/u16-prev: New file.
63755         * modules/unistr/u32-prev: New file.
63756         * lib/unistr/u8-prev.c: New file.
63757         * lib/unistr/u16-prev.c: New file.
63758         * lib/unistr/u32-prev.c: New file.
63759
63760         * modules/unistr/u8-set: New file.
63761         * modules/unistr/u16-set: New file.
63762         * modules/unistr/u32-set: New file.
63763         * lib/unistr/u8-set.c: New file.
63764         * lib/unistr/u16-set.c: New file.
63765         * lib/unistr/u32-set.c: New file.
63766         * lib/unistr/u-set.h: New file.
63767
63768         * modules/unistr/u8-startswith: New file.
63769         * modules/unistr/u16-startswith: New file.
63770         * modules/unistr/u32-startswith: New file.
63771         * lib/unistr/u8-startswith.c: New file.
63772         * lib/unistr/u16-startswith.c: New file.
63773         * lib/unistr/u32-startswith.c: New file.
63774         * lib/unistr/u-startswith.h: New file.
63775
63776         * modules/unistr/u8-stpcpy: New file.
63777         * modules/unistr/u16-stpcpy: New file.
63778         * modules/unistr/u32-stpcpy: New file.
63779         * lib/unistr/u8-stpcpy.c: New file.
63780         * lib/unistr/u16-stpcpy.c: New file.
63781         * lib/unistr/u32-stpcpy.c: New file.
63782         * lib/unistr/u-stpcpy.h: New file.
63783
63784         * modules/unistr/u8-stpncpy: New file.
63785         * modules/unistr/u16-stpncpy: New file.
63786         * modules/unistr/u32-stpncpy: New file.
63787         * lib/unistr/u8-stpncpy.c: New file.
63788         * lib/unistr/u16-stpncpy.c: New file.
63789         * lib/unistr/u32-stpncpy.c: New file.
63790         * lib/unistr/u-stpncpy.h: New file.
63791
63792         * modules/unistr/u8-strcat: New file.
63793         * modules/unistr/u16-strcat: New file.
63794         * modules/unistr/u32-strcat: New file.
63795         * lib/unistr/u8-strcat.c: New file.
63796         * lib/unistr/u16-strcat.c: New file.
63797         * lib/unistr/u32-strcat.c: New file.
63798         * lib/unistr/u-strcat.h: New file.
63799
63800         * modules/unistr/u8-strchr: New file.
63801         * modules/unistr/u16-strchr: New file.
63802         * modules/unistr/u32-strchr: New file.
63803         * lib/unistr/u8-strchr.c: New file.
63804         * lib/unistr/u16-strchr.c: New file.
63805         * lib/unistr/u32-strchr.c: New file.
63806
63807         * modules/unistr/u8-strcmp: New file.
63808         * modules/unistr/u16-strcmp: New file.
63809         * modules/unistr/u32-strcmp: New file.
63810         * lib/unistr/u8-strcmp.c: New file.
63811         * lib/unistr/u16-strcmp.c: New file.
63812         * lib/unistr/u32-strcmp.c: New file.
63813
63814         * modules/unistr/u8-strcpy: New file.
63815         * modules/unistr/u16-strcpy: New file.
63816         * modules/unistr/u32-strcpy: New file.
63817         * lib/unistr/u8-strcpy.c: New file.
63818         * lib/unistr/u16-strcpy.c: New file.
63819         * lib/unistr/u32-strcpy.c: New file.
63820         * lib/unistr/u-strcpy.h: New file.
63821
63822         * modules/unistr/u8-strcspn: New file.
63823         * modules/unistr/u16-strcspn: New file.
63824         * modules/unistr/u32-strcspn: New file.
63825         * lib/unistr/u8-strcspn.c: New file.
63826         * lib/unistr/u16-strcspn.c: New file.
63827         * lib/unistr/u32-strcspn.c: New file.
63828         * lib/unistr/u-strcspn.h: New file.
63829
63830         * modules/unistr/u8-strdup: New file.
63831         * modules/unistr/u16-strdup: New file.
63832         * modules/unistr/u32-strdup: New file.
63833         * lib/unistr/u8-strdup.c: New file.
63834         * lib/unistr/u16-strdup.c: New file.
63835         * lib/unistr/u32-strdup.c: New file.
63836         * lib/unistr/u-strdup.h: New file.
63837
63838         * modules/unistr/u8-strlen: New file.
63839         * modules/unistr/u16-strlen: New file.
63840         * modules/unistr/u32-strlen: New file.
63841         * lib/unistr/u8-strlen.c: New file.
63842         * lib/unistr/u16-strlen.c: New file.
63843         * lib/unistr/u32-strlen.c: New file.
63844         * lib/unistr/u-strlen.h: New file.
63845
63846         * modules/unistr/u8-strmblen: New file.
63847         * modules/unistr/u16-strmblen: New file.
63848         * modules/unistr/u32-strmblen: New file.
63849         * lib/unistr/u8-strmblen.c: New file.
63850         * lib/unistr/u16-strmblen.c: New file.
63851         * lib/unistr/u32-strmblen.c: New file.
63852
63853         * modules/unistr/u8-strmbtouc: New file.
63854         * modules/unistr/u16-strmbtouc: New file.
63855         * modules/unistr/u32-strmbtouc: New file.
63856         * lib/unistr/u8-strmbtouc.c: New file.
63857         * lib/unistr/u16-strmbtouc.c: New file.
63858         * lib/unistr/u32-strmbtouc.c: New file.
63859
63860         * modules/unistr/u8-strncat: New file.
63861         * modules/unistr/u16-strncat: New file.
63862         * modules/unistr/u32-strncat: New file.
63863         * lib/unistr/u8-strncat.c: New file.
63864         * lib/unistr/u16-strncat.c: New file.
63865         * lib/unistr/u32-strncat.c: New file.
63866         * lib/unistr/u-strncat.h: New file.
63867
63868         * modules/unistr/u8-strncmp: New file.
63869         * modules/unistr/u16-strncmp: New file.
63870         * modules/unistr/u32-strncmp: New file.
63871         * lib/unistr/u8-strncmp.c: New file.
63872         * lib/unistr/u16-strncmp.c: New file.
63873         * lib/unistr/u32-strncmp.c: New file.
63874
63875         * modules/unistr/u8-strncpy: New file.
63876         * modules/unistr/u16-strncpy: New file.
63877         * modules/unistr/u32-strncpy: New file.
63878         * lib/unistr/u8-strncpy.c: New file.
63879         * lib/unistr/u16-strncpy.c: New file.
63880         * lib/unistr/u32-strncpy.c: New file.
63881         * lib/unistr/u-strncpy.h: New file.
63882
63883         * modules/unistr/u8-strnlen: New file.
63884         * modules/unistr/u16-strnlen: New file.
63885         * modules/unistr/u32-strnlen: New file.
63886         * lib/unistr/u8-strnlen.c: New file.
63887         * lib/unistr/u16-strnlen.c: New file.
63888         * lib/unistr/u32-strnlen.c: New file.
63889         * lib/unistr/u-strnlen.h: New file.
63890
63891         * modules/unistr/u8-strpbrk: New file.
63892         * modules/unistr/u16-strpbrk: New file.
63893         * modules/unistr/u32-strpbrk: New file.
63894         * lib/unistr/u8-strpbrk.c: New file.
63895         * lib/unistr/u16-strpbrk.c: New file.
63896         * lib/unistr/u32-strpbrk.c: New file.
63897         * lib/unistr/u-strpbrk.h: New file.
63898
63899         * modules/unistr/u8-strrchr: New file.
63900         * modules/unistr/u16-strrchr: New file.
63901         * modules/unistr/u32-strrchr: New file.
63902         * lib/unistr/u8-strrchr.c: New file.
63903         * lib/unistr/u16-strrchr.c: New file.
63904         * lib/unistr/u32-strrchr.c: New file.
63905
63906         * modules/unistr/u8-strspn: New file.
63907         * modules/unistr/u16-strspn: New file.
63908         * modules/unistr/u32-strspn: New file.
63909         * lib/unistr/u8-strspn.c: New file.
63910         * lib/unistr/u16-strspn.c: New file.
63911         * lib/unistr/u32-strspn.c: New file.
63912         * lib/unistr/u-strspn.h: New file.
63913
63914         * modules/unistr/u8-strstr: New file.
63915         * modules/unistr/u16-strstr: New file.
63916         * modules/unistr/u32-strstr: New file.
63917         * lib/unistr/u8-strstr.c: New file.
63918         * lib/unistr/u16-strstr.c: New file.
63919         * lib/unistr/u32-strstr.c: New file.
63920         * lib/unistr/u-strstr.h: New file.
63921
63922         * modules/unistr/u8-strtok: New file.
63923         * modules/unistr/u16-strtok: New file.
63924         * modules/unistr/u32-strtok: New file.
63925         * lib/unistr/u8-strtok.c: New file.
63926         * lib/unistr/u16-strtok.c: New file.
63927         * lib/unistr/u32-strtok.c: New file.
63928         * lib/unistr/u-strtok.h: New file.
63929
63930         * modules/unistr/u8-uctomb: New file.
63931         * modules/unistr/u16-uctomb: New file.
63932         * modules/unistr/u32-uctomb: New file.
63933         * lib/unistr/u8-uctomb.c: New file.
63934         * lib/unistr/u16-uctomb.c: New file.
63935         * lib/unistr/u32-uctomb.c: New file.
63936
63937         * MODULES.html.sh (Unicode string functions): Add the new modules.
63938
63939 2007-01-08  Bruno Haible  <bruno@clisp.org>
63940
63941         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
63942         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
63943         subdirectories.
63944
63945 2007-01-08  Karl Berry  <karl@gnu.org>
63946
63947         * doc/error.texi: mention that main() fns must set program_name
63948         when progname is used.
63949
63950 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
63951
63952         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
63953         WCTYPE_H is empty, for the benefit of builds from non-distclean
63954         directories.  Problem reported by Eric Blake in
63955         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
63956
63957 2007-01-08  Bruno Haible  <bruno@clisp.org>
63958
63959         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
63960         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
63961         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
63962         PROVIDE_CANONICALIZE_FILENAME_MODE.
63963         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
63964
63965 2007-01-08  Bruno Haible  <bruno@clisp.org>
63966
63967         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
63968         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
63969         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
63970         * lib/fts.c: Likewise.
63971         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
63972
63973 2006-12-25  Bruno Haible  <bruno@clisp.org>
63974
63975         * modules/utf8-ucs4-safe: New file.
63976         * lib/utf8-ucs4-safe.h: New file.
63977         * lib/unistr/utf8-ucs4-safe.c: New file.
63978
63979         * modules/utf16-ucs4-safe: New file.
63980         * lib/utf16-ucs4-safe.h: New file.
63981         * lib/unistr/utf16-ucs4-safe.c: New file.
63982
63983         * MODULES.html.sh (Unicode string functions): Add the new modules.
63984
63985 2007-01-08  Bruno Haible  <bruno@clisp.org>
63986
63987         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
63988         (Depends-on): Add unitypes.
63989         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
63990         (u8_mbtouc_aux): Move out to separate file.
63991         (u8_mbtouc): Use ucs4_t, uint8_t types.
63992         * lib/unistr/utf8-ucs4.c: New file.
63993
63994         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
63995         (Depends-on): Add unitypes.
63996         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
63997         (u16_mbtouc_aux): Move out to separate file.
63998         (u16_mbtouc): Use ucs4_t, uint16_t types.
63999         * lib/unistr/utf16-ucs4.c: New file.
64000
64001         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
64002         (Depends-on): Add unitypes.
64003         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
64004         (u8_uctomb_aux): Move out to separate file.
64005         (u8_uctomb): Use ucs4_t, uint8_t types.
64006         * lib/unistr/ucs4-utf8.c: New file.
64007
64008         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
64009         (Depends-on): Add unitypes.
64010         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
64011         (u16_uctomb_aux): Move out to separate file.
64012         (u16_uctomb): Use ucs4_t, uint16_t types.
64013         * lib/unistr/ucs4-utf16.c: New file.
64014
64015 2006-12-25  Bruno Haible  <bruno@clisp.org>
64016
64017         * modules/unitypes: New file.
64018         * lib/unitypes.h: New file.
64019         * MODULES.html.sh (func_all_modules): New section "Unicode string
64020         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
64021         this section. Add unitypes.
64022
64023 2007-01-08  Bruno Haible  <bruno@clisp.org>
64024
64025         Avoid variable names that conflict with those from libtool.
64026         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
64027         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
64028         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
64029         library_names_spec to acl_library_names_spec, hardcode_* to
64030         acl_hardcode_*.
64031         Reported by Ralf Wildenhues.
64032
64033 2007-01-08  Bruno Haible  <bruno@clisp.org>
64034
64035         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
64036         definition.
64037         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
64038         definition.
64039         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
64040         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
64041         definition.
64042         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
64043         definition.
64044         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
64045         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
64046         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
64047         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
64048         definition.
64049         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
64050         definition.
64051         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
64052         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
64053         GC_USE_<algorithm>.
64054         * lib/gc-libgcrypt.c: Likewise.
64055         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
64056         * modules/gc-arctwo (configure.ac): Likewise.
64057         * modules/gc-des (configure.ac): Likewise.
64058         * modules/gc-hmac-md5 (configure.ac): Likewise.
64059         * modules/gc-hmac-sha1 (configure.ac): Likewise.
64060         * modules/gc-md2 (configure.ac): Likewise.
64061         * modules/gc-md4 (configure.ac): Likewise.
64062         * modules/gc-md5 (configure.ac): Likewise.
64063         * modules/gc-random (configure.ac): Likewise.
64064         * modules/gc-rijndael (configure.ac): Likewise.
64065         * modules/gc-sha1 (configure.ac): Likewise.
64066
64067 2007-01-08  Bruno Haible  <bruno@clisp.org>
64068
64069         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
64070         macro definition.
64071         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
64072         definition.
64073         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
64074         definition.
64075         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
64076         * modules/fcntl-safer (configure.ac): Likewise.
64077         * modules/fopen-safer (configure.ac): Likewise.
64078         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
64079         GNULIB_FWRITEERROR macro definition.
64080
64081 2007-01-08  Bruno Haible  <bruno@clisp.org>
64082
64083         * m4/gnulib-common.m4: New file.
64084         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
64085         (func_get_filelist): Add m4/gnulib-common.m4.
64086
64087 2007-01-08  Bruno Haible  <bruno@clisp.org>
64088
64089         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
64090         command.
64091
64092 2007-01-08  Jim Meyering  <jim@meyering.net>
64093
64094         Use a more robust test for a "can't happen" condition.
64095         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
64096         narrowed the st_size value.  Presuming the "can't happen" condition
64097         is true, that narrowing could conceivably convert an invalid st_size
64098         value into a valid one.  Instead, use a change based on Matthew
64099         Woehlke's original patch.
64100
64101         Slight readability improvement: use an assert-like macro
64102         in place of literal "abort ()" uses.
64103         * lib/fts.c (fts_assert): Define.
64104         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
64105         Use this macro instead of a bare 'abort'.
64106
64107 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
64108
64109         Don't worry about using IRIX 5.3's wctype.h broken definitions;
64110         simply work around them.
64111         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
64112         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
64113         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
64114         declaring.
64115         Don't bother to define as macros, since the standard doesn't require it.
64116         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
64117         longer worry about IRIX 5.3.
64118         (HAVE_WCTYPE_CTMP_BUG): Remove.
64119
64120 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
64121
64122         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
64123         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
64124         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
64125         Problems reported by Georg Schwarz for IRIX 5.3.
64126
64127         * gnulib-tool (autoconf_minversion): Take the maximum version number
64128         found, not the minimum.  Problem reported by James Youngman.
64129
64130 2007-01-03  Karl Berry  <karl@gnu.org>
64131
64132         * doc/error.texi: new file, explaining interaction with progname.
64133         * doc/gnulib.texi: include it.  Update copyright.
64134
64135 2007-01-03  Simon Josefsson  <simon@josefsson.org>
64136
64137         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
64138         AC_CANONICAL_HOST, to improve autobuild outputs.
64139
64140 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
64141             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
64142
64143         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
64144         sockets, server sockets, and other file descriptors.  Count errors
64145         to compute the return value.  Reorder the code a bit to be easier
64146         to follow.  Don't set event bits that were not requested (except
64147         POLLERR and POLLHUP).
64148
64149 2007-01-01  Bruno Haible  <bruno@clisp.org>
64150
64151         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
64152
64153 2007-01-03  Jim Meyering  <jim@meyering.net>
64154
64155         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
64156
64157 2007-01-02  Bruno Haible  <bruno@clisp.org>
64158
64159         * modules/settime (Include): Require timespec.h.
64160         * modules/nanosleep (Include): Likewise.
64161
64162 2007-01-01  Bruno Haible  <bruno@clisp.org>
64163
64164         * gnulib-tool (func_emit_copyright_notice): Bump year.
64165         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
64166
64167 2007-01-01  Bruno Haible  <bruno@clisp.org>
64168
64169         Improve support for OpenBSD.
64170         * build-aux/config.rpath (libname_spec): Export.
64171         (library_names_spec): New variable. Export.
64172         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
64173         library_names_spec from the config.rpath output. Locate shared library
64174         through the name pattern in library_names_spec.
64175
64176 2007-01-01  Eric Blake  <ebb9@byu.net>
64177
64178         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
64179
64180 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
64181
64182         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
64183         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
64184         assume the C locale, and avoid an "eval" that could cause trouble.
64185         Problem with SORT reported by Bob Proulx.
64186
64187         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
64188         Define.  Trivial patch from Henning Nielsen Lund, originally
64189         sent to bug-grep@gnu.org today.
64190
64191 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
64192
64193         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
64194         struct stat.  Problem reported by Henning Nielsen Lund.
64195         * lib/acl.c: Include acl.h first, to check interface.  Don't
64196         bother to include sys/types.h and sys/stat.h again.
64197
64198 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
64199
64200         Import the following change from libc; problem reported by
64201         Sven Verdoolaege.
64202
64203         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
64204
64205         [BZ #1373]
64206         * lib/argp.h: Remove __NTH for __argp_usage inline function.
64207
64208 2006-12-28  Jim Meyering  <jim@meyering.net>
64209
64210         * build-aux/announce-gen: Do not assume that the package
64211         builds any of tar.gz, tar.bz2, and .xdelta files.
64212         Suggestion from Simon Josefsson.
64213
64214 2006-12-28  Simon Josefsson  <simon@josefsson.org>
64215
64216         * modules/announce-gen: New file.
64217
64218 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
64219
64220         * lib/mbchar.h: Just include <wctype.h>; the wctype module
64221         handles its gotchas now.
64222         * lib/mbswidth.c: Likewise.
64223         * lib/wcwidth.h: Likewise.
64224         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
64225         and iswcntrl; the wctype module does this stuff now.
64226         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
64227         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
64228         * modules/mbchar (Depends-on): Add wctype.
64229         * modules/mbswidth (Depends-on): Likewise.
64230         * modules/wcwidth (Depends-on): Likewise.
64231
64232 2006-12-27  Eric Blake  <ebb9@byu.net>
64233
64234         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
64235         module uses more than what <wctype.h> is required to provide.
64236
64237 2006-12-26  Eric Blake  <ebb9@byu.net>
64238
64239         * gnulib-tool (sed_extract_prog): Avoid space-tab.
64240
64241 2006-12-26  Eric Blake  <ebb9@byu.net>
64242
64243         * modules/absolute-header: New module.
64244         * modules/fcntl (Depends-on): Depend on it.
64245         * modules/inttypes (Depends-on): Likewise.
64246         * modules/stdint (Depends-on): Likewise.
64247         * modules/sys_stat (Depends-on): Likewise.
64248         * modules/wctype (Depends-on): Likewise.
64249         * MODULES.html.sh (Support for building libraries and
64250         executables): Document it.
64251
64252 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
64253
64254         * gnulib-tool (SED): Remove, undoing previous change.
64255         The problem was that it broke coreutils on Solaris, because
64256         "sed --posix" leaked into a makefile.
64257         (sed): New alias, if 'alias' and GNU sed.
64258
64259 2006-12-24  Jim Meyering  <jim@meyering.net>
64260
64261         Work around an fchownat bug in glibc-2.4:
64262         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
64263         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
64264         in spite of the -P option.
64265         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
64266         New macros.
64267         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
64268         * modules/openat (Files): Add lib/fchownat.c.
64269         * lib/openat.c (fchownat): Don't define here.  Move to...
64270         * lib/fchownat.c: ...this new file.
64271
64272 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
64273
64274         Fix bug reported by Bruno Haible in
64275         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
64276         where quotearg.c didn't compile on Mac OS X 10.2 because it
64277         lacks <wchar.h> and wint_t.
64278         * lib/wctype_.h (__wctype_wint_t): New type.
64279         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
64280         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
64281         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
64282         Arg is now of type __wctype_wint_t, not wint_t.
64283         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
64284         substitute HAVE_WINT_T.
64285         * modules/wctype (Files): Add m4/wint_t.m4.
64286         (wctype.h): Substitute HAVE_WINT_T.
64287
64288 2006-12-23  Bruno Haible  <bruno@clisp.org>
64289
64290         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
64291
64292 2006-12-23  Bruno Haible  <bruno@clisp.org>
64293
64294         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
64295         S_ISLNK.
64296         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
64297         mingw.
64298
64299 2006-12-22  Bruno Haible  <bruno@clisp.org>
64300
64301         * lib/copy-file.c: Include acl.h.
64302         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
64303         Close the file descriptors only after being done with copy_acl.
64304         * modules/copy-file (Depends-on): Add acl.
64305
64306 2006-12-22  Bruno Haible  <bruno@clisp.org>
64307
64308         * gnulib-tool (SED): New variable.
64309         Use $SED instead of sed everywhere.
64310
64311 2006-12-22  Bruno Haible  <bruno@clisp.org>
64312
64313         * modules/no-c++: New file.
64314         * m4/no-c++.m4: New file.
64315         * MODULES.html.sh (Support for building libraries and executables):
64316         Add no-c++.
64317
64318 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
64319
64320         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
64321         Include <limits.h>, and use its INT_MAX to rewrite the
64322         j loop so that it does not overflow 'int'.  Problem reported by
64323         Ralf Wildenhues in
64324         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
64325         Play it safe by shifting left by 1 rather than multiplying by 2,
64326         as GCC is less likely to optimize this away when the value
64327         is signed (when it assumes overflow leads to undefined behavior).
64328         Also, don't assume time_t uses two's complement.
64329
64330 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
64331
64332         * MODULES.html.sh: New module wctype.
64333         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
64334         * lib/fnmatch.c: Don't bother to include <wchar.h> before
64335         <wctype.h>, since the new wctype module should fix this.
64336         * lib/quotearg.c: Include <wctype.h> unconditionally, since
64337         the wctype module should arrange for it.
64338         * lib/regex_internal.h: Likewise.
64339         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
64340         since the wctype module should handle this now.
64341         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
64342         * modules/fnmatch (Depends-on): Add wctype.
64343         * modules/quotearg (Depends-on): Likewise.
64344         * modules/regex (Depends-on): Likewise.
64345
64346 2006-12-19  Bruno Haible  <bruno@clisp.org>
64347
64348         * lib/strdup.h [C++]: Wrap definitions in extern "C".
64349         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
64350
64351 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64352
64353         * modules/savewd (Depends-on): Fix dependency on fcntl.
64354
64355 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
64356
64357         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
64358         conforms to C99, rather than relying on the user's environment
64359         setting of STDINT_H.
64360
64361 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
64362         and Eric Blake  <ebb9@byu.net>
64363
64364         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
64365         This is more consistent with the other defines here.
64366         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
64367         Port to z/OS.  Problem reported by Paul Gilmartin.
64368         Change local vars to use gl_ prefix rather than ac_.
64369         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
64370         with other defines.
64371         * modules/double-slash-root: New module.
64372         * modules/dirname (Files): Remove m4/double-slash-root.m4.
64373         (Depends-on): Add double-slash-root.
64374         * MODULES.html.sh (File system functions): Mention new module.
64375
64376 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
64377
64378         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
64379         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
64380         This is for the benefit of gzip, which doesn't do i18n.
64381
64382 2006-12-12  Jim Meyering  <jim@meyering.net>
64383
64384         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
64385         Reported by Andreas Schwab <schwab@suse.de>.
64386
64387 2006-12-12  Bruno Haible  <bruno@clisp.org>
64388
64389         Merge these changes.
64390         2006-09-05  Bruno Haible  <bruno@clisp.org>
64391         * lib/iconvme.c (iconv_string): No need to save and restore errno when
64392         iconv_alloc succeeded.
64393         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
64394         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
64395         test for " && dest " at the end - dest is always != NULL there. Call
64396         iconv with 4xNULL arguments initially, to reset the state. Call iconv
64397         with 2xNULL arguments, also to flush the state storage. Handle the
64398         IRIX iconv behaviour. Realloc the final result, to throw away unused
64399         memory.
64400
64401 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
64402
64403         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
64404         and fchmodat unconditionally, since glibc 2.4 has them.
64405         Problem reported by Arkadiusz Miskiewicz.
64406
64407 2006-12-10  Bruno Haible  <bruno@clisp.org>
64408
64409         * gnulib-tool (func_import): Show the include files only for those
64410         modules that are copied and specified.
64411         Reported by Karl Berry.
64412
64413 2006-12-08  Jim Meyering  <jim@meyering.net>
64414
64415         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
64416         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
64417
64418         * build-aux/announce-gen: Add two new options, both optional:
64419         --bootstrap-tools=TOOL_LIST
64420               a comma-separated list of tools, e.g.,
64421               autoconf,automake,bison,gnulib
64422         --gnulib-snapshot-date=DATE
64423               if gnulib is in the bootstrap tool list,
64424               then report this as the snapshot date.
64425               If not specified, use the current date/time.
64426               If you specify a date here, be sure it's UTC.
64427
64428 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64429
64430         * tests/test-argp-2.sh: Fix test to match actual output.
64431         (func_compare): Fix sed script to be portable.
64432
64433 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
64434
64435         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
64436         workaround for this case.  It is not autoconfigured now; offhand
64437         it's hard to see how to autoconfigure it.
64438
64439 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
64440
64441         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
64442         a directory that is about to be chowned.  Such a directory's
64443         initial file permissions should permit the owner only and this
64444         should not be changed until after the chown, since the group and
64445         other bits would be incorrect if they granted permission before
64446         the chown.
64447
64448         Fix porting problem for iswctype reported by Georg Schwarz in:
64449         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
64450         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
64451         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
64452         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
64453         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
64454
64455 2006-12-03  Jim Meyering  <jim@meyering.net>
64456
64457         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
64458         p->fts_statp may not yet be defined.
64459         (fts_read): Instead, set it in the caller, once p->fts_statp is
64460         sure to be defined, and corresponds to a top-level directory.
64461         This bug made du -x fail.  Here's the coreutils test case:
64462         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
64463         Reported by Mike Frysinger.
64464
64465 2006-12-01  Jim Meyering  <jim@meyering.net>
64466
64467         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
64468         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
64469         Reported by Simon Josefsson.
64470
64471 2006-11-30  Jim Meyering  <jim@meyering.net>
64472
64473         * m4/warning.m4: Use the all-permissive copyright notice
64474         recommended by RMS (rather than LGPL).
64475         * m4/vararrays.m4: Likewise.
64476         * m4/flexmember.m4: Likewise.
64477
64478 2006-11-29  Bruno Haible  <bruno@clisp.org>
64479
64480         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
64481         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
64482         using +=.
64483         Reported by Simon Josefsson <simon@josefsson.org>.
64484
64485 2006-11-28  James Youngman <jay@gnu.org>
64486
64487         * README: Advise users that they might find the bug-gnulib@gnu.org
64488         and autotools-announce@gnu.org mailing lists useful.
64489
64490 2006-11-28  Bruno Haible  <bruno@clisp.org>
64491
64492         * m4/ptrdiff_max.m4: Remove file.
64493
64494 2006-11-21  Bruno Haible  <bruno@clisp.org>
64495
64496         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
64497         _AC_COMPUTE_INT.
64498         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
64499         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
64500         _AC_COMPUTE_INT.
64501         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
64502         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
64503         _AC_COMPUTE_INT.
64504         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
64505
64506 2006-11-28  Jim Meyering  <jim@meyering.net>
64507
64508         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
64509         warning from "gcc -Wshadow" about shadowing the builtin.
64510
64511 2006-11-27  Bruno Haible  <bruno@clisp.org>
64512
64513         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
64514         _AC_COMPUTE_INT.
64515         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
64516
64517 2006-11-27  Bruno Haible  <bruno@clisp.org>
64518             Paul Eggert  <eggert@cs.ucla.edu>
64519
64520         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
64521
64522 2006-11-26  Bruno Haible  <bruno@clisp.org>
64523
64524         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
64525         noinst_LTLIBRARIES.
64526
64527 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
64528             Bruno Haible  <bruno@clisp.org>
64529
64530         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
64531         if compiling with "gcc -ansi".
64532
64533 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
64534
64535         Fix some incompatibilities with gcc -ansi -pedantic.
64536         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
64537         if compiling pedantically with GCC, unless it's C99 or later.
64538         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
64539         it mishandles gcc -ansi -pedantic as well.
64540         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
64541         if gcc -pedantic.
64542         * lib/regexec.c (check_node_accept_bytes): Don't use auto
64543         initializers for struct if -pedantic, unless it's C99 or later.
64544
64545 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
64546
64547         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
64548         Don't close an fd more than once. Identical atimes indicate
64549         success, not failure.
64550
64551 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
64552
64553         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
64554
64555 2006-11-23  Jim Meyering  <jim@meyering.net>
64556
64557         * build-aux/announce-gen: New file.  From coreutils.
64558
64559 2006-11-22  Jim Meyering  <jim@meyering.net>
64560
64561         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
64562         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
64563         (fts_read): Use a temporary to narrow the overused st_size member
64564         before using it in a switch statement.  Reported by Matthew Woehlke.
64565
64566         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
64567         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
64568
64569 2006-11-20  Bruno Haible  <bruno@clisp.org>
64570
64571         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
64572         changequote instead of pairs of brackets.
64573         Reported by Andreas Schwab <schwab@suse.de>.
64574
64575 2006-11-21  Jim Meyering  <jim@meyering.net>
64576
64577         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
64578         so as to remain compatible with older compilers.
64579         Patch from Michael Deutschmann.
64580
64581 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
64582
64583         * MODULES.html.sh (File system functions): Add openat.
64584
64585         * lib/openat.h (rpl_fstatat): New macro, if
64586         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
64587         (fstatat): Define to rpl_fstatat under the same conditions,
64588         unless COMPILING_FSTATAT.
64589         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
64590         seems to have the bug.
64591         * lib/fstatat.c: New file.
64592         * modules/openat (Files): Add it.
64593
64594 2006-11-20  Bruno Haible  <bruno@clisp.org>
64595
64596         * Makefile: New file.
64597
64598 2006-11-20  Jim Meyering  <jim@meyering.net>
64599
64600         The beginnings of syntax-related checks for gnulib.
64601         * lib/Makefile: New file.
64602         * lib/t-idcache: New script.  Ensure that the two halves of
64603         idcache.c stay in sync.
64604
64605         * lib/idcache.c: Adjust comments in user- and group- portions to
64606         be more accurate, and to be consistent with one another.
64607
64608 2006-11-20  Jim Meyering  <jim@meyering.net>
64609
64610         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
64611         continue using the flexible array member (thus, this module performs
64612         half as many malloc calls), with the addition that...
64613         (getgroup, getuser): Consistently record a non-match via an empty
64614         "name" string, and map an empty string match to a NULL return value.
64615         * modules/idcache (Depends-on): Re-add flexmember.
64616
64617         * lib/idcache.c (getuser): Remove all uses of the register keyword.
64618         (getuidbyname, getgroup, getgidbyname): Likewise.
64619
64620         Use cleaner syntax: NULL rather than 0.
64621         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
64622
64623 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
64624
64625         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
64626         It mishandled the case where the group was missing.
64627         Problem reported by Greg Schafer.
64628         * modules/idcache: Likewise.
64629
64630 2006-11-18  Jim Meyering  <jim@meyering.net>
64631
64632         * check-module (%exempt_header): Add exception for some
64633         conditionally-included headers.
64634
64635         * modules/i-ring (Depends-on): Add verify.
64636         (License): Change to LGPL.
64637
64638 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
64639
64640         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
64641         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
64642         and inttostr.h.  Use snprintf rather than uinttostr, so that
64643         LGPLed code doesn't depend on GPLed.
64644
64645 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
64646
64647         * modules/inline (License): Change from GPL to LGPL.
64648
64649 2006-11-17  Jim Meyering  <jim@meyering.net>
64650
64651         * modules/d-type (License): Switch to LGPL.
64652
64653 2006-11-15  Bruno Haible  <bruno@clisp.org>
64654
64655         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
64656
64657 2006-11-15  Eric Blake  <ebb9@byu.net>
64658
64659         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
64660         the module dependency.
64661
64662 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64663             Bruno Haible  <bruno@clisp.org>
64664
64665         * gnulib-tool (func_create_testdir): Add license consistency check.
64666
64667 2006-11-15  Eric Blake  <ebb9@byu.net>
64668
64669         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
64670         random "(cached)" in configure output.
64671
64672 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64673
64674         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
64675         test for conforming inttypes.h is both announced and cached.
64676
64677         * MODULES.html.sh (seen_modules, seen_files): New variables.
64678         (func_module): Rewrite to use a few less gnulib-tool and sed
64679         invocations.  Avoid a couple of quadratic algorithms for ...
64680         (missed_modules, missed_files): ... these, with ...
64681         (func_append, func_tmpdir): ... these new functions, from
64682         gnulib-tool.  Analogously, install traps for cleanup.
64683
64684         * tests/test-gc.c (main): Remove unused variables.
64685         * tests/test-read-file.c: Include stdlib.h, for 'free'.
64686
64687 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
64688
64689         * modules/inttostr (License): Change to LGPL.
64690
64691 2006-11-14  Eric Blake  <ebb9@byu.net>
64692
64693         * modules/tempname (License): Change to LGPL.
64694
64695 2006-11-14  Eric Blake  <ebb9@byu.net>
64696
64697         * doc/functions.texi (Function Portability): *printf functions on
64698         Cygwin now understand all POSIX size specifiers.
64699
64700 2006-11-14  Bruno Haible  <bruno@clisp.org>
64701
64702         * modules/c-ctype (License): Change to LGPL.
64703
64704 2006-11-12  Bruno Haible  <bruno@clisp.org>
64705
64706         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
64707         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
64708         for GNOME libraries, for which the include files are installed in
64709         subdirectories of $prefix/include.
64710
64711 2006-11-12  Bruno Haible  <bruno@clisp.org>
64712
64713         * m4/lib-link.m4: Require at least autoconf-2.54.
64714         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
64715         name to underscores for the --with option.
64716
64717 2006-11-13  Bruno Haible  <bruno@clisp.org>
64718
64719         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
64720         the tests directory.
64721         Reported by Ralf Wildenhues.
64722
64723 2006-11-13  Bruno Haible  <bruno@clisp.org>
64724
64725         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
64726         (func_emit_initmacro_end): Undo the override here.
64727         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
64728         Works around the famous automake error in coreutils.
64729
64730 2006-11-13  Eric Blake  <ebb9@byu.net>
64731
64732         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
64733         element, not its node.
64734
64735 2006-11-12  Bruno Haible  <bruno@clisp.org>
64736
64737         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
64738         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
64739
64740 2006-11-12  Bruno Haible  <bruno@clisp.org>
64741
64742         * gnulib-tool: New option --local-symlink.
64743         (func_usage): Document it.
64744         (lsymbolic): New variable.
64745         (func_import, func_create_testdir): If --symlink was not specified,
64746         test whether --local-symlink was specified and the file comes from
64747         the local_gnulib_dir.
64748
64749 2006-11-12  Bruno Haible  <bruno@clisp.org>
64750
64751         * gnulib-tool (func_ln): New function.
64752         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
64753
64754 2006-11-12  Bruno Haible  <bruno@clisp.org>
64755
64756         Finish support for source files in subdirectories.
64757         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
64758         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
64759         AUTOMAKE_OPTIONS.
64760         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
64761
64762 2006-11-12  Bruno Haible  <bruno@clisp.org>
64763
64764         * gnulib-tool (func_get_automake_snippet): Synthesize also an
64765         EXTRA_lib_SOURCES augmentation.
64766         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
64767
64768 2006-11-12  Jim Meyering  <jim@meyering.net>
64769
64770         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
64771         file descriptors.  This also averts a failure on systems with
64772         native openat support when a traversed directory lacks "x" access.
64773         * lib/fts_.h: Include "i-ring.h"
64774         (struct FTS) [fts_fd_ring]: New member.
64775         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
64776         (FCHDIR): Add parentheses.
64777         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
64778         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
64779         When descending, rather than simply closing the previous
64780         fts_cwd_fd value, push that file descriptor onto the ring.
64781         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
64782         (fts_open): Initialize the new fd_ring member.
64783         (fts_close): Clear the ring.
64784         (fts_safe_changedir): When possible, use our new fd_ring to skip
64785         the diropen and fstat and dev/ino comparison that would normally
64786         accompany a virtual `chdir ("..")'.
64787
64788         * modules/fts (Depends-on): Add i-ring.
64789         * modules/i-ring: New module.
64790         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
64791         * m4/i-ring.m4: New file.
64792
64793 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64794
64795         * gnulib-tool (func_create_testdir): Fix replacement of
64796         `build-aux' in configure.ac.  Run autotools in gltests
64797         subdirectory.
64798         (func_create_testdir, func_create_megatestdir, test): There is
64799         no need for '--force' in most autotool invocations in a new
64800         tree.  Actually fail the whole test if any of the tools, or the
64801         configure or make stages fail.
64802
64803         Sync from Automake.
64804         * build-aux/gnupload: Revert last change.  Add pointer to upload
64805         instructions of the GNU Maintenance Instructions.
64806         Suggestion by Karl Berry.
64807
64808 2006-11-10  Jim Meyering  <jim@meyering.net>
64809
64810         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
64811
64812 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
64813
64814         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
64815         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
64816         (bind_textdomain_codeset) [! ENABLE_NLS]:
64817         Evaluate all the arguments.  That way, callers get compatible behavior
64818         if the arguments have side effects.  Also, it avoids some GCC
64819         diagnostics in some cases; Joel E. Denny reported problems when Bison
64820         was configured with --enable-gcc-warnigs.
64821
64822 2006-11-10  Jim Meyering  <jim@meyering.net>
64823
64824         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
64825         relevant options in CFLAGS (like -O, -fno-inline) are taken into
64826         account.
64827
64828 2006-11-10  Jim Meyering  <jim@meyering.net>
64829
64830         * modules/inline: New file/module.
64831         * modules/xalloc (Files): Remove m4/inline.m4.
64832         (Depends-on): Add inline, instead.
64833         * modules/oset: Likewise.
64834         * modules/list: Likewise.
64835
64836 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
64837
64838         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
64839         Problem reported by Matthew Woehlke.
64840
64841 2006-11-09  Bruno Haible  <bruno@clisp.org>
64842
64843         * lib/tempname.c (gen_tempname): Remove variant that invokes
64844         __gen_tempname.
64845         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
64846         __gen_tempname.
64847
64848 2006-11-08  Bruno Haible  <bruno@clisp.org>
64849
64850         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
64851         to 'yes' instead of 'cross-compiling'.
64852
64853 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
64854
64855         * lib/quotearg.h (quotearg_free): New decl.
64856         * lib/quotearg.c (quotearg_free): New function.
64857         (slot0, nslots, slotvec0, slotvec):
64858         Now file-scope so that quotearg_free can get at them.
64859
64860 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64861
64862         Sync from Automake.
64863         * build-aux/gnupload: Add missing 'gnu' to example URL.
64864         Report by Karl Berry.
64865
64866 2006-11-08  Bruno Haible  <bruno@clisp.org>
64867
64868         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
64869         Suggested by Paul Eggert.
64870
64871 2006-11-08  Jim Meyering  <jim@meyering.net>
64872
64873         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
64874         It's already included if !_LIBC.
64875         (fts_safe_changedir): Add a comment.
64876
64877 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
64878
64879         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
64880         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
64881         Matthew Woehlke.
64882
64883         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
64884         definitions up, to avoid colliding with change below.
64885         (static_inline) [HAVE_INLINE]: New macro.
64886         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
64887         Provide extern decls when !HAVE_INLINE.  Do not define unless
64888         static_inline is defined, either by us or by xmalloc.c.  Use
64889         static_inline rather than static inline.
64890         (XCALLOC): Optimize sizeof(T) = 1 case.
64891         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
64892
64893 2006-11-07  Bruno Haible  <bruno@clisp.org>
64894
64895         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
64896         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
64897         AC_C_INLINE.
64898         * modules/xalloc (Files): Add m4/inline.m4.
64899
64900 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64901
64902         * README: Fix typo.
64903         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
64904         (Miscellanous Notes): ...from this.
64905
64906 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
64907
64908         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
64909         Mention that offsetof should be used instead of sizeof.
64910         From Bruno Haible.
64911
64912 2006-11-07  Bruno Haible  <bruno@clisp.org>
64913
64914         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
64915
64916 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
64917
64918         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
64919         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
64920         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
64921         (gl_tree_add_before, gl_tree_add_after):
64922         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
64923         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
64924         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
64925         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
64926         (gl_linked_add_after, gl_linked_add_at): Likewise.
64927         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
64928         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
64929         (gl_tree_add_before, gl_tree_add_after): Likewise.
64930         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
64931         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
64932         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
64933
64934 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64935
64936         * lib/gl_oset.h: Use C comment style, not C++ comment style.
64937
64938 2006-11-06  Bruno Haible  <bruno@clisp.org>
64939
64940         * m4/inline.m4: New file.
64941         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
64942         * modules/list (Files): Add m4/inline.m4.
64943         * modules/oset (Files): Likewise.
64944
64945 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
64946
64947         * lib/idcache.c: Include <stddef.h>, for offsetof.
64948         (struct userid.name): Change from char * to a flexible array member.
64949         All uses changed.
64950         * modules/idcache (Depends-on): Add flexmember.
64951
64952         * MODULES.html.sh (Core language properties): New module flexmember.
64953         * modules/flexmember, m4/flexmember.m4: New files.
64954
64955         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
64956         inline functions that are identical with the old xnmalloc_inline,
64957         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
64958         that we can avoid some unnecessary integer multiplications and
64959         divisions in the common case where the element size is known at
64960         compile time.
64961         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
64962         needed.
64963         (xnboundedmalloc): Remove.
64964         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
64965         arguments, for consistency with rest of this header.
64966         (xcharalloc): Rewrite using XNMALLOC.
64967         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
64968         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
64969         versions have been moved to lib/xalloc.h and renamed to be the
64970         non-*_inline versions.
64971         (xmalloc, xrealloc): Implement without reference to the xnmalloc
64972         and xnrealloc functions, since those functions are now inline and
64973         now call us.
64974         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
64975         renaming described above.
64976         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
64977         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
64978         captures the dependency in AC_C_INLINE.
64979
64980         New module canonicalize-lgpl, proposed by Charles Wilson in
64981         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
64982         with a few small changes afterwards.
64983         * MODULES.html.sh (File system functions): New module
64984         canonicalize-lgpl.
64985         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
64986         and canonicalize_file_name.
64987         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
64988         * modules/canonicalize-lgpl: New files.
64989
64990 2006-11-05  Bruno Haible  <bruno@clisp.org>
64991
64992         * gnulib-tool (func_import, func_create_testdir): Create directories
64993         also for files in subdirectories of lib/.
64994
64995 2006-11-05  Bruno Haible  <bruno@clisp.org>
64996
64997         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
64998         ANSI C compliant.
64999
65000 2006-11-03  Bruno Haible  <bruno@clisp.org>
65001
65002         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
65003         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
65004         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
65005         (xnboundedmalloc): New inline function.
65006         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
65007         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
65008         xmalloc.
65009         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
65010         xmalloc.
65011         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
65012         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
65013         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
65014         xmalloc.
65015         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
65016         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
65017         xmalloc.
65018         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
65019         gl_tree_add_after): Use XMALLOC instead of xmalloc.
65020         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
65021         xmalloc.
65022         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
65023         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
65024         gl_tree_add_after): Use XMALLOC instead of xmalloc.
65025         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
65026         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
65027         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
65028         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
65029
65030 2006-11-03  Bruno Haible  <bruno@clisp.org>
65031
65032         * lib/c-ctype.h [C++]: Define functions without name mangling.
65033         * lib/fwriteerror.h [C++]: Likewise.
65034         * lib/gcd.h [C++]: Likewise.
65035         * lib/linebreak.h [C++]: Likewise.
65036
65037 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
65038
65039         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
65040         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
65041         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
65042         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
65043         Check for functions and headers just once.
65044         Check for declaration of canonicalize_file_name.
65045         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
65046
65047 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
65048
65049         * gnulib-tool (func_import): Fix typo in actioncmd.
65050
65051 2006-11-02  Bruno Haible  <bruno@clisp.org>
65052
65053         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
65054         newline sequence in the Makefile.am snippet as a space, like "make"
65055         does.
65056         Reported by Roger Persson <perrog@gmail.com>.
65057
65058 2006-11-01  Bruno Haible  <bruno@clisp.org>
65059
65060         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
65061         already declared in <string.h>.
65062         * lib/strcase.h (strncasecmp): Don't declare it if yes.
65063
65064 2006-11-01  Bruno Haible  <bruno@clisp.org>
65065
65066         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
65067         * lib/strcase.h: Include <string.h>.
65068         (strcasecmp): Define to rpl_strcasecmp here.
65069
65070 2006-11-01  Bruno Haible  <bruno@clisp.org>
65071
65072         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
65073
65074 2006-11-01  Eric Blake  <ebb9@byu.net>
65075
65076         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
65077
65078         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
65079
65080 2006-10-29  Bruno Haible  <bruno@clisp.org>
65081
65082         Make it compile in C++ mode.
65083         * lib/full-write.c (full_rw): Add a cast.
65084
65085 2006-11-01  Bruno Haible  <bruno@clisp.org>
65086
65087         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
65088         be POSIX compliant.
65089         Reported by Roger Persson <perrog@gmail.com>.
65090
65091 2006-11-01  Eric Blake  <ebb9@byu.net>
65092
65093         * lib/getopt_.h: Fix comments.
65094
65095 2006-10-31  Eric Blake  <ebb9@byu.net>
65096
65097         * modules/tmpdir (Depends-on): Add sys_stat.
65098         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
65099         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
65100         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
65101         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
65102         tempname.
65103
65104 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
65105
65106         Avoid some C++ diagnostics reported by Bruno Haible.
65107         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
65108         xmalloc.
65109         (quotearg_alloc): Use xcharalloc rather than xmalloc.
65110         (struct slotvec): Move to top level.
65111         (quotearg_n_options): Rewrite to avoid xmalloc.
65112         * lib/xalloc.h (xcharalloc): New function.
65113         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
65114         [defined __cplusplus]: Add function template that provides result
65115         type propagation.  This part of the change is from Bruno Haible.
65116
65117 2006-10-29  Bruno Haible  <bruno@clisp.org>
65118
65119         Make it compile in C++ mode.
65120         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
65121         * lib/strnlen1.c (strnlen1): Cast memchr result.
65122         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
65123         * lib/clean-temp.c (string_equals, string_hash): Add casts.
65124         (create_temp_dir): Rename local variable 'template'.
65125         (compile_csharp_using_sscli): Add cast.
65126         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
65127         * lib/findprog.c (find_in_path): Likewise.
65128         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
65129         * lib/wait-process.c (register_slave_subprocess): Likewise.
65130
65131 2006-10-22  Bruno Haible  <bruno@clisp.org>
65132
65133         * modules/tsearch: New file.
65134         * lib/tsearch.h: New file.
65135         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
65136         * m4/tsearch.m4: New file.
65137         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
65138
65139 2006-10-29  Eric Blake  <ebb9@byu.net>
65140
65141         * lib/arcfour.c: Assume config.h.
65142         * lib/arctwo.c: Likewise.
65143         * lib/base64.c: Likewise.
65144         * lib/check-version.c: Likewise.
65145         * lib/crc.c: Likewise.
65146         * lib/des.c: Likewise.
65147         * lib/gc-gnulib.c: Likewise.
65148         * lib/gc-libgcrypt.c: Likewise.
65149         * lib/gc-pbkdf2-sha1.c: Likewise.
65150         * lib/getaddrinfo.c: Likewise.
65151         * lib/getdelim.c: Likewise.
65152         * lib/getline.c: Likewise.
65153         * lib/hmac-md5.c: Likewise.
65154         * lib/hmac-sha1.c: Likewise.
65155         * lib/iconvme.c: Likewise.
65156         * lib/md2.c: Likewise.
65157         * lib/md4.c: Likewise.
65158         * lib/memxor.c: Likewise.
65159         * lib/read-file.c: Likewise.
65160         * lib/readline.c: Likewise.
65161         * lib/rijndael-alg-fst.c: Likewise.
65162         * lib/rijndael-api-fst.c: Likewise.
65163         * lib/xgetdomainname.c: Likewise.
65164
65165 2006-10-28  Eric Blake  <ebb9@byu.net>
65166
65167         * lib/xstrndup.c: Assume config.h.
65168
65169 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
65170
65171         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
65172         stat-macros.h is now for our own macros, whereas stat_h is for
65173         macros in the <sys/stat.h> name space.
65174         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
65175         (STAT_MACROS_H): Remove.
65176         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
65177         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
65178         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
65179         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
65180         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
65181         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
65182         Move these macros to ...
65183         * lib/stat_.h: here.  Don't include stat-macros.h.
65184         * lib/canonicalize.c: Don't include stat-macros.h.
65185         * lib/chown.c: Likewise.
65186         * lib/euidaccess.c: Likewise.
65187         * lib/file-type.c: Likewise.
65188         * lib/filemode.c: Likewise.
65189         * lib/glob.c: Likewise.
65190         * lib/isapipe.c: Likewise.
65191         * lib/lchown.c: Likewise.
65192         * lib/lstat.c: Likewise.
65193         * lib/mkdir-p.c: Likewise.
65194         * lib/rmdir.c: Likewise.
65195         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
65196         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
65197         unless mkdir isn't declared, to speed up 'configure'.
65198         Always create sys/stat.h, since it's unlikely any real sys/stat.h
65199         would define all the S_* symbols.
65200         * modules/canonicalize (Depends-on):
65201         Depend on sys_stat, not stat-macros.
65202         * modules/chown: Likewise.
65203         * modules/euidaccess: Likewise.
65204         * modules/filemode: Likewise.
65205         * modules/file-type: Likewise.
65206         * modules/glob: Likewise.
65207         * modules/isapipe: Likewise.
65208         * modules/lchown: Likewise.
65209         * modules/lstat: Likewise.
65210         * modules/mkancesdirs: Likewise.
65211         * modules/rmdir: Likewise.
65212         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
65213         * modules/modechange: Likewise.
65214         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
65215         (configure.ac): Remove gl_STAT_MACROS.
65216         * modules/sys_stat (Depends-on): Remove stat-macros.
65217
65218 2006-10-27  Bruno Haible  <bruno@clisp.org>
65219
65220         * m4/signed.m4: Remove file.
65221         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
65222         invocation.
65223         * modules/vasnprintf (Files): Remove m4/signed.m4.
65224
65225 2006-10-27  Bruno Haible  <bruno@clisp.org>
65226
65227         Update to GNU gettext 0.16.
65228         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
65229         m4/inttypes-h.m4, m4/signed.m4.
65230         * m4/gettext.m4: Update to GNU gettext 0.16.
65231         * m4/intl.m4: New file, from GNU gettext.
65232         * m4/intldir.m4: New file, from GNU gettext.
65233         * config/srclist.txt: Update
65234
65235 2006-10-27  Eric Blake  <ebb9@byu.net>
65236
65237         * MODULES.html.sh: Document tempname.
65238         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
65239         dependencies.
65240         (Files): Move lib/tempname.c...
65241         * modules/tempname: ...to this new module.
65242         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
65243         (gl_PREREQ_TEMPNAME): Move...
65244         * m4/tempname.m4: ...to this new file.
65245         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
65246         * modules/sys_stat (Depends-on): Add stat-macros.
65247         * lib/stat_.h (includes): Pick up stat macros.
65248         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
65249         if stat macros are broken.
65250         * lib/tempname.c (includes): No need to include "stat-macros.h".
65251         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
65252         (direxists, __path_search) [!_LIBC]: Don't compile these in
65253         gnulib; the tmpdir module covers that.
65254         * lib/tempname.h: New file.
65255
65256 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
65257
65258         * COPYING: Explain how gnulib-tool converts licence headers.
65259         Almost all wording by Eric Blake.
65260
65261 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
65262
65263         * lib/mbchar.h (is_basic_table): Make read-only.
65264         * lib/mbchar.c (is_basic_table): Likewise.
65265         Reported by John Darrington.
65266
65267 2006-10-25  Bruno Haible  <bruno@clisp.org>
65268
65269         * lib/progname.h (set_program_name): Undefine before defining.
65270
65271 2006-10-25  Bruno Haible  <bruno@clisp.org>
65272
65273         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
65274         false for non-gcc C++ compilers.
65275         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
65276
65277 2006-10-24  Bruno Haible  <bruno@clisp.org>
65278
65279         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
65280         iconv implementations like Irix iconv.
65281
65282 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
65283
65284         * modules/vararrays: New file.
65285         * m4/vararrays.m4: New file, taken from diffutils.
65286         * MODULES.html.sh: New module vararrays.
65287
65288 2006-10-24  Karl Berry  <karl@gnu.org>
65289
65290         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
65291         Don't call GNU Unix.
65292
65293 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65294
65295         * users.txt: Add Libtool.
65296
65297         Sync from Libtool:
65298
65299         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
65300
65301         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
65302         to gnulib's policy of including config.h unconditionally.
65303
65304 2006-10-24  Bruno Haible  <bruno@clisp.org>
65305
65306         * modules/wcwidth (Files): Add m4/wint_t.m4.
65307         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
65308         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
65309
65310 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
65311
65312         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
65313         to pacify GCC with some -W flags enabled.  Problem reported by
65314         Bruno Haible.
65315
65316 2006-10-24  Jim Meyering  <jim@meyering.net>
65317
65318         * MODULES.html.sh: Remove uinttostr.  It's not a module.
65319         Reported by Karl Berry.
65320
65321 2006-10-23  Bruno Haible  <bruno@clisp.org>
65322
65323         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
65324
65325 2006-10-24  Bruno Haible  <bruno@clisp.org>
65326
65327         * lib/gl_list.h: Use C comment style, not C++ comment style.
65328
65329 2006-10-23  Eric Blake  <ebb9@byu.net>
65330
65331         * lib/getaddrinfo.c (includes): Add missing include.
65332
65333 2006-10-23  Bruno Haible  <bruno@clisp.org>
65334             Paul Eggert  <eggert@cs.ucla.edu>
65335
65336         Ability to rename obstack_free.
65337         * lib/obstack.h (__obstack_free): New macro. Declare instead of
65338         obstack_free.
65339         (obstack_free): Invoke the __obstack_free macro.
65340         * lib/obstack.c (obstack_free): Use __obstack_free macro.
65341
65342 2006-10-23  Bruno Haible  <bruno@clisp.org>
65343             Paul Eggert  <eggert@cs.ucla.edu>
65344
65345         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
65346         __argc, __argv from the declaration. (They are defined as macros on
65347         mingw.)
65348
65349 2006-10-22  Bruno Haible  <bruno@clisp.org>
65350
65351         * doc/gnulib-intro.texi: New file.
65352         * doc/gnulib.texi: Include it.
65353
65354 2006-10-21  Bruno Haible  <bruno@clisp.org>
65355
65356         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
65357         "Introduction", "Miscellanous Notes", "Particular Modules".
65358
65359 2006-10-21  Bruno Haible  <bruno@clisp.org>
65360
65361         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65362         Change mostlyclean-local rule to avoid sh syntax error from bash
65363         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
65364
65365 2006-10-23  Jim Meyering  <jim@meyering.net>
65366
65367         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
65368         in place of snprintf.
65369
65370         * modules/inttostr (Files): Add lib/uinttostr.c.
65371         * lib/uinttostr.c (inttostr): New file/function.
65372         * lib/inttostr.h (uinttostr): Declare.
65373         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
65374         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
65375         Add uinttostr.
65376         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
65377
65378 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
65379
65380         * lib/canonicalize.c (ELOOP): Define if not already defined.
65381         Problem reported by Bruno Haible in
65382         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
65383
65384 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
65385
65386         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
65387         Problem reported by Perry Smith and Ville Laurikari.
65388
65389         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
65390         uses.
65391
65392 2006-10-19  Bruno Haible  <bruno@clisp.org>
65393
65394         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
65395         for mingw.
65396
65397 2006-10-19  Bruno Haible  <bruno@clisp.org>
65398
65399         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
65400         Needed for mingw.
65401
65402 2006-10-19  Bruno Haible  <bruno@clisp.org>
65403
65404         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
65405
65406 2006-10-19  Bruno Haible  <bruno@clisp.org>
65407
65408         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
65409         it.
65410
65411 2006-10-19  Bruno Haible  <bruno@clisp.org>
65412
65413         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
65414         invocation.
65415
65416 2006-10-19  Bruno Haible  <bruno@clisp.org>
65417
65418         * gnulib-tool (func_create_testdir): Don't include ftruncate and
65419         mountlist by default.
65420
65421 2006-10-16  Bruno Haible  <bruno@clisp.org>
65422
65423         * lib/c-strstr.c: Include c-strstr.h.
65424
65425 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
65426
65427         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
65428         in a slash.
65429
65430 2006-10-18  Bruno Haible  <bruno@clisp.org>
65431
65432         * lib/lock.h [C++]: Wrap definitions in extern "C".
65433
65434 2006-10-18  Bruno Haible  <bruno@clisp.org>
65435
65436         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
65437         gl_LIBOBJS list.
65438
65439 2006-10-18  Bruno Haible  <bruno@clisp.org>
65440
65441         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
65442
65443 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
65444
65445         * lib/xstrtol.h: Include gettext.h.
65446         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
65447         Problem reported by Eric Blake.
65448         * modules/xstrtol (Depends-on): Add gettext-h.
65449
65450 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
65451
65452         * lib/strftime.c (advance): New macro.
65453         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
65454         incomplete type, so you can't add 0 to it.  Problem and patch
65455         reported by Eelco Dolstra for dietlibc.
65456
65457 2006-10-18  Jim Meyering  <jim@meyering.net>
65458
65459         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
65460         type for a local, and rename it: s/up/user_proc/.
65461
65462 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
65463
65464         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
65465         READ_UTMP_USER_PROCESS.
65466         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
65467
65468 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
65469
65470         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
65471         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
65472
65473 2006-10-17  Eric Blake  <ebb9@byu.net>
65474
65475         * lib/sigprocmask.c (sigprocmask): Fix typo.
65476
65477         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
65478
65479         * modules/clean-temp (Makefile.am): Don't add to make output...
65480         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
65481         config.h.
65482
65483 2006-10-17  Bruno Haible  <bruno@clisp.org>
65484
65485         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
65486         differently if DEFAULT_TEXT_DOMAIN is set.
65487
65488 2006-10-16  Bruno Haible  <bruno@clisp.org>
65489
65490         * lib/clean-temp.c: Include fwriteerror.h.
65491
65492 2006-10-16  Bruno Haible  <bruno@clisp.org>
65493
65494         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
65495
65496 2006-10-16  Bruno Haible  <bruno@clisp.org>
65497
65498         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
65499         * lib/sigprocmask.h: Include <sys/types.h>.
65500         (sigset_t): Use the system's definition if present.
65501
65502 2006-10-17  Eric Blake  <ebb9@byu.net>
65503
65504         * lib/xvasprintf.c (includes): Assume config.h.
65505         * lib/xasprintf.c (includes): Likewise.
65506
65507 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
65508
65509         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
65510         at least as wide as intmax_t.
65511
65512 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
65513
65514         (Imported from Automake.)
65515         * build-aux/gnupload: Update to version 1.1 of directive file.
65516
65517 2006-10-16  Eric Blake  <ebb9@byu.net>
65518
65519         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
65520         match Automake 1.10a.
65521
65522 2006-10-14  Bruno Haible  <bruno@clisp.org>
65523
65524         * modules/sigprocmask: New file.
65525         * lib/sigprocmask.h: New file.
65526         * lib/sigprocmask.c: New file.
65527         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
65528         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
65529         request sigprocmask.o.
65530         (gl_PREREQ_SIGPROCMASK): New macro.
65531         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
65532         (Depends-on): Add sigprocmask.
65533         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
65534         gt_SIGNALBLOCKING. Test for 'raise' only once.
65535         * lib/fatal-signal.c: Include sigprocmask.h.
65536         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
65537         unblock_fatal_signals): Define always.
65538         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
65539         sigprocmask.
65540
65541 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
65542
65543         Sync from Automake.
65544         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
65545         which incorrectly sets the mode of an existing destination
65546         directory.  In some cases the unpatched install-sh could do the
65547         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
65548         system.  We hope this is rare in practice, but it's clearly worth
65549         fixing.  Problem reported by Alex Unleashed in
65550         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
65551         Also, don't bother to check for -m bugs unless we're using -m;
65552         suggested by Stepan Kasal.
65553
65554 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65555
65556         Sync from Automake.
65557         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
65558         `-c' flag, so they appear at the same position as in %FASTDEP%
65559         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
65560         which ignores unknown options only after the first non-option.
65561         Bug report against M4 by Nelson H. F. Beebe.
65562
65563 2006-10-13  Jim Meyering  <jim@meyering.net>
65564
65565         Fix a bug in yesterday's change.
65566         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
65567         p->fts_statp->st_dev would be used uninitialized.
65568         Ensures that we always call fts_stat on the very first entry.
65569         Miklos Szeredi reported that find -xdev stopped working.
65570
65571 2006-10-12  Bruno Haible  <bruno@clisp.org>
65572
65573         * gnulib-tool (func_get_automake_snippet): Append an automatically
65574         computed EXTRA_DIST augmentation.
65575         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
65576         * modules/alloca-opt (Makefile.am): Likewise.
65577         * modules/allocsa (Makefile.am): Likewise.
65578         * modules/arcfour (Makefile.am): Likewise.
65579         * modules/arctwo (Makefile.am): Likewise.
65580         * modules/argmatch (Makefile.am): Likewise.
65581         * modules/argz (Makefile.am): Likewise.
65582         * modules/atexit (Makefile.am): Likewise.
65583         * modules/backupfile (Makefile.am): Likewise.
65584         * modules/byteswap (Makefile.am): Likewise.
65585         * modules/c-strtod (Makefile.am): Likewise.
65586         * modules/c-strtold (Makefile.am): Likewise.
65587         * modules/calloc (Makefile.am): Likewise.
65588         * modules/canon-host (Makefile.am): Likewise.
65589         * modules/canonicalize (Makefile.am): Likewise.
65590         * modules/chdir-long (Makefile.am): Likewise.
65591         * modules/chdir-safer (Makefile.am): Likewise.
65592         * modules/check-version (Makefile.am): Likewise.
65593         * modules/chown (Makefile.am): Likewise.
65594         * modules/cloexec (Makefile.am): Likewise.
65595         * modules/close-stream (Makefile.am): Likewise.
65596         * modules/closeout (Makefile.am): Likewise.
65597         * modules/crc (Makefile.am): Likewise.
65598         * modules/csharpexec (Makefile.am): Likewise.
65599         * modules/cycle-check (Makefile.am): Likewise.
65600         * modules/des (Makefile.am): Likewise.
65601         * modules/dev-ino (Makefile.am): Likewise.
65602         * modules/dirfd (Makefile.am): Likewise.
65603         * modules/dirname (Makefile.am): Likewise.
65604         * modules/dup2 (Makefile.am): Likewise.
65605         * modules/eealloc (Makefile.am): Likewise.
65606         * modules/error (Makefile.am): Likewise.
65607         * modules/euidaccess (Makefile.am): Likewise.
65608         * modules/exclude (Makefile.am): Likewise.
65609         * modules/exitfail (Makefile.am): Likewise.
65610         * modules/fcntl-safer (Makefile.am): Likewise.
65611         * modules/fcntl (Makefile.am): Likewise.
65612         * modules/file-type (Makefile.am): Likewise.
65613         * modules/fileblocks (Makefile.am): Likewise.
65614         * modules/filemode (Makefile.am): Likewise.
65615         * modules/filenamecat (Makefile.am): Likewise.
65616         * modules/fnmatch (Makefile.am): Likewise.
65617         * modules/fopen-safer (Makefile.am): Likewise.
65618         * modules/fpending (Makefile.am): Likewise.
65619         * modules/fprintftime (Makefile.am): Likewise.
65620         * modules/free (Makefile.am): Likewise.
65621         * modules/fsusage (Makefile.am): Likewise.
65622         * modules/ftruncate (Makefile.am): Likewise.
65623         * modules/fts (Makefile.am): Likewise.
65624         * modules/gc-arcfour (Makefile.am): Likewise.
65625         * modules/gc-des (Makefile.am): Likewise.
65626         * modules/gc-hmac-md5 (Makefile.am): Likewise.
65627         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
65628         * modules/gc-md4 (Makefile.am): Likewise.
65629         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
65630         * modules/gc-sha1 (Makefile.am): Likewise.
65631         * modules/gc (Makefile.am): Likewise.
65632         * modules/getaddrinfo (Makefile.am): Likewise.
65633         * modules/getcwd (Makefile.am): Likewise.
65634         * modules/getdelim (Makefile.am): Likewise.
65635         * modules/getdomainname (Makefile.am): Likewise.
65636         * modules/getgroups (Makefile.am): Likewise.
65637         * modules/gethostname (Makefile.am): Likewise.
65638         * modules/gethrxtime (Makefile.am): Likewise.
65639         * modules/getline (Makefile.am): Likewise.
65640         * modules/getloadavg (Makefile.am): Likewise.
65641         * modules/getlogin_r (Makefile.am): Likewise.
65642         * modules/getndelim2 (Makefile.am): Likewise.
65643         * modules/getopt (Makefile.am): Likewise.
65644         * modules/getpagesize (Makefile.am): Likewise.
65645         * modules/getpass-gnu (Makefile.am): Likewise.
65646         * modules/getpass (Makefile.am): Likewise.
65647         * modules/getsubopt (Makefile.am): Likewise.
65648         * modules/gettime (Makefile.am): Likewise.
65649         * modules/gettimeofday (Makefile.am): Likewise.
65650         * modules/getugroups (Makefile.am): Likewise.
65651         * modules/getusershell (Makefile.am): Likewise.
65652         * modules/glob (Makefile.am): Likewise.
65653         * modules/group-member (Makefile.am): Likewise.
65654         * modules/hard-locale (Makefile.am): Likewise.
65655         * modules/hash (Makefile.am): Likewise.
65656         * modules/hmac-md5 (Makefile.am): Likewise.
65657         * modules/hmac-sha1 (Makefile.am): Likewise.
65658         * modules/human (Makefile.am): Likewise.
65659         * modules/idcache (Makefile.am): Likewise.
65660         * modules/imaxabs (Makefile.am): Likewise.
65661         * modules/imaxdiv (Makefile.am): Likewise.
65662         * modules/inet_ntop (Makefile.am): Likewise.
65663         * modules/inet_pton (Makefile.am): Likewise.
65664         * modules/intprops (Makefile.am): Likewise.
65665         * modules/inttostr (Makefile.am): Likewise.
65666         * modules/inttypes (Makefile.am): Likewise.
65667         * modules/isapipe (Makefile.am): Likewise.
65668         * modules/javaversion (Makefile.am): Likewise.
65669         * modules/lchmod (Makefile.am): Likewise.
65670         * modules/lchown (Makefile.am): Likewise.
65671         * modules/localcharset (Makefile.am): Likewise.
65672         * modules/long-options (Makefile.am): Likewise.
65673         * modules/lstat (Makefile.am): Likewise.
65674         * modules/malloc (Makefile.am): Likewise.
65675         * modules/mathl (Makefile.am): Likewise.
65676         * modules/mbchar (Makefile.am): Likewise.
65677         * modules/md2 (Makefile.am): Likewise.
65678         * modules/md4 (Makefile.am): Likewise.
65679         * modules/md5 (Makefile.am): Likewise.
65680         * modules/memcasecmp (Makefile.am): Likewise.
65681         * modules/memchr (Makefile.am): Likewise.
65682         * modules/memcmp (Makefile.am): Likewise.
65683         * modules/memcoll (Makefile.am): Likewise.
65684         * modules/memcpy (Makefile.am): Likewise.
65685         * modules/memmem (Makefile.am): Likewise.
65686         * modules/memmove (Makefile.am): Likewise.
65687         * modules/mempcpy (Makefile.am): Likewise.
65688         * modules/memrchr (Makefile.am): Likewise.
65689         * modules/memset (Makefile.am): Likewise.
65690         * modules/memxor (Makefile.am): Likewise.
65691         * modules/mkancesdirs (Makefile.am): Likewise.
65692         * modules/mkdir-p (Makefile.am): Likewise.
65693         * modules/mkdir (Makefile.am): Likewise.
65694         * modules/mkdtemp (Makefile.am): Likewise.
65695         * modules/mkstemp (Makefile.am): Likewise.
65696         * modules/mktime (Makefile.am): Likewise.
65697         * modules/modechange (Makefile.am): Likewise.
65698         * modules/mountlist (Makefile.am): Likewise.
65699         * modules/nanosleep (Makefile.am): Likewise.
65700         * modules/obstack (Makefile.am): Likewise.
65701         * modules/openat (Makefile.am): Likewise.
65702         * modules/pagealign_alloc (Makefile.am): Likewise.
65703         * modules/pathmax (Makefile.am): Likewise.
65704         * modules/physmem (Makefile.am): Likewise.
65705         * modules/poll (Makefile.am): Likewise.
65706         * modules/posixtm (Makefile.am): Likewise.
65707         * modules/posixver (Makefile.am): Likewise.
65708         * modules/putenv (Makefile.am): Likewise.
65709         * modules/quote (Makefile.am): Likewise.
65710         * modules/quotearg (Makefile.am): Likewise.
65711         * modules/raise (Makefile.am): Likewise.
65712         * modules/read-file (Makefile.am): Likewise.
65713         * modules/readline (Makefile.am): Likewise.
65714         * modules/readlink (Makefile.am): Likewise.
65715         * modules/readtokens (Makefile.am): Likewise.
65716         * modules/readutmp (Makefile.am): Likewise.
65717         * modules/realloc (Makefile.am): Likewise.
65718         * modules/regex (Makefile.am): Likewise.
65719         * modules/rename-dest-slash (Makefile.am): Likewise.
65720         * modules/rename (Makefile.am): Likewise.
65721         * modules/rijndael (Makefile.am): Likewise.
65722         * modules/rmdir (Makefile.am): Likewise.
65723         * modules/rpmatch (Makefile.am): Likewise.
65724         * modules/safe-read (Makefile.am): Likewise.
65725         * modules/safe-write (Makefile.am): Likewise.
65726         * modules/same-inode (Makefile.am): Likewise.
65727         * modules/same (Makefile.am): Likewise.
65728         * modules/save-cwd (Makefile.am): Likewise.
65729         * modules/savedir (Makefile.am): Likewise.
65730         * modules/setenv (Makefile.am): Likewise.
65731         * modules/settime (Makefile.am): Likewise.
65732         * modules/sha1 (Makefile.am): Likewise.
65733         * modules/sig2str (Makefile.am): Likewise.
65734         * modules/snprintf (Makefile.am): Likewise.
65735         * modules/stat-macros (Makefile.am): Likewise.
65736         * modules/stat-time (Makefile.am): Likewise.
65737         * modules/stdbool (Makefile.am): Likewise.
65738         * modules/stdint (Makefile.am): Likewise.
65739         * modules/stdlib-safer (Makefile.am): Likewise.
65740         * modules/stpcpy (Makefile.am): Likewise.
65741         * modules/stpncpy (Makefile.am): Likewise.
65742         * modules/strcase (Makefile.am): Likewise.
65743         * modules/strcasestr (Makefile.am): Likewise.
65744         * modules/strchrnul (Makefile.am): Likewise.
65745         * modules/strcspn (Makefile.am): Likewise.
65746         * modules/strdup (Makefile.am): Likewise.
65747         * modules/strerror (Makefile.am): Likewise.
65748         * modules/strftime (Makefile.am): Likewise.
65749         * modules/strndup (Makefile.am): Likewise.
65750         * modules/strnlen (Makefile.am): Likewise.
65751         * modules/strpbrk (Makefile.am): Likewise.
65752         * modules/strsep (Makefile.am): Likewise.
65753         * modules/strstr (Makefile.am): Likewise.
65754         * modules/strtod (Makefile.am): Likewise.
65755         * modules/strtoimax (Makefile.am): Likewise.
65756         * modules/strtok_r (Makefile.am): Likewise.
65757         * modules/strtol (Makefile.am): Likewise.
65758         * modules/strtoll (Makefile.am): Likewise.
65759         * modules/strtoul (Makefile.am): Likewise.
65760         * modules/strtoull (Makefile.am): Likewise.
65761         * modules/strtoumax (Makefile.am): Likewise.
65762         * modules/strverscmp (Makefile.am): Likewise.
65763         * modules/sys_socket (Makefile.am): Likewise.
65764         * modules/sys_stat (Makefile.am): Likewise.
65765         * modules/sysexits (Makefile.am): Likewise.
65766         * modules/time_r (Makefile.am): Likewise.
65767         * modules/timegm (Makefile.am): Likewise.
65768         * modules/timespec (Makefile.am): Likewise.
65769         * modules/tmpfile-safer (Makefile.am): Likewise.
65770         * modules/trim (Makefile.am): Likewise.
65771         * modules/unistd-safer (Makefile.am): Likewise.
65772         * modules/unlinkdir (Makefile.am): Likewise.
65773         * modules/unlocked-io (Makefile.am): Likewise.
65774         * modules/userspec (Makefile.am): Likewise.
65775         * modules/utime (Makefile.am): Likewise.
65776         * modules/utimecmp (Makefile.am): Likewise.
65777         * modules/utimens (Makefile.am): Likewise.
65778         * modules/vasnprintf (Makefile.am): Likewise.
65779         * modules/vasprintf (Makefile.am): Likewise.
65780         * modules/vsnprintf (Makefile.am): Likewise.
65781         * modules/xalloc (Makefile.am): Likewise.
65782         * modules/xgetcwd (Makefile.am): Likewise.
65783         * modules/xnanosleep (Makefile.am): Likewise.
65784         * modules/xreadlink (Makefile.am): Likewise.
65785         * modules/xstrtod (Makefile.am): Likewise.
65786         * modules/xstrtol (Makefile.am): Likewise.
65787         * modules/xstrtold (Makefile.am): Likewise.
65788         * modules/yesno (Makefile.am): Likewise.
65789         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
65790
65791 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
65792
65793         * modules/error (Makefile.am): Distribute files through
65794         EXTRA_DIST, not lib_SOURCES.
65795
65796 2006-10-12  Eric Blake  <ebb9@byu.net>
65797
65798         * modules/error (Makefile.am): Distribute files in /lib.
65799         * modules/obstack (Makefile.am): Likewise.
65800
65801 2006-10-12  Bruno Haible  <bruno@clisp.org>
65802
65803         * modules/acl (Makefile.am): Distribute all files in lib/ through
65804         EXTRA_DIST.
65805         * modules/arcfour (Makefile.am): Likewise.
65806         * modules/arctwo (Makefile.am): Likewise.
65807         * modules/argmatch (Makefile.am): Likewise.
65808         * modules/argz (Makefile.am): Likewise.
65809         * modules/atexit (Makefile.am): Likewise.
65810         * modules/backupfile (Makefile.am): Likewise.
65811         * modules/c-strtod (Makefile.am): Likewise.
65812         * modules/c-strtold (Makefile.am): Likewise.
65813         * modules/calloc (Makefile.am): Likewise.
65814         * modules/canon-host (Makefile.am): Likewise.
65815         * modules/canonicalize (Makefile.am): Likewise.
65816         * modules/chdir-long (Makefile.am): Likewise.
65817         * modules/chdir-safer (Makefile.am): Likewise.
65818         * modules/check-version (Makefile.am): Likewise.
65819         * modules/chown (Makefile.am): Likewise.
65820         * modules/cloexec (Makefile.am): Likewise.
65821         * modules/close-stream (Makefile.am): Likewise.
65822         * modules/closeout (Makefile.am): Likewise.
65823         * modules/crc (Makefile.am): Likewise.
65824         * modules/cycle-check (Makefile.am): Likewise.
65825         * modules/des (Makefile.am): Likewise.
65826         * modules/dirfd (Makefile.am): Likewise.
65827         * modules/dirname (Makefile.am): Likewise.
65828         * modules/dup2 (Makefile.am): Likewise.
65829         * modules/euidaccess (Makefile.am): Likewise.
65830         * modules/exclude (Makefile.am): Likewise.
65831         * modules/exitfail (Makefile.am): Likewise.
65832         * modules/fcntl-safer (Makefile.am): Likewise.
65833         * modules/file-type (Makefile.am): Likewise.
65834         * modules/fileblocks (Makefile.am): Likewise.
65835         * modules/filemode (Makefile.am): Likewise.
65836         * modules/filenamecat (Makefile.am): Likewise.
65837         * modules/fnmatch (Makefile.am): Likewise.
65838         * modules/fopen-safer (Makefile.am): Likewise.
65839         * modules/fpending (Makefile.am): Likewise.
65840         * modules/fprintftime (Makefile.am): Likewise.
65841         * modules/free (Makefile.am): Likewise.
65842         * modules/fsusage (Makefile.am): Likewise.
65843         * modules/ftruncate (Makefile.am): Likewise.
65844         * modules/fts (Makefile.am): Likewise.
65845         * modules/gc (Makefile.am): Likewise.
65846         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
65847         * modules/getaddrinfo (Makefile.am): Likewise.
65848         * modules/getcwd (Makefile.am): Likewise.
65849         * modules/getdelim (Makefile.am): Likewise.
65850         * modules/getdomainname (Makefile.am): Likewise.
65851         * modules/getgroups (Makefile.am): Likewise.
65852         * modules/gethostname (Makefile.am): Likewise.
65853         * modules/gethrxtime (Makefile.am): Likewise.
65854         * modules/getline (Makefile.am): Likewise.
65855         * modules/getloadavg (Makefile.am): Likewise.
65856         * modules/getlogin_r (Makefile.am): Likewise.
65857         * modules/getopt (Makefile.am): Likewise.
65858         * modules/getpass (Makefile.am): Likewise.
65859         * modules/getpass-gnu (Makefile.am): Likewise.
65860         * modules/getsubopt (Makefile.am): Likewise.
65861         * modules/gettime (Makefile.am): Likewise.
65862         * modules/gettimeofday (Makefile.am): Likewise.
65863         * modules/getugroups (Makefile.am): Likewise.
65864         * modules/getusershell (Makefile.am): Likewise.
65865         * modules/glob (Makefile.am): Likewise.
65866         * modules/group-member (Makefile.am): Likewise.
65867         * modules/hard-locale (Makefile.am): Likewise.
65868         * modules/hash (Makefile.am): Likewise.
65869         * modules/hmac-md5 (Makefile.am): Likewise.
65870         * modules/hmac-sha1 (Makefile.am): Likewise.
65871         * modules/human (Makefile.am): Likewise.
65872         * modules/idcache (Makefile.am): Likewise.
65873         * modules/imaxabs (Makefile.am): Likewise.
65874         * modules/imaxdiv (Makefile.am): Likewise.
65875         * modules/inet_ntop (Makefile.am): Likewise.
65876         * modules/inet_pton (Makefile.am): Likewise.
65877         * modules/inttostr (Makefile.am): Likewise.
65878         * modules/isapipe (Makefile.am): Likewise.
65879         * modules/lchown (Makefile.am): Likewise.
65880         * modules/long-options (Makefile.am): Likewise.
65881         * modules/lstat (Makefile.am): Likewise.
65882         * modules/malloc (Makefile.am): Likewise.
65883         * modules/mathl (Makefile.am): Likewise.
65884         * modules/mbchar (Makefile.am): Likewise.
65885         * modules/md2 (Makefile.am): Likewise.
65886         * modules/md4 (Makefile.am): Likewise.
65887         * modules/md5 (Makefile.am): Likewise.
65888         * modules/memcasecmp (Makefile.am): Likewise.
65889         * modules/memchr (Makefile.am): Likewise.
65890         * modules/memcmp (Makefile.am): Likewise.
65891         * modules/memcoll (Makefile.am): Likewise.
65892         * modules/memcpy (Makefile.am): Likewise.
65893         * modules/memmem (Makefile.am): Likewise.
65894         * modules/memmove (Makefile.am): Likewise.
65895         * modules/mempcpy (Makefile.am): Likewise.
65896         * modules/memrchr (Makefile.am): Likewise.
65897         * modules/memset (Makefile.am): Likewise.
65898         * modules/memxor (Makefile.am): Likewise.
65899         * modules/mkancesdirs (Makefile.am): Likewise.
65900         * modules/mkdir (Makefile.am): Likewise.
65901         * modules/mkdir-p (Makefile.am): Likewise.
65902         * modules/mkdtemp (Makefile.am): Likewise.
65903         * modules/mkstemp (Makefile.am): Likewise.
65904         * modules/mktime (Makefile.am): Likewise.
65905         * modules/modechange (Makefile.am): Likewise.
65906         * modules/mountlist (Makefile.am): Likewise.
65907         * modules/nanosleep (Makefile.am): Likewise.
65908         * modules/openat (Makefile.am): Likewise.
65909         * modules/pagealign_alloc (Makefile.am): Likewise.
65910         * modules/physmem (Makefile.am): Likewise.
65911         * modules/poll (Makefile.am): Likewise.
65912         * modules/posixtm (Makefile.am): Likewise.
65913         * modules/posixver (Makefile.am): Likewise.
65914         * modules/putenv (Makefile.am): Likewise.
65915         * modules/quote (Makefile.am): Likewise.
65916         * modules/quotearg (Makefile.am): Likewise.
65917         * modules/raise (Makefile.am): Likewise.
65918         * modules/read-file (Makefile.am): Likewise.
65919         * modules/readline (Makefile.am): Likewise.
65920         * modules/readlink (Makefile.am): Likewise.
65921         * modules/readtokens (Makefile.am): Likewise.
65922         * modules/readutmp (Makefile.am): Likewise.
65923         * modules/realloc (Makefile.am): Likewise.
65924         * modules/regex (Makefile.am): Likewise.
65925         * modules/rename (Makefile.am): Likewise.
65926         * modules/rename-dest-slash (Makefile.am): Likewise.
65927         * modules/rijndael (Makefile.am): Likewise.
65928         * modules/rmdir (Makefile.am): Likewise.
65929         * modules/rpmatch (Makefile.am): Likewise.
65930         * modules/safe-read (Makefile.am): Likewise.
65931         * modules/safe-write (Makefile.am): Likewise.
65932         * modules/same (Makefile.am): Likewise.
65933         * modules/save-cwd (Makefile.am): Likewise.
65934         * modules/savedir (Makefile.am): Likewise.
65935         * modules/setenv (Makefile.am): Likewise.
65936         * modules/settime (Makefile.am): Likewise.
65937         * modules/sha1 (Makefile.am): Likewise.
65938         * modules/sig2str (Makefile.am): Likewise.
65939         * modules/snprintf (Makefile.am): Likewise.
65940         * modules/stdlib-safer (Makefile.am): Likewise.
65941         * modules/stpcpy (Makefile.am): Likewise.
65942         * modules/stpncpy (Makefile.am): Likewise.
65943         * modules/strcase (Makefile.am): Likewise.
65944         * modules/strcasestr (Makefile.am): Likewise.
65945         * modules/strchrnul (Makefile.am): Likewise.
65946         * modules/strcspn (Makefile.am): Likewise.
65947         * modules/strdup (Makefile.am): Likewise.
65948         * modules/strerror (Makefile.am): Likewise.
65949         * modules/strftime (Makefile.am): Likewise.
65950         * modules/strndup (Makefile.am): Likewise.
65951         * modules/strnlen (Makefile.am): Likewise.
65952         * modules/strpbrk (Makefile.am): Likewise.
65953         * modules/strsep (Makefile.am): Likewise.
65954         * modules/strstr (Makefile.am): Likewise.
65955         * modules/strtod (Makefile.am): Likewise.
65956         * modules/strtoimax (Makefile.am): Likewise.
65957         * modules/strtok_r (Makefile.am): Likewise.
65958         * modules/strtol (Makefile.am): Likewise.
65959         * modules/strtoll (Makefile.am): Likewise.
65960         * modules/strtoul (Makefile.am): Likewise.
65961         * modules/strtoull (Makefile.am): Likewise.
65962         * modules/strtoumax (Makefile.am): Likewise.
65963         * modules/strverscmp (Makefile.am): Likewise.
65964         * modules/time_r (Makefile.am): Likewise.
65965         * modules/timegm (Makefile.am): Likewise.
65966         * modules/tmpfile-safer (Makefile.am): Likewise.
65967         * modules/unistd-safer (Makefile.am): Likewise.
65968         * modules/unlinkdir (Makefile.am): Likewise.
65969         * modules/userspec (Makefile.am): Likewise.
65970         * modules/utime (Makefile.am): Likewise.
65971         * modules/utimecmp (Makefile.am): Likewise.
65972         * modules/utimens (Makefile.am): Likewise.
65973         * modules/vasnprintf (Makefile.am): Likewise.
65974         * modules/vasprintf (Makefile.am): Likewise.
65975         * modules/vsnprintf (Makefile.am): Likewise.
65976         * modules/xalloc (Makefile.am): Likewise.
65977         * modules/xgetcwd (Makefile.am): Likewise.
65978         * modules/xnanosleep (Makefile.am): Likewise.
65979         * modules/xreadlink (Makefile.am): Likewise.
65980         * modules/xstrtod (Makefile.am): Likewise.
65981         * modules/xstrtol (Makefile.am): Likewise.
65982         * modules/xstrtold (Makefile.am): Likewise.
65983         * modules/yesno (Makefile.am): Likewise.
65984
65985 2006-10-12  Jim Meyering  <jim@meyering.net>
65986
65987         * m4/getloadavg.m4: Revert the change below.
65988
65989         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
65990         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
65991         fail with a symlink, which is what coreutils' ./bootstrap now
65992         creates by default.
65993
65994 2006-10-12  Bruno Haible  <bruno@clisp.org>
65995
65996         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
65997         mingw.
65998         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
65999         MSVC and mingw explicitly.
66000
66001 2006-10-11  Simon Josefsson  <jas@extundo.com>
66002             Bruno Haible  <bruno@clisp.org>
66003
66004         Add support for multiple gnulib-tool invocations in the scope of a
66005         single configure.ac file.
66006         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
66007         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
66008         with the same contents as the _LIBADD variable.
66009         (func_emit_initmacro_start, func_emit_initmacro_end,
66010         func_emit_initmacro_done): New functions.
66011         (func_import, func_create_testdir): Invoke them. Allow the identifiers
66012         gl_LIBOBJS and gl_LTLIBOBJS.
66013
66014 2006-10-11  Bruno Haible  <bruno@clisp.org>
66015
66016         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
66017         (func_create_testdir): Don't create po/Makefile.am, don't invoke
66018         autoreconf. Instead, invoke autopoint explicitly but move back the
66019         *.m4 files from gnulib.
66020
66021 2006-10-11  Bruno Haible  <bruno@clisp.org>
66022
66023         * gnulib-tool (func_usage): Make module names after --create-testdir
66024         optional.
66025         (func_create_testdir): If no module was specified, use nearly all
66026         modules.
66027
66028 2006-10-12  Jim Meyering  <jim@meyering.net>
66029
66030         Big performance improvement for fts-based tools that use FTS_NOSTAT.
66031         Avoid spurious inode-mismatch problems on non-POSIX file systems.
66032         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
66033         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
66034         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
66035         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
66036         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
66037         (fts_set_stat_required): New function.
66038         (fts_open): Defer the calls to fts_stat, if possible or requested.
66039         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
66040         into fts_stat itself.
66041         (fts_read): Perform any required (deferred) fts_stat call.
66042         (fts_build): Likewise, for the directory we're about to open and read.
66043         In the readdir loop, carefully decide whether each entry will require
66044         an eventual call to fts_stat, using dirent.d_type info if available.
66045         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
66046         a command line argument into this function.  Update all callers.
66047         Map a return value of FTS_DOT to FTS_D for a command line argument.
66048         * modules/fts (Depends-on): Add d-type.  Alphabetize.
66049         Thanks to Miklos Szeredi for his tenacity and for the initial
66050         bug report about "find" failing on a FUSE-based file system.
66051
66052         * lib/fts.c (fts_open): Use consistent indentation.
66053
66054 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
66055
66056         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
66057         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
66058         reported by Jim Meyering.  All uses of cache variables renamed
66059         to match Autoconf's.
66060         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
66061         the other one.
66062
66063         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
66064         Fix misspelling in diagnostic.
66065
66066 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
66067
66068         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
66069         defined.  Problem reported by Matthew Woehlke.
66070
66071         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
66072         Add support for Tandem NonStop R series.
66073         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
66074         Use new macro.
66075
66076         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
66077         (has_trailing_slash): Omit size arg; all callers changed.
66078         Omit 'inline', since it doesn't help performance and we'd
66079         need to configure it.
66080         Don't count //, ///, etc. as having a trailing slash.
66081         As a side effect, this removes a C99ism reported by Matthew Woehlke.
66082         (rpl_rename_dest_slash): On failure, use rename's errno rather
66083         than (in some cases) an incorrect or junk errno.
66084         Simplify code by removing need to compute length; this does
66085         cause it to make two passes instead of one over the file name,
66086         but it's worth it.
66087
66088         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
66089         change, since Autoconf's version may no longer be appropriate now
66090         that we are using CVS Autoconf's version.  Add support for Tandem.
66091
66092 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
66093             Bruno Haible  <bruno@clisp.org>
66094
66095         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
66096         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
66097         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
66098         gl_AC_TYPE_LONG_LONG.
66099
66100         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
66101         instead of HAVE_LONG_LONG.
66102         * lib/printf-args.c (printf_fetchargs): Likewise.
66103         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
66104         * lib/vasnprintf.c (VASNPRINTF): Likewise.
66105         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
66106         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
66107         gl_AC_TYPE_LONG_LONG.
66108
66109 2006-10-11  Bruno Haible  <bruno@clisp.org>
66110
66111         * m4/longlong.m4: Add comments.
66112         * m4/ulonglong.m4: Likewise.
66113
66114 2006-10-10  Bruno Haible  <bruno@clisp.org>
66115
66116         Make it possible to #define stpcpy, strdup to aliases.
66117         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
66118         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
66119
66120 2006-10-10  Bruno Haible  <bruno@clisp.org>
66121
66122         Make it possible to #define gcd to an alias.
66123         * lib/gcd.c: Include config.h.
66124
66125 2006-10-10  Bruno Haible  <bruno@clisp.org>
66126
66127         Make it possible to #define c_isascii to an alias.
66128         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
66129         defined. Undefine the macros before defining them, to avoid gcc
66130         warnings.
66131         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
66132         define NO_C_CTYPE_MACROS early.
66133
66134 2006-10-10  Bruno Haible  <bruno@clisp.org>
66135
66136         Make it possible to #define set_program_name to an alias.
66137         * lib/progname.c: Don't undefine set_program_name; instead, undefine
66138         ENABLE_RELOCATABLE early.
66139
66140 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
66141
66142         Port to Tandem NSK OSS, which has 64-bit signed int but at most
66143         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
66144         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
66145         More generally, don't assume that 64-bit signed int is available
66146         if unsigned int is, and vice versa.
66147         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
66148         unsigned symbols, not on their signed counterparts.
66149         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
66150         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
66151         (UINT64_C, UINTMAX_C):
66152         Likewise.
66153         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
66154         unsigned counterparts.
66155         (Have_long_long, Unsigned): New macros.
66156         (Int): Renamed from INT.
66157         (strtoimax): Use the new macros.
66158         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
66159         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
66160         * modules/inttypes (inttypes.h): Substitute
66161         HAVE_UNSIGNED_LONG_LONG_INT.
66162         * modules/stdint (stdint.h): Likewise.
66163         (Files): Add m4/ulonglong.m4.
66164
66165 2006-10-10  Bruno Haible  <bruno@clisp.org>
66166
66167         Fix a gcc -Wshadow warning.
66168         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
66169         to 'bucket'.
66170         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
66171         gl_linked_indexof_from_to): Likewise.
66172         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
66173         Likewise.
66174         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
66175         Likewise.
66176         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
66177         Reported by Eric Blake.
66178
66179 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
66180
66181         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
66182         for NetBSD.  Problem reported by Bruno Haible.
66183
66184 2006-10-09  Jim Meyering  <jim@meyering.net>
66185
66186         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
66187         Patch from Bruno Haible.
66188
66189 2006-10-09  Jim Meyering  <jim@meyering.net>
66190
66191         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
66192         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
66193         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
66194
66195 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
66196
66197         Don't include <config.h> twice; this doesn't work in some cases,
66198         e.g., when config.h has "#define intmax_t long long int" and
66199         we include <config.h>, <inttypes.h>, <config.h> in that order.
66200         Problem reported by Matthew Woehlke in:
66201         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
66202         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
66203         * lib/fts-cycle.c: Don't include config.h.
66204         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
66205         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
66206         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
66207         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
66208         inttypes.h.
66209         * lib/xstrtoumax.c: Likewise.
66210         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
66211         __strtol and the like, so that this module is more like its siblings.
66212         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
66213         Remove; no longer needed now that we assume gnulib inttypes.h.
66214
66215 2006-10-08  Bruno Haible  <bruno@clisp.org>
66216
66217         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
66218         option.
66219
66220 2006-10-07  Jim Meyering  <jim@meyering.net>
66221
66222         * modules/inttypes (inttypes.h): Revert what seems to have been
66223         an inadvertent part of today's change: use "|", not "/" in the
66224         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
66225
66226 2006-10-07  Bruno Haible  <bruno@clisp.org>
66227
66228         * modules/sublist: New file.
66229
66230 2006-10-07  Bruno Haible  <bruno@clisp.org>
66231
66232         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
66233         * modules/argz (argz.h): Likewise.
66234         * modules/arpa_inet (arpa/inet.h): Likewise.
66235         * modules/byteswap (byteswap.h): Likewise.
66236         * modules/configmake (configmake.h): Likewise.
66237         * modules/fcntl (fcntl.h): Likewise.
66238         * modules/fnmatch (fnmatch.h): Likewise.
66239         * modules/getopt (getopt.h): Likewise.
66240         * modules/glob (glob.h): Likewise.
66241         * modules/inttypes (inttypes.h): Likewise.
66242         * modules/netinet_in (netinet/in.h): Likewise.
66243         * modules/poll (poll.h): Likewise.
66244         * modules/stdbool (stdbool.h): Likewise.
66245         * modules/stdint (stdint.h): Likewise.
66246         * modules/sys_select (sys/select.h): Likewise.
66247         * modules/sys_socket (sys/socket.h): Likewise.
66248         * modules/sys_stat (sys/stat.h): Likewise.
66249         * modules/sysexits (sysexits.h): Likewise.
66250         * modules/unistd (unistd.h): Likewise.
66251         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66252         Add a "DO NOT EDIT" comment to the generated file.
66253         (func_import): Likewise for gnulib-comp.m4.
66254
66255 2006-10-07  Bruno Haible  <bruno@clisp.org>
66256
66257         * lib/gl_sublist.h: New file.
66258         * lib/gl_sublist.c: New file.
66259
66260 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
66261
66262         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
66263         name (relative to the original working directory) and the file
66264         name component (relative to the temporary working directory).  All
66265         callers changed.
66266         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
66267         * lib/mkdir-p.c (make_dir_parents): Likewise.
66268         * lib/mkdir-p.h (make_dir_parents): Likewise.
66269
66270 2006-10-06  Eric Blake  <ebb9@byu.net>
66271
66272         Define several macros for use by the clean-temp module.
66273         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
66274         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
66275         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
66276
66277         * lib/clean-temp.h (close_stream_temp): New declaration.
66278         * lib/clean-temp.c (includes): Pull in headers according to what
66279         other modules are in use.
66280         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
66281
66282 2006-10-06  Bruno Haible  <bruno@clisp.org>
66283
66284         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
66285         instead of fopen, fwriteerror.
66286
66287 2006-10-06  Bruno Haible  <bruno@clisp.org>
66288
66289         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
66290         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
66291         int.
66292         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
66293         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
66294         Return an error indicator.
66295         Suggested by Eric Blake.
66296
66297 2006-10-06  Bruno Haible  <bruno@clisp.org>
66298
66299         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
66300         Reported by Eric Blake.
66301
66302 2006-10-06  Bruno Haible  <bruno@clisp.org>
66303
66304         * modules/closeout (Description): Mention stderr too.
66305
66306 2006-10-06  Bruno Haible  <bruno@clisp.org>
66307         and Paul Eggert  <eggert@cs.ucla.edu>
66308
66309         * lib/closeout.c (close_stdout): Also close stderr.
66310         * lib/closeout.h: Update comment.
66311
66312 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
66313
66314         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
66315         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
66316         * lib/dirchownmod.c: Include lchown.h.
66317         * lib/lchown.c: Don't include files that lchown.h now includes.
66318         Don't declare chown, since lchown.h now does that.
66319         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
66320         (lchown): Define to rpl_chown if lchown is declared but
66321         does not exist.  Declare using a prototype if lchown is not
66322         declared.  Add a copyright notice.
66323         * lib/mkstemp.h: Include <unistd.h>.
66324         * lib/openat.c: Include lchown.h.
66325
66326         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
66327         we now test for that separately.
66328         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
66329         rather than O_NOFOLLOW, when testing whether it's possible to
66330         avoid a race condition reliably.
66331         * lib/savewd.c (savewd_chdir): Likewise.
66332
66333         Remove macros that are no longer needed now that stdint.h is
66334         reliable.
66335         * lib/fsusage.c (UINTMAX_MAX): Remove.
66336         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
66337         * lib/utimecmp.c (SIZE_MAX): Remove.
66338
66339         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
66340
66341         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
66342         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
66343         O_NOATIME works.
66344
66345 2006-10-05  Bruno Haible  <bruno@clisp.org>
66346
66347         * lib/gl_list.h (gl_sortedlist_search_from_to,
66348         gl_sortedlist_indexof_from_to): New declarations.
66349         (gl_list_implementation): New fields sortedlist_search_from_to,
66350         sortedlist_indexof_from_to.
66351         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
66352         inline functions.
66353         * lib/gl_list.c (gl_sortedlist_search_from_to,
66354         gl_sortedlist_indexof_from_to): New functions.
66355         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
66356         function.
66357         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
66358         (gl_array_sortedlist_search_from_to): New function.
66359         (gl_array_list_implementation): Update.
66360         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
66361         function.
66362         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
66363         (gl_carray_sortedlist_search_from_to): New function.
66364         (gl_carray_list_implementation): Update.
66365         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
66366         gl_linked_sortedlist_indexof_from_to): New functions.
66367         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
66368         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
66369         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
66370         gl_tree_sortedlist_indexof_from_to): New functions.
66371         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
66372         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
66373         Update.
66374         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
66375         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
66376         Update.
66377
66378 2006-10-05  Bruno Haible  <bruno@clisp.org>
66379
66380         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
66381         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
66382         (struct gl_list_implementation): Add fields search_from_to,
66383         indexof_from_to. Remove fields search, indexof.
66384         (gl_list_search): Use the search_from_to method.
66385         (gl_list_search_from, gl_list_search_from_to): New functions.
66386         (gl_list_indexof): Use the indexof_from_to method.
66387         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
66388         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
66389         (gl_list_search_from, gl_list_search_from_to): New functions.
66390         (gl_list_indexof): Use the indexof_from_to method.
66391         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
66392         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
66393         gl_array_indexof. Add start_index, end_index arguments.
66394         (gl_array_search_from_to): Renamed from gl_array_search. Add
66395         start_index, end_index arguments.
66396         (gl_array_remove, gl_array_list_implementation): Update.
66397         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
66398         gl_carray_indexof. Add start_index, end_index arguments.
66399         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
66400         start_index, end_index arguments.
66401         (gl_carray_remove, gl_carray_list_implementation): Update.
66402         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
66403         gl_linked_search. Add start_index, end_index arguments.
66404         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
66405         start_index, end_index arguments.
66406         (gl_linked_remove): Update.
66407         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
66408         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
66409         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
66410         field to 'size_t'.
66411         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
66412         gl_tree_search. Add start_index, end_index arguments.
66413         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
66414         start_index, end_index arguments.
66415         (gl_tree_remove): Update.
66416         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
66417         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
66418         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
66419         function.
66420         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
66421         gl_tree_search. Add start_index, end_index arguments.
66422         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
66423         start_index, end_index arguments.
66424         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
66425         Update.
66426         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
66427
66428 2006-10-05  Bruno Haible  <bruno@clisp.org>
66429
66430         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
66431
66432         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
66433         fwriteerror_temp): New declarations.
66434         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
66435         (descriptors): New variable.
66436         (cleanup): First, close the descriptors.
66437         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
66438         fclose_temp, fwriteerror_temp): New functions.
66439
66440 2006-10-04  Jim Meyering  <jim@meyering.net>
66441
66442         * lib/fts.c (fts_open): Tiny comment change.
66443
66444 2006-10-04  Bruno Haible  <bruno@clisp.org>
66445
66446         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
66447         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
66448         gl_LOCK_BODY.
66449         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
66450         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
66451         gl_LOCK_EARLY_BODY.
66452         (gl_LOCK): Require gl_LOCK_BODY.
66453
66454 2006-10-04  Bruno Haible  <bruno@clisp.org>
66455
66456         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
66457         (gl_oset_search_atleast): New declaration.
66458         (struct gl_oset_implementation): Add field 'search_atleast'.
66459         (gl_oset_search_atleast): New inline function.
66460         * lib/gl_oset.c (gl_oset_search_atleast): New function.
66461         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
66462         (gl_array_oset_implementation): Update.
66463         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
66464         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
66465         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
66466
66467 2006-10-04  Bruno Haible  <bruno@clisp.org>
66468
66469         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
66470
66471 2006-10-03  Bruno Haible  <bruno@clisp.org>
66472
66473         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
66474         from gl_avltreehash_list_implementation.
66475
66476 2006-10-03  Bruno Haible  <bruno@clisp.org>
66477
66478         * lib/gl_oset.c (gl_oset_add): Fix return type.
66479
66480 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
66481
66482         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
66483
66484 2006-10-02  Eric Blake  <ebb9@byu.net>
66485
66486         * modules/strnlen (Depends-on): Add extensions.
66487
66488 2006-10-02  Eric Blake  <ebb9@byu.net>
66489
66490         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
66491         definition in 2.60+.
66492
66493 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
66494
66495         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
66496         checks.
66497
66498 2006-10-02  Bruno Haible  <bruno@clisp.org>
66499
66500         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
66501         to the AUTOMAKE_OPTIONS.
66502         Reported by Jim Meyering.
66503
66504 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
66505
66506         Work around bug in Solaris 10 /proc file system:
66507         /proc/self/fd/NNN/.. isn't the parent directory of
66508         the directory whose file descriptor is NNN.  This needs to
66509         be worked around at run time, not compile time, since a
66510         program might be built on Solaris 8, where things work, and
66511         run on Solaris 10.
66512         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
66513         to use the following interface instead:
66514         (OPENAT_BUFFER_SIZE): New macro.
66515         (openat_proc_name): New function.
66516         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
66517         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
66518         Likewise.
66519         * lib/openat-proc.c: New file.
66520         * modules/openat (Files): Add lib/openat-proc.c.
66521         (Depends-on): Add same-inode, stdbool.
66522         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
66523
66524 2006-09-29  Bruno Haible  <bruno@clisp.org>
66525
66526         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
66527         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
66528         argument. Set stdout_closed before testing for ferror, not after.
66529         (fwriteerror, fwriteerror_no_ebadf): New functions.
66530
66531 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66532
66533         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
66534
66535 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
66536
66537         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
66538         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
66539
66540 2006-09-28  Jim Meyering  <jim@meyering.net>
66541
66542         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
66543         Include <unistd.h>.
66544
66545 2006-09-28  Bruno Haible  <bruno@clisp.org>
66546
66547         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
66548         * modules/linkedhash-list (Depends-on): Likewise.
66549         * modules/rbtreehash-list (Depends-on): Likewise.
66550
66551 2006-09-28  Bruno Haible  <bruno@clisp.org>
66552
66553         * lib/strndup.h: Simplify the redefinition of strndup.
66554         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
66555         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
66556
66557 2006-09-28  Bruno Haible  <bruno@clisp.org>
66558
66559         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
66560         * lib/gl_linkedhash_list.c: Likewise.
66561         * lib/gl_rbtreehash_list.c: Likewise.
66562
66563 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
66564
66565         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
66566         getaddrinfo.
66567
66568         * lib/__fpending.h: Don't include <stdio_ext.h> unless
66569         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
66570         it causes <stdio_ext.h> to cause a compile-time error.
66571         Problem reported by Nelson H. F. Beebe.
66572         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
66573         of HAVE_DECL___PENDING.
66574
66575         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
66576         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
66577         declaration.
66578
66579 2006-09-27  Jim Meyering  <jim@meyering.net>
66580
66581         This file could end up with a definition for a function
66582         named __strndup, rather than rpl_strndup on a system with
66583         incomplete weak_alias support.
66584         * lib/strndup.c (strndup): Rename from __strndup.
66585         Remove #defines that used to map __strndup to strndup.
66586         Don't use K&R prototypes.
66587         Remove LIBC-related code, since this file is not sync'd with glibc.
66588         * lib/strndup.h: Revamp, accordingly.
66589         * m4/strndup.m4: Modernize.
66590
66591 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
66592
66593         * modules/savewd (Depends-on): Add 'raise'.
66594         * lib/savewd.c: Include <signal.h>, for 'raise'.
66595
66596 2006-09-26  Jim Meyering  <jim@meyering.net>
66597
66598         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
66599         when we detect Darwin 8.7.0's acl_get_file bug.
66600         Rearrange to perform the new (below) run-test while $LIBS
66601         contains any acl-related library.  Set USE_ACL at the end.
66602         (gl_ACL_GET_FILE): New function.
66603
66604 2006-09-26  Eric Blake  <ebb9@byu.net>
66605
66606         * lib/verror.c: Include <config.h> unconditionally.
66607
66608 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
66609
66610         * modules/clock-time (Maintainer): Add self.
66611         * modules/getlogin_r (Depends-on): Add extensions.
66612
66613 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66614
66615         * modules/clock-time: New module.
66616         * modules/nanosleep (Depends-on): Add clock-time.
66617         * modules/gethrxtime (Depends-on): Likewise.
66618         * modules/gettime (Depends-on): Likewise.
66619         * modules/settime (Depends-on): Likewise.
66620
66621         * modules/fts-lgpl: Depend on openat.
66622         * modules/mkancesdirs: Depend on savewd.
66623         * modules/mkdir-p: Likewise.
66624
66625 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66626
66627         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
66628
66629         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
66630         `gl_have_arbitrary_file_name_length_limit' to
66631         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
66632         actually works between configure runs.
66633
66634 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66635             Bruno Haible  <bruno@clisp.org>
66636
66637         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
66638
66639 2006-09-25  Jim Meyering  <jim@meyering.net>
66640
66641         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
66642         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
66643
66644 2006-09-25  Eric Blake  <ebb9@byu.net>
66645
66646         * gnulib-tool (func_import, func_create_testdir): Fix typos in
66647         exec's in 2006-09-18 patch when shuffling fds.
66648
66649 2006-09-25  Bruno Haible  <bruno@clisp.org>
66650
66651         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
66652         Reported by Jim Meyering.
66653
66654 2006-09-24  Jim Meyering  <jim@meyering.net>
66655
66656         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
66657         compare a pointer against a literal "0".  That caused failures with
66658         at least HP-UX's hpcc.
66659
66660 2006-09-22  Simon Josefsson  <jas@extundo.com>
66661
66662         * modules/gc-sha1:
66663         * modules/gc-md4:
66664         * modules/gc-hmac-sha1:
66665         * modules/gc-hmac-md5:
66666         * modules/gc-des:
66667         * modules/gc-arcfour: Distribute more files.
66668
66669 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66670
66671         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
66672         (gl_linked_iterator_from_to): Initialize struct completely.
66673         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
66674         (gl_tree_iterator_from_to): Likewise
66675         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
66676         * lib/gl_array_list.c [lint] (gl_array_iterator)
66677         (gl_array_iterator_from_to): Likewise.
66678         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
66679         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
66680         (gl_carray_iterator_from_to): Likewise.
66681
66682         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
66683         * lib/md4.c (md4_process_block): Remove unused variable.
66684         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
66685         parentheses for clarity.
66686
66687 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66688
66689         * modules/bison-i18n (Depends-on): Add gettext.
66690
66691 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66692
66693         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
66694         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
66695         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
66696         also add missing comma that caused broken test.
66697         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
66698         stdlib.h, for `abort'.
66699         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
66700         variables.
66701         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
66702         include unistd.h if present, for `rmdir'.
66703         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
66704         variables.
66705         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
66706         in the process include standard headers for prototypes.
66707         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
66708         gets declared on GNU/Linux.
66709         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
66710         unistd.h, for `rmdir'.
66711         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
66712
66713         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
66714         always true.
66715         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
66716
66717         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
66718
66719 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66720
66721         * gnulib-tool (func_version): Create output all at once.  This
66722         may help avoid triggering unnecessary SIGPIPEs, and at any
66723         rate it doesn't hurt.
66724
66725 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66726             Bruno Haible  <bruno@clisp.org>
66727
66728         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
66729         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
66730         * m4/signed.m4 (bh_C_SIGNED): Likewise.
66731
66732         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
66733         (gl_FUNC_VASPRINTF): Invoke it.
66734
66735 2006-09-22  Bruno Haible  <bruno@clisp.org>
66736
66737         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
66738         getloadavg.c as first argument.
66739
66740 2006-09-22  Bruno Haible  <bruno@clisp.org>
66741
66742         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
66743         at the beginning of the gl_INIT macro.
66744         * modules/getloadavg (configure.ac): Pass $gl_source_base to
66745         gl_GETLOADAVG.
66746
66747 2006-09-22  Bruno Haible  <bruno@clisp.org>
66748
66749         * gnulib-tool (func_create_megatestdir): Don't include the config-h
66750         module.
66751         Suggested by Ralf Wildenhues.
66752
66753 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
66754
66755         Import this patch from libc:
66756
66757         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
66758
66759         * lib/regex_internal.c (re_string_reconstruct): Handle
66760         offset < pstr->valid_raw_len && pstr->offsets_needed case.
66761         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
66762         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
66763         re_string_context_at.
66764
66765         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
66766         now requires it.
66767         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
66768         gl_REGEX now does it for us.
66769         (gl_REGEX): Add test taken from
66770         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
66771
66772         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
66773         Check that large offsets work.  Modernize Autoconf usages.
66774         Prefer "yes" to mean a good thing rather than a bad.
66775         Don't put "#define mkstemp" in config.h, as this might interfere
66776         with standard system headers that "#define mkstemp mkstemp64".
66777
66778         * modules/mkstemp (Depends-on): Add extensions, so that
66779         mkstemp is visible on some platforms.
66780         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
66781         (Include): Change to "mkstemp.h" from <stdlib.h>.
66782         (Files): Add mkstemp.h.
66783
66784         * lib/mkstemp.h: New file, since some standard headers
66785         #define mkstemp.
66786         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
66787         Include "mkstemp.h".
66788         Make the _LIBC code resemble glibc original more,
66789         e.g., use K&R style.
66790         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
66791         (mkstemp): Remove, since mkstemp.h does this for us.
66792         * lib/stdlib--.h: Include mkstemp.h.
66793
66794         Import this patch from libc:
66795
66796         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
66797
66798         * lib/tempname.c (__gen_tempname): Change attempts_min
66799         into a macro.  Use preprocessor to decide how to initialize
66800         attempts [Coverity CID 67].
66801
66802 2006-09-20  Bruno Haible  <bruno@clisp.org>
66803
66804         * lib/mkdtemp.c: Import from libc.
66805         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
66806                 * sysdeps/posix/tempname.c (__gen_tempname): Change
66807                 attempts_min into a macro.  Use preprocessor to decide how to
66808                 initialize attempts [Coverity CID 67].
66809         2001-11-27  Paul Eggert  <eggert@twinsun.com>
66810                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
66811                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
66812
66813 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66814
66815         * gnulib-tool (func_exit): New function, to allow to pass the
66816         exit status portably through the trap.  Use everywhere.
66817         (--help, --version): Signal a write error.
66818         (trap): catch SIGPIPE, for write errors.
66819         Exit at the end of the trap, with the correct exit status.
66820
66821 2006-09-19  Karl Berry  <karl@gnu.org>
66822
66823         * doc/gnulib.texi: note about the license texinfo files.
66824
66825 2006-09-19  Eric Blake  <ebb9@byu.net>
66826
66827         * gnulib-tool: Avoid space-tab.
66828
66829 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
66830
66831         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
66832         that prevented coreutils 6.1 from building.  Problem reported
66833         by Petter Reinholdtsen.
66834
66835 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
66836
66837         * gnulib-tool (avoidlist): Fix typo that broke options like
66838         --avoid=lock that are used by coreutils bootstrap.
66839
66840 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
66841
66842         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
66843         more systematically.
66844
66845 2006-09-18  Jim Meyering  <jim@meyering.net>
66846
66847         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
66848
66849 2006-09-18  Bruno Haible  <bruno@clisp.org>
66850
66851         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
66852
66853 2006-09-18  Bruno Haible  <bruno@clisp.org>
66854
66855         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
66856         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
66857         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
66858         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
66859         * m4/gettext.m4: Require autoconf >= 2.52.
66860         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
66861         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
66862         of gl_cv_header_inttypes_h.
66863
66864 2006-09-18  Bruno Haible  <bruno@clisp.org>
66865
66866         * lib/javaversion.c: Include configmake.h.
66867
66868 2006-09-18  Bruno Haible  <bruno@clisp.org>
66869
66870         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
66871         avoid that the while loops be executed in a subshell.
66872
66873 2006-09-18  Bruno Haible  <bruno@clisp.org>
66874
66875         * MODULES.html.sh (func_module): Break long lines.
66876         Suggested by Bruce Korb <bkorb@gnu.org>.
66877
66878 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66879
66880         Speed up by a factor of 1.12.
66881         * gnulib-tool (nl): New variable.
66882         (func_import): Rewrite include directive extraction to only read each
66883         directive once.
66884
66885 2006-09-17  Bruno Haible  <bruno@clisp.org>
66886
66887         * modules/javaversion (Makefile.am): Remove DEFS setting.
66888         (Depends-on): Add configmake, for PKGDATADIR definition.
66889
66890 2006-09-17  Bruno Haible  <bruno@clisp.org>
66891
66892         * gnulib-tool (func_create_testdir): Rewrite all files at once.
66893
66894 2006-09-17  Bruno Haible  <bruno@clisp.org>
66895
66896         * gnulib-tool (func_append): New function, stolen from libtool.m4.
66897         (func_modules_transitive_closure, func_modules_add_dummy,
66898         func_modules_to_filelist, func_import, func_create_testdir,
66899         func_create_megatestdir, ...): Use it wherever possible.
66900         Suggested by Ralf Wildenhues.
66901
66902 2006-09-16  Karl Berry  <karl@gnu.org>
66903
66904         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
66905         to avoid sectioning errors.
66906         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
66907         [ifinfo]: blank line after @center-ed titles.
66908         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
66909         Spell FSF address consistently with others.
66910         (These changes approved by rms.)
66911
66912 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66913
66914         Speed up by a factor of 1.61.
66915         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
66916         already checked module names again.
66917
66918 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66919
66920         Speed up by a factor of 1.13.
66921         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
66922         for new_files, and the input to func_add_or_update.
66923
66924 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66925
66926         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
66927         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
66928
66929 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
66930
66931         * modules/mkancesdirs (Depends-on): Add fcntl.
66932         * modules/savewd: New file.
66933         * MODULES.html.sh (File system functions): Add savewd.
66934
66935         * modules/configmake (Makefile.am): Add support for the
66936         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
66937
66938 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
66939
66940         * m4/savewd.m4: New file.
66941
66942 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
66943
66944         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
66945         (dirchownmod): New arg FD.  All callers changed.
66946         Use FD rather than opening the directory ourself, as opening is
66947         now the caller's responsibility.
66948         * lib/dirchownmod.h: Likewise.
66949         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
66950         hosts that require <sys/types.h> before <sys/stat.h>.  Include
66951         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
66952         (test_dir): Remove.
66953         (mkancesdirs): Return length of prefix of FILE that has already
66954         been made, or -2 if there is a child doing the work.  Redo
66955         algorithm so that it is O(N) rather than O(N**2).  Optimize away
66956         ".", and treat ".." specially since it might stray back into
66957         already-created areas.  Use a subprocess if necessary.  New arg
66958         WD; all users changed.  MAKE_DIR function should now return 1
66959         if it creates a directory that is not readable.  Return -2 if
66960         a child process is spun off.
66961         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
66962         Adjust signature to match code.
66963         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
66964         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
66965         all users changed.
66966         * lib/savewd.c, lib/savewd.h: New files.
66967
66968 2006-09-15  Jim Meyering  <jim@meyering.net>
66969
66970         * modules/rename-dest-slash: New module.
66971         * MODULES.html.sh (posix_compat): Add it here.
66972
66973         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
66974
66975 2006-09-15  Jim Meyering  <jim@meyering.net>
66976
66977         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
66978         file.
66979
66980         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
66981
66982 2006-09-15  Jim Meyering  <jim@meyering.net>
66983
66984         * lib/rename-dest-slash.c (has_trailing_slash): Use
66985         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
66986         (rpl_rename_dest_slash): Perform the cheaper trailing slash
66987         test before testing whether SRC is a directory.
66988         Suggestions from Bruno Haible.
66989
66990         Avoid a warning about an unused variable.
66991         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
66992         into the #ifdef block where it's used.
66993
66994         * lib/rename-dest-slash.c: New file.
66995
66996 2006-09-14  Bruno Haible  <bruno@clisp.org>
66997
66998         * lib/allocsa.c: Include <config.h> unconditionally.
66999         * lib/asnprintf.c: Likewise.
67000         * lib/asprintf.c: Likewise.
67001         * lib/c-strcasecmp.c: Likewise.
67002         * lib/c-strcasestr.c: Likewise.
67003         * lib/c-strncasecmp.c: Likewise.
67004         * lib/c-strstr.c: Likewise.
67005         * lib/classpath.c: Likewise.
67006         * lib/clean-temp.c: Likewise.
67007         * lib/concatpath.c: Likewise.
67008         * lib/copy-file.c: Likewise.
67009         * lib/csharpcomp.c: Likewise.
67010         * lib/csharpexec.c: Likewise.
67011         * lib/execute.c: Likewise.
67012         * lib/fatal-signal.c: Likewise.
67013         * lib/findprog.c: Likewise.
67014         * lib/fwriteerror.c: Likewise.
67015         * lib/gl_array_list.c: Likewise.
67016         * lib/gl_array_oset.c: Likewise.
67017         * lib/gl_avltree_list.c: Likewise.
67018         * lib/gl_avltree_oset.c: Likewise.
67019         * lib/gl_avltreehash_list.c: Likewise.
67020         * lib/gl_carray_list.c: Likewise.
67021         * lib/gl_linked_list.c: Likewise.
67022         * lib/gl_linkedhash_list.c: Likewise.
67023         * lib/gl_list.c: Likewise.
67024         * lib/gl_oset.c: Likewise.
67025         * lib/gl_rbtree_list.c: Likewise.
67026         * lib/gl_rbtree_oset.c: Likewise.
67027         * lib/gl_rbtreehash_list.c: Likewise.
67028         * lib/imaxabs.c: Likewise.
67029         * lib/imaxdiv.c: Likewise.
67030         * lib/javacomp.c: Likewise.
67031         * lib/javaexec.c: Likewise.
67032         * lib/javaversion.c: Likewise.
67033         * lib/linebreak.c: Likewise.
67034         * lib/localcharset.c: Likewise.
67035         * lib/lock.c: Likewise.
67036         * lib/mbchar.c: Likewise.
67037         * lib/mbswidth.c: Likewise.
67038         * lib/mkdtemp.c: Likewise.
67039         * lib/pipe.c: Likewise.
67040         * lib/printf-args.c: Likewise.
67041         * lib/printf-parse.c: Likewise.
67042         * lib/progname.c: Likewise.
67043         * lib/progreloc.c: Likewise.
67044         * lib/readlink.c: Likewise.
67045         * lib/sh-quote.c: Likewise.
67046         * lib/stpcpy.c: Likewise.
67047         * lib/stpncpy.c: Likewise.
67048         * lib/strcasecmp.c: Likewise.
67049         * lib/strcasestr.c: Likewise.
67050         * lib/strcspn.c: Likewise.
67051         * lib/striconv.c: Likewise.
67052         * lib/strncasecmp.c: Likewise.
67053         * lib/strnlen1.c: Likewise.
67054         * lib/strstr.c: Likewise.
67055         * lib/strtok_r.c: Likewise.
67056         * lib/tls.c: Likewise.
67057         * lib/tmpdir.c: Likewise.
67058         * lib/unicodeio.c: Likewise.
67059         * lib/unsetenv.c: Likewise.
67060         * lib/vasnprintf.c: Likewise.
67061         * lib/vasprintf.c: Likewise.
67062         * lib/wait-process.c: Likewise.
67063         * lib/xallocsa.c: Likewise.
67064         * lib/xsetenv.c: Likewise.
67065         * lib/xstriconv.c: Likewise.
67066
67067 2006-09-13  Simon Josefsson  <jas@extundo.com>
67068
67069         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
67070         that internally, suggested by Ralf Wildenhues
67071         <Ralf.Wildenhues@gmx.de>.
67072
67073 2006-09-13  Simon Josefsson  <jas@extundo.com>
67074
67075         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
67076         @LIBOBJS@.
67077         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
67078
67079 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
67080
67081         * lib/_fpending.c: Include <config.h> unconditionally, since we no
67082         longer worry about uses that don't define HAVE_CONFIG_H.
67083         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
67084         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
67085         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
67086         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
67087         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
67088         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
67089         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
67090         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
67091         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
67092         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
67093         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
67094         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
67095         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
67096         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
67097         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
67098         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
67099         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
67100         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
67101         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
67102         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
67103         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
67104         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
67105         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
67106         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
67107         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
67108         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
67109         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
67110         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
67111         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
67112         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
67113         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
67114         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
67115         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
67116         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
67117         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
67118         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
67119         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
67120         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
67121         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
67122         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
67123         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
67124         Likewise.
67125
67126 2006-09-13  Eric Blake  <ebb9@byu.net>
67127
67128         * lib/getopt.c: Fix typo in last commit.
67129
67130 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
67131
67132         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
67133         dgettext.
67134
67135 2006-09-12  Jim Meyering  <jim@meyering.net>
67136
67137         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
67138         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
67139         Reported by Nelson H. F. Beebe.
67140
67141 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
67142
67143         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
67144         program_invocation_name and program_invocation_short_name are
67145         initialized.
67146         * lib/argp-namefrob.h: Move declarations of program_invocation_name
67147         and program_invocation_short_name to argp.h, so they are visible
67148         to user programs.
67149         * lib/argp.h: Likewise
67150
67151 2006-09-10  Bruno Haible  <bruno@clisp.org>
67152
67153         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
67154         m4/inttypes_h.m4, m4/uintmax_t.m4.
67155
67156 2006-09-10  Bruno Haible  <bruno@clisp.org>
67157
67158         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
67159         gl_AC_TYPE_UINTMAX_T.
67160
67161 2006-09-10  Bruno Haible  <bruno@clisp.org>
67162
67163         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
67164
67165 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
67166
67167         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
67168         convention.  Text proposed by Bruno Haible.
67169         (struct argp_option): Document the use of N_() wrappers.
67170
67171         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
67172         '\v', and translate the two parts separately, instead of feeding
67173         the whole string to gettext.  This allows to exclude
67174         '\v' from the strings visible to the translator by writing doc
67175         strings as N_("..") "\v" N_("..").
67176
67177 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
67178
67179         * config/srclist.txt: Undo latest change; the bug was fixed.
67180
67181 2006-09-09  Bruno Haible  <bruno@clisp.org>
67182
67183         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
67184         assignments if building a library without libtool.
67185         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
67186         in func_emit_lib_Makefile_am.
67187         (func_import): When building a static library libfoo.a, arrange to
67188         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
67189         (func_create_testdir): Likewise.
67190         * modules/gc (configure.ac, Makefile.am): If building statically,
67191         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
67192         * modules/iconvme (configure.ac, Makefile.am): Likewise.
67193         * modules/striconv (configure.ac, Makefile.am): Likewise.
67194         Based on a suggestion by Ralf Wildenhues.
67195
67196 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67197
67198         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
67199         Check for unistd.h too, since Autoconf doesn't assume POSIX.
67200         Also:
67201
67202         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67203         Add year_2050_test to catch glibc bug 2821
67204         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
67205
67206         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
67207         Prefer #ifdef to #if.
67208
67209         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
67210         Return from 'main' instead of calling 'exit'.
67211
67212 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67213
67214         * lib/mktime.c (guess_time_tm): Fix bug where mktime
67215         returned the maximum time_t value rather than (time_t) -1.
67216         Problem originally reported by William Bardwell
67217         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
67218
67219         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
67220         Moved to here ...
67221         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
67222         ... from here.
67223
67224 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67225
67226         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
67227         2821 is fixed.
67228
67229 2006-09-08  Jim Meyering  <jim@meyering.net>
67230
67231         Don't make generated files read-only.  That would bother too many
67232         people.  However, do retain the ability to work when targets are
67233         read-only: remove the destination and temporary files before writing
67234         them (when generated via sed or echo), or by using the -f option for
67235         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
67236         * modules/alloca-opt, modules/argz, modules/arpa_inet:
67237         * modules/byteswap, modules/configmake, modules/fcntl:
67238         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
67239         * modules/localcharset, modules/netinet_in, modules/poll:
67240         * modules/stdbool, modules/stdint, modules/sys_select:
67241         * modules/sys_socket, modules/sys_stat, modules/sysexits:
67242
67243 2006-09-08  Jim Meyering  <jim@meyering.net>
67244
67245         Avoid new build failure on FreeBSD 6.0.
67246         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
67247         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
67248         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
67249
67250 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67251
67252         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
67253
67254 2006-09-07  Jim Meyering  <jim@meyering.net>
67255
67256         Fix global typo in last change: use chmod u-w, not chmod u-x.
67257         Spotted by Paul Eggert and Bruce Korb.
67258         * modules/alloca-opt, modules/argz, modules/arpa_inet:
67259         * modules/byteswap, modules/configmake, modules/fcntl:
67260         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
67261         * modules/localcharset, modules/netinet_in, modules/poll:
67262         * modules/stdbool, modules/stdint, modules/sys_select:
67263         * modules/sys_socket, modules/sys_stat, modules/sysexits:
67264
67265 2006-09-06  Jim Meyering  <jim@meyering.net>
67266
67267         Make generated files be read-only.
67268         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
67269         Ensure that each generated file is now read-only.
67270         * modules/argz: Likewise.
67271         * modules/arpa_inet: Likewise.
67272         * modules/byteswap: Likewise.
67273         * modules/configmake: Likewise.
67274         * modules/fcntl: Likewise.
67275         * modules/fnmatch: Likewise.
67276         * modules/getopt: Likewise.
67277         * modules/glob: Likewise.
67278         * modules/inttypes: Likewise.
67279         * modules/netinet_in: Likewise.
67280         * modules/poll: Likewise.
67281         * modules/stdbool: Likewise.
67282         * modules/stdint: Likewise.
67283         * modules/sys_select: Likewise.
67284         * modules/sys_socket: Likewise.
67285         * modules/sys_stat: Likewise.
67286         * modules/sysexits: Likewise.
67287         * modules/localcharset: Same as above, but continue using temporary
67288         file named "t-$@" (why different?) rather than the "$@-t" used
67289         everywhere else.
67290
67291         * modules/sysexits (Makefile.am): Replace literal occurrences
67292         of "sysexit.h" more readable, and more consistent, "$@".
67293
67294 2006-09-06  Bruno Haible  <bruno@clisp.org>
67295
67296         * modules/striconv: New file.
67297         * modules/xstriconv: New file.
67298         * MODULES.html.sh (Internationalization functions): Add striconv,
67299         xstriconv.
67300
67301 2006-09-06  Bruno Haible  <bruno@clisp.org>
67302
67303         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
67304         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
67305         not using libtool correctly.
67306
67307 2006-09-06  Bruno Haible  <bruno@clisp.org>
67308
67309         * lib/striconv.h: New file.
67310         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
67311         iconvstring.c.
67312         * lib/xstriconv.h: New file.
67313         * lib/xstriconv.c: New file.
67314
67315 2006-09-06  Bruno Haible  <bruno@clisp.org>
67316
67317         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
67318         lib_..._LDFLAGS.
67319
67320 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67321
67322         * lib/argz_.h: Sync from Libtool.
67323
67324         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
67325                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
67326
67327         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
67328
67329 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
67330
67331         * modules/trim: New file.
67332
67333 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
67334
67335         * lib/trim.h: New file.
67336         * lib/trim.c: New file.
67337
67338 2006-09-05  Bruno Haible  <bruno@clisp.org>
67339
67340         * MODULES.html.sh (String handling): Add trim.
67341
67342 2006-09-04  Karl Berry  <karl@gnu.org>
67343
67344         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
67345         until next release.
67346
67347 2006-09-03  Bruno Haible  <bruno@clisp.org>
67348
67349         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
67350         correctly.
67351
67352 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
67353
67354         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
67355         not gl_GETLOADAVG.  Omit unneeded semicolons.
67356         Problems reported by Ralf Wildenhues in
67357         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
67358         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
67359         at the end, which is the usual gnulib style.
67360
67361         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
67362         of doing all the work ourselves.
67363         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
67364         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
67365
67366 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
67367
67368         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
67369         Problem reported by Ralf Wildenhues in
67370         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
67371
67372         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
67373         HAVE_STRUCT_STATFS_F_FSTYPENAME.
67374
67375 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
67376
67377         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
67378         yesterday's patch by changing test -n to test -z.
67379
67380 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
67381
67382         * modules/getloadavg (Files): Add m4/getloadavg.m4.
67383         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
67384         the former is now obsolescent.
67385
67386         * modules/chdir-long (Depends-on): Add fcntl.
67387
67388 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
67389
67390         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
67391         obsolescent, and programs should use gnulib instead.
67392         * m4/getloadavg.m4: New file, with contents taken from Autoconf
67393         but with prefixes changed.
67394
67395 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
67396
67397         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
67398         or stdbool.h, because they might not exist while configuring.
67399
67400         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
67401         Don't include unistd.h or limits.h; not needed, since chdir-long.h
67402         does that for us.
67403         (O_DIRECTORY): Remove.
67404
67405 2006-08-31  Eric Blake  <ebb9@byu.net>
67406
67407         * gnulib-tool: Don't let emacs change spaces to TAB.
67408
67409 2006-08-31  Bruno Haible  <bruno@clisp.org>
67410
67411         * gnulib-tool: When calling func_import more than once, do it in a
67412         subshell.
67413         Reported by Eric Blake <ebb9@byu.net>.
67414
67415 2006-08-31  Bruno Haible  <bruno@clisp.org>
67416
67417         * gnulib-tool (nl): Remove variable.
67418         (sed_transform_lib_file): Use more robust test for config-h module.
67419         (func_import): Fix typo in 2006-08-25 patch.
67420
67421 2006-08-31  Bruno Haible  <bruno@clisp.org>
67422
67423         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
67424         specified, augment Makefile.am variables instead of assigning them.
67425
67426 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
67427
67428         Work around a bug in both the Linux and SunOS 64-bit kernels:
67429         nanosleep mishandles sleeps for longer than 2**31 seconds.
67430         Problem reported by Frank v Waveren in
67431         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
67432         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
67433         Check for nanosleep bug.
67434         (LIB_NANOSLEEP): Append clock_gettime library if needed.
67435
67436 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
67437
67438         Work around a bug in both the Linux and SunOS 64-bit kernels:
67439         nanosleep mishandles sleeps for longer than 2**31 seconds.
67440         Problem reported by Frank v Waveren in
67441         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
67442         * lib/nanosleep.c (BILLION): New constant.
67443         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
67444         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
67445         implementation.
67446
67447 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
67448
67449         * modules/nanosleep (Depends-on): Add gettime.
67450
67451 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
67452         and Simon Josefsson  <jas@extundo.com>
67453         and Oskar Liljeblad  <oskar@osk.mine.nu>
67454
67455         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
67456         * gnulib-tool (func_import): New license type 'unmodifiable license
67457         text'.
67458         * modules/fdl: Use it.  Longer description.
67459         * module/gpl, module/lgpl: New files.
67460
67461 2006-08-30  Jim Meyering  <jim@meyering.net>
67462
67463         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
67464         shadowing the parameter.
67465
67466 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67467
67468         Sync from Libtool:
67469
67470         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67471
67472         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
67473         sharing with gnulib.  Report by Eric Blake.
67474
67475 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
67476
67477         * modules/isapipe: New file.
67478         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
67479
67480 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
67481
67482         * modules/configmake (Makefile.am): Add a comment, and omit
67483         the CONFIGMAKE_ prefix from generated macro names.  Suggested
67484         by Bruno Haible.
67485
67486 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
67487
67488         * m4/isapipe.m4: New file.
67489
67490 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
67491
67492         * lib/isapipe.c, lib/isapipe.h: New files.
67493
67494 2006-08-29  Jim Meyering  <jim@meyering.net>
67495
67496         * modules/configmake (Makefile.am): Make configmake.h depend on
67497         Makefile.  Otherwise, a stale configmake.h could hang around.
67498
67499 2006-08-29  Eric Blake  <ebb9@byu.net>
67500
67501         * lib/error.c (error_at_line, print_errno_message): Match libc, after
67502         resolution of upstream bug 3044.
67503
67504 2006-08-29  Bruno Haible  <bruno@clisp.org>
67505
67506         * modules/localcharset (Depends-on): Add configmake.
67507         (Makefile.am): Remove setting of LIBDIR through DEFS.
67508
67509 2006-08-29  Bruno Haible  <bruno@clisp.org>
67510
67511         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
67512         defined.
67513
67514 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
67515
67516         * modules/fcntl: New file.
67517         * modules/chdir-safer (Depends-on): Add fcntl.
67518         * modules/fts: Likewise.
67519         * modules/mkdir-p: Likewise.
67520
67521         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
67522         This undoes the most recent change, since we're now addressing the
67523         problem in a different way.
67524
67525         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
67526         into output, since the output might be called Makefile.am even
67527         if $makefile_name is something different.
67528         (func_import): Use $makefile_am rather than
67529         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
67530         empty.
67531
67532         * modules/inttypes (Files): Add m4/inttypes-h.m4.
67533
67534 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
67535
67536         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
67537         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
67538         recent change to stdint.m4, since we're now addressing the problem in a
67539         different way.
67540
67541 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
67542
67543         * m4/fcntl_h.m4: New file.
67544
67545 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
67546
67547         * lib/fcntl_.h: New file.
67548         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
67549         the fcntl module.
67550         * lib/dirchownmod.c: Likewise.
67551         * lib/fts.c: Likewise.
67552
67553         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
67554         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
67555         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
67556         just before including <inttypes.h>, to avoid circular inclusion.
67557
67558 2006-08-28  Jim Meyering  <jim@meyering.net>
67559
67560         * doc/visibility.texi: Actually read and correct the grammar of the
67561         sentence affected by yesterday's change.
67562
67563 2006-08-28  Eric Blake  <ebb9@byu.net>
67564
67565         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
67566         needs wrapper.
67567
67568 2006-08-28  Eric Blake  <ebb9@byu.net>
67569
67570         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
67571
67572 2006-08-28  Eric Blake  <ebb9@byu.net>
67573
67574         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
67575
67576 2006-08-28  Bruno Haible  <bruno@clisp.org>
67577
67578         * modules/c-strstr: New file, from GNU gettext.
67579         * MODULES.html.sh (String handling): Add c-strstr.
67580
67581 2006-08-28  Bruno Haible  <bruno@clisp.org>
67582
67583         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
67584         macros.
67585         Reported by Eric Blake.
67586
67587 2006-08-28  Bruno Haible  <bruno@clisp.org>
67588
67589         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
67590         (VASNPRINTF): Return a string of length > INT_MAX without failing.
67591         * lib/vasprintf.c: Include errno.h, limits.h.
67592         (EOVERFLOW): New fallback definition.
67593         (vasprintf): Test here whether the string length is > INT_MAX.
67594         * lib/vsnprintf.c: Include errno.h, limits.h.
67595         (EOVERFLOW): New fallback definition.
67596         (vsnprintf): Fix bug when generated string was too long for the buffer.
67597         Test here whether the string length is > INT_MAX.
67598
67599 2006-08-28  Bruno Haible  <bruno@clisp.org>
67600
67601         * lib/inttypes_.h (SCNX*): Remove definitions.
67602         Reported by Eric Blake.
67603
67604 2006-08-28  Bruno Haible  <bruno@clisp.org>
67605
67606         * lib/c-strstr.h: New file, from GNU gettext.
67607         * lib/c-strstr.c: New file, from GNU gettext.
67608
67609 2006-08-28  Bruno Haible  <bruno@clisp.org>
67610
67611         * gnulib-tool: Reorder some statements.
67612
67613 2006-08-28  Bruno Haible  <bruno@clisp.org>
67614
67615         * gnulib-tool: New option --makefile-name.
67616         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
67617         $makefile_name.
67618         (func_import): Write $makefile_name to the cache file, and read it from
67619         there unless explicitly specified. Use $makefile_name as file name
67620         instead of Makefile.am. Adjust the recommendations accordingly.
67621
67622 2006-08-28  Bruno Haible  <bruno@clisp.org>
67623
67624         * gnulib-tool (func_verify_module): Check against misapplying patch.
67625
67626 2006-08-28  Bruno Haible  <bruno@clisp.org>
67627
67628         * gnulib-tool (func_relativize, func_relconcat): New functions.
67629         Give an error if --local-dir is given with --update.
67630         Remove trailing slashes from $local_gnulib_dir.
67631         (func_import): Store the relativized $local_gnulib_dir in
67632         gnulib-cache.m4, and read it from there if not specified explicitly.
67633
67634 2006-08-28  Bruno Haible  <bruno@clisp.org>
67635
67636         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
67637         is the current directory. Respect also $local_gnulib_dir.
67638
67639 2006-08-28  Bruno Haible  <bruno@clisp.org>
67640             Simon Josefsson  <jas@extundo.com>
67641
67642         BeOS portability.
67643         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
67644
67645 2006-08-27  Jim Meyering  <jim@meyering.net>
67646
67647         * doc/visibility.texi: Remove duplicate word: "pointer".
67648
67649 2006-08-26  Bruno Haible  <bruno@clisp.org>
67650
67651         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
67652         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
67653         (Makefile.am): Create inttypes.h from inttypes_.h.
67654         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
67655
67656         * modules/imaxabs: New file.
67657
67658         * modules/imaxdiv: New file.
67659
67660 2006-08-26  Bruno Haible  <bruno@clisp.org>
67661
67662         * m4/inttypes.m4: New file.
67663         * m4/_inttypes_h.m4: Remove file.
67664         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
67665         PRI_MACROS_BROKEN.
67666         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
67667
67668         * m4/imaxabs.m4: New file.
67669
67670         * m4/imaxdiv.m4: New file.
67671
67672 2006-08-26  Bruno Haible  <bruno@clisp.org>
67673
67674         * lib/inttypes_.h: New file.
67675         * lib/inttypes.h: Remove file.
67676         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
67677
67678         * lib/imaxabs.c: New file.
67679
67680         * lib/imaxdiv.c: New file.
67681
67682 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
67683
67684         New config-h module, so that "make" output needn't be cluttered
67685         by -DHAVE_CONFIG_H.
67686         * MODULES.html.sh (Support for building libraries and executables):
67687         Add config-h.
67688         * modules/config-h: New file.
67689         * gnulib-tool (nl, sed_transform_lib_file): New vars.
67690         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
67691         the config-h module is used.
67692
67693         New configmake module, so that "make" output needn't be cluttered
67694         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
67695         * MODULES.html.sh (Support for building libraries and executables):
67696         Add configmake.
67697         * modules/configmake: New file.
67698
67699 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
67700
67701         * m4/config-h.m4: New file.
67702
67703 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
67704
67705         * config/srclist.txt: Add elisp-comp.
67706
67707 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
67708
67709         * MODULES.html.sh (Support for building libraries and executables):
67710         Add elisp-comp.
67711         * build-aux/elisp-comp: New file.
67712         * modules/elisp-comp: New file.
67713
67714 2006-08-24  Bruno Haible  <bruno@clisp.org>
67715
67716         * gnulib-tool (func_create_testdir): Use non-default values of
67717         sourcebase and m4base.
67718
67719 2006-08-24  Bruno Haible  <bruno@clisp.org>
67720
67721         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
67722         HTML structure.
67723
67724 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
67725
67726         * modules/openat (Depends-on): Add lchown.
67727
67728 2006-08-23  Bruno Haible  <bruno@clisp.org>
67729
67730         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
67731         of gl_LOCK_EARLY instead of gl_LOCK.
67732
67733 2006-08-23  Bruno Haible  <bruno@clisp.org>
67734
67735         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
67736         on OSF/1 to no.
67737         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
67738
67739 2006-08-23  Bruno Haible  <bruno@clisp.org>
67740
67741         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
67742         as unusable.
67743
67744         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
67745         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
67746         (gl_LOCK): New macro.
67747
67748 2006-08-22  Simon Josefsson  <jas@extundo.com>
67749
67750         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
67751         to md5 module.
67752
67753 2006-08-22  Simon Josefsson  <jas@extundo.com>
67754
67755         * MODULES.html.sh: Add "Support for maintaining and release
67756         projects".
67757
67758         * build-aux/gnupload: New file, from coreutils.
67759
67760 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
67761
67762         Avoid the need for AC_LIBSOURCES in m4 macros.
67763         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
67764         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
67765         * modules/check-version (EXTRA_DIST): Add check-version.h.
67766         * modules/crc (EXTRA_DIST): Add crc.h.
67767         * modules/des (EXTRA_DIST): Add des.h.
67768         * modules/gc (EXTRA_DIST): Add gc.h.
67769         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
67770         * modules/getline (EXTRA_DIST): Add getline.h.
67771         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
67772         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
67773         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
67774         * modules/md2 (EXTRA_DIST): Add md2.h.
67775         * modules/md4 (EXTRA_DIST): Add md4.h.
67776         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
67777         * modules/read-file (EXTRA_DIST): Add read-file.h.
67778         * modules/readline (EXTRA_DIST): Add readline.h.
67779         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
67780         rijndael-api-fst.h.
67781
67782 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
67783
67784         * m4/rijndael.m4 (gl_ARCFOUR):
67785         * m4/arctwo.m4 (gl_ARCTWO):
67786         * m4/check-version.m4 (gl_CHECK_VERSION):
67787         * m4/crc.m4 (gl_CRC):
67788         * m4/des.m4 (gl_DES):
67789         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
67790         * m4/gc.m4 (gl_GC):
67791         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
67792         * m4/getline.m4 (gl_FUNC_GETLINE):
67793         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
67794         * m4/hmac-md5.m4 (gl_HMAC_MD5):
67795         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
67796         * m4/md2.m4 (gl_MD2):
67797         * m4/md4.m4 (gl_MD4):
67798         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
67799         * m4/read-file.m4 (gl_FUNC_READ_FILE):
67800         * m4/readline.m4 (gl_FUNC_READLINE):
67801         * m4/rijndael.m4 (gl_RIJNDAEL):
67802         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
67803         to get the necessary .h files and whatnot.
67804
67805 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
67806
67807         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
67808         gnulib rather than the other way around.
67809         * config/srclistvars.sh (COREUTILS): Remove.
67810
67811 2006-08-22  Jim Meyering  <jim@meyering.net>
67812
67813         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
67814
67815         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
67816
67817 2006-08-22  Eric Blake  <ebb9@byu.net>
67818
67819         * modules/regexprops-generic: New file.
67820         * MODULES.html.sh (Support for building documentation): List it.
67821
67822 2006-08-22  Eric Blake  <ebb9@byu.net>
67823
67824         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
67825         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
67826         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
67827         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
67828
67829 2006-08-22  Bruno Haible  <bruno@clisp.org>
67830
67831         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
67832         and lib_LTLIBRARIES like the other lib_* variables.
67833
67834 2006-08-22  Bruno Haible  <bruno@clisp.org>
67835
67836         * build-aux/x-to-1.in: New file, from GNU gettext.
67837
67838 2006-08-22  Bruno Haible  <bruno@clisp.org>
67839
67840         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
67841         <utmpx.h> exists.
67842
67843 2006-08-22  Bruno Haible  <bruno@clisp.org>
67844
67845         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
67846         <utmpx.h> exists.
67847
67848 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
67849
67850         BeOS portability.
67851         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
67852         exist.
67853         Problem reported by Bruno Haible.
67854
67855 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
67856
67857         Avoid the need for AC_LIBSOURCES in m4 macros.
67858         * modules/acl (EXTRA_DIST): Add acl.h.
67859         * modules/argmatch (Files): Add m4/argmatch.m4.
67860         (configure.ac): Add gl_ARGMATCH.
67861         (EXTRA_DIST): Renamed from lib_SOURCES, for
67862         consistency with the other modules.  Remove argmatch.c.
67863         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
67864         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
67865         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
67866         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
67867         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
67868         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
67869         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
67870         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
67871         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
67872         * modules/closeout (EXTRA_DIST): Add closeout.h.
67873         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
67874         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
67875         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
67876         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
67877         dirname.h; remove basename.c and stripslash.c.
67878         * modules/exclude (EXTRA_DIST): Add exclude.h.
67879         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
67880         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
67881         * modules/file-type (EXTRA_DIST): Add file-type.h.
67882         * modules/filemode (EXTRA_DIST): Add filemode.h.
67883         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
67884         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
67885         * modules/fpending (EXTRA_DIST): Add __fpending.h.
67886         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
67887         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
67888         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
67889         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
67890         * modules/getdate (EXTRA_DIST): Add getdate.c.
67891         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
67892         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
67893         * modules/getpass (EXTRA_DIST): Add getpass.h.
67894         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
67895         * modules/group-member (EXTRA_DIST): Add group-member.h.
67896         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
67897         * modules/hash (EXTRA_DIST): Add hash.h.
67898         * modules/human (EXTRA_DIST): Add human.h.
67899         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
67900         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
67901         * modules/lchown (EXTRA_DIST): Add lchown.h.
67902         * modules/long-options (EXTRA_DIST): Add long-options.h.
67903         * modules/lstat (EXTRA_DIST): Add lstat.h.
67904         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
67905         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
67906         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
67907         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
67908         * modules/memxor (EXTRA_DIST): Add memxor.h.
67909         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
67910         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
67911         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
67912         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
67913         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
67914         * modules/physmem (EXTRA_DIST): Add physmem.h.
67915         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
67916         * modules/posixver (EXTRA_DIST): Add posixver.h.
67917         * modules/quote (EXTRA_DIST): Add quote.h.
67918         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
67919         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
67920         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
67921         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
67922         regex_internal.h regexec.c.
67923         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
67924         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
67925         * modules/same (EXTRA_DIST): Add same.h.
67926         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
67927         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
67928         * modules/savedir (EXTRA_DIST): Add savedir.h.
67929         * modules/sha1 (EXTRA_DIST): Add sha1.h.
67930         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
67931         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
67932         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
67933         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
67934         * modules/strdup (EXTRA_DIST): Add strdup.h.
67935         * modules/strftime (EXTRA_DIST): Add strftime.h.
67936         * modules/strndup (EXTRA_DIST): Add strndup.h.
67937         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
67938         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
67939         * modules/time_r (EXTRA_DIST): Add time_r.h.
67940         * modules/timespec (EXTRA_DIST): Add timespec.h.
67941         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
67942         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
67943         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
67944         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
67945         * modules/userspec (EXTRA_DIST): Add userspec.h.
67946         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
67947         * modules/utimens (EXTRA_DIST): Add utimens.h.
67948         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
67949         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
67950         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
67951         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
67952         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
67953         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
67954         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
67955         * modules/yesno (EXTRA_DIST): Add yesno.h.
67956
67957 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
67958
67959         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
67960
67961         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
67962         * m4/dev-ino.m4, same-inode.m4: Remove.
67963
67964         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
67965         * m4/acl.m4 (AC_FUNC_ACL):
67966         * m4/backupfile.m4 (gl_BACKUPFILE):
67967         * m4/c-strtod.m4 (gl_C99_STRTOLD):
67968         * m4/canon-host.m4 (gl_CANON_HOST):
67969         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
67970         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
67971         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
67972         * m4/cloexec.m4 (gl_CLOEXEC):
67973         * m4/close-stream.m4 (gl_CLOSE_STREAM):
67974         * m4/closeout.m4 (gl_CLOSEOUT):
67975         * m4/dirfd.m4 (gl_FUNC_DIRFD):
67976         * m4/dirname.m4 (gl_DIRNAME):
67977         * m4/exclude.m4 (gl_EXCLUDE):
67978         * m4/exitfail.m4 (gl_EXITFAIL):
67979         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
67980         * m4/file-type.m4 (gl_FILE_TYPE):
67981         * m4/filemode.m4 (gl_FILEMODE):
67982         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
67983         * m4/fpending.m4 (gl_FUNC_FPENDING):
67984         * m4/fprintftime.m4 (gl_FPRINTFTIME):
67985         * m4/fts.m4 (gl_FUNC_FTS):
67986         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
67987         * m4/getdate.m4 (gl_GETDATE):
67988         * m4/gethrxtime.m4 (gl_GETHRXTIME):
67989         * m4/getpagesize.m4 (gl_GETPAGESIZE):
67990         * m4/getpass.m4 (gl_FUNC_GETPASS):
67991         * m4/gettime.m4 (gl_GETTIME):
67992         * m4/getugroups.m4 (gl_GETUGROUPS):
67993         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
67994         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
67995         * m4/hard-locale.m4 (gl_HARD_LOCALE):
67996         * m4/hash.m4 (gl_HASH):
67997         * m4/idcache.m4 (gl_IDCACHE):
67998         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
67999         * m4/lchown.m4 (gl_FUNC_LCHOWN):
68000         * m4/long-options.m4 (gl_LONG_OPTIONS):
68001         * m4/lstat.m4 (gl_FUNC_LSTAT):
68002         * m4/md5.m4 (gl_MD5):
68003         * m4/memcasecmp.m4 (gl_MEMCASECMP):
68004         * m4/memcoll.m4 (gl_MEMCOLL):
68005         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
68006         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
68007         * m4/memxor.m4 (gl_MEMXOR):
68008         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
68009         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
68010         * m4/modechange.m4 (gl_MODECHANGE):
68011         * m4/mountlist.m4 (gl_MOUNTLIST):
68012         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
68013         * m4/openat.m4 (gl_FUNC_OPENAT):
68014         * m4/pathmax.m4 (gl_PATHMAX):
68015         * m4/physmem.m4 (gl_PHYSMEM):
68016         * m4/posixtm.m4 (gl_POSIXTM):
68017         * m4/posixver.m4 (gl_POSIXVER):
68018         * m4/quote.m4 (gl_QUOTE):
68019         * m4/quotearg.m4 (gl_QUOTEARG):
68020         * m4/readtokens.m4 (gl_READTOKENS):
68021         * m4/readutmp.m4 (gl_READUTMP):
68022         * m4/regex.m4 (gl_REGEX):
68023         * m4/safe-read.m4 (gl_SAFE_READ):
68024         * m4/safe-write.m4 (gl_SAFE_WRITE):
68025         * m4/same.m4 (gl_SAME):
68026         * m4/save-cwd.m4 (gl_SAVE_CWD):
68027         * m4/savedir.m4 (gl_SAVEDIR):
68028         * m4/settime.m4 (gl_SETTIME):
68029         * m4/sha1.m4 (gl_SHA1):
68030         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
68031         * m4/stat-macros.m4 (gl_STAT_MACROS):
68032         * m4/stat-time.m4 (gl_STAT_TIME):
68033         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
68034         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
68035         * m4/strdup.m4 (gl_FUNC_STRDUP):
68036         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
68037         * m4/strndup.m4 (gl_FUNC_STRNDUP):
68038         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
68039         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
68040         * m4/time_r.m4 (gl_TIME_R):
68041         * m4/timespec.m4 (gl_TIMESPEC):
68042         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
68043         * m4/unlinkdir.m4 (gl_UNLINKDIR):
68044         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
68045         * m4/userspec.m4 (gl_USERSPEC):
68046         * m4/utimecmp.m4 (gl_UTIMECMP):
68047         * m4/utimens.m4 (gl_UTIMENS):
68048         * m4/xalloc.m4 (gl_XALLOC):
68049         * m4/xgetcwd.m4 (gl_XGETCWD):
68050         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
68051         * m4/xreadlink.m4 (gl_XREADLINK):
68052         * m4/xstrtod.m4 (gl_XSTRTOD):
68053         * m4/yesno.m4 (gl_YESNO):
68054         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
68055         to get the necessary .h files and whatnot.
68056
68057 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
68058             Bruno Haible  <bruno@clisp.org>
68059
68060         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
68061         /bin/sh understanding of '!' conditional negation.
68062
68063 2006-08-21  Jim Meyering  <jim@meyering.net>
68064
68065         * modules/openat (Depends-on): Really alphabetize.
68066
68067         * modules/acl (Depends-on): Add error and quote.
68068
68069         * check-module (find_included_lib_files): Add at-func.c to the
68070         ok-to-include-more-than-once white list.
68071
68072         * modules/openat (Depends-on): Add lstat.  Alphabetize.
68073
68074 2006-08-21  Bruno Haible  <bruno@clisp.org>
68075
68076         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68077         Emit a pkgdata_DATA variable only if some snippets add contents to it.
68078         Reported by Martin Lambers <marlam@marlam.de>.
68079
68080 2006-08-21  Bruno Haible  <bruno@clisp.org>
68081
68082         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
68083         specify an installation location, don't emit a noinst_LIBRARIES or
68084         noinst_LTLIBRARIES assignment.
68085
68086 2006-08-21  Bruno Haible  <bruno@clisp.org>
68087
68088         BeOS portability.
68089         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
68090         BeOS has mbrtowc() but no <wctype.h>.
68091
68092 2006-08-21  Bruno Haible  <bruno@clisp.org>
68093
68094         BeOS portability.
68095         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
68096         exist.
68097
68098 2006-08-21  Bruno Haible  <bruno@clisp.org>
68099
68100         BeOS portability.
68101         * lib/mbchar.h: Include <wctype.h> only if it exists.
68102
68103 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
68104
68105         Remove files that are no longer needed by their respective modules.
68106         * m4/obstack.m4: Remove.
68107         * m4/strerror_r.m4: Remove.
68108         * m4/uint32_t.m4: Remove.
68109         * m4/uintptr_t.m4: Remove.
68110         * m4/ullong_max.m4: Remove.
68111         * m4/xstrtoimax.m4: Remove.
68112         * m4/xstrtoumax.m4: Remove.
68113
68114         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
68115         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
68116         dependencies now capture this.
68117
68118         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
68119         Do not use AC_LIBSOURCES, since gnulib modules now do this.
68120         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
68121         * m4/human.m4 (gl_HUMAN): Likewise.
68122         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
68123         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
68124
68125         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
68126
68127         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
68128         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
68129         stdint.
68130         * m4/human.m4 (gl_HUMAN): Likewise.
68131         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
68132         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
68133         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
68134         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
68135         * m4/xstrtol (gl_XSTRTOL): Likewise.
68136
68137         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
68138         AC_TYPE_LONG_LONG_INT.
68139         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
68140         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
68141         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
68142         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
68143
68144         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
68145         on stdbool.
68146
68147         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
68148         (gl_PREREQ_XSTRTOUL): Remove.
68149
68150         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
68151
68152         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
68153         mode.
68154
68155 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
68156
68157         Add and change modules to make it easier for coreutils to use
68158         gnulib-tool.
68159         * modules/backupfile (Files): Remove m4/d-ino.m4.
68160         (Depends-on): Add d-ino.
68161         * modules/cycle-check (Depends-on): Add stdint.
68162         (lib_SOURCES): Add cycle-check.h.
68163         * modules/d-ino: New module.
68164         * modules/d-type: New module.
68165         * modules/error (Files): Remove m4/strerror_r.m4.
68166         * modules/filemode (Files): Add m4/st_dm_mode.m4.
68167         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
68168         m4/inttypes_h.m4, m4/uintmax_t.m4.
68169         (Depends-on): Add stdint.
68170         (lib_SOURCES): Add fsusage.h.
68171         * modules/getcwd (Files): Remove d-ino.m4.
68172         (Depends-on): Add d-ino.
68173         * modules/getndelim2 (Depends-on): Add stdint.
68174         * modules/glob (Files): Remove m4/d-type.m4.
68175         (Depends-on): Add d-type.
68176         * modules/host-os: New module.
68177         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
68178         m4/inttypes_h.m4, m4/uintmax_t.m4.
68179         * Depends-on: Add stdint.
68180         (lib_SOURCES): Add human.h.
68181         * modules/inttostr (Files): Remove m4/intmax_t.m4,
68182         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
68183         m4/uintmax_t.m4, m4/ulonglong.m4.
68184         (Depends-on): Add stdint.
68185         (EXTRA_DIST): Add inttostr.h.
68186         * modules/lchmod: New module.
68187         * modules/link-follow: New module.
68188         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
68189         (Depends-on): Add lchmod.
68190         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
68191         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
68192         (Depends-on): Add stdint.
68193         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
68194         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
68195         (Depends-on): Add stdint.
68196         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
68197         * modules/perl: New module.
68198         * modules/regex (Depends-on): Add stdint.
68199         * modules/rmdir-errno: New module.
68200         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
68201         m4/intmax_t.m4.
68202         (Depends-on): Add stdint.
68203         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
68204         m4/uintmax_t.m4.
68205         (Depends-on): Add stdint.
68206         * modules/unlink-busy: New module.
68207         * modules/utimecmp (Depends-on): Add stdint.
68208         * modules/uptime: New module.
68209         * modules/winsz-ioctl: New module.
68210         * modules/winsz-termios: New module.
68211         * modules/xnanosleep (Depends-on): Add nanosleep.
68212         * modules/ullong_max: Remove.
68213         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
68214         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
68215         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
68216         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
68217         (Depends-on): Add inttypes.
68218         (lib_SOURCES): Add xstrtol.h.
68219         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
68220         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
68221         * MODULES.html.sh: Move 'assert' into the assert section.
68222         Move 'dummy' into the linking section.
68223         Remove ullong_max.
68224         Add section for compatibility checks for POSIX:2001 functions,
68225         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
68226         winsz-ioctl, and winsz-termios into it.
68227         Add lchmod.
68228         Add top-level Misc section and put host-os, perl, and uptime
68229         into it.
68230
68231 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
68232
68233         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
68234         now assume the stdint module.  Do not include inttypes.h.
68235         * lib/fsusage.h: Likewise.
68236         * lib/getndelim2.c: Likewise.
68237         * lib/human.h: Likewise.
68238         * lib/inttostr.h: Likewise.
68239         * lib/obstack.c: Likewise.
68240         * lib/regex_internal.h: Likewise.
68241         * lib/tempname.c: Likewise.
68242         * lib/utimecmp.c: Likewise.
68243         * lib/xstrtol.h: Likewise.
68244
68245         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
68246
68247         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
68248         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
68249         * lib/xtime.h: Likewise.
68250
68251 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68252
68253         * modules/openat (Files): Add lib/fchmodat.c.
68254         Fixes problem reported by Jay Youngman.
68255
68256 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68257
68258         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
68259         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
68260
68261 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
68262             Bruno Haible  <bruno@clisp.org>
68263
68264         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
68265         and is a script that invokes bison. Tighten the code. Add comments.
68266
68267 2006-08-18  Jim Meyering  <jim@meyering.net>
68268
68269         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
68270         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
68271         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
68272         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
68273
68274 2006-08-18  Bruno Haible  <bruno@clisp.org>
68275
68276         * modules/bison-i18n: New file.
68277         * MODULES.html.sh (Internationalization functions): Add it.
68278
68279 2006-08-18  Bruno Haible  <bruno@clisp.org>
68280
68281         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
68282         sys/statvfs.h. When getmntinfo was found, check its declaration and
68283         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
68284
68285 2006-08-18  Bruno Haible  <bruno@clisp.org>
68286
68287         * m4/bison-i18n.m4: New file, from bison.
68288
68289 2006-08-18  Bruno Haible  <bruno@clisp.org>
68290
68291         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
68292         (ME_DUMMY): Treat "kernfs" as a dummy.
68293         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
68294
68295 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
68296
68297         Update from coreutils.
68298
68299         2006-08-15  Jim Meyering  <jim@meyering.net>
68300
68301         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
68302
68303         2006-01-17  Jim Meyering  <jim@meyering.net>
68304
68305         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
68306
68307         2006-01-11  Jim Meyering  <jim@meyering.net>
68308
68309         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
68310         Check for the lchmod function.
68311
68312 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
68313
68314         Update from coreutils.
68315
68316         * lib/__fpending.h: Add copyright notice.
68317         * lib/fprintftime.h: Likewise.
68318         * lib/savedir.c: Use (C) in copyright notice.
68319         * lib/savedir.h: Likewise.
68320
68321         2006-08-15  Jim Meyering  <jim@meyering.net>
68322
68323         * lib/at-func.c: New file, with the logic of all emulated at-functions.
68324         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
68325         in support of the EXPECTED_ERRNO macro.
68326         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
68327         definitions.  Instead, define the appropriate symbols and include
68328         "at-func.c".
68329         * lib/mkdirat.c (mkdirat): Likewise.
68330         * lib/fchmodat.c (fchmodat): Likewise.
68331         (ENOSYS): Remove definition.
68332         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
68333         it.  Don't include "unistd--.h" -- it wasn't ever used.
68334
68335         2006-01-17  Jim Meyering  <jim@meyering.net>
68336
68337         Rewrite fts.c not to change the current working directory,
68338         by using openat, fstatat, fdopendir, etc..
68339
68340         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
68341         (HAVE_OPENAT_SUPPORT): Define.
68342         [_LIBC] (fchdir): Don't undef or define; no longer used.
68343         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
68344         Now, this `function' always succeeds, and consumes its file descriptor
68345         parameter -- so callers must not close such FDs.  Update callers.
68346         (diropen_fd, opendirat, cwd_advance_fd): New functions.
68347         (diropen): Add parameter, SP.  Adjust all callers.
68348         Implement using diropen_fd, rather than open.
68349         (fts_open): Initialize new member, fts_cwd_fd.
68350         Remove fts_rft-setting code.
68351         (fts_close): Close fts_cwd_fd, if necessary.
68352         (__opendir2): Define in terms of opendir or opendirat,
68353         depending on whether the FST_NOCHDIR flag is set.
68354         (fts_build): Since fts_safe_changedir consumes its FD, and since
68355         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
68356         and close the dup'd file descriptor upon failure.
68357         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
68358         (fts_safe_changedir): Tweak semantics to reflect that this function
68359         now calls cwd_advance_fd and hence consumes its FD argument.
68360         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
68361         [struct FTS] (fts_rft): Remove now-unused member.
68362         [struct FTS] (fts_cycle.state): Improve comment.
68363
68364         * lib/openat.c (openat_needs_fchdir): New function.
68365         * lib/openat.h (openat_needs_fchdir): Declare it.
68366
68367 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
68368
68369         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
68370         Problem and fix reported by Pádraig Brady in
68371         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
68372
68373 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68374
68375         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
68376
68377 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68378
68379         * lib/memcoll.c (memcoll): Optimize for the common case where the
68380         arguments are bytewise equal.
68381
68382 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68383
68384         * doc/regexprops-generic.texi: Add a copyright notice.
68385
68386 2006-08-15  Bruno Haible  <bruno@clisp.org>
68387
68388         * modules/tmpdir (License): Change to LGPL.
68389
68390 2006-08-15  Bruno Haible  <bruno@clisp.org>
68391
68392         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
68393         module.
68394
68395 2006-08-14  Simon Josefsson  <jas@extundo.com>
68396
68397         * config/srclist.txt: Add gnupload.
68398
68399 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
68400
68401         Change copyright notice from LGPL 2 to GPL 2, since that's the
68402         standard form used in the gnulib repository.
68403         * tests/test-lock.c: Likewise.
68404         * tests/test-stdint.c: Likewise.
68405         * tests/test-tls.c: Likewise.
68406
68407         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
68408         prelude-manager.  User shorter URLs for GNU projects, without '?'.
68409         Add copyright notice.
68410
68411         * check-module: Add copyright notice.  Output a copyright
68412         notice if "--version" is specified.
68413         * modules/COPYING: New file.
68414         * tests/test-getaddrinfo.c: Add copyright notice.
68415         * tests/test-verify.c: Likewise.
68416
68417 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
68418
68419         Change copyright notice from LGPL 2 to GPL 2, since that's the
68420         standard form used in the gnulib repository.
68421         * lib/lock.c: LGPL -> GPL.
68422         * lib/lock.h: Likewise.
68423         * lib/strnlen1.c: Likewise.
68424         * lib/strnlen1.h: Likewise.
68425         * lib/tls.c: Likewise.
68426         * lib/tls.h: Likewise.
68427         * lib/tmpdir.c: Likewise.
68428
68429         * lib/TODO: Remove; this belongs only in coreutils.
68430
68431 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
68432
68433         Add copyright notices to long-enough files that lack them, since
68434         otherwise the files aren't clearly free.  Use the same notice that
68435         getdate.texi already uses.
68436         * doc/alloca-opt.texi: Add copyright notice.
68437         * doc/alloca.texi: Likewise.
68438         * doc/ctime.texi: Likewise.
68439         * doc/functions.texi: Likewise.
68440         * doc/gcd.texi: Likewise.
68441         * doc/gnulib-tool.texi: Likewise.
68442         * doc/inet_ntoa.texi: Likewise.
68443         * doc/visibility.texi: Likewise.
68444
68445         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
68446         * doc/quote.texi: Add copyright notice.
68447
68448         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
68449         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
68450         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
68451         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
68452         is now obsolete, and give a pointer to the Sun list.
68453         Add copyright notice.
68454
68455 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
68456
68457         * config/srclistvars.sh: Add copyright notice.
68458
68459 2006-08-14  Eric Blake  <ebb9@byu.net>
68460
68461         Import the following change from libc:
68462
68463         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
68464
68465         Upstream bug 2997.
68466         * lib/misc/error.c: Add space between program name and message if file
68467         name is missing.
68468
68469 2006-08-12  Karl Berry  <karl@gnu.org>
68470
68471         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
68472         remove, these originate in gnulib now.
68473
68474 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68475
68476         * doc/Makefile (standards.info standards.html standards.dvi):
68477         Also depend on make-stds.texi.
68478
68479 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
68480
68481         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
68482         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
68483
68484         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
68485         in wchar_t.  Problem reported by Eric Blake.
68486
68487         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
68488         LEN is smaller than SIZE.  Suggested by Bruno Haible.
68489         Also, help the compiler to keep LEN in a register.
68490
68491 2006-08-11  Eric Blake  <ebb9@byu.net>
68492
68493         * users.txt: Sort.  Add tar.
68494
68495 2006-08-11  Bruno Haible  <bruno@clisp.org>
68496
68497         * users.txt: New file.
68498
68499 2006-08-11  Bruno Haible  <bruno@clisp.org>
68500
68501         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
68502         before <wchar.h>. Needed for OSF/1 and BSD/OS.
68503
68504 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
68505
68506         * modules/snprintf (Depends-on): Remove minmax.
68507         (Maintainer): Add self and Bruno.
68508
68509 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
68510
68511         * lib/.cppi-disable: Add snprintf.h, socket_.h.
68512         * lib/snprintf.c: Include <errno.h> and <limits.h>.
68513         (EOVERFLOW): Define if the system does not.
68514         Do not include "minmax.h"; it wasn't used.
68515         (snprintf): Don't assume size_t promotes to an unsigned type.
68516         Fix bug when generated string was too long for the buffer: the
68517         buffer's contents are supposed to be the initial prefix of the
68518         output.  Don't assume vasnprintf returns EOVERFLOW if the size
68519         exceeds INT_MAX; do the check ourselves.
68520
68521         Import the following changes from libc:
68522
68523         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
68524
68525         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
68526         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
68527         set wc to the byte which couldn't be converted.
68528         (re_string_reconstruct): Don't clear valid_raw_len before calling
68529         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
68530         tip_context using re_string_context_at.
68531
68532         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
68533
68534         * lib/posix/regex.h: g++ still cannot handled [restrict].
68535
68536         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
68537
68538         * lib/posix/regex.h: Remove special handling for VMS.
68539
68540 2006-08-10  Jim Meyering  <jim@meyering.net>
68541
68542         * modules/same-inode: New module.
68543         * modules/dev-ino: New module.
68544         * modules/cycle-check: Depend on these modules, rather than simply
68545         including their .h files.
68546         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
68547         required via m4/cycle-check.m4.
68548         * modules/same: Depend on new same-inode module, rather than
68549         including same-inode.h.
68550         * modules/chdir-safer: New file.
68551
68552         * modules/chown (Depends-on): Add stat-macros.
68553
68554 2006-08-10  Jim Meyering  <jim@meyering.net>
68555
68556         * m4/cycle-check.m4: New file.
68557         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
68558         * m4/dev-ino.m4, m4/same-inode.m4: New files.
68559
68560 2006-08-10  Eric Blake  <ebb9@byu.net>
68561
68562         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
68563         in from original proposal.
68564
68565 2006-08-10  Eric Blake  <ebb9@byu.net>
68566         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
68567
68568         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
68569         namespace.
68570
68571 2006-08-10  Bruno Haible  <bruno@clisp.org>
68572
68573         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
68574         as well.
68575
68576 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
68577
68578         Sync from coreutils.
68579
68580         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
68581
68582         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
68583         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
68584
68585 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
68586
68587         * modules/restrict: Remove; no longer needed now that we assume
68588         Autoconf 2.59 or later.
68589         * MODULES.html.sh: Remove 'restrict'.
68590         * modules/argp (Depends-on): Remove 'restrict'.
68591         * modules/base64 (Depends-on): Likewise.
68592         * modules/gc (Depends-on): Likewise.
68593         * modules/getaddrinfo (Depends-on): Likewise.
68594         * modules/glob (Depends-on): Likewise.
68595         * modules/inet_ntop (Depends-on): Likewise.
68596         * modules/inet_pton (Depends-on): Likewise.
68597         * modules/memxor (Depends-on): Likewise.
68598         * modules/regex (Depends-on): Likewise.
68599         * modules/strtok_r (Depends-on): Likewise.
68600         * modules/time_r (Depends-on): Likewise.
68601
68602 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
68603
68604         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
68605         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
68606         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
68607         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
68608         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
68609         * m4/memxor.m4 (gl_MEMXOR): Likewise.
68610         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
68611         gl_C_RESTRICT replaced by AC_C_RESTRICT.
68612
68613         Merge from coreutils.
68614         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
68615         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
68616         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
68617         * m4/time_r.m4 (gl_TIME_R): Likewise.
68618
68619 2006-08-09  Karl Berry  <karl@gnu.org>
68620
68621         * config/srclist.txt: no more gettext-tools, per Bruno.
68622
68623 2006-08-08  Eric Blake  <ebb9@byu.net>
68624
68625         * modules/verror: New module.
68626         * MODULES.html.sh: Document it.
68627
68628 2006-08-08  Eric Blake  <ebb9@byu.net>
68629
68630         * lib/verror.h, lib/verror.c: New files.
68631
68632 2006-08-08  Eric Blake  <ebb9@byu.net>
68633
68634         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
68635         verror_at_line output complies with GNU Coding Standards even when
68636         file is NULL.
68637
68638 2006-08-07  Bruno Haible  <bruno@clisp.org>
68639
68640         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
68641         versions of AIX.
68642         Reported by Ralf Wildenhues.
68643
68644 2006-08-07  Bruno Haible  <bruno@clisp.org>
68645
68646         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
68647         in an AC_DEFUN. Needed so that the autoconf snippets can use
68648         AC_REQUIRE.
68649
68650 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68651
68652         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68653         Initialize pkgdata_DATA.
68654         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
68655         overriding it.
68656
68657 2006-08-06  Eric Blake  <ebb9@byu.net>
68658
68659         * lib/error.h: Fold in some upstream changes from glibc.
68660         * lib/error.c: Likewise.
68661
68662 2006-08-04  Bruno Haible  <bruno@clisp.org>
68663
68664         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68665         Make the mostlyclean-local rule depend on mostlyclean-generic.
68666         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
68667
68668 2006-07-31  Bruno Haible  <bruno@clisp.org>
68669
68670         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
68671         <stdlib.h>, <string.h>.
68672
68673 2006-07-30  Bruno Haible  <bruno@clisp.org>
68674
68675         * modules/readlink (License): Change to LGPL.
68676
68677 2006-07-30  Bruno Haible  <bruno@clisp.org>
68678
68679         * modules/javaversion (Makefile.am): Distribute javaversion.java and
68680         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
68681         set PKGDATADIR to point to it.
68682
68683 2006-07-30  Bruno Haible  <bruno@clisp.org>
68684
68685         * modules/csharpexec (configure.ac): Comment out macro invocation.
68686         * modules/javaexec (configure.ac): Likewise.
68687         * modules/javacomp-script (configure.ac): Likewise.
68688
68689         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
68690
68691 2006-07-30  Bruno Haible  <bruno@clisp.org>
68692
68693         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
68694         linked-list.
68695
68696 2006-07-30  Bruno Haible  <bruno@clisp.org>
68697
68698         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
68699
68700 2006-07-30  Bruno Haible  <bruno@clisp.org>
68701
68702         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68703         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
68704         get removed.
68705
68706 2006-07-29  Bruno Haible  <bruno@clisp.org>
68707
68708         Make it possible for gnulib-tool to work with locally modified or
68709         augmented gnulib repositories.
68710         * gnulib-tool (func_usage): Document --local-dir option.
68711         (local_gnulib_dir): New variable.
68712         Handle --local-dir option.
68713         (func_lookup_file): New function.
68714         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
68715         (func_get_description, func_get_filelist, func_get_description,
68716         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
68717         func_get_automake_snippet, func_get_include_directive,
68718         func_get_license, func_get_maintainer): Use func_lookup_file.
68719         (func_import, func_create_testdir): Use func_lookup_file.
68720
68721 2006-07-29  Bruno Haible  <bruno@clisp.org>
68722
68723         * modules/setenv (Depends-on): Add unistd.
68724
68725 2006-07-29  Bruno Haible  <bruno@clisp.org>
68726
68727         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
68728
68729 2006-07-29  Bruno Haible  <bruno@clisp.org>
68730
68731         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
68732
68733 2006-07-29  Bruno Haible  <bruno@clisp.org>
68734
68735         * gnulib-tool (import, update): If there is no Makefile.am, look at
68736         aclocal.m4, instead of bailing out.
68737
68738 2006-07-29  Bruno Haible  <bruno@clisp.org>
68739
68740         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
68741         Categorize the options by when they are useful.
68742
68743 2006-07-29  Bruno Haible  <bruno@clisp.org>
68744
68745         * gnulib-tool (func_usage): Document option --no-libtool.
68746         Handle option --no-libtool.
68747         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
68748         for changed semantics of $libtool variable.
68749         (func_import): Likewise. If libtool is not used, show this through
68750         an option --no-libtool.
68751         (func_create_testdir): Update.
68752
68753 2006-07-29  Bruno Haible  <bruno@clisp.org>
68754
68755         * gnulib-tool (func_import): Extend error message about missing
68756         --doc-base.
68757
68758 2006-07-29  Bruno Haible  <bruno@clisp.org>
68759
68760         * gnulib-tool (func_import): Don't create the $docbase directory if
68761         there is no file to store there.
68762
68763 2006-07-29  Bruno Haible  <bruno@clisp.org>
68764
68765         * gnulib-tool (autoconf_minversion): If a --dir option is given and
68766         relevant, look for configure.ac there, not in the current directory.
68767         Also use a simple search for AC_PREREQ, not "autoconf --trace".
68768
68769 2006-07-29  Bruno Haible  <bruno@clisp.org>
68770
68771         * gnulib-tool (SORT): New variable.
68772         (func_usage): Undocument --assume-autoconf option.
68773         Remove --assume-autoconf option handling.
68774         (autoconf_minversion): Determine from the contents of configure.ac.
68775         (func_import): Remove autoconf_minversion handling.
68776         Suggested by Eric Blake.
68777
68778 2006-07-29  Bruno Haible  <bruno@clisp.org>
68779
68780         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
68781
68782 2006-07-29  Bruno Haible  <bruno@clisp.org>
68783
68784         * config/srclist.txt (*setenv.[ch]): Remove rules.
68785
68786 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68787
68788         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
68789
68790 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68791
68792         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
68793         arpa/inet.h.
68794
68795 2006-07-28  Simon Josefsson  <jas@extundo.com>
68796
68797         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
68798         * modules/inet_pton (Depends-on): Likewise.
68799
68800 2006-07-28  Simon Josefsson  <jas@extundo.com>
68801
68802         * m4/netinet_in_h.m4: New file.
68803
68804 2006-07-28  Simon Josefsson  <jas@extundo.com>
68805
68806         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
68807         #include's.
68808
68809 2006-07-28  Simon Josefsson  <jas@extundo.com>
68810
68811         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
68812         #include's.
68813
68814 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
68815
68816         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
68817         setgid on directories only if they set these bits.
68818         * lib/modechange.h: Remove obsolete comment about masks.
68819
68820 2006-07-28  Eric Blake  <ebb9@byu.net>
68821
68822         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
68823         macro expansion.
68824
68825 2006-07-28  Bruno Haible  <bruno@clisp.org>
68826
68827         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
68828
68829 2006-07-28  Bruno Haible  <bruno@clisp.org>
68830
68831         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
68832
68833 2006-07-28  Bruno Haible  <bruno@clisp.org>
68834
68835         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
68836         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
68837         Define fallbacks.
68838         Avoids link error on FreeBSD 4.x.
68839         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
68840
68841         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
68842         encoding.
68843         * lib/mbswidth.c (iswcntrl): Likewise.
68844
68845 2006-07-27  Bruno Haible  <bruno@clisp.org>
68846
68847         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
68848         test.
68849
68850 2006-07-27  Bruno Haible  <bruno@clisp.org>
68851
68852         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
68853         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
68854         defined.
68855
68856 2006-07-26  Eric Blake  <ebb9@byu.net>
68857
68858         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
68859
68860 2006-07-26  Eric Blake  <ebb9@byu.net>
68861
68862         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
68863         like mingw that lack mkstemp.
68864         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
68865         avoid compilation warning on mingw.
68866
68867 2006-07-26  Bruno Haible  <bruno@clisp.org>
68868
68869         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
68870         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
68871         INT_FAST*_MIN, INTPTR_MIN.
68872
68873 2006-07-25  Bruno Haible  <bruno@clisp.org>
68874
68875         * modules/version-etc (Depends-on): Add stdarg.
68876
68877 2006-07-25  Bruno Haible  <bruno@clisp.org>
68878
68879         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
68880         complex commands.
68881
68882 2006-07-25  Bruno Haible  <bruno@clisp.org>
68883
68884         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
68885         defined in <stdarg.h> or config.h.
68886
68887 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
68888
68889         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
68890         (gl_STDIO_SAFER): Remove.
68891
68892 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
68893
68894         * MODULES.html.sh (File stream based Input/Output):
68895         Add fopen-safer, tmpfile-safer; remove stdio-safer.
68896         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
68897         * modules/fopen-safer, modules/tmpfile-safer: New files.
68898         * modules/stdio-safer: Remove.
68899
68900 2006-07-24  Bruno Haible  <bruno@clisp.org>
68901
68902         * modules/tmpdir: New file.
68903         * MODULES.html.sh (File system functions): Add it.
68904
68905 2006-07-24  Bruno Haible  <bruno@clisp.org>
68906
68907         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
68908         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
68909
68910 2006-07-24  Bruno Haible  <bruno@clisp.org>
68911
68912         * modules/clean-temp: New file.
68913
68914 2006-07-24  Bruno Haible  <bruno@clisp.org>
68915
68916         * m4/tmpdir.m4: New file, from GNU gettext.
68917
68918 2006-07-24  Bruno Haible  <bruno@clisp.org>
68919
68920         * lib/tmpdir.h: New file, from GNU gettext.
68921         * lib/tmpdir.c: New file, from GNU gettext.
68922
68923 2006-07-24  Bruno Haible  <bruno@clisp.org>
68924
68925         * lib/clean-temp.h: New file, from GNU gettext.
68926         * lib/clean-temp.c: New file, from GNU gettext.
68927
68928 2006-07-23  Eric Blake  <ebb9@byu.net>
68929
68930         * modules/stdio-safer (Files): Add tmpfile-safer.c.
68931         (Depends-on): Add binary-io.
68932
68933 2006-07-23  Eric Blake  <ebb9@byu.net>
68934
68935         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
68936
68937 2006-07-23  Eric Blake  <ebb9@byu.net>
68938
68939         * lib/tmpfile-safer.c: New file.
68940         * lib/stdio-safer.h (fopen_safer): Add prototype.
68941         * lib/stdio--.h (tmpfile): Make safer.
68942
68943 2006-07-23  Bruno Haible  <bruno@clisp.org>
68944
68945         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
68946         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
68947         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
68948         gl_linked_remove_at): Use it.
68949
68950 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68951         and Simon Josefsson <jas@extundo.com>
68952
68953         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
68954
68955         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
68956
68957 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
68958
68959         * modules/close-stream: New file.
68960         * modules/closeout (Description): Make it clear that it exits
68961         with a diagnostic on error.
68962         (Depends-on): Add close-stream.  Remove fpending, stdbool.
68963         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
68964
68965 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
68966
68967         * m4/close-stream.m4: New file.
68968
68969 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
68970
68971         * lib/close-stream.c, lib/close-stream.h: New files.
68972
68973 2006-07-22  Bruno Haible  <bruno@clisp.org>
68974
68975         Merge from GNU gettext 0.15.
68976
68977         2006-05-01  Bruno Haible  <bruno@clisp.org>
68978
68979                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
68980
68981         2006-07-22  Bruno Haible  <bruno@clisp.org>
68982
68983                 * modules/javaversion: New file.
68984                 * MODULES.html.sh (Java): Add javaversion.
68985
68986         2006-03-12  Bruno Haible  <bruno@clisp.org>
68987
68988                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
68989
68990         2005-12-04  Bruno Haible  <bruno@clisp.org>
68991
68992                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
68993                 (untested).
68994
68995         2006-06-21  Bruno Haible  <bruno@clisp.org>
68996
68997                 Avoid warnings from recent versions of mcs.
68998                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
68999                 -o, -L, -r any more. Use options documented since mcs-1.0
69000                 instead. Similarly for -g.
69001
69002         2005-12-04  Bruno Haible  <bruno@clisp.org>
69003
69004                 * build-aux/csharpcomp.sh.in: Suffix for resources is
69005                 .resources, not .resource.
69006
69007         2005-07-09  Bruno Haible  <bruno@clisp.org>
69008
69009                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
69010                 add a .dll suffix.
69011                 Reported by Mark Junker <mjscod@gmx.de>.
69012
69013         2006-07-22  Bruno Haible  <bruno@clisp.org>
69014
69015                 * modules/gettext: Upgrade to gettext-0.15.
69016                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
69017                 m4/visibility.m4.
69018                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
69019
69020 2006-07-22  Bruno Haible  <bruno@clisp.org>
69021
69022         Merge from GNU gettext 0.15.
69023
69024         2006-03-25  Bruno Haible  <bruno@clisp.org>
69025
69026                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
69027
69028         2006-07-21  Bruno Haible  <bruno@clisp.org>
69029
69030                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
69031                 "1.1".
69032
69033         2006-05-09  Bruno Haible  <bruno@clisp.org>
69034
69035                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
69036                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
69037                 for the conftestver execution.
69038
69039         2006-05-01  Bruno Haible  <bruno@clisp.org>
69040
69041                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
69042                 optional target-version argument. Verify that the compiler
69043                 groks source of the specified source-version, or add -source
69044                 option as necessary. Verify that the compiler produces
69045                 bytecode in the specified target-version, or add -target and
69046                 -source options as necessary. Make the result of the test
69047                 available as variable CONF_JAVAC. Also log error output in
69048                 config.log.
69049
69050         2006-03-11  Bruno Haible  <bruno@clisp.org>
69051
69052                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
69053
69054         2006-05-09  Bruno Haible  <bruno@clisp.org>
69055
69056                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
69057                 CLASSPATH_SEPARATOR to a semicolon.
69058
69059         2006-03-12  Bruno Haible  <bruno@clisp.org>
69060
69061                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
69062                 available as variable CONF_JAVA, for subsequent autoconf
69063                 tests. Also log error output in config.log.
69064
69065         2006-07-19  Bruno Haible  <bruno@clisp.org>
69066
69067                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
69068                 that getline works on glibc2 systems. Needed to avoid trouble
69069                 in relocatable.c.
69070                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
69071
69072         2005-12-04  Bruno Haible  <bruno@clisp.org>
69073
69074                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
69075                 launcher (untested).
69076
69077         2005-12-04  Bruno Haible  <bruno@clisp.org>
69078
69079                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
69080
69081         2006-07-22  Bruno Haible  <bruno@clisp.org>
69082
69083                 * gettext.m4: Update from GNU gettext-0.15.
69084                 * nls.m4: Likewise.
69085                 * po.m4: Likewise.
69086                 * inttypes-pri.m4: Likewise.
69087                 * inttypes-h.m4: Renamed from inttypes.m4.
69088                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
69089
69090 2006-07-22  Bruno Haible  <bruno@clisp.org>
69091
69092         Merge from GNU gettext 0.15.
69093
69094         2005-07-05  Bruno Haible  <bruno@clisp.org>
69095
69096                 * printf-args.c (printf_fetchargs): Work around broken
69097                 definition of wint_t on mingw.
69098
69099         2005-02-12  Bruno Haible  <bruno@clisp.org>
69100
69101                 * xallocsa.h: Add extern "C" for C++.
69102
69103         2006-05-17  Bruno Haible  <bruno@clisp.org>
69104
69105                 Cygwin portability.
69106                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
69107
69108         2006-04-30  Bruno Haible  <bruno@clisp.org>
69109
69110                 * progreloc.c: Include <mach-o/dyld.h> if available.
69111                 (find_executable): Use _NSGetExecutablePath when possible.
69112
69113         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
69114
69115                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
69116                 function.
69117
69118         2005-12-29  Bruno Haible  <bruno@clisp.org>
69119
69120                 * progreloc.c (set_program_name_and_installdir): Fix
69121                 compilation error.
69122
69123         2005-12-04  Bruno Haible  <bruno@clisp.org>
69124
69125                 Cygwin portability.
69126                 * progreloc.c: Include <windows.h> also on Cygwin.
69127                 (find_executable): Add support for Cygwin.
69128                 (set_program_name_and_installdir): Handle also platforms with
69129                 nonempty EXEEXT.
69130
69131         2006-07-11  Bruno Haible  <bruno@clisp.org>
69132
69133                 * javacomp.c: Fix a comment.
69134                 Reported by Jim Meyering.
69135
69136         2006-04-30  Bruno Haible  <bruno@clisp.org>
69137
69138                 * javacomp.h (compile_java_class): Add source_version,
69139                 target_version arguments.
69140                 * javacomp.c: Rewritten to choose only a compiler that
69141                 respects the specified source_version and target_version.
69142
69143         2006-06-27  Bruno Haible  <bruno@clisp.org>
69144
69145                 Assume correct S_ISDIR macro.
69146                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
69147
69148         2006-07-22  Bruno Haible  <bruno@clisp.org>
69149
69150                 * javaversion.h: New file, from GNU gettext.
69151                 * javaversion.c: New file, from GNU gettext.
69152                 * javaversion.java: New file, from GNU gettext.
69153                 * javaversion.class: New file, from GNU gettext.
69154
69155         2006-05-17  Bruno Haible  <bruno@clisp.org>
69156
69157                 Cygwin portability.
69158                 * javaexec.c (execute_java_class): Test for jview program
69159                 also on Cygwin.
69160
69161         2006-04-09  Bruno Haible  <bruno@clisp.org>
69162
69163                 * fatal-signal.c: Don't include string.h.
69164                 (at_fatal_signal): Use a copying loop instead of memcpy.
69165
69166         2005-12-04  Bruno Haible  <bruno@clisp.org>
69167
69168                 * csharpexec.c: Add support for 'clix' launcher (untested).
69169                 (execute_csharp_using_sscli): New function.
69170                 (execute_csharp_program): Call it.
69171
69172         2006-06-21  Bruno Haible  <bruno@clisp.org>
69173
69174                 Avoid warnings from recent versions of mcs.
69175                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
69176                 -o, -L, -r any more. Use options documented since mcs-1.0
69177                 instead. Similarly for -g.
69178
69179         2005-07-09  Bruno Haible  <bruno@clisp.org>
69180
69181                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
69182                 add a .dll suffix.
69183                 Reported by Mark Junker <mjscod@gmx.de>.
69184
69185         2006-06-17  Bruno Haible  <bruno@clisp.org>
69186
69187                 * config.charset: Update for NetBSD 3.0.
69188
69189         2006-05-17  Bruno Haible  <bruno@clisp.org>
69190
69191                 Cygwin portability.
69192                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
69193
69194         2006-05-16  Bruno Haible  <bruno@clisp.org>
69195
69196                 * localcharset.c [CYGWIN]: Include <windows.h>.
69197                 (get_charset_aliases): For Cygwin, return the same CPxxx
69198                 aliases list as under WIN32.
69199                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
69200                 the environment variables. Fall back to GetACP().
69201
69202         2006-04-05  Bruno Haible  <bruno@clisp.org>
69203
69204                 * config.charset: Update Juan Manuel Guerrero's address.
69205
69206         2005-02-12  Bruno Haible  <bruno@clisp.org>
69207
69208                 * allocsa.h: Add extern "C" for C++.
69209
69210         2005-02-10  Bruno Haible  <bruno@clisp.org>
69211
69212                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
69213                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
69214
69215         2006-07-22  Bruno Haible  <bruno@clisp.org>
69216
69217                 * gettext.h: Update to GNU gettext-0.15.
69218
69219 2006-07-22  Bruno Haible  <bruno@clisp.org>
69220
69221         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
69222         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
69223         lib-prefix.m4, longdouble.m4, ssize_t.m4.
69224
69225 2006-07-21  Eric Blake  <ebb9@byu.net>
69226
69227         * modules/stdlib-safer: New file.
69228         * MODULES.html.sh (File stream based Input/Output): Add
69229         stdlib-safer.
69230
69231 2006-07-21  Eric Blake  <ebb9@byu.net>
69232
69233         * lib/stdlib-safer.h: New file from coreutils, required by
69234         stdlib--.h.
69235
69236 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
69237
69238         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
69239
69240 2006-07-20  Bruno Haible  <bruno@clisp.org>
69241
69242         * gnulib-tool: Recognize new option --assume-autoconf.
69243         (autoconf_minversion): New variable.
69244         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
69245
69246 2006-07-20  Bruno Haible  <bruno@clisp.org>
69247
69248         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
69249
69250 2006-07-19  Derek R. Price  <derek@ximbiot.com>
69251
69252         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
69253         Reindent and repaginate.
69254
69255 2006-07-19  Derek Price  <derek@ximbiot.com>
69256
69257         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
69258         Correct grammar.
69259
69260 2006-07-17  Bruno Haible  <bruno@clisp.org>
69261
69262         * modules/list: New file.
69263         * modules/array-list: New file.
69264         * modules/carray-list, modules/carray-list-tests: New files.
69265         * modules/linked-list, modules/linked-list-tests: New files.
69266         * modules/avltree-list, modules/avltree-list-tests: New files.
69267         * modules/rbtree-list, modules/rbtree-list-tests: New files.
69268         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
69269         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
69270         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
69271         * modules/oset: New file.
69272         * modules/array-oset: New file.
69273         * modules/avltree-oset, modules/avltree-oset-tests: New files.
69274         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
69275         * tests/test-carray_list.c: New file.
69276         * tests/test-linked_list.c: New file.
69277         * tests/test-avltree_list.c: New file.
69278         * tests/test-rbtree_list.c: New file.
69279         * tests/test-linkedhash_list.c: New file.
69280         * tests/test-avltreehash_list.c: New file.
69281         * tests/test-rbtreehash_list.c: New file.
69282         * tests/test-avltree_oset.c: New file.
69283         * tests/test-rbtree_oset.c: New file.
69284         * MODULES.html.sh (Container data structures): New section.
69285
69286 2006-07-17  Bruno Haible  <bruno@clisp.org>
69287
69288         * m4/gl_list.m4: New file.
69289
69290 2006-07-17  Bruno Haible  <bruno@clisp.org>
69291
69292         * lib/gl_list.h: New file.
69293         * lib/gl_list.c: New file.
69294         * lib/gl_array_list.h: New file.
69295         * lib/gl_array_list.c: New file.
69296         * lib/gl_carray_list.h: New file.
69297         * lib/gl_carray_list.c: New file.
69298         * lib/gl_linked_list.h: New file.
69299         * lib/gl_linked_list.c: New file.
69300         * lib/gl_anylinked_list1.h: New file.
69301         * lib/gl_anylinked_list2.h: New file.
69302         * lib/gl_avltree_list.h: New file.
69303         * lib/gl_avltree_list.c: New file.
69304         * lib/gl_anyavltree_list1.h: New file.
69305         * lib/gl_anyavltree_list2.h: New file.
69306         * lib/gl_rbtree_list.h: New file.
69307         * lib/gl_rbtree_list.c: New file.
69308         * lib/gl_anyrbtree_list1.h: New file.
69309         * lib/gl_anyrbtree_list2.h: New file.
69310         * lib/gl_anytree_list1.h: New file.
69311         * lib/gl_anytree_list2.h: New file.
69312         * lib/gl_linkedhash_list.h: New file.
69313         * lib/gl_linkedhash_list.c: New file.
69314         * lib/gl_anyhash_list1.h: New file.
69315         * lib/gl_anyhash_list2.h: New file.
69316         * lib/gl_avltreehash_list.h: New file.
69317         * lib/gl_avltreehash_list.c: New file.
69318         * lib/gl_rbtreehash_list.h: New file.
69319         * lib/gl_rbtreehash_list.c: New file.
69320         * lib/gl_anytreehash_list1.h: New file.
69321         * lib/gl_anytreehash_list2.h: New file.
69322
69323         * lib/gl_oset.h: New file.
69324         * lib/gl_oset.c: New file.
69325         * lib/gl_array_oset.h: New file.
69326         * lib/gl_array_oset.c: New file.
69327         * lib/gl_avltree_oset.h: New file.
69328         * lib/gl_avltree_oset.c: New file.
69329         * lib/gl_rbtree_oset.h: New file.
69330         * lib/gl_rbtree_oset.c: New file.
69331         * lib/gl_anytree_oset.h: New file.
69332
69333 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
69334
69335         * m4/mkancesdirs.m4: New file.
69336         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
69337         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
69338         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
69339         it.
69340
69341 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
69342
69343         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
69344         * lib/mkancesdirs.h: New files.
69345         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
69346         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
69347         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
69348         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
69349         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
69350         callers changed.  Revamp internals significantly, by not
69351         attempting to create directories that are temporarily more
69352         permissive than the final results.  Do not attempt to use
69353         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
69354         This removes some race conditions, fixes some bugs, and simplifies
69355         things.  Use new dirchownmod function to do owner and mode changes.
69356         * lib/mkdir-p.h: Likewise.
69357         * lib/modechange.c (octal_to_mode): New function.
69358         (struct mode_change): New member mentioned.
69359         (make_node_op_equals): New arg mentioned.  All callers changed.
69360         (mode_compile): Keep track of which mode bits the user has explicitly
69361         mentioned.
69362         (mode_adjust): New arg DIR, so that we implement the X op correctly.
69363         New arg PMODE_BITS, to keep track of which mode bits the user
69364         mentioned; it treats S_ISUID and S_ISGID speciall.
69365         All callers changed.
69366         * lib/modechange.h: Likewise.
69367
69368 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
69369
69370         * MODULES.html.sh: Add mkancestors.
69371         * modules/mkancesdirs: New module.
69372         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
69373         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
69374         The chdir-safer and afs files are now orphans; I'll remove them
69375         unless someone speaks up.
69376         Add lib/dirchownmod.c, lib/dirchownmod.h.
69377         (Depends-on): Remove alloca, chown, save-cwd, dirname.
69378         Add lchown, mkancesdirs.
69379         (Maintainer): Add self.
69380
69381 2006-07-15  Karl Berry  <karl@gnu.org>
69382
69383         * gnulib-tool: help message wording/arrangement.
69384
69385 2006-07-14  Simon Josefsson  <jas@extundo.com>
69386
69387         * doc/gnulib.texi (Libtool and Windows): New section.
69388
69389 2006-07-12  Simon Josefsson  <jas@extundo.com>
69390
69391         * modules/gendocs (License): Fix license, approved by Karl.
69392
69393 2006-07-12  Eric Blake  <ebb9@byu.net>
69394
69395         * MODULES.html.sh: Add gendocs.
69396
69397 2006-07-11  Eric Blake  <ebb9@byu.net>
69398
69399         * modules/fdl: New module, to install doc/fdl.texi.
69400         * MODULES.html.sh: Add new section for documentation modules.
69401         * gnulib-tool: Avoid space-tab.
69402         (--doc-base): New option, to manage files from doc.
69403
69404 2006-07-11  Eric Blake  <ebb9@byu.net>
69405
69406         * m4/absolute-header.m4: Fix comments to match recent change.
69407
69408 2006-07-11  Eric Blake  <ebb9@byu.net>
69409
69410         * gnulib-tool: List --doc-base before --tests-base.
69411
69412 2006-07-11  Derek R. Price  <derek@ximbiot.com>
69413
69414         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
69415
69416 2006-07-11  Bruno Haible  <bruno@clisp.org>
69417
69418         * README: Mention where to put documentation.
69419
69420 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69421
69422         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
69423
69424 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
69425
69426         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
69427         to stdint.m4.
69428
69429 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
69430
69431         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
69432         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
69433         "no/such/file/stdint.h" when there is no such file, so that
69434         the resulting C code can be parsed by dodgy compilers.
69435         Problems reported by Bob Proulx.
69436
69437 2006-07-10  Derek R. Price  <derek@ximbiot.com>
69438
69439         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
69440         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
69441         macros into the GNU _D_EXACT_NAMLEN.
69442         * lib/savedir.c:  Likewise.
69443         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
69444
69445 2006-07-10  Derek R. Price  <derek@ximbiot.com>
69446         and Paul Eggert  <eggert@cs.ucla.edu>
69447
69448         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
69449         * m4/savedir.m4:
69450         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
69451         macros into the GNU _D_EXACT_NAMLEN.
69452
69453 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
69454
69455         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
69456         around the absolute name, to work around a problem with the HP-UX
69457         11.23 native C compiler, reported by Bob Proulx.
69458
69459 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
69460
69461         * doc/maintain.texi, make-stds.texi: Sync from
69462         <http://savannah.gnu.org/projects/gnustandards>.
69463
69464 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
69465
69466         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
69467
69468 2006-07-09  Jim Meyering  <jim@meyering.net>
69469
69470         * m4/glob.m4: Remove a doubled word in a comment.
69471
69472 2006-07-09  Jim Meyering  <jim@meyering.net>
69473
69474         * lib/argp-pv.c: Remove a doubled word in a comment.
69475         * lib/check-version.c (check_version): Likewise.
69476         * lib/javacomp.c (compile_java_class): Likewise.
69477
69478 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
69479
69480         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
69481         for the benefit of people using Autoconf 2.60.  If you want to
69482         support older Autoconf versions you can copy m4/onceonly_2_57.m4
69483         (or m4/onceonly.m4, if pre-2.57) manually.
69484
69485 2006-07-08  Jim Meyering  <jim@meyering.net>
69486
69487         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
69488         comment.
69489         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
69490         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
69491         comment.
69492
69493 2006-07-08  Jim Meyering  <jim@meyering.net>
69494
69495         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
69496
69497 2006-07-07  Simon Josefsson  <jas@extundo.com>
69498
69499         * tests/test-crc.c: Change expected crc value, the test vector
69500         were probably computed using the old broken crc.c?
69501
69502 2006-07-06  Simon Josefsson  <jas@extundo.com>
69503
69504         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
69505         now the canonical place for the M4 file).
69506
69507         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
69508         from the sys_socket dependency now.
69509
69510         * modules/inet_pton (Files): Ditto.
69511
69512         * modules/inet_ntop (Files): Ditto.
69513
69514 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
69515
69516         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
69517         not gl_PREREQ_GETUSERSHELL.
69518
69519 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69520
69521         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
69522         with only one argument, for Autoconf 2.60.
69523         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
69524         expand to nothing, so add a shell command to avoid syntax error.
69525         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
69526
69527 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69528
69529         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
69530
69531 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
69532
69533         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
69534         no longer needed.  Check for isblank decl.
69535         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
69536         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
69537         of existence.
69538
69539 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
69540
69541         * lib/getloadavg.c: Use __VMS, not VMS.
69542         * lib/getopt.c: Likewise.
69543         * lib/getpagesize.h: Likewise.
69544         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
69545         and probably does not work.
69546
69547 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
69548
69549         * lib/.cppi-disable: Add wcwidth.
69550         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
69551         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
69552         (ISGRAPH): Remove.  All uses changed to isgraph.
69553         (FOLD) [!defined _LIBC]: Remove special case.
69554         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
69555         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
69556         HAVE_ISBLANK.
69557         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
69558         case.
69559
69560 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
69561
69562         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
69563         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
69564         brackets.  Other minor changes to suppress some compiler
69565         warnings.
69566
69567 2006-07-06  Derek R. Price  <derek@ximbiot.com>
69568         and Paul Eggert  <eggert@cs.ucla.edu>
69569
69570         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
69571         of invoking obsolescent AC_HEADER_DIRENT macro.
69572         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
69573         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
69574         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
69575         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
69576         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
69577         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
69578         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
69579         * m4/readdir.m4: Remove; no longer needed.
69580
69581 2006-07-06  Derek R. Price  <derek@ximbiot.com>
69582         and Paul Eggert  <eggert@cs.ucla.edu>
69583
69584         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
69585         Don't worry about this obsolete case any more.
69586         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
69587         directories.
69588         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
69589         worry about this obsolete case any more.
69590         * lib/fts.c: Likewise.
69591         * lib/getcwd.c: Likewise.
69592         * lib/glob.h: Likewise.
69593         * lib/savedir.c: Likewise.
69594
69595 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
69596
69597         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
69598         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
69599         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
69600         needed.
69601         All uses removed.
69602         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
69603         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
69604         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
69605         needed.
69606         * m4/getdate.m4 (gl_GETDATE): Likewise.
69607         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
69608         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
69609         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
69610         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
69611         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
69612         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
69613         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
69614         needed.
69615
69616 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
69617
69618         * lib/memcasecmp.c: Include <limits.h>.
69619         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
69620         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
69621         Don't assume isdigit succeeds only on '0' through '9'.
69622
69623 2006-07-05  Eric Blake  <ebb9@byu.net>
69624
69625         * modules/getaddrinfo (Depends-on): Add snprintf.
69626
69627 2006-07-05  Eric Blake  <ebb9@byu.net>
69628
69629         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
69630         to avoid 'header present but could not be compiled' on cygwin.
69631
69632 2006-07-05  Eric Blake  <ebb9@byu.net>
69633
69634         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
69635         missing from netdb.h.
69636         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
69637
69638 2006-07-05  Derek R. Price  <derek@ximbiot.com>
69639
69640         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
69641         no longer needed.
69642         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
69643         * m4/getdate.m4 (gl_GETDATE): Likewise.
69644         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
69645         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
69646         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
69647         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
69648         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
69649
69650 2006-07-05  Derek R. Price  <derek@ximbiot.com>
69651
69652         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
69653         All uses of is_space replaced by isspace.
69654         * lib/exit.h: Don't talk about STDC_HEADERS.
69655         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
69656         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
69657         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
69658         replaced by isprint etc.
69659         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
69660         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
69661         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
69662         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
69663         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
69664         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
69665
69666 2006-07-05  Bruno Haible  <bruno@clisp.org>
69667
69668         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
69669         the function exists, before testing against AIX.
69670         Reported by Martin Lambers <marlam@marlam.de>.
69671
69672 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
69673
69674         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
69675         From Mark D. Baushke.
69676
69677 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
69678
69679         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
69680         to the absolute name, not just one, to bypass Sun C 5.8's
69681         "warning: #include of /usr/include/... may be non-portable".
69682
69683 2006-07-04  Eric Blake  <ebb9@byu.net>
69684
69685         * modules/dirname-tests: New test module.
69686         * tests/test-dirname.c: New file, replacing dirname.c
69687         TEST_DIRNAME section that was recently deleted.
69688
69689 2006-07-04  Bruno Haible  <bruno@clisp.org>
69690
69691         Assume ANSI C header files and <ctype.h> functions.
69692         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
69693         (mbsnwidth): Use isprint, iscntrl instead.
69694
69695 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
69696
69697         Merge from coreutils.
69698         * MODULES.html.sh: Add xstrtold.
69699         * modules/xstrtold: New file.
69700         * modules/cycle-check (Files): Add lib/same-inode.h.
69701         * modules/dirname (Files): Add m4/double-slash-root.m4.
69702         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
69703         * modules/mkdir-p (Files): Add lib/same-inode.h.
69704         * modules/same (Files): Add lib/same-inode.h.
69705
69706 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
69707
69708         * m4/absolute-header.m4: Renamed from full-header-path.m4.
69709         This is to keep the terminology clean; POSIX talks about
69710         "absolute pathnames", not "full pathnames", but the GNU
69711         Coding Standards say to use "path" for something else;
69712         so use "absolute" to keep both sides happy.
69713         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
69714         Set gl_absolute_header, not gl_full_header_path.
69715         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
69716         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
69717         All uses changed.
69718
69719         Merge from coreutils.
69720
69721         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
69722
69723         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
69724         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
69725         want to require the building of c-strtod.o.
69726         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
69727         needs -lm directly.
69728         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
69729
69730         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
69731
69732         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
69733         --as-needed option if available.  Problem reported by Albert Chin in
69734         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
69735         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
69736         cc merely issues a bunch of annoying warnings for --as-needed
69737         (this problem was reported by Bob Proulx).  Also, try linking with
69738         -lm to detect a bug in binutils 2.16 (this problem was reported
69739         by Ralf Wildenhues).
69740
69741         2006-06-18  Jim Meyering  <jim@meyering.net>
69742
69743         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
69744         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
69745         macro.
69746         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
69747         also check for glibc-2.4's abort-inducing bug.
69748
69749         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
69750         Low-probability clean-up should be to use rmdir to get rid of
69751         the just-created directory, not unlink.
69752
69753         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
69754         configure fail, and request a bug report to inform us about it.
69755         Add a comment that, barring reports to the contrary, in 2007 we'll
69756         assume ftruncate is universally available.
69757
69758         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
69759
69760         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
69761
69762         2006-03-12  Jim Meyering  <jim@meyering.net>
69763
69764         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
69765         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
69766         * m4/same.m4 (gl_SAME): Likewise.
69767         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
69768
69769         2006-03-11  Eric Blake  <ebb9@byu.net>
69770
69771         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
69772         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
69773         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
69774         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
69775
69776 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
69777
69778         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
69779         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
69780         reported by Mark D. Baushke, one in
69781         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
69782
69783         Merge from coreutils.
69784
69785         * lib/.cppi-disable: Add stdint_.h.
69786         * lib/.cvsignore: Add stdint.h.
69787
69788         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
69789
69790         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
69791         both double and long double versions.
69792         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
69793         * lib/xstrtold.c: New file.
69794         * lib/xstrtod.h (xstrtold): New decl.
69795
69796         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
69797
69798         * lib/filemode.c (setst): Remove.
69799         (strmode): Rewrite to avoid setst.  This makes the code shorter,
69800         (arguably) clearer, and the generated code is a bit smaller on my
69801         Debian GNU/Linux stable x86 host.
69802
69803         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
69804
69805         * lib/filemode.c: Include "filemode.h" first, to test the interface.
69806         Assume that filemode.h includes sys/types.h and sys/stat.h.
69807         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
69808         (ftypelet): Reorder to put common cases first, for efficiency.
69809         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
69810         to do 'M'.
69811         (strmode): Renamed from mode_string, and now stores 12 bytes instead
69812         of 10, for compatibility with FreeBSD.  All callers changed.
69813         (filemodestring): Now stores 12 bytes instead of 10, and sets file
69814         types that can't be deduced solely from st_mode.  First arg is now a
69815         const pointer.
69816         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
69817         (strmode): Renamed from mode_string.
69818         (filemodestring): New decl.
69819         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
69820         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
69821         needed.
69822         (S_ISPORT, S_ISWHT): New macros, if not already defined.
69823
69824         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
69825
69826         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
69827         fsusage.h now does that.  Include fsusage.h first, to test interface.
69828         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
69829         at most one method (the old code could have generated decls that
69830         didn't conform to C89, not that this was ever exercised).
69831         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
69832
69833         2006-03-19  Jim Meyering  <jim@meyering.net>
69834
69835         Work even in a chroot where d_ino values for entries in "/"
69836         don't match the stat.st_ino values for the same names.
69837         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
69838         number, iterate through all entries again, using lstat instead.
69839         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
69840         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
69841
69842         * lib/getcwd.c (__getcwd): Clarify a comment.
69843         Use memcpy in place of a call to strcpy.
69844
69845         2006-03-12  Jim Meyering  <jim@meyering.net>
69846
69847         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
69848         matches that of the current directory (which we're about to chdir ".."
69849         out of), then save the dev-ino of the parent, instead.
69850
69851         * lib/same-inode.h (SAME_INODE): New file/macro.
69852         * lib/chdir-safer.c (SAME_INODE): Remove definition.
69853         Include "same-inode.h", instead.
69854         * lib/same.c: Likewise.
69855         * lib/cycle-check.h: Include "same-inode.h".
69856         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
69857         * lib/cycle-check.c (SAME_INODE): Remove definition.
69858         * lib/root-dev-ino.h: Include "same-inode.h".
69859
69860         2006-03-11  Eric Blake  <ebb9@byu.net>
69861
69862         * lib/same.c (same_name): s/base_name/last_component/
69863         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
69864         * lib/filenamecat.c (file_name_concat): Likewise.
69865
69866         2006-03-11  Eric Blake  <ebb9@byu.net>,
69867                     Paul Eggert  <eggert@cs.ucla.edu>
69868
69869         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
69870         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
69871         drive prefix.
69872         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
69873         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
69874         (last_component): New method.
69875         * lib/dirname.c (dir_len): Determine when drive letters need a
69876         subsequent slash.  Preserve // when it is special.
69877         (dir_name): Don't append dot when drive letter is absolute.
69878         [TEST_DIRNAME]: Move into a full-blown gnulib test.
69879         * lib/basename.c (base_name): New semantics - malloc the result.
69880         Preserve // when it is special.  Preserve relative files that look
69881         like drive letters.
69882         (base_len): Preserve // when it is special.
69883         (last_component): New method, similar to old base_name semantics.
69884         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
69885         base_name.  Strip redundant slashes from ///.
69886
69887 2006-07-03  Jim Meyering  <jim@meyering.net>
69888
69889         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
69890         macro is used before the first cycle_check call.
69891
69892 2006-07-03  Eric Blake  <ebb9@byu.net>
69893
69894         * modules/dirname (Depends-on): Add xstrndup.
69895
69896 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
69897
69898         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
69899         test cases, so that config.log is a bit easier to follow.
69900
69901 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
69902
69903         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
69904         both are 64 bits, since this seems to be the tradition, and this
69905         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
69906         we ever run into a host that prefers long long to long in this
69907         case, we'll need another configure-time test.  Problem reported by
69908         Jim Meyering.
69909
69910 2006-07-02  Eric Blake  <ebb9@byu.net>
69911
69912         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
69913
69914 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
69915
69916         * modules/inttypes (Depends-on): No longer depends on stdint.
69917         * modules/stdint (Description): Say more about assumptions.
69918         Say that the fast types might differ.  Say macros are used.
69919         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
69920         (Makefile.am): Revise list of substituted symbols to match
69921         new stdint.m4.
69922         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
69923         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
69924         * tests/test-stdint.c (verify_same_types)
69925         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
69926         the code conforms to C99/C89.
69927         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
69928         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
69929
69930 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
69931
69932         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
69933         but fix a bug, by requiring at least 64 bits.
69934         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
69935         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
69936         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
69937         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
69938
69939         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
69940         changes.  Make 2.59 a prerequisite.  Check and substitute for
69941         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
69942         inttypes.h.  Do not use special include files; just use the
69943         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
69944         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
69945         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
69946         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
69947         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
69948         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
69949         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
69950         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
69951         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
69952         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
69953         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
69954         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
69955         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
69956         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
69957         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
69958         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
69959         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
69960         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
69961         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
69962         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
69963         WINT_MAX.  Check for C99 conformance more strictly, by detecting
69964         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
69965         not check for things that C99 does not require, e.g., int8_t.  If
69966         a test isn't needed unless <stdint.h> isn't working, and is
69967         unlikely to be needed for any other reason, then don't do it
69968         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
69969         size_t, since we assume C89 freestanding at least.  Do not check
69970         for sig_atomic_t, wchar_t, or wint_t, since the code now does
69971         the right thing even if the types are not defined.  Instead use:
69972         (gl_STDINT_TYPE_PROPERTIES): New macro.
69973         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
69974         testing whether <sys/types.h> clashes, as Autoconf does this for
69975         us now.  All uses removed.
69976         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
69977         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
69978         (gl_CHECK_TYPE_SAME):
69979         Remove; no longer needed.
69980         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
69981         exists, since we'll return 0 anyway in that case.
69982         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
69983
69984 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
69985
69986         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
69987         possible collision with system files.
69988         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
69989         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
69990         WCHAR_MIN and WCHAR_MAX in this case.
69991         (<stddef.h>): Do not include; no longer needed.
69992         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
69993         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
69994         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
69995         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
69996         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
69997         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
69998         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
69999         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
70000         !defined(__c99))]: Include in this case too, since it's harmless
70001         now.
70002         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
70003         dangerous to do so.
70004         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
70005         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
70006         (_STDINT_MIN, _STDINT_MAX): New macros.
70007         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
70008         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
70009         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
70010         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
70011         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
70012         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
70013         macros, not typedefs; this simplifies things quite a bit.
70014         Use long int for all types narrower than int64_t.
70015         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
70016         Define in terms of long long int or int64_t or long int,
70017         not int64_t or int32_t.  This saves some compile-time testing.
70018         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
70019         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
70020         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
70021         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
70022         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
70023         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
70024         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
70025         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
70026         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
70027         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
70028         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
70029         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
70030         undef any previous version and define our own version, for
70031         simplicity and consistency with the new macros for types.
70032         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
70033         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
70034         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
70035         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
70036         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
70037         @WINT_T_SUFFIX@ to keep things simple here.
70038         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
70039         Simplify by assuming typical 8/16/32/64 host, since we're
70040         already doing that elsewhere anyway.
70041         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
70042         and assume long long int is 64 bits if available.  This
70043         speeds up 'configure'.
70044
70045 2006-07-01  Eric Blake  <ebb9@byu.net>
70046
70047         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
70048         Reported by Andreas Buening.
70049
70050 2006-07-01  Eric Blake  <ebb9@byu.net>
70051
70052         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
70053
70054 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
70055
70056         * lib/getaddrinfo.c: fixed typo
70057
70058 2006-06-29  Jim Meyering  <jim@meyering.net>
70059
70060         * modules/strftime (Maintainer): Add my name, since with the
70061         FPRINTFTIME changes strftime.c has forked from glibc.
70062
70063 2006-06-29  Eric Blake  <ebb9@byu.net>
70064
70065         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
70066
70067 2006-06-29  Eric Blake  <ebb9@byu.net>
70068
70069         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
70070
70071 2006-06-29  Eric Blake  <ebb9@byu.net>
70072
70073         * lib/stat_.h: New file.
70074
70075 2006-06-29  Eric Blake  <ebb9@byu.net>
70076
70077         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
70078         unused static function.
70079
70080 2006-06-29  Eric Blake  <ebb9@byu.net>
70081
70082         * doc/functions.texi (Function Portability): Document missing lstat
70083         on mingw.
70084
70085 2006-06-29  Eric Blake  <ebb9@byu.net>
70086
70087         * MODULES.html.sh: Add sys_stat.
70088         * modules/sys_stat: New module.
70089         * modules/mkstemp (Depends-on): Add sys_stat.
70090
70091 2006-06-29  Derek R. Price  <derek@ximbiot.com>
70092
70093         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
70094
70095 2006-06-29  Derek R. Price  <derek@ximbiot.com>
70096
70097         * m4/c-bs-a.m4: Removed.
70098
70099 2006-06-29  Derek R. Price  <derek@ximbiot.com>
70100
70101         * lib/strftime.c: Assume strftime() exists.
70102
70103 2006-06-29  Derek Price  <derek@ximbiot.com>
70104
70105         * modules/c-bs-a: Removed - \a is C89.
70106         * MODULES.html.sh: Remove c-bs-a.
70107
70108 2006-06-29  Bruno Haible  <bruno@clisp.org>
70109
70110         * modules/wcwidth (License): Change to LGPL.
70111
70112 2006-06-28  Simon Josefsson  <jas@extundo.com>
70113
70114         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
70115         on _WIN32.
70116
70117         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
70118         getnameinfo.
70119
70120 2006-06-28  Simon Josefsson  <jas@extundo.com>
70121
70122         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
70123
70124 2006-06-28  Simon Josefsson  <jas@extundo.com>
70125
70126         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
70127         functions there.  It will succeed on Windows XP, but on Windows
70128         2000 and (presumably) earlier, it will fail, and use the internal
70129         re-implementation.
70130         (use_win32_p): New function.
70131         (getaddrinfo): Use strtoul on servname, to support numeric ports.
70132         Support AI_NUMERICSERV to disable getservbyname.
70133         (getnameinfo): New function, only supports
70134         NI_NUMERICHOST|NI_NUMERICSERV for now.
70135
70136         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
70137         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
70138         getnameinfo.
70139
70140 2006-06-28  Eric Blake  <ebb9@byu.net>
70141
70142         * modules/wcwidth: New file.
70143         * modules/mbchar (Depends-on): Add wcwidth.
70144         * modules/mbswidth (Depends-on): Add wcwidth.
70145         * MODULES.html.sh: Add wcwidth.
70146
70147 2006-06-28  Eric Blake  <ebb9@byu.net>
70148
70149         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
70150         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
70151
70152 2006-06-28  Eric Blake  <ebb9@byu.net>
70153
70154         * lib/xvasprintf.h: Fix comments.
70155
70156 2006-06-28  Eric Blake  <ebb9@byu.net>
70157
70158         * lib/mbchar.h (wcwidth): Include wcwidth.h.
70159         * lib/mbswidth.c (wcwidth): Move from here...
70160         * lib/wcwidth.h: ...to this new file.
70161
70162 2006-06-28  Derek R. Price  <derek@ximbiot.com>
70163
70164         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
70165
70166         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
70167         it's obsolete.
70168         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
70169
70170 2006-06-28  Derek R. Price  <derek@ximbiot.com>
70171
70172         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
70173         Autoconf 2.60 says this stuff was obsolete.
70174
70175 2006-06-28  Bruno Haible  <bruno@clisp.org>
70176
70177         * modules/wcwidth (Files): Add m4/wchar_t.m4.
70178
70179 2006-06-28  Bruno Haible  <bruno@clisp.org>
70180
70181         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
70182         gt_TYPE_WCHAR_T.
70183
70184 2006-06-28  Bruno Haible  <bruno@clisp.org>
70185
70186         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
70187         declaration for wcwidth.
70188         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
70189
70190 2006-06-28  Bruno Haible  <bruno@clisp.org>
70191
70192         * lib/mkdtemp.c [MINGW]: Include <io.h>.
70193         (mkdir): Define using _mkdir.
70194
70195 2006-06-28  Bruno Haible  <bruno@clisp.org>
70196
70197         * lib/getaddrinfo.h: Fix POSIX URL.
70198         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
70199         _WIN32.
70200         (use_win32_p): Make static.
70201         (getaddrinfo): Reject service name if it is empty or does not consist
70202         solely of decimal digits, or if its value is > 65535.
70203         (getnameinfo): Remove useless casts.
70204
70205 2006-06-27  Simon Josefsson  <jas@extundo.com>
70206
70207         * modules/sys_select: New file, suggested by Bruno Haible, Paul
70208         Eggert and Martin Lambers.
70209
70210 2006-06-27  Simon Josefsson  <jas@extundo.com>
70211
70212         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
70213         Eggert and Martin Lambers.
70214
70215 2006-06-27  Bruno Haible  <bruno@clisp.org>
70216
70217         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
70218         result to 0, not to empty.
70219         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
70220
70221 2006-06-27  Bruno Haible  <bruno@clisp.org>
70222
70223         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
70224
70225 2006-06-26  Simon Josefsson  <jas@extundo.com>
70226
70227         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
70228         present.
70229
70230 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
70231
70232         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
70233         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
70234         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
70235
70236 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
70237
70238         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
70239
70240 2006-06-26  Bruno Haible  <bruno@clisp.org>
70241
70242         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
70243
70244 2006-06-26  Bruno Haible  <bruno@clisp.org>
70245
70246         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
70247
70248 2006-06-26  Bruno Haible  <bruno@clisp.org>
70249
70250         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
70251         SGI C compiler in pre-C99 mode.
70252         Suggested by Mark D. Baushke and Larry Jones.
70253
70254 2006-06-26  Bruno Haible  <bruno@clisp.org>
70255
70256         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
70257         WCHAR_MAX.
70258         Reported by Mark D. Baushke and Larry Jones.
70259
70260 2006-06-26  Bruno Haible  <bruno@clisp.org>
70261
70262         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
70263         in pre-C99 mode.
70264         Suggested by Mark D. Baushke and Larry Jones.
70265
70266 2006-06-23  Simon Josefsson  <jas@extundo.com>
70267             Bruno Haible  <bruno@clisp.org>
70268
70269         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
70270         Emit mostlyclean-local rule.
70271         (func_emit_tests_Makefile_am): Likewise.
70272         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
70273
70274 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
70275
70276         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
70277
70278 2006-06-23  Bruno Haible  <bruno@clisp.org>
70279
70280         * tests/test-stdint.c: Update to match ISO C 99 Technical
70281         Corrigendum 1.
70282
70283 2006-06-23  Bruno Haible  <bruno@clisp.org>
70284
70285         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
70286
70287 2006-06-23  Bruno Haible  <bruno@clisp.org>
70288
70289         * lib/stdint_.h: Treat IRIX like OpenBSD.
70290
70291 2006-06-23  Bruno Haible  <bruno@clisp.org>
70292
70293         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
70294         ISO C 99 Technical Corrigendum 1.
70295
70296 2006-06-22  Simon Josefsson  <jas@extundo.com>
70297
70298         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
70299         MinGW.
70300
70301 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
70302
70303         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
70304         needed.  Some compiler complained about some of them.  Problem reported
70305         by Larry Jones in
70306         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
70307
70308 2006-06-21  Simon Josefsson  <jas@extundo.com>
70309
70310         * tests/test-getaddrinfo.c: New file.
70311
70312         * modules/getaddrinfo-tests: New file.
70313
70314         * MODULES.html.sh: Add inet_pton.
70315
70316         * modules/inet_pton: New file.
70317
70318 2006-06-21  Simon Josefsson  <jas@extundo.com>
70319
70320         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
70321         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
70322         of using the (limited) gnulib implementation on Windows XP.
70323
70324         * m4/inet_pton.m4: New file.
70325
70326 2006-06-21  Simon Josefsson  <jas@extundo.com>
70327
70328         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
70329         variable.
70330
70331         * lib/socket_.h: Don't define WINVER.
70332
70333         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
70334         slightly modified to work in gnulib.
70335
70336 2006-06-21  Simon Josefsson  <jas@extundo.com>
70337
70338         * doc/gnulib.texi (Windows sockets): Add.
70339
70340 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
70341
70342         * lib/read-file.c (fread_file): Start with buffer allocation of
70343         0 bytes rather than 1 byte; this simplifies the code.
70344         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
70345         code to free buffer and save/restore errno.
70346         (internal_read_file): Remove unused local.
70347
70348 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
70349
70350         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
70351         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
70352         Problem reported by Denis Excoffier in
70353         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
70354
70355 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70356
70357         * modules/sys_socket, modules/socklen: Include sys/types since
70358         FreeBSD 4.x's sys/socket.h needs it.
70359
70360 2006-06-19  Simon Josefsson  <jas@extundo.com>
70361
70362         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
70363
70364 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
70365
70366         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
70367
70368 2006-06-19  Bruno Haible  <bruno@clisp.org>
70369
70370         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
70371         and FULL_PATH_INTTYPES_H in angle brackets.
70372         Reported by Mark D. Baushke <mdb@gnu.org>.
70373
70374 2006-06-17  Eric Blake  <ebb9@byu.net>
70375
70376         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
70377         errno.
70378
70379 2006-06-17  Bruno Haible  <bruno@clisp.org>
70380
70381         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
70382         <sys/inttypes.h>.
70383
70384 2006-06-17  Bruno Haible  <bruno@clisp.org>
70385
70386         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
70387         whether errno is declared. Assume <errno.h> declares errno.
70388
70389 2006-06-17  Bruno Haible  <bruno@clisp.org>
70390
70391         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
70392
70393 2006-06-17  Bruno Haible  <bruno@clisp.org>
70394
70395         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
70396         problem on Solaris 2.5.1.
70397
70398 2006-06-16  Eric Blake  <ebb9@byu.net>
70399
70400         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
70401         * lib/unicodeio.c [!defined errno]: Likewise.
70402         * lib/strtol.c [!defined errno]: Likewise.
70403         * lib/strtod.c [!defined errno]: Likewise.
70404
70405 2006-06-15  Eric Blake  <ebb9@byu.net>
70406
70407         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
70408
70409 2006-06-15  Eric Blake  <ebb9@byu.net>
70410
70411         * config/srclist.txt (ssize_t.m4): Lose sync.
70412
70413 2006-06-15  Bruno Haible  <bruno@clisp.org>
70414
70415         * modules/stdint (Files): Include m4/full-header-path.m4,
70416         m4/size_max.m4, m4/wchar_t.m4.
70417         (Makefile.am): Many more substitutions.
70418         * modules/stdint-tests: New file.
70419         * tests/test-stdint.c: New file.
70420
70421 2006-06-15  Bruno Haible  <bruno@clisp.org>
70422
70423         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
70424         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
70425         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
70426         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
70427         gl_CHECK_TYPE_SAME): New macros.
70428
70429 2006-06-15  Bruno Haible  <bruno@clisp.org>
70430
70431         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
70432
70433 2006-06-15  Bruno Haible  <bruno@clisp.org>
70434
70435         * lib/stdint_.h: Rewritten to be fully auto-configured.
70436         Fixes bug on HP-UX/IA64.
70437
70438 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
70439
70440         * lib/getdate.y (__attribute__): Don't define if already defined.
70441         Problem reported by Larry Jones.
70442         * lib/utimens.c (__attribute__): Likewise.
70443
70444 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
70445
70446         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
70447         reported by Andreas Schwab.
70448
70449 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70450             Bruno Haible  <bruno@clisp.org>
70451
70452         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
70453         check for the declaration of strnlen and a run test that exposes the
70454         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
70455         rpl_strndup.
70456
70457 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70458             Bruno Haible  <bruno@clisp.org>
70459
70460         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
70461
70462 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70463
70464         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
70465         compile test, for Tru64 4.0D.
70466
70467 2006-05-28  Karl Berry  <karl@gnu.org>
70468
70469         * config/srclist.txt (printf-args.c): lose sync.
70470
70471 2006-05-26  Martin Lambers  <marlam@marlam.de>
70472
70473         * lib/getpass.c: Updates the test for the native W32 API, and adds
70474         missing includes, thus fixing compilation warnings.
70475
70476 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
70477
70478         * lib/exclude.c (exclude_fnmatch): New function.
70479         (excluded_file_name): Call exclude_fnmatch.
70480         * lib/exclude.h (excluded_file_name): New prototype
70481
70482 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
70483
70484         * lib/tempname.c (small_open, large_open): New macros.
70485         (__open, __open64) [!_LIBC]: Remove.
70486         (__gen_tempname): Use small_open and large_open instead of __open
70487         and __open64.  This fixes a portability bug on HP-UX 11.11i
70488         reported by Simon Wing-Tang in
70489         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
70490
70491 2006-05-24  Bruno Haible  <bruno@clisp.org>
70492
70493         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
70494         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
70495         Reported by Thorsten Maerz <torte@netztorte.de> via
70496         Aaron Stone <aaron@serendipity.cx>.
70497
70498 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
70499
70500         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
70501         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
70502         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
70503         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
70504         not really conditional on the cache.
70505         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
70506
70507 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
70508
70509         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
70510         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
70511         (my_usleep): Don't mishandle maximum value.
70512
70513 2006-05-19  Jim Meyering  <jim@meyering.net>
70514
70515         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
70516
70517 2006-05-17  Bruno Haible  <bruno@clisp.org>
70518
70519         Cygwin portability.
70520         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
70521
70522 2006-05-17  Bruno Haible  <bruno@clisp.org>
70523
70524         * lib/stdint_.h: Fix recognition of Cygwin.
70525
70526 2006-05-15  Bruno Haible  <bruno@clisp.org>
70527
70528         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
70529         on libtool patch by Ralf Wildenhues.
70530
70531 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
70532
70533         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
70534         test for C99 conformance; (bool) 0.5 is an integer constant
70535         expression, but (bool) -0.5 is not.  Problem reported by Fedor
70536         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
70537
70538 2006-05-11  Simon Josefsson  <jas@extundo.com>
70539
70540         * m4/xvasprintf.m4: Fix obvious typo.
70541
70542 2006-05-11  Jim Meyering  <jim@meyering.net>
70543
70544         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
70545         James Lemley.
70546
70547 2006-05-10  Simon Josefsson  <jas@extundo.com>
70548
70549         * lib/md4.c: Typo fix, update copyright years.
70550         (K1, K2): Don't use L because it turn computations into 64-bit on
70551         64-bit platforms.
70552
70553 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
70554
70555         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
70556         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
70557         unwanted sign propagation, e.g., on hosts with 64-bit int.
70558         There still are some problems with reeelly weird theoretical hosts
70559         (e.g., 33-bit int) but it's not worth worrying about now.
70560         * lib/sha1.c (rol): Likewise.
70561         (K1, K2, K3, K4): Remove unnecessary L suffix.
70562
70563 2006-05-10  Bruno Haible  <bruno@clisp.org>
70564
70565         * lib/des.c: Cast to avoid warnings.
70566
70567 2006-05-09  Bruno Haible  <bruno@clisp.org>
70568
70569         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
70570         (Depends-on): Depend also on xsize, stdarg.
70571         (configure.ac): Add gl_XVASPRINTF.
70572
70573 2006-05-09  Bruno Haible  <bruno@clisp.org>
70574
70575         * m4/xvasprintf.m4: New file.
70576
70577 2006-05-09  Bruno Haible  <bruno@clisp.org>
70578
70579         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
70580         (EOVERFLOW): Define fallback value.
70581         (xstrcat): New function.
70582         (xvasprintf): Recognize the special case of a string concatenation.
70583
70584 2006-05-08  Eric Blake  <ebb9@byu.net>
70585
70586         * gnulib-tool (func_version): Base copyright year on CVS date.
70587         (func_emit_copyright_notice): New function.
70588         (func_emit_lib_Makefile_am): Use it.
70589         (func_emit_tests_Makefile_am): Likewise.
70590         (func_import): Likewise.
70591
70592 2006-05-08  Bruno Haible  <bruno@clisp.org>
70593
70594         * modules/stdarg: New file.
70595         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
70596
70597 2006-05-08  Bruno Haible  <bruno@clisp.org>
70598
70599         * m4/stdarg.m4: New file, from GNU gettext.
70600
70601 2006-05-08  Bruno Haible  <bruno@clisp.org>
70602
70603         * config/srclist.txt (build-aux/config.rpath): different from latest
70604         release.
70605
70606 2006-05-08  Bruno Haible  <bruno@clisp.org>
70607
70608         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
70609
70610 2006-05-05  Jim Meyering  <jim@meyering.net>
70611
70612         * m4/warning.m4: New file, derived from bison's file by the same name.
70613
70614 2006-05-03  Bruno Haible  <bruno@clisp.org>
70615
70616         * lib/stdint_.h: Shorter URL.
70617         * lib/inttypes.h: Likewise.
70618
70619 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
70620
70621         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
70622
70623 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
70624
70625         * lib/verify.h: Document the internals better.  Most of this change
70626         was written by Bruno Haible.
70627
70628 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
70629
70630         * doc/verify.texi: New file, partly based on a proposal by
70631         Bruno Haible.
70632
70633 2006-05-02  Bruno Haible  <bruno@clisp.org>
70634
70635         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
70636         test from here...
70637         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
70638
70639 2006-04-29  Bruno Haible  <bruno@clisp.org>
70640
70641         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
70642         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
70643
70644 2006-04-29  Bruno Haible  <bruno@clisp.org>
70645
70646         * gnulib-tool: Make --update option actually work.
70647
70648 2006-04-29  Bruno Haible  <bruno@clisp.org>
70649
70650         * doc/gcd.texi: New file.
70651         * doc/gnulib.texi: Include it.
70652
70653 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
70654
70655         * lib/getdate.y (get_date): When adding relative date, start with the
70656         initial time, not with the result of the first mktime call.
70657
70658 2006-04-25  Bruno Haible  <bruno@clisp.org>
70659
70660         * gnulib-tool (func_import): Output the include directives in three
70661         blocks, sorted separately.
70662         Reported by Ben Pfaff <blp@cs.stanford.edu>.
70663
70664 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
70665
70666         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
70667         to define main with arguments, for C++.  Reported by Eric Blake.
70668         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
70669         Prefer 'int main ()' to 'int main (void)', for C++.
70670         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
70671         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
70672         for 'main', for C99 and C++.
70673
70674 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
70675
70676         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
70677         Don't assume that exit status -1 is valid.
70678         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
70679         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
70680         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
70681         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
70682         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
70683         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
70684         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
70685         functions can be used without declaring them, or that you can
70686         exit with status -1.
70687         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
70688
70689 2006-04-24  Karl Berry  <karl@gnu.org>
70690
70691         * config/srclist.txt (longdouble.m4): sync lost.
70692
70693 2006-04-24  Eric Blake  <ebb9@byu.net>
70694
70695         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
70696
70697 2006-04-24  Bruno Haible  <bruno@clisp.org>
70698
70699         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
70700         poll() implementation in AIX.
70701         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70702
70703 2006-04-24  Bruno Haible  <bruno@clisp.org>
70704
70705         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
70706         assigned exactly once.
70707
70708 2006-04-23  Claudio Fontana  <claudio@gnu.org>
70709             Bruno Haible  <bruno@clisp.org>
70710
70711         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
70712         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
70713         for AM_CPPFLAGS.
70714
70715 2006-04-23  Bruno Haible  <bruno@clisp.org>
70716
70717         * modules/copy-file: Depend on unistd.
70718         * modules/execute: Likewise.
70719         * modules/fatal-signal: Likewise.
70720         * modules/findprog: Likewise.
70721         * modules/mkdtemp : Likewise.
70722         * modules/pipe: Likewise.
70723         * modules/wait-process: Likewise.
70724
70725 2006-04-23  Bruno Haible  <bruno@clisp.org>
70726
70727         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
70728         condition was already detected.
70729         Reported by Ben Pfaff <blp@cs.stanford.edu>.
70730
70731 2006-04-23  Bruno Haible  <bruno@clisp.org>
70732
70733         * lib/copy-file.c: Include <unistd.h> unconditionally.
70734         * lib/execute.c: Likewise.
70735         * lib/fatal-signal.c: Likewise.
70736         * lib/findprog.c: Likewise.
70737         * lib/mkdtemp.c: Likewise.
70738         * lib/pipe.h: Likewise.
70739         * lib/pipe.c: Likewise.
70740         * lib/wait-process.h: Likewise.
70741
70742 2006-04-23  Bruno Haible  <bruno@clisp.org>
70743
70744         * gnulib-tool (func_usage): Fix --import description. Document
70745         --update.
70746         (func_import): Create temporary file in a temporary directory, if
70747         --dry-run is specified. Silence errors from 'grep' when there are no
70748         m4 files in $m4dir.
70749         (func_create_testdir): Silence errors from 'grep' when there are no
70750         m4 files in $m4dir.
70751         Reported by Karl Berry <karl@freefriends.org>.
70752
70753 2006-04-20  Bruno Haible  <bruno@clisp.org>
70754
70755         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
70756         one argument, so that the code will be portable to Autoconf 2.60.
70757         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
70758         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
70759         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
70760
70761 2006-04-19  Derek Price  <derek@ximbiot.com>
70762             Eric Blake  <ebb9@byu.net>
70763
70764         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
70765         rather than "/full/path.h".  Update comment to match.  Shorten &
70766         generalize m4_translit call via AS_TR_CPP.
70767
70768 2006-04-19  Derek Price  <derek@ximbiot.com>
70769             Eric Blake  <ebb9@byu.net>
70770
70771         * lib/inttypes.h: Correct grammar in comment.
70772
70773 2006-04-18  Derek Price  <derek@ximbiot.com>
70774             Paul Eggert  <eggert@cs.ucla.edu>
70775
70776         * modules/inttypes: New file.
70777         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
70778
70779 2006-04-18  Derek Price  <derek@ximbiot.com>
70780             Paul Eggert  <eggert@cs.ucla.edu>
70781
70782         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
70783         New files.
70784
70785 2006-04-18  Derek Price  <derek@ximbiot.com>
70786             Paul Eggert  <eggert@cs.ucla.edu>
70787
70788         * lib/inttypes.h: New file.
70789         * lib/strtoimax.c: Assume <inttypes.h>.
70790
70791 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
70792
70793         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
70794         isn't mounted.  Problem reported by Kir Kolyshkin.
70795
70796 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
70797
70798         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
70799         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
70800         Derek R. Price.
70801         * lib/regex.h (RE_DUP_MAX): Update comment to match current
70802         implementation.
70803
70804 2006-04-12  Eric Blake  <ebb9@byu.net>
70805
70806         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
70807         is now done automatically by the corresponding Autoconf macro.
70808
70809 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
70810
70811         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
70812         time_r.h.
70813
70814 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
70815
70816         Merge regex changes from libc, removing some of our
70817         POSIX-conformance changes that were rejected and redoing them in a
70818         less-intrusive way.
70819
70820         * lib/regcomp.c (re_compile_internal, init_dfa):
70821         Length arg is now size_t, not Idx.  All uses changed.
70822         (peek_token): Forward decl now says internal_function.
70823         (__re_error_msgid, __re_error_msgid_idx):
70824         Now static rather than extern with attribute_hidden.
70825         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
70826         For some reason libc prefers K&R style defns for external functions.
70827         (regerror) [!defined _LIBC]: Likewise.
70828         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
70829         (seek_collating_symbol_entry, lookup_collation_sequence_value):
70830         (build_range_exp, build_collating_symbol):
70831         Use K&R-style defn.
70832         (re_compile_fastmap): Use '\0' to memset, not 0.
70833         (utf8_sb_map): Make the calculations more obvious.
70834         (init_dfa, parse_bracket_exp, build_charclass_op):
70835         Call calloc and cast result, as glibc does.
70836         (init_word_char, fetch_token, peek_token, peek_token_bracket):
70837         (build_range_exp, build_collating_symbol):
70838         Now internal functions.
70839
70840         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
70841
70842         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
70843         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
70844         Don't depend on VMS; depend on __VMS instead, for POSIX
70845         namespace cleanness.
70846         (regoff_t): Define to ssize_t, not long int.
70847
70848         Remove the REG_ macros named below.  Instead, make the old names
70849         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
70850         __USE_GNU_REGEX.
70851         (REG_BACKSLASH_ESCAPE_IN_LISTS):
70852         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
70853         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
70854         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
70855         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
70856         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
70857         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
70858         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
70859         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
70860         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
70861         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
70862         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
70863         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
70864         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
70865         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
70866         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
70867         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
70868         (REG_NREGS):
70869         Remove.  All uses replaced by the old RE_* names.
70870         (RE_BACKSLASH_ESCAPE_IN_LISTS):
70871         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
70872         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
70873         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
70874         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
70875         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
70876         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
70877         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
70878         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
70879         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
70880         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
70881         Don't bother having these macros be independent of each others'
70882         values, since they no longer exist in the POSIX name space.
70883
70884         Rename the following member names back to their old names,
70885         unless !__USE_GNU_REGEX.  All uses changed back.
70886         (buffer): Renamed from re_buffer.
70887         (allocated): Renamed from re_allocated.
70888         (used): Renamed from re_used.
70889         (syntax): Renamed from re_syntax.
70890         (fastmap): Renamed from re_fastmap.
70891         (translate): Renamed from re_translate.
70892         (can_be_null): Renamed from re_can_be_null.
70893         (regs_allocated): Renamed from re_regs_allocated.
70894         (fastmap_accurate): Renamed from re_fastmap_accurate.
70895         (no_sub): Renamed from re_no_sub.
70896         (not_bol): Renamed from re_not_bol.
70897         (not_eol): Renamed from re_not_eol.
70898         (newline_anchor): Renamed from re_newline_anchor.
70899         (num_regs): Renamed from rm_num_regs.
70900         (start): Renamed from rm_start.
70901         (end): Renamed from rm_end.
70902
70903         (free_state): Move up a bit.
70904
70905         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
70906         #define to be empty.
70907         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
70908         when that is what is intended.
70909         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
70910         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
70911         (MAX): New macro.
70912         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
70913         All uses changed back to re_malloc, etc.  It's now the caller's
70914         responsibility to check for overflow; all callers changed.
70915         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
70916         (re_x2nrealloc): Remove.
70917         (free_state): Remove decl.
70918
70919         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
70920         (re_set_registers, re_exec):
70921         Use K&R-style defn.
70922
70923         2006-01-31  Roland McGrath  <roland@redhat.com>
70924
70925         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
70926         Reported by Mike Frysinger <vapier@gentoo.org>.
70927
70928         2006-01-15  Andreas Jaeger  <aj@suse.de>
70929
70930         [BZ #1950]
70931         * lib/regex_internal.c (re_string_reconstruct): Adjust for
70932         build_wcs_upper_buffer change.
70933         (build_wcs_upper_buffer): Change return type.
70934
70935         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
70936
70937         * lib/regex_internal.h: Include <stdint.h> if available.
70938
70939         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
70940
70941         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
70942
70943         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
70944
70945         * lib/regcomp.c: Adjust for changed secondary hash function.
70946
70947         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
70948
70949         * lib/regex.h: Pretty printing.
70950         Clean up namespace a bit.
70951
70952         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
70953
70954         * lib/regexec.c (update_cur_sifted_state, check_arrival,
70955         check_arrival_add_next_nodes): Avoid using uninitialized variable.
70956
70957         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
70958                     Ulrich Drepper  <drepper@redhat.com>
70959
70960         [BZ #1302]
70961         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
70962         changed.
70963         (bitset_word_t): Renamed from bitset_word.  All uses changed.
70964
70965         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
70966
70967         [BZ #281]
70968         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
70969         * lib/regcomp.c: Remove unnecessary uses of
70970         unsigned RE_TRANSLATE_TYPE.
70971         * lib/regex_internal.h: Likewise.
70972         * lib/regex_internal.c: Likewise.
70973         * lib/regexec.c: Likewise.
70974         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
70975
70976         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
70977
70978         * lib/regexec.c (find_recover_state): Remove unnecessary
70979         initialization.
70980         (transit_state_bkref): Make DFA a const pointer.
70981         (get_subexp): Likewise.
70982         (check_arrival): Likewise.
70983         (update_cur_sifted_state): Likewise.
70984         (re_search_internal): Likewise.
70985         (prune_impossible_nodes): Likewise.
70986         (acquire_init_state_context): Likewise.
70987         (proceed_next_node): Likewise.
70988         (set_regs): Likewise.
70989         (free_fail_stack_return): Likewise.
70990         (check_arrival_expand_ecl): Mark DFA parameter as const.
70991         (check_arrival_expand_ecl_sub): Likewise.
70992         (check_subexp_limits): Likewise.
70993         (sub_epsilon_src_nodes):  Likewise.
70994         (add_epsilon_src_nodes):  Likewise.
70995         (merge_state_array): Likewise.
70996         (update_regs): Likewise.
70997         (build_trtable): Likewise.
70998         (sift_states_backward): Mark MCTX parameter as const.
70999         (build_sifted_states): Likewise.
71000         (update_cur_sifted_state): Likewise.
71001         (sift_states_mkref): Likewise.
71002         (check_arrival_expand_ecl): Mark eclosure as const.
71003         (check_dst_limits_calc_pos_1): Likewise.
71004         * lib/regex_internal.h (re_match_context_t): Make dfa a const
71005         pointer.
71006
71007         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
71008
71009         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
71010         (transit_state_sb): Likewise.
71011         (transit_state_mb): Likewise.
71012         (sift_states_iter_mb): Likewise.
71013         (check_arrival_add_next_nodes): Likewise.
71014         (check_node_accept_bytes): Change first parameter to pointer-to-const.
71015         [_LIBC] (re_search_2_stub): Use mempcpy.
71016
71017         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
71018         mbrtowc for very simple UTF-8 case.
71019
71020         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
71021         a pointer-to-const.
71022         (re_acquire_state_context): Likewise.
71023         * lib/regex_internal.h: Adjust prototypes.
71024
71025         * lib/regex.c: Prevent using C++ compilers.
71026
71027         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
71028         (re_acquire_state_context): Likewise.
71029
71030 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
71031
71032         * modules/regex (Depends-on): Add ssize_t.
71033
71034 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
71035
71036         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
71037         translation table.
71038
71039 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
71040
71041         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
71042
71043 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
71044             Bruno Haible  <bruno@clisp.org>
71045
71046         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
71047         <sys/types.h> and <inttypes.h>.
71048
71049 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71050
71051         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
71052         `__error_t_defined', so argp.h will not typedef the former.
71053
71054 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
71055
71056         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
71057         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
71058         glibc names.  Even if glibc is changed to conform to POSIX, the
71059         traditional names will be available anyway, since regex depends on
71060         the extensions module.  Also, fix a longstanding typo in the
71061         implementation of Spencer ERE test #75 from grep 2.3.  Problems
71062         reported by Emanuele Giaquinta.  Also, change sense of cached
71063         variable, so that the message makes sense.
71064
71065 2006-03-24  Simon Josefsson  <jas@extundo.com>
71066
71067         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
71068         including some doc fixes.
71069         (base64_encode_alloc): Fix +1 bug on allocation failures.
71070
71071 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71072
71073         * lib/base64.c (base64_encode): Do not read past end of array with
71074         unsanitized input on systems with CHAR_BIT > 8.
71075
71076 2006-03-24  Eric Blake  <ebb9@byu.net>
71077
71078         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
71079
71080 2006-03-22  Karl Berry  <karl@gnu.org>
71081
71082         * config/srclist.txt (*setenv.[ch]): get from coreutils.
71083         * config/srclistvars.sh (COREUTILS): new var.
71084
71085 2006-03-17  Jim Meyering  <jim@meyering.net>
71086
71087         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
71088         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
71089
71090 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
71091
71092         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
71093         no longer needs it.  Instead, check that regoff_t is as least
71094         as wide as ptrdiff_t.
71095
71096         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
71097         so that our regex.h stays compatible with the installed regex.
71098         This is helpful for installers who configure --without-included-regex.
71099         Problem reported by Emanuele Giaquinta.
71100
71101 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
71102
71103         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
71104         Typedef to long int, not to off_, as POSIX will likely change
71105         in that direction.
71106
71107 2006-03-15  Eric Blake  <ebb9@byu.net>
71108
71109         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
71110
71111 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
71112
71113         * lib/argp-help.c (validate_uparams): Fix typo
71114         * lib/argp-parse.c (argp_default_options): Consistently begin help
71115         messages with a lowercase letter.
71116
71117 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
71118
71119         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
71120         overrun buffers and shouldn't be used (much as gets shouldn't be
71121         used).
71122         * lib/time_r.c (asctime_r, ctime_r): Likewise.
71123
71124 2006-03-08  Simon Josefsson  <jas@extundo.com>
71125
71126         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
71127         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71128
71129 2006-03-08  Simon Josefsson  <jas@extundo.com>
71130
71131         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
71132         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71133
71134 2006-03-08  Simon Josefsson  <jas@extundo.com>
71135
71136         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
71137         signal that configure disabled the device.
71138
71139 2006-03-08  Simon Josefsson  <jas@extundo.com>
71140
71141         * build-aux/maint.mk: Fix refresh-po, to handle no translated
71142         languages.
71143
71144 2006-03-07  Simon Josefsson  <jas@extundo.com>
71145
71146         * modules/getopt (Depends-on): Add unistd.
71147
71148         * modules/unistd: New file.
71149
71150 2006-03-07  Simon Josefsson  <jas@extundo.com>
71151
71152         * modules/gc-random: New file.
71153
71154 2006-03-07  Simon Josefsson  <jas@extundo.com>
71155
71156         * m4/unistd_h.m4: New file.
71157
71158 2006-03-07  Simon Josefsson  <jas@extundo.com>
71159
71160         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
71161         test to be side-effect free by storing the result in the cache
71162         variable gl_cv_lib_readline, and moving the assignment of
71163         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
71164         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71165
71166 2006-03-07  Simon Josefsson  <jas@extundo.com>
71167
71168         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
71169         error on missing devices (the functions will return an error).
71170
71171         * m4/gc.m4: Move random stuff to gc-random.m4
71172
71173 2006-03-07  Simon Josefsson  <jas@extundo.com>
71174
71175         * lib/unistd_.h: New file.
71176
71177 2006-03-07  Simon Josefsson  <jas@extundo.com>
71178
71179         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
71180
71181 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
71182
71183         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
71184         Problem reported by Juan Manuel Guerrero.
71185
71186 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
71187
71188         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
71189         the unistd module.
71190         * lib/getlogin_r.c: Likewise.
71191         * lib/getlogin_r.h: Likewise.
71192         * lib/glob.c: Likewise.
71193         * lib/pagealign_alloc.c: Likewise.
71194         * lib/unistd_.h: Remove; no longer needed.
71195
71196 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
71197
71198         * MODULES.html.sh (Support for systems lacking POSIX:2001):
71199         Add unistd.
71200         * modules/c-stack (Depends-on): Add unistd.
71201         * modules/getlogin_r: Likewise.
71202         * modules/glob: Likewise.
71203         * modules/pagealign_alloc: Likewise.
71204         * modules/unistd (Files): Remove lib/unistd_.h.
71205         (EXTRA_DIST): Remove.
71206         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
71207         need unistd_.h.
71208         (MOSTLYCLEANFILES): Remove unistd.h-t.
71209
71210 2006-03-03  Simon Josefsson  <jas@extundo.com>
71211
71212         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
71213
71214 2006-03-03  Simon Josefsson  <jas@extundo.com>
71215
71216         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
71217         libidn and bison.
71218
71219 2006-03-03  Simon Josefsson  <jas@extundo.com>
71220
71221         * build-aux/maint.mk: Add indent target.
71222
71223 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
71224
71225         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
71226         our replacement poll.h in any case, to avoid a differing
71227         declaration from a system header.  Seen on AIX.
71228
71229 2006-03-01  Simon Josefsson  <jas@extundo.com>
71230
71231         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
71232         <kasal@ucw.cz>.
71233
71234 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
71235
71236         * modules/gettime (Depends-on): Add extensions module.
71237         * modules/nanosleep (Depends-on): Likewise.
71238         * modules/settime (Depends-on): Likewise.
71239
71240 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
71241
71242         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
71243         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
71244         pedantically.
71245         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
71246         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
71247
71248         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
71249         not "==".  Reported by Ralf Wildenhues.
71250
71251 2006-03-01  Karl Berry  <karl@gnu.org>
71252
71253         * doc/Copyright/request-*: new files, synced from gnuorg.
71254
71255 2006-03-01  Karl Berry  <karl@gnu.org>
71256
71257         * config/srclist.txt (Copyright/*): new entries.
71258
71259 2006-02-28  Simon Josefsson  <jas@extundo.com>
71260
71261         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
71262
71263 2006-02-27  Simon Josefsson  <jas@extundo.com>
71264
71265         * lib/base64.h: Indent #define's.  From Jim Meyering
71266         <jim@meyering.net>.
71267
71268 2006-02-27  Jim Meyering  <jim@meyering.net>
71269
71270         Revert the change of 2006-02-24, so these files can continue
71271         to be sync'd from gettext.
71272         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
71273         of `config.h'.
71274
71275 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
71276
71277         * modules/intprops: New file.
71278         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
71279         Add intprops.
71280         * modules/getloadavg (Files): Remove lib/intprops.h.
71281         (Depends-on): Add intprops.
71282         * modules/human: Likewise.
71283         * modules/inttostr: Likewise.
71284         * modules/openat: Likewise.
71285         * modules/sig2str: Likewise.
71286         * modules/userspec: Likewise.
71287         * modules/utimecmp: Likewise.
71288         * modules/xnanosleep: Likewise.
71289         * modules/xstrtol: Likewise.
71290
71291 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
71292
71293         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
71294         * modules/lock-tests (TESTS): Use $(EXEEXT).
71295         * modules/tls-tests: Likewise.
71296         * modules/argp-tests: Likewise.
71297         (check_PROGRAMS): New var, replacing...
71298         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
71299
71300 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71301
71302         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
71303         `config.h'.
71304
71305 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
71306
71307         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
71308
71309 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71310
71311         Sync from coreutils.
71312         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
71313         gl_CHDIR_SAFER.
71314
71315 2006-02-22  Jim Meyering  <jim@meyering.net>
71316
71317         Sync from coreutils.
71318         * m4/chdir-safer.m4: New file.
71319
71320 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
71321
71322         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
71323         AT_FDCWD exceeds INT_MAX.
71324         * lib/openat.h (AT_FDCWD): Likewise.
71325
71326 2006-02-17  Eric Blake  <address@hidden>
71327
71328         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
71329
71330 2006-02-16  Simon Josefsson  <jas@extundo.com>
71331
71332         * modules/getaddrinfo (Depends-on): Add sys_socket.
71333
71334 2006-02-15  Simon Josefsson  <jas@extundo.com>
71335
71336         * build-aux/maint.mk: Add dsyntax-check rule.
71337
71338 2006-02-15  Eric Blake  <ebb9@byu.net>
71339
71340         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
71341         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
71342         'present but cannot compile' warnings on cygwin.
71343         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
71344         use ws2tcpip.h if sys/socket.h works.
71345         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
71346         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
71347
71348 2006-02-14  Simon Josefsson  <jas@extundo.com>
71349
71350         * modules/maintainer-makefile (Files): Rename.
71351
71352         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
71353         and (the local) Makefile.cfg to maint-cfg.mk.
71354
71355         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
71356         to the latter.
71357
71358         * modules/maintainer-makefile: New module.
71359
71360         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
71361         severaly stripped to make it possible to build it up from scratch
71362         with reliable tests.
71363
71364         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
71365         fixes to permit overriding the default actions when configure and
71366         makefile are not available.
71367
71368 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
71369
71370         Sync from coreutils.
71371         * modules/lstat (Depends-on): Don't depend on xalloc.
71372         (License): Change from GPL to LGPL, since this is now simply a
71373         replacement for a libc function.
71374
71375 2006-02-14  Jim Meyering  <jim@meyering.net>
71376
71377         Sync from coreutils.
71378
71379         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
71380         failure on deficient systems, and simplify gnulib lgpl dependencies.
71381         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
71382         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
71383
71384         * lib/xalloc-die.c: Remove unused definition of N_.
71385
71386 2006-02-14  Jim Meyering  <jim@meyering.net>
71387
71388         Sync from coreutils.
71389         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
71390         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
71391         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
71392         double-quote uses of that variable, to accommodate the rare case in
71393         which getmntent is available in none of the libraries checked.  This
71394         happens at least on FreeBSD 5.0.
71395
71396 2006-02-13  Simon Josefsson  <jas@extundo.com>
71397
71398         * gnulib-tool (Usage): Fix --import, from
71399         karl@freefriends.org (Karl Berry).
71400
71401 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
71402
71403         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
71404
71405 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
71406
71407         * lib/argp-namefrob.h: Restore changes accidentally lost during the
71408         "autoupdate" on 2005-12-12.
71409
71410 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
71411
71412         * modules/closeout (Depends-on): Remove atexit.
71413
71414 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
71415
71416         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
71417         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
71418
71419 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
71420
71421         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
71422         __EXTENSIONS__ if this causes compilation to fail.  Problem
71423         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
71424         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
71425
71426 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
71427
71428         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
71429         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
71430         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
71431         All uses changed.
71432
71433 2006-01-26  Simon Josefsson  <jas@extundo.com>
71434
71435         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
71436         prototype is visible on mingw32.
71437
71438         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
71439         for mingw32.
71440
71441         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
71442         mingw32).
71443
71444 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
71445
71446         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
71447         attempt to open for write; this always fails, at least on POSIX
71448         hosts.  This reinstates the 2006-01-09 change, which was
71449         inadvertently removed.
71450
71451 2006-01-26  Bruno Haible  <bruno@clisp.org>
71452
71453         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
71454         Reported by Paul Eggert.
71455
71456 2006-01-26  Bruno Haible  <bruno@clisp.org>
71457             Paul Eggert  <eggert@cs.ucla.edu>
71458
71459         * lib/stdbool_.h (_Bool)
71460         [(! (defined __cplusplus || defined __BEOS__)
71461           && !defined __GNUC__
71462           && !(defined __HP_cc || defined __xlc__
71463                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
71464                || defined __sgi))]:
71465         #define to signed char in these cases too; this simplifies
71466         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
71467         etc., separately) and makes it more conservative.
71468
71469 2006-01-25  Simon Josefsson  <jas@extundo.com>
71470
71471         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
71472         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
71473         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
71474
71475 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
71476
71477         * lib/argp-namefrob.h: Bugfix. Remove stray #
71478
71479 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
71480
71481         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
71482         so that we test the test.
71483         Check for yet another HP-UX cc bug involving *bool |= bool.
71484
71485 2006-01-25  Karl Berry  <karl@gnu.org>
71486
71487         * config/srclist.txt (vasnprintf.c): sync lost.
71488
71489 2006-01-25  Jim Meyering  <jim@meyering.net>
71490
71491         Sync from the stable (b5) branch of coreutils:
71492
71493         * lib/fts.c (fts_children): Don't let close() clobber errno from
71494         failed fchdir().
71495
71496         * lib/fts.c (fts_stat): When following a symlink-to-directory,
71497         don't necessarily interpret stat-fails+lstat-succeeds as indicating
71498         a dangling symlink.  That can also happen at least for ELOOP.
71499         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
71500         FYI, this bug predates the inclusion of fts.c in coreutils.
71501
71502         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
71503         in their own block, so pre-c99 compilers don't object.
71504
71505         Avoid the double-free (first in fts_read, second in fts_close) that
71506         would occur when an `active' directory is made inaccessible (e.g.,
71507         via chmod a-x) during a traversal.
71508         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
71509         before returning.  Reproduce this failure by
71510         mkdir -p a/b; cd a; chmod a-x . b
71511         Reported by Stavros Passas.
71512
71513 2006-01-25  Jim Meyering  <jim@meyering.net>
71514
71515         * lib/fileblocks.c: Remove more useless parentheses.
71516         * lib/readutmp.h: Likewise.
71517
71518 2006-01-25  Bruno Haible  <bruno@clisp.org>
71519
71520         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
71521         warnings.
71522         Reported by Paul Eggert.
71523
71524 2006-01-25  Bruno Haible  <bruno@clisp.org>
71525
71526         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
71527         rid of a trap command. For Solaris sh.
71528         Reported by Mark D. Baushke <mdb@gnu.org>.
71529
71530 2006-01-24  Simon Josefsson  <jas@extundo.com>
71531
71532         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
71533         Bruno.
71534
71535 2006-01-24  Karl Berry  <karl@gnu.org>
71536
71537         * config/srclist.txt (argp-namefrob.h): sync lost.
71538
71539 2006-01-24  Jim Meyering  <jim@meyering.net>
71540
71541         * modules/openat (Files): Add lib/intprops.h.
71542         From Mark D. Baushke.
71543
71544 2006-01-24  Jim Meyering  <jim@meyering.net>
71545
71546         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
71547         Reported by Mark D. Baushke.
71548
71549 2006-01-24  Jim Meyering  <jim@meyering.net>
71550
71551         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
71552
71553 2006-01-24  Bruno Haible  <bruno@clisp.org>
71554
71555         * modules/strnlen (Maintainer): Change from glibc to all.
71556
71557 2006-01-24  Bruno Haible  <bruno@clisp.org>
71558
71559         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
71560         Patch by Paul Eggert.
71561
71562 2006-01-24  Bruno Haible  <bruno@clisp.org>
71563
71564         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
71565         already has it.
71566         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
71567         2005-11-26.
71568
71569         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
71570         'signed char' to avoid problems with the built-in _Bool type.
71571         Reported by Paul Eggert on 2005-11-26.
71572
71573 2006-01-24  Bruno Haible  <bruno@clisp.org>
71574
71575         * gnulib-tool (func_import): Avoid constructing complicated sed
71576         expressions inside backquote.
71577         Report and solution by Mark D. Baushke <mdb@gnu.org>.
71578
71579 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
71580
71581         These changes imported from libc.
71582         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
71583         test and two separate function calls.
71584         * lib/strndup.c (__strndup): Add libc_hidden_def.
71585
71586 2006-01-23  Simon Josefsson  <jas@extundo.com>
71587
71588         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
71589         Remove the test_*_SOURCES variable: automake infers it by default.
71590         * modules/tls-tests: Likewise.
71591
71592 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
71593
71594         Work around porting bugs reported by Dieter in
71595         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
71596         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
71597         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
71598         Include "getopt.h" first, to check interface.
71599         (getenv): Declare only if defined HAVE_DECL_GETENV &&
71600         !HAVE_DECL_GETENV.
71601         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
71602         (__strndup): Revert to K&R-style function dfns, the glibc style.
71603         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
71604         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
71605         Include strnlen.h first, to get prototype properly.
71606         (strnlen): Renamed from __strnlen.
71607         Remove weak alias.
71608
71609 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
71610
71611         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
71612
71613 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
71614
71615         * config/srclist.txt: Adjust to reflect glibc reorganization.
71616         This affects only comments.
71617
71618 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
71619
71620          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
71621          Reported by Bruce Korb <bkorb@gnu.org>.
71622
71623 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
71624
71625         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
71626         to pacify gcc -Wswitch-default.
71627
71628 2006-01-22  Bruno Haible  <bruno@clisp.org>
71629
71630         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
71631         temporary buffer for sprintf, take into account the precision also
71632         for 'd', 'i', 'u', 'o', 'x', 'X'.
71633
71634 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
71635
71636         * modules/argp-tests: New module
71637         * tests/test-argp.c: New file
71638         * tests/test-argp-2.sh: New file
71639
71640 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
71641
71642         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
71643         (__argp_base_name): Removed
71644         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
71645         typo.
71646         (__argp_base_name): Provide macro definition or extern declaration
71647         depending on the configuration
71648
71649 2006-01-20  Simon Josefsson  <jas@extundo.com>
71650
71651         * modules/inet_ntop (Depends-on): Depend on sys_socket.
71652
71653 2006-01-20  Simon Josefsson  <jas@extundo.com>
71654
71655         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
71656
71657 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
71658
71659         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
71660         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
71661         Suggested by Bruno Haible.
71662
71663 2006-01-20  Karl Berry  <karl@gnu.org>
71664
71665         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
71666         until changes propagate, I guess.
71667
71668 2006-01-19  Simon Josefsson  <jas@extundo.com>
71669
71670         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
71671
71672 2006-01-19  Simon Josefsson  <jas@extundo.com>
71673
71674         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
71675
71676 2006-01-19  Simon Josefsson  <jas@extundo.com>
71677
71678         * gnulib-tool: Set check_PROGRAMS.
71679
71680         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
71681         modules/des-tests, modules/gc-arcfour-tests,
71682         modules/gc-arctwo-tests, modules/gc-des-tests,
71683         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
71684         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
71685         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
71686         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
71687         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
71688         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
71689         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
71690         test_*_SOURCES.
71691
71692 2006-01-18  Simon Josefsson  <jas@extundo.com>
71693
71694         * modules/socklen (Depends-on): Depend on sys_socket.
71695
71696 2006-01-18  Simon Josefsson  <jas@extundo.com>
71697
71698         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
71699         modules/des-tests, modules/gc-arcfour-tests,
71700         modules/gc-arctwo-tests, modules/gc-des-tests,
71701         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
71702         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
71703         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
71704         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
71705         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
71706         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
71707         $(EXEEXT) to automake TESTS variable, for mingw32.
71708
71709 2006-01-17  Simon Josefsson  <jas@extundo.com>
71710
71711         * modules/socklen (Include): Need sys/socket.h.
71712
71713 2006-01-17  Bruno Haible  <bruno@clisp.org>
71714
71715         * modules/ssize_t (Include): Add <sys/types.h>.
71716
71717 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
71718
71719         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
71720         it's not portable and it doesn't work with cross-compiles.
71721         Problem reported by Bruno Haible.  Fix missing-$ typo in
71722         'test "gl_cv_ignore_unused_libraries" ...' that prevented
71723         -zignore from being used with Sun's C compiler.
71724
71725 2006-01-12  Simon Josefsson  <jas@extundo.com>
71726
71727         * lib/base64.c: Fix warning, reported by Bruno Haible
71728         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
71729
71730 2006-01-12  Bruno Haible  <bruno@clisp.org>
71731
71732         * modules/ldd: New file.
71733         * build-aux/ldd.sh.in: New file.
71734         * MODULES.html.sh (Support for building libraries and executables): Add
71735         ldd.
71736
71737 2006-01-12  Bruno Haible  <bruno@clisp.org>
71738
71739         * m4/ldd.m4: New file.
71740
71741 2006-01-12  Bruno Haible  <bruno@clisp.org>
71742
71743         * gnulib-tool (func_import, func_create_testdir): Don't go into an
71744         endless loop while replacing $auxdir with build-aux.
71745
71746 2006-01-11  Simon Josefsson  <jas@extundo.com>
71747
71748         * lib/stdint_.h (SIZE_MAX): Add missing (.
71749
71750 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
71751
71752         Sync from coreutils.
71753         * lib/md5.c: Fix commentary typos.
71754         (alignof, UNALIGNED_P): No need for a GCC-specific version.
71755         * lib/md5.h (__attribute__): Remove; unused.
71756         * lib/sha1.c: Fix commentary to match md5 better.
71757         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
71758         so that we don't need to worry about alignment.  All uses changed.
71759         This merges the 2005-10-28 md5 change into sha1.
71760
71761 2006-01-11  Jim Meyering  <jim@meyering.net>
71762
71763         Sync from coreutils.
71764         * lib/md5.c (OP): Fix spacing.
71765
71766 2006-01-11  Bruno Haible  <bruno@clisp.org>
71767
71768         Ensure automatic ordering between gl_LOCK and gl_ARGP.
71769         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
71770         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
71771
71772 2006-01-11  Bruno Haible  <bruno@clisp.org>
71773
71774         Ensure automatic ordering between gl_LOCK and gl_ARGP.
71775         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
71776         the "early" section as well.
71777
71778 2006-01-11  Bruno Haible  <bruno@clisp.org>
71779
71780         Avoid "ar: no archive members specified" error on MacOS X.
71781         * gnulib-tool (func_modules_add_dummy): New function.
71782         (func_import, func_create_testdir): Invoke it.
71783
71784 2006-01-11  Bruno Haible  <bruno@clisp.org>
71785
71786         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
71787         with $auxdir in AC_CONFIG_FILES statements.
71788
71789 2006-01-11  Bruno Haible  <bruno@clisp.org>
71790
71791         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71792         Initialize also noinst_HEADERS to empty.
71793
71794 2006-01-11  Bruno Haible  <bruno@clisp.org>
71795
71796         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
71797         variables.
71798         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
71799         autoreconf.
71800
71801 2006-01-11  Bruno Haible  <bruno@clisp.org>
71802
71803         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
71804         overridable by the user.
71805         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71806
71807 2006-01-10  Simon Josefsson  <jas@extundo.com>
71808
71809         * modules/sys_socket: New file.
71810
71811 2006-01-10  Simon Josefsson  <jas@extundo.com>
71812
71813         * m4/sys_socket_h.m4: New file.
71814
71815 2006-01-10  Simon Josefsson  <jas@extundo.com>
71816
71817         * lib/socket_.h: New file.
71818
71819 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
71820
71821         * modules/readutmp (Maintainer): Add myself.
71822
71823 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
71824
71825         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
71826         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
71827         People who are still concerned with buggy memcmp implementations
71828         can invoke gl_FUNC_MEMCMP themselves.
71829
71830 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
71831
71832         * lib/regex_internal.h (BITSET_WORD_BITS):
71833         Work around a bug in 64-bit PGC (before version 6.1-2), where the
71834         preprocessor mishandles large unsigned values as if they were signed.
71835         Problem reported by Claudio Fontana in
71836         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
71837
71838 2006-01-10  Jim Meyering  <jim@meyering.net>
71839
71840         Avoid the double-free (first in fts_read, second in fts_close) that
71841         would occur when an `active' directory is made inaccessible (e.g.,
71842         via chmod a-x) during a traversal.
71843         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
71844         before returning.  Reproduce this failure by
71845         mkdir -p a/b; cd a; chmod a-x . b
71846         Reported by Stavros Passas.
71847
71848         Sync from coreutils.
71849         * lib/sha1.c: Tweak grammar in a comment.
71850
71851 2006-01-10  Jim Meyering  <jim@meyering.net>
71852
71853         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
71854         Patch by Joerg Sonnenberger.
71855
71856 2006-01-10  Bruno Haible  <bruno@clisp.org>
71857
71858         * modules/readutmp: Depend on module free.
71859         * modules/strtok_r: Depend on module restrict.
71860
71861 2006-01-10  Bruno Haible  <bruno@clisp.org>
71862
71863         * modules/gettext (configure.ac): Add an invocation of
71864         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
71865
71866 2006-01-10  Bruno Haible  <bruno@clisp.org>
71867
71868         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
71869         Reported by Werner Lemberg <wl@gnu.org>.
71870
71871 2006-01-10  Bruno Haible  <bruno@clisp.org>
71872
71873         * lib/localcharset.c: Update from GNU gettext.
71874
71875 2006-01-10  Bruno Haible  <bruno@clisp.org>
71876
71877         * lib/argp.h (__const): Remove macro. Use const instead.
71878         * lib/argp-fmtstream.h (__const): Likewise.
71879         * lib/glob_.h (__const): Remove macro.
71880         * lib/glob-libc.h: Use const instead of __const.
71881
71882 2006-01-10  Bruno Haible  <bruno@clisp.org>
71883
71884         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
71885         variable.
71886         Needed to avoid an automake error regarding the 'gettext' module.
71887
71888 2006-01-09  Simon Josefsson  <jas@extundo.com>
71889
71890         * modules/inet_ntop (Depends-on): Add restrict.
71891
71892 2006-01-09  Simon Josefsson  <jas@extundo.com>
71893
71894         * modules/gc-rijndael-tests (License): Put under LGPL.
71895
71896         * modules/gc-des-tests (License): Likewise.
71897
71898         * modules/gc-arcfour-tests (License): Likewise.
71899
71900         * modules/gc-arctwo-tests (License): Likewise.
71901
71902         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
71903
71904         * modules/gc-hmac-sha1-tests (Files): Likewise.
71905
71906         * modules/gc-hmac-md5-tests (License): Likewise.
71907
71908         * modules/gc-sha1-tests (License): Likewise.
71909
71910         * modules/gc-md5-tests (License): Likewise.
71911
71912         * modules/gc-md4-tests (License): Likewise.
71913
71914         * modules/gc-md2-tests (License): Likewise.
71915
71916         * modules/gc-tests (License): Likewise.
71917
71918         * modules/des-tests (License): Likewise.
71919
71920         * modules/md4-tests (License): Likewise.
71921
71922         * modules/md2-tests (License): Likewise.
71923
71924 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
71925
71926         Sync from coreutils:
71927
71928         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
71929         * modules/lib-ignore: New file.
71930         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
71931         chdir-safer.m4, lchmod.m4.
71932         * modules/openat: Add mkdirat.c, openat-priv.h.
71933
71934 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
71935
71936         Sync from coreutils.
71937         * m4/lib-ignore.m4: New file.
71938         * m4/lchmod.m4: New file.
71939
71940 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
71941
71942         Sync from coreutils.
71943         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
71944         for write access: POSIX says that must fail.
71945         * lib/fts.c (diropen): Likewise.
71946         * lib/save-cwd.c (save_cwd): Likewise.
71947         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
71948         well, for minor improvements on hosts that lack O_DIRECTORY.
71949         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
71950         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
71951         Fall back on chown if open failed with EACCES.
71952
71953         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
71954         Report an error at compile-time if only a 1-second nominal clock
71955         resolution is found.
71956
71957         * lib/lchmod.h: New file.
71958         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
71959         (make_dir_parents): Use lchown rather than chown, and
71960         lchmod rather than chmod.
71961
71962         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
71963         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
71964         "proc" reported by n0dalus.
71965
71966         * lib/mountlist.c: Include <limits.h>.
71967         (dev_from_mount_options)
71968         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
71969         New function.  It no longer assumes "dev=" has the System V meaning
71970         on Linux (since it doesn't).  It also parses "dev=" more carefully.
71971         (read_file_system_list)
71972         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
71973         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
71974         dev= in that case.
71975
71976         * lib/posixtm.h (PDS_PRE_2000): New macro.
71977         * lib/posixtm.c (year): Arg is now syntax_bits rather than
71978         allow_century.  All usages changed.  Reject dates outside the range
71979         1969-1999 if PDS_PRE_2000 is used.
71980
71981 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
71982
71983         Sync from coreutils.
71984         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
71985         (Time of day items): Mention the possibility of leap seconds.
71986         Problem reported by Dr. David Alan Gilbert.
71987
71988 2006-01-09  Jim Meyering  <jim@meyering.net>
71989
71990         Sync from coreutils.
71991
71992         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
71993
71994         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
71995
71996         * lib/modechange.c (mode_compile): Reject an invalid mode string
71997         that starts with an octal digit.  From Andreas Gruenbacher.
71998
71999         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
72000         and dup to open_safer and dup_safer, respectively.
72001         (openat_permissive): Fix typo in comment.
72002
72003         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
72004         "gettext.h"; either no longer needed or are guaranteed by openat.h.
72005         (_): Remove; no longer needed.
72006         (openat): Renamed from rpl_openat; no need for rpl_openat
72007         since openat.h renames openat for us.
72008         Replace most of the body with a call to openat_permissive,
72009         to avoid duplicate code.
72010         Port to (probably hypothetical) environments were mode_t is
72011         wider than int.
72012         (openat_permissive): Require mode arg, so that we can check
72013         types better.  Put it just after flags.  Change cwd failure
72014         indicator from pointer-to-bool to pointer-to-errno-value.
72015         All callers changed.
72016         Invoke openat_save_fail and/or openat_restore_fail if
72017         cwd_errno is null, so that openat can call us.
72018         (openat_permissive, fdopendir, fstatat, unlinkat):
72019         Simplify errno handling to avoid some duplicate code,
72020         as it's OK to set errno on success.
72021         * lib/openat.h: Revamp code so that function macros depend on
72022         __OPENAT_PREFIX only, not also on AT_FDCWD.
72023         (openat_ro): Remove.  Caller changed to use openat_permissive.
72024         (openat_permissive): Now a macro, if not a function.
72025         (openat_restore_fail, openat_save_fail): Now always functions,
72026         since mkdirat needs them even if __OPENAT_PREFIX is defined.
72027
72028         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
72029         and openat.c.
72030         * lib/mkdirat.c: Include openat-priv.h.
72031         Remove definitions of macros defined therein.
72032         * lib/openat.c: Likewise.
72033
72034         * lib/mkdirat.c (mkdirat): New file and function.
72035         * lib/openat.h (mkdirat): Declare.
72036
72037         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
72038
72039         * lib/openat.h (openat_permissive): Declare.
72040         (openat_ro): Define.
72041
72042         * lib/openat.c (EXPECTED_ERRNO): New macro.
72043         (openat_permissive): New function -- used in remove.c rewrite.
72044         (all functions): Set errno just before returning, only if there
72045         was an actual failure.
72046         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
72047
72048         Emulate openat-family functions using Linux's procfs, if possible.
72049         Idea and some code based on Ulrich Drepper's glibc changes.
72050
72051         * lib/openat.c: (BUILD_PROC_NAME): New macro.
72052         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
72053         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
72054         before falling back on save_cwd and restore_cwd.
72055         (fdopendir, fstatat, unlinkat): Likewise.
72056
72057         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
72058         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
72059
72060         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
72061         as second argument to va_arg.  Otherwise, some versions of gcc
72062         warn that `if this code is reached, the program will abort'.
72063
72064 2006-01-09  Jim Meyering  <jim@meyering.net>
72065
72066         Sync from coreutils.
72067         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
72068         Require openat-priv.h.
72069
72070 2006-01-09  Bruno Haible  <bruno@clisp.org>
72071
72072         * modules/strnlen (Include): Use strnlen.h.
72073
72074 2006-01-09  Bruno Haible  <bruno@clisp.org>
72075
72076         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
72077
72078 2006-01-09  Bruno Haible  <bruno@clisp.org>
72079
72080         * lib/sysexit_.h (EX_OK): New macro.
72081         Suggested by Martin Lambers <marlam@marlam.de>.
72082
72083 2006-01-09  Bruno Haible  <bruno@clisp.org>
72084
72085         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
72086         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
72087
72088 2006-01-09  Bruno Haible  <bruno@clisp.org>
72089
72090         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
72091         numbers.
72092
72093 2006-01-09  Bruno Haible  <bruno@clisp.org>
72094
72095         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
72096         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
72097         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
72098         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
72099
72100 2006-01-09  Bruno Haible  <bruno@clisp.org>
72101
72102         * build-aux/javacomp.sh.in: New file, moved from lib/.
72103         * modules/javacomp-script (Files): Update.
72104         (configure.ac): Add AC_CONFIG_FILES invocation.
72105         (EXTRA_DIST): Remove variable.
72106
72107         * build-aux/javaexec.sh.in: New file, moved from lib/.
72108         * modules/javaexec (Files): Update.
72109         (configure.ac): Add AC_CONFIG_FILES invocation.
72110         (EXTRA_DIST): Remove javaexec.sh.in.
72111
72112         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
72113         * modules/csharpcomp-script (Files): Update.
72114         (configure.ac): Add AC_CONFIG_FILES invocation.
72115         (EXTRA_DIST): Remove variable.
72116
72117         * build-aux/csharpexec.sh.in: New file, moved from lib/.
72118         * modules/csharpexec (Files): Update.
72119         (configure.ac): Add AC_CONFIG_FILES invocation.
72120         (EXTRA_DIST): Remove csharpexec.sh.in.
72121
72122 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
72123
72124         Sync from coreutils.
72125
72126         Add POSIX ACL support
72127         * lib/acl.h (copy_acl, set_acl): Add declarations.
72128         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
72129         systems other than Linux.
72130         (chmod_or_fchmod): New function: use fchmod when possible,
72131         and chmod otherwise.
72132         (file_has_acl): Add a POSIX ACL implementation, with a
72133         Linux-specific subcase.
72134         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
72135         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
72136         acls are unsupported.
72137         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
72138         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
72139         are unsupported.
72140
72141 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
72142
72143         Sync from coreutils.
72144         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
72145
72146 2006-01-07  Bruno Haible  <bruno@clisp.org>
72147
72148         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
72149         gl_EARLY.
72150
72151 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
72152
72153         * lib/strftime.c (tzname): Don't declare if it is already #defined.
72154         Problem reported for Mingw by Mark Junker.
72155
72156 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
72157
72158         * README: Gnulib normally doesn't generate a tarball.
72159
72160 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
72161
72162         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
72163         long int, not int, for nanosecond counts, so that people who are
72164         used to POSIX struct timespec won't be surprised.  Reported by Jim
72165         Meyering.
72166
72167 2005-12-28  Bruno Haible  <bruno@clisp.org>
72168
72169         * build-aux/config.rpath: Update from GNU gettext.
72170
72171 2005-12-16  Jim Meyering  <jim@meyering.net>
72172
72173         * modules/fprintftime: New module.
72174         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
72175
72176 2005-12-16  Jim Meyering  <jim@meyering.net>
72177
72178         * m4/fprintftime.m4: New file.
72179
72180 2005-12-16  Jim Meyering  <jim@meyering.net>
72181
72182         * lib/fprintftime.c, lib/fprintftime.h: New files.
72183
72184 2005-12-15  Simon Josefsson  <jas@extundo.com>
72185
72186         * modules/socklen (configure.ac): Fix M4 macro name, to align with
72187         new m4/socklen.m4.
72188
72189 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
72190
72191         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
72192         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
72193
72194 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
72195
72196         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
72197         * lib/argp-help.c (fill_in_uparams): Check if the constructed
72198         struct uparams is valid. Fall back to the default values if it is
72199         not.
72200
72201 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
72202
72203         * modules/argp (Files): Add argp-pin.c
72204         (Depends-on): dirname
72205         (lib_SOURCES): Add argp-pin.c
72206
72207 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
72208
72209         * m4/argp.m4:  Check if program_invocation_name and
72210         program_invocation_short_name are declared and define appropriate
72211         macros if they are not.
72212
72213 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
72214
72215         * lib/argp-help.c (__argp_base_name): New function
72216         (__argp_short_program_name): Rewrite using __argp_base_name
72217         * lib/argp-namefrob.h: Define program_invocation_name and
72218         program_invocation_short_name if requested
72219         (__argp_base_name): Add prototype
72220         * lib/argp-parse.c (argp_def): Use gettext wrappers
72221         (argp_default_parser): Use __argp_base_name
72222         * lib/argp-pin.c: New file. Defines program_invocation_name and
72223         program_invocation_short_name on systems that lack them.
72224
72225 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
72226
72227         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
72228         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
72229         porting problem reported by Georg Schwarz in
72230         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
72231
72232 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
72233
72234         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
72235         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
72236         porting problem reported by Georg Schwarz in
72237         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
72238
72239 2005-12-05  Bruno Haible  <bruno@clisp.org>
72240
72241         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
72242         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
72243         Reported by Mark Junker <mjscod@gmx.de>.
72244
72245 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
72246
72247         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
72248         Use implementation from Albert Chin, with some
72249         comments/corrections by Stepan Kasal and myself.
72250
72251 2005-12-02  Bruno Haible  <bruno@clisp.org>
72252
72253         * gnulib-tool (func_import): Accept GPLed build tool modules when
72254         --lgpl is given.
72255         * modules/csharpcomp-script: New file.
72256         * modules/csharpcomp: Depend on it.
72257         * modules/javacomp-script: New file.
72258         * modules/javacomp: Depend on it.
72259         Suggested by Simon Josefsson.
72260
72261 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
72262
72263         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
72264         statement, to work around an HP-UX 10.20 compiler bug reported by
72265         Peter O'Gorman.
72266
72267 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
72268
72269         * modules/savedir (Depends-on): Add openat.
72270
72271 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
72272
72273         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
72274         (uintmax_t) [defined uintmax_t]: Do not declare.
72275         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
72276         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
72277         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
72278         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
72279         sake of portability to weird hosts that C allows (though we don't
72280         know of any practical examples).
72281
72282         * lib/savedir.h (fdsavedir): New decl.
72283         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
72284         contains most of the former guts of savedir.
72285         (savedir): Use savedirstream.
72286         Include "openat.h".
72287
72288 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
72289
72290         * modules/obstack (Files): Add m4/ulonglong.m4.
72291         Problem reported by Davide Angelocola.
72292
72293 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
72294
72295         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
72296         coreutils no longer futzes with rounding modes.
72297
72298 2005-11-14  Jim Meyering  <jim@meyering.net>
72299
72300         * lib/mkstemp-safer.c: Include <config.h>, required for possible
72301         replacement of mkstemp.
72302
72303 2005-11-10  Simon Josefsson  <jas@extundo.com>
72304
72305         * lib/readline.c: Remove EOL.
72306
72307 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
72308
72309         * modules/gethrxtime (Depends-on): Add gettime.
72310
72311 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
72312
72313         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
72314         or gettimeofday; no longer needed.
72315
72316 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
72317
72318         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
72319         time business.
72320         (gethrxtime) [! (HAVE_NANOUPTIME
72321         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
72322         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
72323         our own approximation.
72324
72325 2005-11-08  Eric Blake  <ebb9@byu.net>
72326
72327         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
72328
72329 2005-11-08  Eric Blake  <ebb9@byu.net>
72330
72331         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
72332
72333 2005-11-04  Bruno Haible  <bruno@clisp.org>
72334
72335         * gnulib-tool: Implement --update mode.
72336
72337 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
72338
72339         Fix porting problem reported by Theodoros V. Kalamatianos.
72340         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
72341         Don't assume that futimes failing means we must fail.
72342
72343 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
72344
72345         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
72346         variables to suggest the intended function of the PATH_MAX check.
72347
72348 2005-10-30  Kean Johnston  <jkj@sco.com>
72349
72350         Trivial changes to support SCO systems.
72351         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
72352         as PATH_MAX.
72353         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
72354         where __ptr is null when no I/O is pending.
72355
72356 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
72357
72358         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
72359         leave errno alone.  Problem reported by Dmitry V. Levin.
72360
72361 2005-10-28  Simon Josefsson  <jas@extundo.com>
72362
72363         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
72364         Test more.
72365
72366         * tests/test-gc-md2.c, tests/test-md2.c: New files.
72367
72368         * modules/md2, modules/md2-tests: New files.
72369
72370 2005-10-28  Simon Josefsson  <jas@extundo.com>
72371
72372         * m4/inet_ntop.m4: More tests.
72373
72374         * m4/gc-md2.m4, md2.m4: New file.
72375
72376 2005-10-28  Simon Josefsson  <jas@extundo.com>
72377
72378         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
72379         "restrict" keywords, as per POSIX.  Protect the function
72380         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
72381         Don't use K&R prototypes.  Check the sprintf return values.
72382         Re-define EAFNOSUPPORT if not present.  Indent.
72383
72384         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
72385         suggested by Bruno Haible <bruno@clisp.org>.
72386
72387         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
72388
72389         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
72390
72391         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
72392         libgcrypt).
72393
72394         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
72395
72396         * lib/md2.h, lib/md2.c: New files.
72397
72398 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
72399
72400         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
72401         errno alone.  Problem reported by Frederic Jolliton.
72402
72403 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
72404
72405         * modules/verify (License): Change from GPL to LGPL.  This is a
72406         tiny module and there are apparently near-equivalents that are
72407         under the BSD license.
72408
72409 2005-10-24  Simon Josefsson  <jas@extundo.com>
72410
72411         * modules/sha1: Relicense to LGPL.
72412
72413 2005-10-24  Simon Josefsson  <jas@extundo.com>
72414
72415         * lib/md4.h: Shrink buffer size, now that we changed the type.
72416
72417 2005-10-23  Simon Josefsson  <jas@extundo.com>
72418
72419         * gnulib-tool (func_import): Fix --tests-base.
72420
72421 2005-10-22  Simon Josefsson  <jas@extundo.com>
72422
72423         * modules/arcfour (Depends-on): Need stdint.
72424
72425 2005-10-22  Simon Josefsson  <jas@extundo.com>
72426
72427         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
72428         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
72429
72430 2005-10-22  Simon Josefsson  <jas@extundo.com>
72431
72432         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
72433         suggested by Bruno Haible <bruno@clisp.org>.
72434
72435 2005-10-22  Simon Josefsson  <jas@extundo.com>
72436
72437         * lib/crc.h: Include stddef.h, for size_t.
72438
72439 2005-10-22  Simon Josefsson  <jas@extundo.com>
72440
72441         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
72442         arcfour_context struct (simplify test vector testing in GNU
72443         Shishi).
72444
72445 2005-10-21  Simon Josefsson  <jas@extundo.com>
72446
72447         * modules/des, modules/des-tests: New files.
72448
72449         * modules/gc-des, modules/gc-des-tests: New files.
72450
72451         * tests/test-des.c, tests/test-gc-des.c: New file.
72452
72453 2005-10-21  Simon Josefsson  <jas@extundo.com>
72454
72455         * modules/arctwo, modules/arctwo-tests: New files.
72456
72457         * tests/test-arctwo.c: New file.
72458
72459         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
72460
72461         * tests/test-gc-arctwo.c: New file.
72462
72463 2005-10-21  Simon Josefsson  <jas@extundo.com>
72464
72465         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
72466         Bruno Haible <bruno@clisp.org>.
72467
72468         * m4/gc-des.m4: New file.
72469
72470 2005-10-21  Simon Josefsson  <jas@extundo.com>
72471
72472         * m4/arctwo.m4: New file.
72473
72474         * m4/gc-arctwo.m4: New file.
72475
72476 2005-10-21  Simon Josefsson  <jas@extundo.com>
72477
72478         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
72479         block.
72480
72481 2005-10-21  Simon Josefsson  <jas@extundo.com>
72482
72483         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
72484         <bruno@clisp.org>.
72485
72486         * lib/hmac-sha1.c (hmac_sha1): Likewise.
72487
72488         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
72489         Bruno Haible <bruno@clisp.org>.
72490
72491         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
72492         <bruno@clisp.org>.
72493
72494 2005-10-21  Simon Josefsson  <jas@extundo.com>
72495
72496         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
72497
72498 2005-10-21  Simon Josefsson  <jas@extundo.com>
72499
72500         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
72501
72502 2005-10-21  Simon Josefsson  <jas@extundo.com>
72503
72504         * lib/des.h, lib/des.c: New files.
72505
72506         * lib/gc-gnulib.c: Support DES.c
72507
72508 2005-10-21  Simon Josefsson  <jas@extundo.com>
72509
72510         * lib/arctwo.h, lib/arctwo.c: New files.
72511
72512         * lib/gc-gnulib.c: Support ARCTWO.
72513
72514 2005-10-21  Simon Josefsson  <jas@extundo.com>
72515
72516         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
72517         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72518
72519 2005-10-21  Simon Josefsson  <jas@extundo.com>
72520
72521         * gnulib-tool (func_import, func_create_testdir): Define automake
72522         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
72523         Makefile.am snippet),
72524         suggested by Bruno Haible <bruno@clisp.org>.
72525
72526         * modules/gc (Makefile.am): Use it.
72527
72528 2005-10-21  Bruno Haible  <bruno@clisp.org>
72529
72530         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
72531         patch.
72532
72533 2005-10-19  Simon Josefsson  <jas@extundo.com>
72534
72535         * tests/test-gc-rijndael.c: New file.
72536
72537         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
72538
72539 2005-10-19  Simon Josefsson  <jas@extundo.com>
72540
72541         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
72542         interface too.
72543
72544 2005-10-19  Simon Josefsson  <jas@extundo.com>
72545
72546         * tests/test-gc-arcfour.c: New file.
72547
72548         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
72549
72550 2005-10-19  Simon Josefsson  <jas@extundo.com>
72551
72552         * modules/gc-md4, modules/gc-md4-tests: New file.
72553
72554         * tests/test-gc-md4.c: New file.
72555
72556 2005-10-19  Simon Josefsson  <jas@extundo.com>
72557
72558         * m4/gc-md4.m4: New file.
72559
72560 2005-10-19  Simon Josefsson  <jas@extundo.com>
72561
72562         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
72563         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
72564         <kasal@ucw.cz>.
72565
72566 2005-10-19  Simon Josefsson  <jas@extundo.com>
72567
72568         * m4/gc-arcfour.m4: New file.
72569
72570         * m4/gc-rijndael.m4: New file.
72571
72572 2005-10-19  Simon Josefsson  <jas@extundo.com>
72573
72574         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
72575
72576 2005-10-19  Simon Josefsson  <jas@extundo.com>
72577
72578         * lib/gc-gnulib.c: Support ARCFOUR.
72579
72580 2005-10-19  Simon Josefsson  <jas@extundo.com>
72581
72582         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
72583         support.
72584
72585         * lib/gc.h: Add ECB enum type.
72586
72587         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
72588
72589 2005-10-18  Simon Josefsson  <jas@extundo.com>
72590
72591         * tests/test-md5.c: New file.
72592
72593         * modules/md5-tests: New file.
72594
72595 2005-10-18  Simon Josefsson  <jas@extundo.com>
72596
72597         * tests/test-md4.c: New file.
72598
72599         * modules/md4, modules/md4-tests: New files.
72600
72601 2005-10-18  Simon Josefsson  <jas@extundo.com>
72602
72603         * m4/md4.m4: New file.
72604
72605 2005-10-18  Simon Josefsson  <jas@extundo.com>
72606
72607         * lib/md4.h, lib/md4.c: New files, based on md5.?.
72608
72609 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
72610
72611         * gnulib-tool (func_create_testdir): Omit the second check whether
72612         BUILT_SOURCES in nonempty.
72613
72614 2005-10-17  Simon Josefsson  <jas@extundo.com>
72615
72616         * tests/test-rijndael.c: New file.
72617
72618 2005-10-17  Simon Josefsson  <jas@extundo.com>
72619
72620         * modules/sha1: Depend on stdint instead of md5.
72621
72622         * modules/md5: Depend on stdint, remove uint32_t.
72623
72624 2005-10-17  Simon Josefsson  <jas@extundo.com>
72625
72626         * modules/gc-sha1-tests: New file.
72627
72628         * tests/test-gc-sha1.c: New file.
72629
72630 2005-10-17  Simon Josefsson  <jas@extundo.com>
72631
72632         * m4/md5.m4: Remove call to uint32_t.m4.
72633
72634 2005-10-17  Simon Josefsson  <jas@extundo.com>
72635
72636         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
72637
72638         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
72639         md5.h.
72640
72641         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
72642
72643         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
72644
72645 2005-10-17  Simon Josefsson  <jas@extundo.com>
72646
72647         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
72648
72649 2005-10-17  Simon Josefsson  <jas@extundo.com>
72650
72651         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
72652
72653 2005-10-17  Simon Josefsson  <jas@extundo.com>
72654
72655         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
72656
72657         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
72658
72659 2005-10-17  Bruno Haible  <bruno@clisp.org>
72660
72661         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
72662         that it can also be used in a test.
72663
72664 2005-10-16  Bruno Haible  <bruno@clisp.org>
72665
72666         * gnulib-tool (func_emit_tests_Makefile_am): Also define
72667         TESTS_ENVIRONMENT, so that individual tests can augment it.
72668
72669         * gnulib-tool (func_create_testdir): Use an intermediate target for
72670         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
72671         macros, like $(ALLOCA_H), which cannot be passed through the command
72672         line.
72673
72674 2005-10-15  Simon Josefsson  <jas@extundo.com>
72675
72676         * modules/rijndael-tests: New file.
72677
72678         * modules/rijndael: New file.
72679
72680 2005-10-15  Simon Josefsson  <jas@extundo.com>
72681
72682         * m4/rijndael.m4: New file.
72683
72684 2005-10-15  Simon Josefsson  <jas@extundo.com>
72685
72686         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
72687
72688         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
72689
72690 2005-10-14  Simon Josefsson  <jas@extundo.com>
72691
72692         * tests/test-arcfour.c: New file.
72693
72694         * modules/arcfour, modules/arcfour-tests: New files.
72695
72696 2005-10-14  Simon Josefsson  <jas@extundo.com>
72697
72698         * m4/arcfour.m4: New file.
72699
72700 2005-10-14  Simon Josefsson  <jas@extundo.com>
72701
72702         * lib/arcfour.h, lib/arcfour.c: New files.
72703
72704 2005-10-14  Roland McGrath  <roland@redhat.com>
72705
72706         Import from libc.  [BZ #1331]
72707         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
72708         macro argument.
72709         Reported by Matej Vela <vela@debian.org>.
72710
72711 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
72712
72713         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
72714         include <wchar.h>; no longer needed.
72715
72716 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
72717
72718         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
72719
72720 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
72721         and  Ulrich Drepper  <drepper@redhat.com>
72722
72723         Import from libc.
72724         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
72725         instead of inline stream orientation test and two separate
72726         function calls.  Pay no attention to USE_IN_LIBIO.
72727
72728 2005-10-13  Simon Josefsson  <jas@extundo.com>
72729
72730         * modules/gc-hmac-md5-tests: New file.
72731
72732         * tests/test-gc-hmac-sha1.c: New file.
72733
72734         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
72735
72736         * modules/gc-hmac-md5-tests: New file.
72737
72738         * tests/test-gc-md5.c: New file.
72739
72740         * modules/gc-md5-tests: New file.
72741
72742 2005-10-13  Simon Josefsson  <jas@extundo.com>
72743
72744         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
72745         Move memory allocation outside of loop.
72746
72747 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
72748
72749         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
72750         intermediate directory is in a read-only file system.  Problem
72751         reported by Eric Blake.
72752
72753 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
72754
72755         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
72756
72757 2005-10-12  Simon Josefsson  <jas@extundo.com>
72758
72759         * tests/test-hmac-sha1.c: New file.
72760
72761         * modules/hmac-sha1-tests: New file.
72762
72763         * modules/hmac-sha1: New file.
72764
72765 2005-10-12  Simon Josefsson  <jas@extundo.com>
72766
72767         * modules/gc-sha1: New file.
72768
72769 2005-10-12  Simon Josefsson  <jas@extundo.com>
72770
72771         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
72772
72773         * tests/test-gc-pbkdf2-sha1.c: New file.
72774
72775 2005-10-12  Simon Josefsson  <jas@extundo.com>
72776
72777         * modules/gc-md5, modules/gc-hmac-md5: New files.
72778
72779         * modules/gc (Files): Remove md5, memxor and hmac files.
72780
72781 2005-10-12  Simon Josefsson  <jas@extundo.com>
72782
72783         * m4/gc-pbkdf2-sha1.m4: New file.
72784
72785         * m4/gc-hmac-sha1.m4: New file.
72786
72787         * m4/gc-sha1: New file.
72788
72789         * m4/hmac-sha1.m4: New file.
72790
72791 2005-10-12  Simon Josefsson  <jas@extundo.com>
72792
72793         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
72794
72795         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
72796
72797 2005-10-12  Simon Josefsson  <jas@extundo.com>
72798
72799         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
72800         suggested by Bruno Haible <bruno@clisp.org>.
72801
72802 2005-10-12  Simon Josefsson  <jas@extundo.com>
72803
72804         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
72805
72806 2005-10-12  Simon Josefsson  <jas@extundo.com>
72807
72808         * lib/gc-pbkdf2-sha1.c: New file.
72809
72810         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
72811
72812 2005-10-12  Simon Josefsson  <jas@extundo.com>
72813
72814         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
72815
72816         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
72817
72818 2005-10-12  Simon Josefsson  <jas@extundo.com>
72819
72820         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
72821         GC_USE_HMAC_MD5, respectively.
72822
72823         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
72824         (gc_md5): Fix typo.
72825
72826         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
72827
72828         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
72829
72830         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
72831
72832 2005-10-12  Bruno Haible  <bruno@clisp.org>
72833
72834         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
72835         Reported by Stepan Kasal <kasal@ucw.cz>.
72836
72837 2005-10-11  Simon Josefsson  <jas@extundo.com>
72838
72839         * tests/test-crc.c: New file.
72840
72841         * modules/crc, modules/crc-tests: New files.
72842
72843 2005-10-11  Simon Josefsson  <jas@extundo.com>
72844
72845         * m4/crc.m4: New file.
72846
72847 2005-10-11  Simon Josefsson  <jas@extundo.com>
72848
72849         * lib/gc.h: Add gc_hash and gc_hash_buffer.
72850
72851         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
72852
72853         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
72854
72855 2005-10-11  Simon Josefsson  <jas@extundo.com>
72856
72857         * lib/crc.h, lib/crc.c: New files.
72858
72859         * lib/gc.h (gc_hash_buffer): Add doc.
72860
72861 2005-10-11  Bruno Haible  <bruno@clisp.org>
72862
72863         * modules/c-strcasestr: New file.
72864         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
72865
72866 2005-10-11  Bruno Haible  <bruno@clisp.org>
72867
72868         * modules/c-strcase: New file.
72869         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
72870
72871 2005-10-11  Bruno Haible  <bruno@clisp.org>
72872
72873         * lib/strcasecmp.c: Include limits.h.
72874         (strcasecmp): Avoid integer overflow on exotic platforms.
72875         * lib/strncasecmp.c: Include limits.h.
72876         (strncasecmp): Avoid integer overflow on exotic platforms.
72877         Reported by Paul Eggert.
72878
72879 2005-10-11  Bruno Haible  <bruno@clisp.org>
72880
72881         * lib/c-strcasestr.h: New file, from GNU gettext.
72882         * lib/c-strcasestr.c: New file, from GNU gettext.
72883
72884 2005-10-11  Bruno Haible  <bruno@clisp.org>
72885
72886         * lib/c-strcase.h: New file, from GNU gettext.
72887         * lib/c-strcasecmp.c: New file, from GNU gettext.
72888         * lib/c-strncasecmp.c: New file, from GNU gettext.
72889
72890 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
72891
72892         * modules/mempcpy (License): GPL -> LGPL.
72893         * modules/strchrnul (License): Likewise.
72894         * modules/sysexits (License): Likewise.
72895
72896 2005-10-08  Simon Josefsson  <jas@extundo.com>
72897
72898         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
72899
72900 2005-10-07  Simon Josefsson  <jas@extundo.com>
72901
72902         * m4/memxor.m4: Remove gl_C_RESTRICT call.
72903
72904 2005-10-06  Simon Josefsson  <jas@extundo.com>
72905
72906         * tests/test-hmac-md5.c: New file.
72907
72908         * modules/hmac-md5-tests: New file.
72909
72910         * modules/hmac-md5: New file.
72911
72912 2005-10-06  Simon Josefsson  <jas@extundo.com>
72913
72914         * m4/hmac-md5.m4: New file.
72915
72916         * m4/memxor.m4: Require gl_C_RESTRICT.
72917
72918 2005-10-06  Simon Josefsson  <jas@extundo.com>
72919
72920         * lib/memxor.c (memxor): Avoid casts and warnings.
72921
72922 2005-10-06  Simon Josefsson  <jas@extundo.com>
72923
72924         * lib/hmac-md5.c: New file.
72925
72926         * lib/hmac.h: New file.
72927
72928 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
72929
72930         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
72931         promotes to int, not unsigned int, to catch the AIX 5.3
72932         compiler bug.
72933
72934 2005-10-05  Simon Josefsson  <jas@extundo.com>
72935
72936         * modules/memxor: New file.
72937
72938         * modules/iconv (Files): Move config.rpath to havelib, it is used
72939         there.
72940
72941         * modules/havelib (Files): Add config.rpath.
72942
72943 2005-10-05  Simon Josefsson  <jas@extundo.com>
72944
72945         * m4/memxor.m4: New file.
72946
72947 2005-10-05  Simon Josefsson  <jas@extundo.com>
72948
72949         * lib/memxor.c (memxor): Fix compiler error.
72950
72951         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
72952         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
72953
72954         * lib/memxor.h, lib/memxor.c: New files.
72955
72956         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
72957         we assume all systems have it, suggested by Jim Meyering
72958         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
72959         any systems lack sys/socket.h; mingw32 is known to lack it, but we
72960         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
72961         same reasons.
72962
72963 2005-10-05  Simon Josefsson  <jas@extundo.com>
72964
72965         * config/srclist.txt: Add glibc bug 1423 for md5.h.
72966
72967 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
72968
72969         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
72970         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
72971         needed, since the source code now assumes these .h files.
72972
72973 2005-10-05  Derek Price  <derek@ximbiot.com>
72974
72975         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
72976
72977 2005-10-05  Bruno Haible  <bruno@clisp.org>
72978
72979         * modules/stdint (License): Change to LGPL.
72980
72981 2005-10-04  Simon Josefsson  <jas@extundo.com>
72982
72983         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
72984         D. Baushke" <mdb@gnu.org>.
72985
72986 2005-10-04  Bruno Haible  <bruno@clisp.org>
72987
72988         * lib/verify.h (verify_true): Provide alternative definition for C++.
72989
72990 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
72991
72992         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
72993         (SSIZE_MAX): New macro, if not already defined.
72994         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
72995         than 2 GiB.
72996
72997 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
72998
72999         Sync from coreutils.
73000         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
73001         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
73002         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
73003         ULLONG_MAX doesn't work with 2.7.2.1.
73004
73005 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
73006
73007         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
73008         From Ben Pfaff.
73009
73010         * modules/exclude (Depends-on): Depend on verify.
73011         * modules/strtoimax (Depends-on): Likewise.
73012         * modules/utimecmp (Depends-on): Likewise.
73013
73014 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
73015
73016         * lib/exclude.c: Include verify.h.
73017         (verify): Remove.  All callers changed to use verify.h's version.
73018         * lib/strtoimax.c: Likewise.
73019         * lib/utimecmp.c: Likewis.e
73020
73021         Sync from coreutils.
73022         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
73023         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
73024         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
73025         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
73026         bother returning ENOSYS if settimeofday or stime fails; just let
73027         them return whatever errno they want to return.
73028         * lib/utimens.c: Include unistd.h, for dup2.
73029         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
73030         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
73031
73032 2005-10-02  Jim Meyering  <jim@meyering.net>
73033
73034         Sync from coreutils.
73035         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
73036         from glibc-2.2.5 that fails for read-only files.
73037
73038 2005-10-02  Jim Meyering  <jim@meyering.net>
73039
73040         Sync from coreutils.
73041         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
73042         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
73043         `#if HAVE_CONFIG_H'.
73044         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
73045         Remove AT_FDCWD test.
73046         Do not consume the fd unless successful.
73047         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
73048         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
73049         block, so that we don't even try to compile it if settimeofday is
73050         available.  This works around a compilation failure on OSF1 V5.1,
73051         due to stime requiring a `long int*' while tv_sec is `int'.
73052
73053 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
73054
73055         Sync from coreutils.
73056         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
73057         against `yes', rather than just testing for nonempty.
73058
73059 2005-10-01  Simon Josefsson  <jas@extundo.com>
73060
73061         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
73062         and Darwin.
73063
73064         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
73065         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
73066         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
73067         freeaddrinfo and gai_strerror are declared by the POSIX headers.
73068         Check if struct addrinfo is declared.
73069
73070 2005-10-01  Simon Josefsson  <jas@extundo.com>
73071
73072         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
73073         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
73074         AI_* and EAI_* definitions.  Protect function declarations.
73075
73076 2005-10-01  Jim Meyering  <jim@meyering.net>
73077
73078         Sync from coreutils.
73079
73080         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
73081         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
73082         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
73083         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
73084         in the inet and nsl libraries.  Required on Solaris 5.7.
73085
73086 2005-10-01  Jim Meyering  <jim@meyering.net>
73087
73088         Sync from coreutils.
73089         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
73090         in the inet and nsl libraries.  Required on Solaris 5.7.
73091
73092 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
73093
73094         * lib/getdelim.c (getdelim): Remove unused variables.
73095
73096 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
73097
73098         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
73099         so that the code works even with ancient cpp.  Portability problem
73100         with GCC 2.7.2.1 reported by Thomas M.Ott.
73101
73102 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
73103
73104         * modules/regex (Depends-on): Add strcase.
73105
73106         * modules/gethostname (Licence): Change from GPL to LGPL, since
73107         gethostname.c is a trivial implementation of a standard library
73108         function.
73109         * modules/poll (License): Change from GPL to LGPL, since it's
73110         derived from LGPL code.
73111
73112 2005-09-27  Jim Meyering  <jim@meyering.net>
73113
73114         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
73115         HAVE_CONFIG_H.
73116
73117         * lib/intprops.h (signed_type_or_expr__): Define.
73118         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
73119         for unsigned types.
73120
73121 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
73122
73123         * lib/verify.h (verify_expr): Remove, replacing with:
73124         (verify_true): New macro that returns true instead of void.
73125         (verify_type__): Remove.
73126         (verify): Use verify_true rather than verify_type__.
73127
73128 2005-09-26  Bruno Haible  <bruno@clisp.org>
73129
73130         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
73131         is necessary.
73132         (lib_SOURCES): Remove mbchar.c.
73133         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
73134         (Files): Add m4/mbrtowc.m4.
73135         * modules/mbiter: Likewise.
73136         * modules/mbuiter: Likewise.
73137
73138 2005-09-26  Bruno Haible  <bruno@clisp.org>
73139
73140         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
73141         compile mbchar.c if they are not both present.
73142         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
73143         * m4/mbiter.m4 (gl_MBITER): Likewise.
73144         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
73145         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
73146         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
73147
73148 2005-09-25  Jim Meyering  <jim@meyering.net>
73149
73150         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
73151         also uses socklen_t.
73152
73153 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
73154
73155         * lib/utimens.c (ENOSYS): Define if not already defined.
73156         (futimens): Support having a null PATH if the file descriptor
73157         is nonnegative.
73158
73159         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
73160         Remove.
73161         (__attribute): Define to empty unless GCC 3.1 or later.
73162         This works around a core dump on OpenBSD 3.4, which has GCC
73163         2.95.3, which dumps core when given __attribute__(()).  It also
73164         simplifies other tests, since we really don't want to bother with
73165         worrying about which ancient version of GCC supported what.
73166         Original problem reported by Yoann Vandoorselaere, with part of
73167         the fix suggested by Derek Price.
73168
73169 2005-09-24  Jim Meyering  <jim@meyering.net>
73170
73171         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
73172         so we can once again use a positive bitfield width of 1 -- now we
73173         don't have to explain why we were using a bitfield width of 2.
73174
73175 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
73176
73177         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
73178         and similarly for the other external symbols.  Problem reported
73179         by James Gallager.
73180
73181         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
73182         bug reported by Jim Meyering.
73183
73184         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
73185         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
73186         not needed, since socklen is a prerequisite module.
73187
73188 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
73189
73190         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
73191         Problem reported by Eric Blake.
73192         (getaddrinfo): Initialize se so that it's not garbage.
73193         Redo internal storage allocation so that it doesn't make unportable
73194         assumptions about alignment.
73195         Fix a memory leak.
73196
73197         * lib/utimens.c (futimens): Use futimesat if available.
73198         Prefer it to futimes since it doesn't have the futimes bug.
73199
73200         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
73201         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
73202         Instead, declare a function that returns a pointer to an array,
73203         and use verify_type__ to declare the size of the array.
73204         Problem and germ of a solution reported by Bruno Haible.
73205         (verify_type__): Use 2, not 1, for bitfield size, to avoid
73206         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
73207
73208 2005-09-23  Jim Meyering  <jim@meyering.net>
73209
73210         Sync from coreutils.
73211         Correct build failure (socklen_t not defined) on at least
73212         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
73213         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
73214
73215 2005-09-23  Jim Meyering  <jim@meyering.net>
73216
73217         * modules/getaddrinfo (Depends-on): Add socklen.
73218
73219 2005-09-23  Bruno Haible  <bruno@clisp.org>
73220
73221         * tests/test-verify.c: New file.
73222
73223 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
73224
73225         Sync from coreutils.
73226
73227         * modules/argmatch (Depends-on): Add verify.
73228         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
73229         unistd-safer.
73230         * modules/save-cwd (Depends-on): Likewise.
73231
73232         * modules/openat (Files): Add lib/openat-die.c.
73233         (Depends-on): Remove error, exitfail.
73234         Add dirname.
73235
73236         * modules/verify: New file.
73237         * MODULES.html.sh (Diagnostics <assert.h>): New section,
73238         with "verify" module.
73239
73240 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
73241
73242         Sync from coreutils.
73243
73244         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
73245         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
73246         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
73247         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
73248         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
73249         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
73250         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
73251         Don't bother checking for string.h, stdlib.h, unistd.h.
73252         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
73253         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
73254         module's job.
73255         * m4/jm-macros.m4 (gl_MACROS): Likewise.
73256         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
73257
73258         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
73259         (gl_GETDATE): Use it.
73260
73261         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
73262
73263 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
73264
73265         Sync from coreutils.
73266
73267         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
73268         stat-time.h.
73269         * lib/argmatch.h: Include verify.h
73270         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
73271         (ARGMATCH_ASSERT): Remove; unused.
73272         * lib/canonicalize.c: Assume STDC_HEADERS.
73273         * lib/exclude.c: Include "strcase.h".
73274         * lib/regex_internal.h [!defined _LIBC]: Likewise.
73275         * lib/getusershell.c: Include stdio--.h rather than stdio.h
73276         and stdio-safer.h.
73277         (getusershell): Call fopen, not fopen_safer.
73278         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
73279         Do not include unistd-safer.h.
73280         (save_cwd): Don't call fd_safer; no longer needed
73281         now that we include fcntl--.h.
73282
73283         * lib/getdate.y (relative_time): New type.
73284         (RELATIVE_TIME_0): New constant.
73285         (parser_control): Use relative_time instead of doing it ourselves.
73286         (%union): Add new relative_time rel member.
73287         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
73288         Now typeless.
73289         (relunit, relunit_snumber): Now of type rel.
73290         (zone, rel, relunit, get_date): Adjust to above changes.
73291
73292         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
73293         Do not include unistd-safer.h.
73294         (getloadavg): Don't call fd_safer; no longer needed
73295         now that we include fcntl--.h.
73296
73297         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
73298         (make_dir_parents): Treat ENOSYS like EEXIST.
73299
73300         Improve quality of diagnostics on restore_cwd failure.
73301         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
73302         (make_dir_parents): Last arg is now int * (for errno), not bool *.
73303         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
73304         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
73305         each time through the loop.  Do not diagnose restore_cwd failure;
73306         that is the caller's job (and perhaps the caller does not care).
73307
73308         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
73309         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
73310         If the file already exists but is not a directory, don't bother
73311         to try to make its parents.
73312         Close potential file descriptor leak if we can't chdir("/") (!).
73313         Don't always return true if chdir($PWD) fails; return true only
73314         if the requested action was done successfully (except for the
73315         chdir($PWD)).
73316         Don't log final directory unless we actually made it.
73317         Refactor to avoid duplicate code to fix up permissions.
73318         Don't attempt to fix up parent permissions if chdir($PWD) fails.
73319
73320         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
73321         to make it a bit faster and (I hope) clearer.
73322         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
73323         Fix bug in formats like %2N.
73324
73325         * lib/verify.h: New file.
73326
73327 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
73328
73329         Sync from coreutils.
73330         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
73331
73332 2005-09-22  Jim Meyering  <jim@meyering.net>
73333
73334         Sync from coreutils.
73335
73336         * m4/lstat.m4 (gl_FUNC_LSTAT):
73337         Use AC_LIBSOURCES to require lstat.c and lstat.h.
73338         Remove obsolete comment.
73339         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
73340         * m4/xstrtod.m4: Likewise.
73341
73342         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
73343
73344 2005-09-22  Jim Meyering  <jim@meyering.net>
73345
73346         Sync from coreutils.
73347
73348         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
73349
73350         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
73351         the .tm_year member, since otherwise gcc-4.0 would now warn about
73352         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
73353
73354         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
73355         order to avoid an unsuppressible warning from gcc on 64-bit systems.
73356
73357         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
73358         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
73359         when run in a time zone for which daylight savings time is in effect
73360         for the starting date.
73361
73362         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
73363         stop us from restricting permissions of just-created absolute-named
73364         directories.
73365         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
73366         to restore initial working directory.
73367         * lib/mkdir-p.c (make_dir_parents): New parameter:
73368         different_working_dir, to tell caller if/when we change the working
73369         directory and are unable to return to the initial one.
73370         * lib/mkdir-p.h (make_dir_parents): Update prototype.
73371         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
73372         `return false'.  This fixes a bug introduced on 2004-07-30.
73373
73374         * lib/openat.c (fdopendir): Be sure to close the supplied
73375         file descriptor before returning.  This makes our replacement
73376         implementation a little closer to Solaris's, where fdopendir
73377         ties the file descriptor to the returned DIR* pointer.
73378         * lib/openat.c (unlinkat): New function.
73379         * lib/openat.h (unlinkat): Add prototype.
73380         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
73381         (openat_restore_fail): Rename from openat_restore_die.
73382         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
73383
73384         Provide an alternative to exiting immediately upon save_cwd or
73385         restore_cwd failure.  Now, an application can arrange e.g.,
73386         to perform a longjump in that case.
73387         * lib/openat.c: Include dirname.h.
73388         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
73389         (rpl_openat, fdopendir, fstatat): Call openat_save_die
73390         and openat_restore_die rather than calling error directly.
73391         Don't include "error.h" or "exitfail.h"; they're no longer needed.
73392
73393         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
73394         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
73395         define.
73396
73397         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
73398         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
73399                             int utc, int nanoseconds);
73400         Background:
73401         date should not have to allocate a megabyte of virtual memory to
73402         handle a format argument like +%1048575T.  When implemented with
73403         strftime, it must allocate such a buffer, use strftime to fill it
73404         in, print it, then free it.
73405         With fprintftime, it simply prints everything and exits.
73406         With no need for memory allocation, that's one fewer way to fail.
73407         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
73408         optional field width, not before, so we accept %9:z, not %:9z.
73409         (my_strftime): Be sure to use L_('x') for literals.
73410
73411         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
73412         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
73413         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
73414         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
73415         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
73416         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
73417         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
73418         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
73419         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
73420         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
73421         * lib/xgethostname.c, lib/xreadlink.c:
73422         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
73423
73424         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
73425         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
73426         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
73427         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
73428         and don't include <sys/file.h>).
73429
73430 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
73431
73432         Sync from coreutils.
73433
73434         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
73435         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
73436         [!LDAV_DONE]: Avoid unused variable warning.
73437
73438 2005-09-21  Bruno Haible  <bruno@clisp.org>
73439
73440         * lib/unicodeio.h (unicode_to_mb): New declaration.
73441
73442 2005-09-20  Derek Price  <derek@ximbiot.com>
73443
73444         * lib/getaddrinfo.c: Don't include <netdb.h> included from
73445         getaddrinfo.h.
73446
73447 2005-09-20  Bruno Haible  <bruno@clisp.org>
73448
73449         * gnulib-tool: Remove trailing slashes from the values specified for
73450         --source-base, --m4-base, --tests-base, --aux-dir.
73451         Suggested by Simon Josefsson <jas@extundo.com>.
73452
73453 2005-09-20  Bruno Haible  <bruno@clisp.org>
73454
73455         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
73456         func_modules_to_filelist, func_import, func_create_testdir): Make all
73457         sorting results locale-independent, so that gnulib-cache.m4 doesn't
73458         change when gnulib-tool is invoked in a different locale.
73459
73460 2005-09-19  Simon Josefsson  <jas@extundo.com>
73461
73462         * m4/socklen.m4: Fix typo.
73463
73464 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73465
73466         Use a consistent style for including <config.h>.
73467         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
73468         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
73469         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
73470         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
73471         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
73472         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
73473         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
73474         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
73475         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
73476         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
73477         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
73478         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
73479         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
73480         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
73481         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
73482         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
73483         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
73484         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
73485         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
73486         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
73487         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
73488         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
73489         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
73490         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
73491         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
73492         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
73493         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
73494         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
73495         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
73496         lib/xstrtoumax.c, lib/yesno.c:
73497         Standardize inclusion of config.h.
73498         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
73499         lib/inttostr.h:  Removed inclusion of config.h from header files.
73500         * lib/inttostr.c:  Adjusted in-tree users.
73501         * lib/timespec.h: Remove superfluous warning to include config.h.
73502         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
73503         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
73504         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
73505         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
73506         config.h with HAVE_CONFIG_H.
73507
73508 2005-09-19  Jim Meyering  <jim@meyering.net>
73509
73510         * modules/pathmax (License): Change to LGPL.
73511
73512 2005-09-19  Derek Price  <derek@ximbiot.com>
73513
73514         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
73515
73516 2005-09-19  Bruno Haible  <bruno@clisp.org>
73517
73518         * gnulib-tool (import): Provide default for --tests-base.
73519
73520 2005-09-19  Bruno Haible  <bruno@clisp.org>
73521
73522         * doc/quote.texi: New file, extracted from gnulib.texi.
73523         * doc/ctime.texi: New file, extracted from gnulib.texi.
73524         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
73525         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
73526         * doc/gnulib.texi: Include them.
73527
73528 2005-09-18  Bruno Haible  <bruno@clisp.org>
73529
73530         Portability fix.
73531         * gnulib-tool (func_readlink): New function.
73532         (func_ln_if_changed): Use it.
73533
73534 2005-09-18  Bruno Haible  <bruno@clisp.org>
73535
73536         * gnulib-tool: Support --with-tests also with --import.
73537         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
73538         (func_import): Use variables $testsbase and $inctests. Emit a
73539         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
73540         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
73541         SUBDIRS += $testsdir.
73542         (func_create_testdir): Update.
73543
73544 2005-09-18  Bruno Haible  <bruno@clisp.org>
73545
73546         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
73547         instead of $dry_run.
73548         (func_cp_if_changed, func_mv_if_changed): Remove functions.
73549         (func_ln_if_changed): Don't handle dry-run here.
73550         (func_import): In dry-run mode, detect more precisely which actions
73551         would be performed, and don't use "...ing" verbs.
73552
73553 2005-09-18  Bruno Haible  <bruno@clisp.org>
73554
73555         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
73556         (func_import): Use join on two temporary files instead of three nested
73557         loops, in order to determine which files are new or old.
73558
73559 2005-09-18  Bruno Haible  <bruno@clisp.org>
73560
73561         * gnulib-tool (func_import): Comment out code that spits out the
73562         new files with --dry-run.
73563
73564 2005-09-18  Bruno Haible  <bruno@clisp.org>
73565
73566         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
73567
73568 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
73569
73570         * lib/stat-time.h: New file.
73571         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
73572         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
73573         in a different way.
73574         (timespec_cmp): New function.
73575         * lib/utimecmp.c: Include stat-time.h.
73576         (SYSCALL_RESOLUTION): Depend on whether various struct stat
73577         members exist, not on the obsolescent ST_MTIM_NSEC.
73578         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
73579
73580 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
73581
73582         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
73583
73584 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
73585
73586         * MODULES.html.sh (File system functions): Add stat-time.
73587         * modules/stat-time: New file.
73588         * modules/timespec (Files): Remove m4/st_mtim.m4; this
73589         is now done in a different way, by the stat-time module.
73590         * modules/utimecmp (Depends-on): Add stat-time.
73591
73592 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
73593
73594         * m4/st_mtim.m4: Remove.  Superseded by...
73595         * m4/stat-time.m4: New file.
73596         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
73597         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
73598
73599 2005-09-15  Derek Price  <derek@ximbiot.com>
73600
73601         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
73602
73603 2005-09-15  Derek Price  <derek@ximbiot.com>
73604
73605         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
73606         * lib/regex_internal.c: Ditto, using this...
73607         (__GNUC_PREREQ): ...new macro.
73608         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
73609         using...
73610         (__GNUC_PREREQ): ...this new macro.
73611
73612         * lib/strstr.h: Include string.h. Define strstr as a macro here.
73613
73614 2005-09-15  Derek Price  <derek@ximbiot.com>
73615             Paul Eggert  <eggert@cs.ucla.edu>
73616
73617         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
73618         changes, consolidating in...
73619         * lib/regex_internal.h: ...this file.
73620
73621 2005-09-13  Jim Meyering  <jim@meyering.net>
73622
73623         * lib/canon-host.c: Filter through gnu indent and reword comments
73624         slightly.
73625         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
73626
73627 2005-09-13  Derek Price  <derek@ximbiot.com>
73628
73629         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
73630         failure.
73631         Reported by Jim Meyering  <jim@meyering.net>.
73632
73633 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
73634
73635         * lib/base64.c: Typo.
73636         (base64_encode): Put b64str in initialized data section.
73637
73638 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
73639
73640         Merge glibc and coreutils changes into gnulib, plus a few
73641         extra fixes.
73642         * lib/md5.c: Use #error rather than a string.
73643         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
73644         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
73645         (__attribute__): Define to empty for non recent-GCC.
73646         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
73647         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
73648         Renamed from their non-__ counterparts, with new macros replacing
73649         them if not _LIBC.  Add __THROW attribute.
73650         (rol): Remove.
73651         (struct md5_ctx): Align buffer if using GCC.
73652         * lib/sha1.h (struct sha1_ctx): Likewise.
73653         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
73654         The old name was backwards.
73655         (NOTSWAP): Remove; not used.
73656         (rol): New macro, moved here from md5.h.
73657         (sha1_process_block): Remove a FIXME that doesn't make sense.
73658
73659 2005-09-12  Derek Price  <derek@ximbiot.com>
73660
73661         Return usable errors from canon-host.
73662         * lib/canon-host.h: New file.
73663         * lib/canon-host.c (canon_host): Wrap...
73664         (canon_host_r): ...this new function, which now relies exclusively on
73665         getaddrinfo.
73666         (ch_strerror): New function.
73667         (last_cherror): New global.
73668         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
73669         interface.
73670         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
73671         void *.
73672         (freeaddrinfo): Free ai->ai_canonname when set.
73673
73674 2005-09-12  Derek Price  <derek@ximbiot.com>
73675
73676         Make canon-host require getaddrinfo.
73677         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
73678         AC_LIBSOURCE canon-host.h.  Call...
73679         (gl_PREREQ_CANON_HOST): ...this new function, which requires
73680         gl_GETADDRINFO.
73681         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
73682
73683 2005-09-12  Derek Price  <derek@ximbiot.com>
73684
73685         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
73686         LGPL.
73687         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
73688
73689 2005-09-12  Derek Price  <derek@ximbiot.com>
73690
73691         * lib/gai_strerror.c: Include config.h when available.  Include
73692         getaddrinfo.h before other headers to test interface.
73693         Reported by Larry Jones <lawrence.jones@ugs.com>.
73694
73695 2005-09-12  Derek Price  <derek@ximbiot.com>
73696             Paul Eggert  <eggert@cs.ucla.edu>
73697
73698         * modules/glob (Files): Add glob-libc.h.
73699
73700 2005-09-12  Derek Price  <derek@ximbiot.com>
73701             Paul Eggert  <eggert@cs.ucla.edu>
73702
73703         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
73704         glob_.h, glob-libc.h.
73705         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
73706
73707 2005-09-12  Derek Price  <derek@ximbiot.com>
73708             Paul Eggert  <eggert@cs.ucla.edu>
73709
73710         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
73711         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
73712         protecting things that should be done only in gnulib contexts.
73713         * lib/glob_.h: New file, containing only the glob things needed for
73714         gnulib.
73715         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
73716         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
73717         (glob, globfree, glob_pattern_p): Now defined simply in terms of
73718         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
73719         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
73720         and to respect the namespace rules better.
73721
73722 2005-09-08  Simon Josefsson  <jas@extundo.com>
73723
73724         * modules/socklen: New file.
73725
73726 2005-09-08  Simon Josefsson  <jas@extundo.com>
73727
73728         * m4/socklen.m4: New file.
73729
73730 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73731
73732         * modules/utimens (Files): Add m4/utimbuf.m4, since
73733         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
73734         Reported by Sergey Poznyakoff.
73735
73736 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73737
73738         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
73739         definitions, since that's the preferred style in glibc.
73740         Fix a minor spacing issue, and update copyright notice to match
73741         glibc's.
73742
73743 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73744
73745         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
73746
73747 2005-09-06  Simon Josefsson  <jas@extundo.com>
73748
73749         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
73750         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
73751
73752 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
73753
73754         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
73755         warning.
73756
73757 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
73758
73759         * config/srclist.txt: Add glibc bug 1302.
73760
73761 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
73762
73763         Change bitset word type from unsigned int to unsigned long int,
73764         as this has better performance on typical 64-bit hosts.
73765         Port bitset code to hosts with unusual word sizes.
73766         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
73767         (build_collating_symbol):
73768         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
73769         argument is a bitset.  This is merely a style issue, but it makes
73770         it clearer that an entire array is expected.
73771         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
73772         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
73773         Port to the case where bitset_word is not the same as unsigned int.
73774         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
73775         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
73776         Likewise.
73777         * lib/regexec.c (check_dst_limits_calc_pos_1,
73778         check_subexp_matching_top):
73779         (build_trtable, group_nodes_into_DFAstates):
73780         Likewise.
73781         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
73782         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
73783         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
73784         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
73785         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
73786         * lib/regcomp.c (optimize_subexps, lower_subexp):
73787         Work even if bitset_word has holes in its bitwise representation.
73788         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
73789         * lib/regexec.c (check_dst_limits_calc_pos_1,
73790         check_subexp_matching_top):
73791         Likewise.
73792         * lib/regex_internal.c (re_string_reconstruct):
73793         Don't assume UCHAR_MAX == 255.
73794         * lib/regex_internal.h (bitset_set_all): Likewise.
73795         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
73796         All uses changed.
73797         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
73798         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
73799         All uses changed.
73800         (BITSET_WORD_MAX): New macro.
73801         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
73802         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
73803         (bitset_empty, bitset_copy):
73804         Prefer sizeof (bitset) to multiplying it out ourselves.
73805         (bitset_not_merge): Remove; unused.
73806         (bitset_contain): Return bool, not unsigned int with one bit on.
73807         All callers changed.
73808         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
73809         alignment than re_node_set; do this by defining a new internal
73810         type struct dests_alloc and using it to allocate memory.
73811
73812 2005-09-05  Bruno Haible  <bruno@clisp.org>
73813
73814         * gnulib-tool (func_import): Fix comparison in handling of symbolic
73815         links.
73816
73817 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
73818
73819         * modules/size_max (Makefile.am): Add size_max.h
73820
73821 2005-09-04  Derek Price  <derek@ximbiot.com>
73822
73823         * gnulib-tool (func_import): Fix reversed $symbolic logic.
73824
73825 2005-09-03  Simon Josefsson  <jas@extundo.com>
73826
73827         * gnulib-tool: Fix typo.
73828
73829 2005-09-03  Simon Josefsson  <jas@extundo.com>
73830
73831         * config/srclist.txt: Add glibc bug 1293.
73832
73833 2005-09-03  Derek Price  <derek@ximbiot.com>
73834
73835         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
73836         From Larry Jones <lawrence.jones@ugs.com>.
73837
73838 2005-09-02  Simon Josefsson  <jas@extundo.com>
73839
73840         * modules/socklen: New file.
73841
73842 2005-09-02  Simon Josefsson  <jas@extundo.com>
73843
73844         * modules/havelib: New module.
73845
73846         * modules/gettext, modules/iconv, modules/lock, modules/readline:
73847         Use havelib.
73848
73849 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
73850
73851         Check for arithmetic overflow when calculating sizes, to prevent
73852         some buffer-overflow issues.  These patches are conservative, in the
73853         sense that when I couldn't determine whether an overflow was possible,
73854         I inserted a run-time check.
73855         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
73856         macros.
73857         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
73858         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
73859         (re_xnrealloc, re_x2nrealloc): New inline functions.
73860         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
73861         parse_bracket_exp):
73862         (build_equiv_class, build_charclass): Check for arithmetic overflow
73863         in size expression calculations.
73864         * lib/regex_internal.c (re_string_realloc_buffers):
73865         (build_wcs_upper_buffer, re_node_set_add_intersect):
73866         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
73867         (re_dfa_add_node, register_state): Likewise.
73868         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
73869         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
73870         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
73871         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
73872
73873 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
73874
73875         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
73876         m4/ulonglong.m4.  Problem reported by Martin Lambers.
73877
73878 2005-09-02  Bruno Haible  <bruno@clisp.org>
73879
73880         Support for lib vs. lib64 distinction on biarch platforms.
73881         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
73882         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
73883         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
73884
73885 2005-09-02  Bruno Haible  <bruno@clisp.org>
73886
73887         * gnulib-tool (import): In the other first-use case, provide defaults
73888         as well.
73889
73890 2005-09-02  Bruno Haible  <bruno@clisp.org>
73891
73892         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
73893         patches not yet found in the latest gettext release.
73894
73895 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
73896
73897         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
73898         to avoid a collision with bits/local_lim.h in glibc.
73899         All uses changed.  Problem reported by Dmitry V. Levin in
73900         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
73901
73902         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
73903         bugs in int versus size_t comparisons.
73904         (re_string_context_at): Fix bug where the code assumed that
73905         Idx is signed.
73906
73907         Use bool where appropriate.
73908         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
73909         All callers changed.
73910         (calc_eclosure_iter): Likewise, for ROOT arg.
73911         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
73912         (build_charclass_op): Likewise, for NON_MATCH arg.
73913         * lib/regex_internal.c (re_string_allocate, re_string_construct):
73914         (re_string_construct_common): Likewise, for ICASE arg.
73915         * lib/regexec.c (re_search_2_stub, re_search_stub):
73916         Likewise, for RET_LEN arg.
73917         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
73918         (set_regs): Likewise, for FL_BACKTRACK arg.
73919         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
73920         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
73921         (calc_eclosure_iter, parse_bracket_exp):
73922         Use bool for internal variables that are booleans.
73923         * lib/regexec.c (re_search_internal, check_matching,
73924         proceed_next_node):
73925         (set_regs, build_sifted_states, sift_states_bkref):
73926         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
73927         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
73928         (find_collation_sequence_value):
73929         Likewise.
73930         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
73931         (re_node_set_compare):
73932         Return bool, not int. All callers changed.
73933         * lib/regexec.c (check_halt_node_context, check_dst_limits):
73934         (build_trtable, check_node_accept): Likewise.
73935         * lib/regex_internal.h: Include stdbool.h.
73936
73937         Fix bugs uncovered when converting to bool.
73938         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
73939         failure instead of charging ahead blindly.
73940         * lib/regex_internal.c (register_state): Likewise.
73941         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
73942         for freeing internal storage.
73943         (group_nodes_into_DFA_states): Use unsigned int, not int, for
73944         bitset pieces used as boolean, to avoid undefined behavior
73945         on hosts that do int overflow checking.
73946
73947 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
73948
73949         * config/srclist.txt: Add glibc bugs 1285-1287.
73950
73951 2005-09-01  Jim Meyering  <jim@meyering.net>
73952
73953         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
73954         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
73955         Require gl_STAT_MACROS, too.
73956
73957 2005-09-01  Bruno Haible  <bruno@clisp.org>
73958
73959         * gnulib-tool (import): In the first-use case, provide defaults.
73960
73961 2005-09-01  Bruno Haible  <bruno@clisp.org>
73962
73963         * gnulib-tool (func_import): Remove the .tmp files.
73964
73965 2005-09-01  Bruno Haible  <bruno@clisp.org>
73966
73967         * gnulib-tool (func_import): Fix handling of symbolic links.
73968
73969 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
73970
73971         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
73972         old glibc regex code mishandles strings longer than 2**31 bytes.
73973         This patch fixes this when the regex code is used in gnulib
73974         (i.e., outside glibc).
73975
73976         This patch should not affect the use of the regex code inside
73977         glibc.  No doubt this problem also needs to be handled for glibc
73978         as well, but the result will be an incompatible change to the
73979         glibc ABI, and the old ABI will have to be supported too.  That
73980         can be the the subject for another patch.
73981
73982         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
73983         governing whether the rest of this patch is active.  By default,
73984         the macro is disabled and the patch has no effect.
73985         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
73986         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
73987         (struct re_pattern_buffer, re_search, re_search_2, re_match):
73988         (re_match_2, re_set_registers): Use the new types.
73989         * lib/regex_internal.h (Idx, re_hashval_t): New types.
73990         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
73991         New macros.
73992         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
73993         (re_string_context_at, bin_tree_t, re_dfastate_t):
73994         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
73995         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
73996         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
73997         (re_string_char_size_at, re_string_wchar_at):
73998         (re_string_elem_size_at):
73999         Use the new types and macros to port to 64-bit hosts.
74000         Use unsigned types for internal values, so that the code
74001         mostly works even for arrays larger than SSIZE_MAX.
74002         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
74003         (search_duplicated_node, calc_eclosure_iter, fetch_number):
74004         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
74005         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
74006         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
74007         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
74008         (calc_inveclosure, parse_dup_op, build_range_exp):
74009         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
74010         (fetch_number, create_token_tree, mark_opt_subexp):
74011         Likewise.
74012         * lib/regex_internal.c (re_string_construct_common,
74013         create_ci_newstate):
74014         (create_cd_newstate, re_string_allocate, re_string_construct):
74015         (re_string_realloc_buffers, build_wcs_upper_buffer):
74016         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
74017         (re_string_reconstruct, re_string_peek_byte_case):
74018         (re_string_fetch_byte_case, re_string_context_at):
74019         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
74020         (re_node_set_init_copy, re_node_set_add_intersect):
74021         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
74022         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
74023         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
74024         (re_acquire_state, re_acquire_state_context, register_state):
74025         Likewise.
74026         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
74027         search_cur_bkref_entry):
74028         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
74029         (re_search_internal, re_search_2_stub, re_search_stub)
74030         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
74031         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
74032         (update_cur_sifted_state, check_dst_limits):
74033         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
74034         (check_subexp_limits, sift_states_bkref, merge_state_array):
74035         (check_subexp_matching_top, get_subexp, get_subexp_sub):
74036         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
74037         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
74038         (expand_bkref_cache, check_node_accept_bytes):
74039         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
74040         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
74041         (acquire_init_state_context, check_halt_node_context):
74042         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
74043         (sift_states_backward, clean_state_log_if_needed):
74044         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
74045         (find_recover_state, transit_state_sb, transit_state_mb):
74046         (transit_state_bkref, build_trtable, match_ctx_clean):
74047         Likewise.
74048         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
74049         to work around an assumption that REG_MISSING is negative.
74050
74051         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
74052         (seek_collating_symbol_entry) [defined _LIBC]:
74053         (lookup_collation_sequence_value) [defined _LIBC]:
74054         (build_range_exp, build_collating_symbol) [defined _LIBC]:
74055         Use prototypes rather than old-style function definitions.
74056         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
74057         (transit_state_sb) [0]:
74058         (find_collation_sequence_value) [defined _LIBC]: Likewise.
74059
74060         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
74061         rm_eo.
74062
74063         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
74064         (optimize_subexps, lower_subexp):
74065         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
74066         since the signed shift might overflow.  Use 1u<<31 instead.
74067         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
74068         Likewise.
74069         * lib/regexec.c (check_dst_limits_calc_pos_1,
74070         check_subexp_matching_top): Likewise.
74071
74072         * lib/regcomp.c (optimize_subexps, lower_subexp):
74073         Use CHAR_BIT rather than 8, for clarity.
74074         * lib/regexec.c (check_dst_limits_calc_pos_1):
74075         (check_subexp_matching_top): Likewise.
74076         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
74077         have to worry about portability issues when shifting it left.
74078         Remove no-longer-needed test for table_size > 0.
74079         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
74080         in a word, as the resulting behavior is undefined.
74081         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
74082         in one case, a <= should have been an <, and in another case the
74083         whole test was missing.
74084         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
74085         the standard name CHAR_BIT.
74086         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
74087         this is not true on one's complement and signed-magnitude hosts.
74088
74089         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
74090         next_last_offset.
74091         (struct re_dfa_t): Remove unused member states_alloc.
74092         * lib/regcomp.c (init_dfa): Don't initialize unused members.
74093
74094 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74095
74096         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
74097         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
74098         and large-file glibc and in 32-bit large-file Solaris.
74099
74100 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74101
74102         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
74103         lengths fit in regoff_t; this isn't true if regoff_t is the same
74104         width as size_t.
74105         * lib/regex.c (re_search_internal): 5th arg is LAST_START
74106         (= START + RANGE) instead of RANGE.  This avoids overflow
74107         problems when regoff_t is the same width as size_t.
74108         All callers changed.
74109         (re_search_2_stub): Check for overflow when adding the
74110         sizes of the two strings.
74111         (re_search_stub): Check for overflow when adding START
74112         to RANGE; if it occurs, substitute the extreme value.
74113
74114 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74115
74116         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
74117
74118 2005-08-31  Jim Meyering  <jim@meyering.net>
74119
74120         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
74121         a pointer-to-const.
74122         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
74123         (register_state): Likewise.
74124         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
74125         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
74126         (group_nodes_into_DFAstates): Likewise.
74127
74128 2005-08-31  Jim Meyering  <jim@meyering.net>
74129
74130         * check-module: Add a FIXME comment.
74131
74132 2005-08-31  Eric Blake  <ebb9@byu.net>
74133
74134         * modules/unistd-safer (Files): Add unistd--.h.
74135         * modules/stdio-safer (Files): Add stdio--.h.
74136
74137 2005-08-31  Derek Price  <derek@ximbiot.com>
74138
74139         * lib/getdelim.c (getdelim): Return EOF on EOF.
74140         Reported by Larry Jones <lawrence.jones@ugs.com>.
74141
74142 2005-08-31  Bruno Haible  <bruno@clisp.org>
74143
74144         Avoid unnecessary diffs in the generated lib/Makefile.am.
74145         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
74146         the generated files.
74147         (func_import): Don't set cmd.
74148
74149 2005-08-31  Bruno Haible  <bruno@clisp.org>
74150
74151         * lib/strstr.c: Include <stddef.h>, for NULL.
74152         * lib/strcasestr.c: Likewise.
74153         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
74154
74155 2005-08-31  Bruno Haible  <bruno@clisp.org>
74156
74157         * gnulib-tool: New option --macro-prefix.
74158         (func_import): Use macro_prefix.
74159         (import): Handle option --macro-prefix.
74160
74161 2005-08-31  Bruno Haible  <bruno@clisp.org>
74162
74163         * gnulib-tool (import): Rename most ac_* variables to cached_*.
74164         Also use new variables cached_lgpl, cached_libtool.
74165
74166 2005-08-31  Bruno Haible  <bruno@clisp.org>
74167
74168         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
74169         always instantiating them.
74170
74171 2005-08-31  Bruno Haible  <bruno@clisp.org>
74172
74173         * gnulib-tool (func_import): Read the previous cached settings
74174         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
74175         earlier added by gnulib but are now dropped. Warn when a gnulib file
74176         overwrites a non-gnulib file.
74177
74178 2005-08-31  Bruno Haible  <bruno@clisp.org>
74179
74180         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
74181         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
74182         projects that don't keep autogenerated files in CVS. Put into
74183         actioncmd only the specified modules, not the transitive closure.
74184
74185 2005-08-31  Bruno Haible  <bruno@clisp.org>
74186
74187         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
74188         Create directories that shall be filled.
74189         (import): Don't look for gl_* macros in configure.ac. Recurse across
74190         all directories containing a gnulib-cache.m4 files, if meaningful.
74191
74192 2005-08-31  Bruno Haible  <bruno@clisp.org>
74193
74194         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
74195         (import): Set seen_libtool when we see gl_LIBTOOL.
74196
74197 2005-08-31  Bruno Haible  <bruno@clisp.org>
74198
74199         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
74200         declaration macro definitions from generated gnulib.m4.
74201
74202 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
74203
74204         * lib/iconvme.h: Add prototype for iconv_alloc.
74205
74206 2005-08-29  Simon Josefsson  <jas@extundo.com>
74207
74208         * lib/iconvme.c: Fix errno.
74209
74210 2005-08-29  Bruno Haible  <bruno@clisp.org>
74211
74212         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
74213         that it works when the directory contains spaces.
74214
74215 2005-08-29  Bruno Haible  <bruno@clisp.org>
74216
74217         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
74218
74219 2005-08-29  Bruno Haible  <bruno@clisp.org>
74220
74221         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
74222         Emit more advice.
74223
74224 2005-08-29  Bruno Haible  <bruno@clisp.org>
74225         and Stepan Kasal  <kasal@ucw.cz>
74226
74227         * check-module: If more parameters are given, check each of them
74228         separately; add more exceptions, as noted by Jim Meyering.
74229         (check_module): New procedure.
74230         (%exempt_header): Now contains all exceptions.
74231
74232 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
74233
74234         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
74235
74236 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
74237
74238         * lib/iconvme.c: Split iconv_string into iconv_alloc.
74239
74240 2005-08-28  Bruno Haible  <bruno@clisp.org>
74241
74242         * m4/gnulib-tool.m4: New file.
74243
74244 2005-08-27  Jim Meyering  <jim@meyering.net>
74245
74246         * modules/unistd-safer (Files): Add pipe-safer.c.
74247         * modules/fcntl-safer (Files): Add creat-safer.c.
74248
74249 2005-08-27  Jim Meyering  <jim@meyering.net>
74250
74251         * m4/stdlib-safer.m4: New file.  From coreutils.
74252         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
74253         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
74254         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
74255         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
74256         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
74257
74258 2005-08-27  Jim Meyering  <jim@meyering.net>
74259
74260         * lib/fopen-safer.c: Merge minor changes from coreutils.
74261         * lib/dup-safer.c: Likewise.
74262         * lib/fd-safer.c: Likewise.
74263
74264         Merge from coreutils.
74265         * lib/stdio--.h: New file.
74266         * lib/stdlib--.h: New file.
74267         * lib/mkstemp-safer.c: New file.
74268
74269         GNU tar needs these.
74270         * lib/pipe-safer.c: New file.
74271         * lib/creat-safer.c: New file.
74272         * lib/fcntl--.h (creat): Define to creat_safer.
74273         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
74274         * lib/unistd--.h (pipe): Define to pipe_safer.
74275         * lib/unistd-safer.h: Declare pipe_safer.
74276
74277 2005-08-26  Simon Josefsson  <jas@extundo.com>
74278
74279         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
74280         Haible <bruno@clisp.org>.
74281
74282 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
74283
74284         * lib/regex_internal.h: Remove all references to
74285         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
74286         or better.
74287         (bitset_not, bitset_merge, bitset_not_merge):
74288         (bitset_mask, re_string_allocate, re_string_construct):
74289         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
74290         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
74291         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
74292         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
74293         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
74294         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
74295         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
74296         (re_acquire_state_context):
74297         Remove unnecessary forward decls.
74298         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
74299         Put __attribute at function definition,
74300         now that the function decl has been removed.
74301         * lib/regex_internal.c (re_string_peek_byte_case):
74302         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
74303         Likewise.
74304
74305 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
74306
74307         * m4/regex.m4: Add AC_PREREQ(2.50).
74308         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
74309
74310 2005-08-25  Simon Josefsson  <jas@extundo.com>
74311
74312         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
74313         __fsetlocking.
74314
74315 2005-08-25  Simon Josefsson  <jas@extundo.com>
74316
74317         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
74318         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
74319         GLIBC specific code.
74320
74321 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74322
74323         Make regex safe for g++.  This fixes one real bug (an "err"
74324         that should have been "*err").  g++ problem reported by
74325         Sam Steingold.
74326         * lib/regex_internal.h (re_calloc): New macro, consistent with
74327         re_malloc etc.  All callers of calloc changed to use re_calloc.
74328         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
74329         not int.  All callers changed.
74330         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
74331         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
74332         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
74333         (find_recover_state): Change "err" to "*err"; this fixes what
74334         appears to be a real bug.
74335         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
74336         versus int.
74337
74338 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74339
74340         * modules/regex (Depends-on): Add malloc, since the code
74341         assumes that !malloc(0) means failure.
74342
74343 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74344
74345         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
74346
74347         alloca modernization/simplification for regex.
74348         * lib/regex.c: Remove portability cruft for alloca.  This no longer
74349         needs to be at the start of the file, and can be moved into
74350         regex_internal.h and simplified.
74351         * lib/regex_internal.h: Include <alloca.h>.
74352         (__libc_use_alloca) [!defined _LIBC]: New macro.
74353         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
74354         now works outside glibc.
74355
74356 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74357
74358         * config/srclist.txt: Add glibc bugs 1241, 1245.
74359
74360 2005-08-25  Jim Meyering  <jim@meyering.net>
74361
74362         * lib/open-safer.c: Include <config.h>.
74363         Otherwise, we'd lose LARGEFILE support in any file using
74364         e.g. "fcntl--.h"
74365
74366 2005-08-25  Bruno Haible  <bruno@clisp.org>
74367
74368         * m4/minmax.m4: Require autoconf 2.52.
74369         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
74370         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
74371         alternatives of translit over the alphabet.
74372         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
74373
74374 2005-08-24  Simon Josefsson  <jas@extundo.com>
74375
74376         * tests/test-getpass.c: New file.
74377
74378 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74379
74380         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
74381         for GNU regex features.
74382
74383 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74384
74385         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
74386         * lib/regex.h (regerror): Likewise.
74387
74388         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
74389         requires this.  (The code never needed it.)
74390
74391         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
74392         All uses of recently-renamed identifiers changed to use the new,
74393         POSIX-compliant names.  The code will build and run just fine
74394         without these changes, but it's better to eat our own dog food
74395         and use the standard-conforming names.
74396
74397         * lib/regex.h: Fix a multitude of POSIX name space violations.
74398         These changes have an effect only for programs that define
74399         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
74400         do not change anything for programs compiled in the normal way.
74401         Also, there is no effect on the ABI.
74402
74403         (_REGEX_SOURCE): New macro.
74404         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
74405         defined and _GNU_SOURCE is not; this fixes a name space violation.
74406
74407         Rename the following macros to obey POSIX requirements.
74408         The old names are still visible as macros if _REGEX_SOURCE is defined.
74409         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
74410         RE_BACKSLASH_ESCAPE_IN_LISTS.
74411         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
74412         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
74413         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
74414         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
74415         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
74416         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
74417         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
74418         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
74419         (REG_INTERVALS): renamed from RE_INTERVALS.
74420         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
74421         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
74422         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
74423         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
74424         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
74425         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
74426         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
74427         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
74428         RE_UNMATCHED_RIGHT_PAREN_ORD.
74429         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
74430         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
74431         (REG_DEBUG): renamed from RE_DEBUG.
74432         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
74433         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
74434         unusual, since we can't clash with the POSIX REG_ICASE.
74435         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
74436         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
74437         (REG_NO_SUB): renamed from RE_NO_SUB.
74438         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
74439         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
74440         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
74441         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
74442         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
74443         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
74444         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
74445         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
74446         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
74447         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
74448         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
74449         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
74450         RE_SYNTAX_POSIX_MINIMAL_BASIC.
74451         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
74452         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
74453         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
74454         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
74455         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
74456         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
74457         (REG_FIXED): Renamed from REGS_FIXED.
74458         (REG_NREGS): Renamed from RE_NREGS.
74459
74460         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
74461         of other REG_* macros, since POSIX says the user is allowed to
74462         #undef these macros selectively.
74463
74464         (reg_errcode_t): Update comment stating what other tables need
74465         to be consistent.
74466
74467         Rename the following enum values to obey POSIX requirements.
74468         The old names are still visible as macros.
74469         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
74470         is not defined, since GNU is supposed to be a superset of POSIX as
74471         much as possible, and since we want reg_errcode_t to be a signed
74472         type for implementation consistency.
74473         (_REG_NOERROR): Renamed from REG_NOERROR.
74474         (_REG_NOMATCH): Renamed from REG_NOMATCH.
74475         (_REG_BADPAT): Renamed from REG_BADPAT.
74476         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
74477         (_REG_ECTYPE): Renamed from REG_ECTYPE.
74478         (_REG_EESCAPE): Renamed from REG_EESCAPE.
74479         (_REG_ESUBREG): Renamed from REG_ESUBREG.
74480         (_REG_EBRACK): Renamed from REG_EBRACK.
74481         (_REG_EPAREN): Renamed from REG_EPAREN.
74482         (_REG_EBRACE): Renamed from REG_EBRACE.
74483         (_REG_BADBR): Renamed from REG_BADBR.
74484         (_REG_ERANGE): Renamed from REG_ERANGE.
74485         (_REG_ESPACE): Renamed from REG_ESPACE.
74486         (_REG_BADRPT): Renamed from REG_BADRPT.
74487         (_REG_EEND): Renamed from REG_EEND.
74488         (_REG_ESIZE): Renamed from REG_ESIZE.
74489         (_REG_ERPAREN): Renamed from REG_ERPAREN.
74490         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
74491         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
74492         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
74493         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
74494
74495         (_REG_RE_NAME, _REG_RM_NAME): New macros.
74496         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
74497         changed.  But support the old name if the new one is not defined
74498         and if _REGEX_SOURCE.
74499
74500         Change the following member names in struct re_pattern_buffer.
74501         The old names are still supported if !_REGEX_SOURCE.
74502         The new names are always supported, regardless of _REGEX_SOURCE.
74503         (re_buffer): Renamed from buffer.
74504         (re_allocated): Renamed from allocated.
74505         (re_used): Renamed from used.
74506         (re_syntax): Renamed from syntax.
74507         (re_fastmap): Renamed from fastmap.
74508         (re_translate): Renamed from translate.
74509         (re_can_be_null): Renamed from can_be_null.
74510         (re_regs_allocated): Renamed from regs_allocated.
74511         (re_fastmap_accurate): Renamed from fastmap_accurate.
74512         (re_no_sub): Renamed from no_sub.
74513         (re_not_bol): Renamed from not_bol.
74514         (re_not_eol): Renamed from not_eol.
74515         (re_newline_anchor): Renamed from newline_anchor.
74516
74517         Change the following member names in struct re_registers.
74518         The old names are still supported if !_REGEX_SOURCE.
74519         The new names are always supported, regardless of _REGEX_SOURCE.
74520         (rm_num_regs): Renamed from num_regs.
74521         (rm_start): Renamed from start.
74522         (rm_end): Renamed from end.
74523
74524         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
74525         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
74526         Prepend __ to parameter names.
74527
74528         Undo yesterday's changes.
74529
74530 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74531
74532         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
74533         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
74534         lib/regex.c.
74535
74536 2005-08-24  Jim Meyering  <jim@meyering.net>
74537
74538         Sync from coreutils.
74539         * m4/fcntl-safer.m4: New file.
74540
74541         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
74542         and object files for this module.
74543
74544 2005-08-24  Jim Meyering  <jim@meyering.net>
74545
74546         Sync from coreutils.
74547         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
74548
74549 2005-08-24  Jim Meyering  <jim@meyering.net>
74550
74551         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
74552         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
74553
74554 2005-08-24  Jim Meyering  <jim@meyering.net>
74555
74556         * modules/fcntl-safer: New module.
74557         * modules/fts (Depends-on): Add fcntl-safer.
74558         * MODULES.html.sh (File descriptor based Input/Output):
74559         Add fcntl-safer.
74560
74561 2005-08-24  Bruno Haible  <bruno@clisp.org>
74562
74563         Support for unit test modules.
74564         * modules/README: Mention tests modules.
74565         * modules/TEMPLATE-TESTS: New file.
74566         * gnulib-tool: New options --extract-tests-module, --with-tests and
74567         --tests-base (unused for the moment).
74568         (testsbase, inctests): New variables.
74569         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
74570         (func_verify_module): Exclude TEMPLATE-TESTS.
74571         (func_verify_nontests_module, func_verify_tests_module): New functions.
74572         (func_get_dependencies): Add implicit dependency for tests modules.
74573         (func_get_tests_module): New function.
74574         (func_modules_transitive_closure): When --with-tests was specified,
74575         include the unit tests as well, unless explicitly avoided.
74576         (func_emit_lib_Makefile_am): Ignore the tests modules here.
74577         (func_emit_tests_Makefile_am): New function.
74578         (func_create_testdir): When --with-tests was specified, emit a
74579         tests/ directory.
74580         * MODULES.html.sh (Future developments): Update.
74581
74582 2005-08-24  Bruno Haible  <bruno@clisp.org>
74583
74584         * modules/tls-tests: New file.
74585         * tests/test-tls.c: New file, from GNU gettext.
74586
74587 2005-08-24  Bruno Haible  <bruno@clisp.org>
74588
74589         * modules/lock-tests: New file.
74590         * tests/test-lock.c: New file, from GNU gettext.
74591
74592 2005-08-24  Bruno Haible  <bruno@clisp.org>
74593
74594         * lib/lock.h: Add multiple inclusion guard.
74595         * lib/tls.h: Add multiple inclusion guard.
74596
74597 2005-08-24  Bruno Haible  <bruno@clisp.org>
74598
74599         * gnulib-tool: Add support for the --aux-dir option to
74600         --create-testdir, --create-megatestdir, --test, --megatest.
74601         (func_create_testdir, func_create_megatestdir): Optionally emit a
74602         AC_CONFIG_AUX_DIR directive.
74603         (create-testdir, create-megatestdir, test, megatest): Provide a
74604         default value for $auxdir.
74605
74606 2005-08-24  Bruno Haible  <bruno@clisp.org>
74607
74608         * gnulib-tool (import): Use compound statement instead of subshell
74609         where possible.
74610
74611 2005-08-24  Bruno Haible  <bruno@clisp.org>
74612
74613         * gnulib-tool (import): Change --aux-dir default to "build-aux".
74614
74615 2005-08-24  Bruno Haible  <bruno@clisp.org>
74616
74617         * gnulib-tool (func_version): Update.
74618
74619 2005-08-24  Bruno Haible  <bruno@clisp.org>
74620
74621         * gnulib-tool (func_import, func_create_testdir,
74622         func_create_megatestdir): Quote all autoconf macro arguments.
74623
74624 2005-08-24  Bruno Haible  <bruno@clisp.org>
74625
74626         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
74627         option --force, because --force causes the aclocal.m4 of each
74628         subdirectory to be newer than the corresponding config.h.in.
74629
74630 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
74631
74632         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
74633         All contents moved to gl_REGEX.
74634         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
74635         assume that it does.
74636
74637 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
74638
74639         * lib/regex.h (REG_NOSYS)
74640         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
74641         Define, since POSIX requires it as of 2001.
74642         (_REG_ENOSYS)
74643         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
74644         New private symbol, used to keep the enum signed in all cases.
74645         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
74646         Youngman in
74647         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
74648
74649         * lib/regex_internal.c (re_string_skip_chars, register_state):
74650         (calc_state_hash):
74651         Remove forward decls; no longer needed now that we use prototypes.
74652         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
74653         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
74654         (clean_state_log_if_needed): Likewise.
74655
74656 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
74657
74658         * config/srclist.txt: Add glibc bugs 1231-1233.
74659
74660 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74661
74662         Fix problems reported by Sam Steingold in
74663         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
74664         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
74665         assumed that reg_errcode_t is a signed type, which is not
74666         necessarily true if _XOPEN_SOURCE is not defined.
74667         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
74668         since some compilers warn about it otherwise.
74669
74670 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74671
74672         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
74673         (init_word_char, create_initial_state, duplicate_node_closure):
74674         (fetch_token, peek_token_bracket, build_range_exp):
74675         (build_collating_symbol): Remove forward decls; no longer needed
74676         now that we use prototypes.
74677
74678         * lib/regcomp.c:
74679         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
74680         (re_compile_fastmap_iter, regcomp, regerror, regfree):
74681         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
74682         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
74683         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
74684         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
74685         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
74686         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
74687         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
74688         (build_range_exp, build_collating_symbol, parse_bracket_exp):
74689         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
74690         (build_charclass, build_charclass_op, fetch_number, create_tree):
74691         (create_token_tree, mark_opt_subexp, duplicate_tree):
74692         Use prototypes rather than old-style definitions.
74693
74694         * lib/regex_internal.c:
74695         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
74696         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
74697         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
74698         (re_string_reconstruct, re_string_peek_byte_case):
74699         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
74700         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
74701         (re_node_set_init_copy, re_node_set_add_intersect):
74702         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
74703         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
74704         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
74705         (re_acquire_state, re_acquire_state_context, register_state):
74706         (create_ci_newstate, create_cd_newstate, free_state):
74707         Likewise.
74708         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
74709         re_search_2):
74710         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
74711         (re_search_internal, prune_impossible_nodes):
74712         (acquire_init_state_context, check_matching, static):
74713         (check_halt_node_context, check_halt_state_context, proceed_next_node):
74714         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
74715         (update_regs, sift_states_backward, build_sifted_states):
74716         (clean_state_log_if_needed, merge_state_array):
74717         (update_cur_sifted_state, add_epsilon_src_nodes):
74718         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
74719         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
74720         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
74721         (find_recover_state, check_subexp_matching_top, transit_state_mb):
74722         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
74723         (check_arrival, check_arrival_add_next_nodes):
74724         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
74725         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
74726         (check_node_accept_bytes, check_node_accept, extend_buffers):
74727         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
74728         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
74729         (sift_ctx_init):
74730         Likewise.
74731
74732         * lib/regex_internal.h:
74733         (re_string_allocate, re_string_construct, re_string_reconstruct):
74734         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
74735         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
74736         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
74737         (re_string_context_at, re_string_peek_byte_case):
74738         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
74739         is defined, since we now use prototypes always.
74740
74741         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
74742         C89 or better.  All uses removed.
74743
74744 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74745
74746         * config/srclist.txt: Add glibc bugs 1220-1227.
74747
74748 2005-08-20  Jim Meyering  <jim@meyering.net>
74749
74750         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
74751         of unused local, dfa.
74752
74753 2005-08-20  Bruno Haible  <bruno@clisp.org>
74754
74755         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
74756
74757 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74758
74759         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
74760         (re_node_set_insert_last, re_dfa_add_node):
74761         Rename local variables to avoid GCC shadowing warnings.
74762
74763 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74764
74765         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
74766         [defined lint]: Suppress bogus uninitialized-variable warnings.
74767
74768         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
74769         and let the caller return REG_ESPACE if out of space.  This
74770         removes an uninitialied-variable warning with GCC 4.0.1, and also
74771         avoids taking the address of a local variable.  All callers
74772         changed.
74773
74774 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74775
74776         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
74777         $LIBCSRC/posix/regexec.c.
74778         Add glibc bug 1217 for regcomp.c.
74779
74780 2005-08-19  Jim Meyering  <jim@meyering.net>
74781
74782         * lib/regexec.c (proceed_next_node): Redo local variables to
74783         avoid GCC shadowing warnings.
74784
74785 2005-08-18  Bruno Haible  <bruno@clisp.org>
74786
74787         * lib/strstr.c (strstr): Fix return value in multibyte case.
74788         * lib/strcasestr.c (strcasestr): Likewise.
74789
74790 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
74791
74792         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
74793
74794 2005-08-17  Jim Meyering  <jim@meyering.net>
74795
74796         Make the %s format (seconds since the epoch) work for a negative
74797         number and when used with a zero-padded field width, e.g. %015s.
74798
74799         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
74800         label so that it precedes the code to set `digits'.  Otherwise,
74801         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
74802         print `00-22'.  Now, it prints `-0022', as it should.
74803
74804 2005-08-17  Bruno Haible  <bruno@clisp.org>
74805
74806         * modules/strstr (Files): Add m4/mbrtowc.m4.
74807         (Depends-on): Add mbuiter.
74808
74809 2005-08-17  Bruno Haible  <bruno@clisp.org>
74810
74811         * modules/strcasestr: New file.
74812         * MODULES.html.sh (String handling, based on ANSI C 89): Add
74813         strcasestr.
74814
74815 2005-08-17  Bruno Haible  <bruno@clisp.org>
74816
74817         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
74818
74819 2005-08-17  Bruno Haible  <bruno@clisp.org>
74820
74821         * modules/mbuiter: New file.
74822         * MODULES.html.sh (Extended multibyte and wide character utilities):
74823         Add mbuiter.
74824
74825 2005-08-17  Bruno Haible  <bruno@clisp.org>
74826
74827         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
74828         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
74829
74830 2005-08-17  Bruno Haible  <bruno@clisp.org>
74831
74832         * m4/strcasestr.m4: New file.
74833
74834 2005-08-17  Bruno Haible  <bruno@clisp.org>
74835
74836         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
74837         * lib/strstr.c: Completely rewritten, with multibyte locale support.
74838
74839 2005-08-17  Bruno Haible  <bruno@clisp.org>
74840
74841         * lib/strcasestr.h: New file.
74842         * lib/strcasestr.c: New file.
74843
74844 2005-08-17  Bruno Haible  <bruno@clisp.org>
74845
74846         * lib/strcasecmp.c: Use mbuiter.h.
74847
74848 2005-08-17  Bruno Haible  <bruno@clisp.org>
74849
74850         * lib/mbuiter.h: New file.
74851
74852 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
74853
74854         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
74855         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
74856         and gl_GETOPT are both invoked via different paths (as happens
74857         with GNU tar CVS because it uses both argp and getopt), the former
74858         wins.
74859
74860 2005-08-16  Bruno Haible  <bruno@clisp.org>
74861
74862         * modules/tls: New file.
74863         * MODULES.html.sh (Multithreading): Add tls.
74864
74865 2005-08-16  Bruno Haible  <bruno@clisp.org>
74866
74867         * modules/strnlen1: New file.
74868         * MODULES.html.sh (String handling): Add strnlen1.
74869
74870 2005-08-16  Bruno Haible  <bruno@clisp.org>
74871
74872         * modules/strcase (Files): Add m4/mbrtowc.m4.
74873         (Depends-on): Add strnlen1, mbchar.
74874
74875 2005-08-16  Bruno Haible  <bruno@clisp.org>
74876
74877         * modules/mbiter: New file.
74878         * MODULES.html.sh (Extended multibyte and wide character utilities):
74879         Add mbiter.
74880
74881 2005-08-16  Bruno Haible  <bruno@clisp.org>
74882
74883         * modules/mbfile: New file.
74884         * MODULES.html.sh (Extended multibyte and wide character utilities):
74885         Add mbfile.
74886
74887 2005-08-16  Bruno Haible  <bruno@clisp.org>
74888
74889         * modules/mbchar: New file.
74890         * MODULES.html.sh (Extended multibyte and wide character utilities):
74891         New section.
74892
74893 2005-08-16  Bruno Haible  <bruno@clisp.org>
74894
74895         * m4/tls.m4: New file, from GNU gettext.
74896
74897 2005-08-16  Bruno Haible  <bruno@clisp.org>
74898
74899         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
74900         always.
74901         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
74902
74903 2005-08-16  Bruno Haible  <bruno@clisp.org>
74904
74905         * m4/mbiter.m4: New file.
74906
74907 2005-08-16  Bruno Haible  <bruno@clisp.org>
74908
74909         * m4/mbfile.m4: New file.
74910
74911 2005-08-16  Bruno Haible  <bruno@clisp.org>
74912
74913         * m4/mbchar.m4: New file.
74914
74915 2005-08-16  Bruno Haible  <bruno@clisp.org>
74916
74917         * lib/tls.h: New file, from GNU gettext.
74918         * lib/tls.c: New file, from GNU gettext.
74919
74920 2005-08-16  Bruno Haible  <bruno@clisp.org>
74921
74922         * lib/strnlen1.h: New file.
74923         * lib/strnlen1.c: New file.
74924
74925 2005-08-16  Bruno Haible  <bruno@clisp.org>
74926
74927         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
74928         (mbi_init): Update.
74929         (mbi_avail, mbi_advance): Let the iteration end before the terminating
74930         NUL byte, not after it.
74931
74932 2005-08-16  Bruno Haible  <bruno@clisp.org>
74933
74934         * lib/strcase.h (strcasecmp): Add note in comments.
74935         * lib/strncasecmp.c: Use code from strcasecmp.c.
74936         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
74937         (strcasecmp): Work correctly in multibyte locales.
74938
74939 2005-08-16  Bruno Haible  <bruno@clisp.org>
74940
74941         * lib/mbiter.h: New file.
74942
74943 2005-08-16  Bruno Haible  <bruno@clisp.org>
74944
74945         * lib/mbfile.h: New file.
74946
74947 2005-08-16  Bruno Haible  <bruno@clisp.org>
74948
74949         * lib/mbchar.h: New file.
74950         * lib/mbchar.c: New file.
74951
74952 2005-08-16  Bruno Haible  <bruno@clisp.org>
74953
74954         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
74955         the valid ones. Makes the comparison operations transitive:
74956         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
74957         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
74958
74959 2005-08-15  Simon Josefsson  <jas@extundo.com>
74960
74961         * modules/ssize_t (License): Change to 'unlimited'.
74962
74963         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
74964
74965 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
74966
74967         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
74968         Add comments for each pending glibc patch.
74969
74970 2005-08-15  Bruno Haible  <bruno@clisp.org>
74971
74972         * lib/regex.h (__restrict_arr): Don't define to __restrict if
74973         __cplusplus is defined.
74974
74975 2005-08-14  Jim Meyering  <jim@meyering.net>
74976
74977         Sync from coreutils.
74978
74979         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
74980         Use the hash-table-based cycle-detection code not just when
74981         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
74982         Reported by James Youngman in
74983         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
74984         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
74985         FTS_TIGHT_CYCLE_CHECK.
74986         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
74987         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
74988         once again.
74989         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
74990         * lib/fts.c (fd_safer): Remove decl.
74991         Include fcntl--.h rather than unistd-safer.h
74992         (fts_safe_changedir): Don't call fd_safer; no longer needed
74993         now that we include fcntl--.h.
74994
74995 2005-08-12  Simon Josefsson  <jas@extundo.com>
74996
74997         * modules/getndelim2: Use ssize_t module.
74998         * modules/getnline: Likewise.
74999         * modules/safe-read: Likewise.
75000         * modules/xreadlink: Likewise.
75001
75002         * modules/ssize_t: New file.
75003
75004 2005-08-12  Simon Josefsson  <jas@extundo.com>
75005
75006         * m4/readline.m4: Look for termcap, curses or ncurses if required.
75007
75008 2005-08-12  Simon Josefsson  <jas@extundo.com>
75009
75010         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75011         ssize_t.
75012
75013 2005-08-12  Simon Josefsson  <jas@extundo.com>
75014
75015         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
75016         readline, getdelim and check_version.
75017         (Support for systems lacking ISO C 99: Sizes of integer types):
75018         Add size_max.
75019
75020 2005-08-12  Bruno Haible  <bruno@clisp.org>
75021
75022         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
75023
75024 2005-08-11  Simon Josefsson  <jas@extundo.com>
75025
75026         * modules/readline: New file.
75027
75028         * modules/strnlen (Files): Add strnlen.h.
75029
75030 2005-08-11  Simon Josefsson  <jas@extundo.com>
75031
75032         * m4/readline.m4: New file.
75033
75034 2005-08-11  Simon Josefsson  <jas@extundo.com>
75035
75036         * lib/readline.h, readline.c: New file.
75037
75038 2005-08-11  Simon Josefsson  <jas@extundo.com>
75039
75040         * doc/gnulib.texi (Initial import, Finishing touches): Mention
75041         gl_AVOID.
75042
75043 2005-08-11  Bruno Haible  <bruno@clisp.org>
75044
75045         * lib/strnlen.h (strnlen): Change parameter name to match comment.
75046
75047 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
75048
75049         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
75050
75051 2005-08-10  Simon Josefsson  <jas@extundo.com>
75052
75053         * tests/test-iconvme.c: New file.
75054
75055 2005-08-10  Simon Josefsson  <jas@extundo.com>
75056
75057         * m4/strnlen.m4: New file.
75058
75059         * m4/strndup.m4: Don't check for strnlen declaration, done in
75060         strnlen.m4.
75061
75062 2005-08-10  Simon Josefsson  <jas@extundo.com>
75063
75064         * lib/strndup.c: Use strnlen.h.
75065
75066         * lib/strnlen.h: New file.
75067
75068 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
75069
75070         * README: Typos.
75071
75072 2005-08-02  Simon Josefsson  <jas@extundo.com>
75073
75074         * modules/readline: New file.
75075
75076 2005-08-02  Simon Josefsson  <jas@extundo.com>
75077
75078         * modules/getdelim: New file.
75079
75080         * modules/getline: Rewrite, don't use getndelim2.
75081
75082 2005-08-02  Simon Josefsson  <jas@extundo.com>
75083
75084         * m4/getline.m4: Separate out getdelim stuff into separate module.
75085
75086         * m4/getdelim.m4: New file.
75087
75088 2005-08-02  Simon Josefsson  <jas@extundo.com>
75089
75090         * lib/getline.h, getline.c: Rewrite.
75091
75092         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
75093
75094 2005-07-31  Bruno Haible  <bruno@clisp.org>
75095
75096         * lib/lock.h (gl_lock_initializer): New macro.
75097         (gl_lock_define_initialized): Use it.
75098         (gl_rwlock_initializer): New macro.
75099         (gl_rwlock_define_initialized): Use it.
75100         (gl_recursive_lock_initializer): New macro.
75101         (gl_recursive_lock_define_initialized): Use it.
75102
75103 2005-07-30  Karl Berry  <karl@gnu.org>
75104
75105         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
75106         Report from Ben Pfaff, regarding getopt.
75107
75108 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
75109
75110         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
75111         normal way.
75112         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
75113         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
75114         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
75115         (gl_GETOPT): Use the new macros.  Most of the implementation
75116         is moved to the new macros.  This is for programs like Emacs
75117         that don't want all the functionality of gl_GETOPT.
75118
75119 2005-07-26  Bruno Haible  <bruno@clisp.org>
75120
75121         * m4/lock.m4: Update from GNU gettext.
75122
75123 2005-07-26  Bruno Haible  <bruno@clisp.org>
75124
75125         * lib/lock.h: Update from GNU gettext.
75126         * lib/lock.c: Update from GNU gettext.
75127
75128 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
75129
75130         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
75131         obsolescent AC_TRY_RUN.  Include the default includes files, for
75132         'exit'.
75133
75134 2005-07-24  Bruno Haible  <bruno@clisp.org>
75135
75136         * modules/visibility: New file.
75137         * MODULES.html.sh (Misc): Add visibility.
75138
75139 2005-07-24  Bruno Haible  <bruno@clisp.org>
75140
75141         * m4/visibility.m4: New file.
75142
75143 2005-07-24  Bruno Haible  <bruno@clisp.org>
75144
75145         * doc/visibility.texi: New file.
75146
75147 2005-07-22  Bruno Haible  <bruno@clisp.org>
75148
75149         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
75150         $(ALLOCA_H), redundant through BUILT_SOURCES.
75151         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
75152         redundant through BUILT_SOURCES.
75153         * modules/byteswap (Makefile.am): Remove explicit dependency on
75154         $(BYTESWAP_H), redundant through BUILT_SOURCES.
75155         * modules/fnmatch (Makefile.am): Remove explicit dependency on
75156         $(FNMATCH_H), redundant through BUILT_SOURCES.
75157         * modules/getopt (Makefile.am): Remove explicit dependency on
75158         $(GETOPT_H), redundant through BUILT_SOURCES.
75159         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
75160         redundant through BUILT_SOURCES.
75161         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
75162         redundant through BUILT_SOURCES.
75163         * modules/stdbool (Makefile.am): Remove explicit dependency on
75164         $(STDBOOL_H), redundant through BUILT_SOURCES.
75165         * modules/stdint (Makefile.am): Remove explicit dependency on
75166         $(STDINT_H), redundant through BUILT_SOURCES.
75167         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
75168         Remove explicit dependency on $(SYSEXITS_H).
75169         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
75170
75171 2005-07-18  Simon Josefsson  <jas@extundo.com>
75172
75173         * lib/check-version.c (check_version): Accept identical versions too.
75174
75175 2005-07-18  Bruno Haible  <bruno@clisp.org>
75176
75177         * modules/lock: New file.
75178         * MODULES.html.sh (Multithreading): New section.
75179
75180 2005-07-18  Bruno Haible  <bruno@clisp.org>
75181
75182         * m4/lock.m4: New file, from GNU gettext.
75183
75184 2005-07-18  Bruno Haible  <bruno@clisp.org>
75185
75186         * lib/lock.h: New file, from GNU gettext.
75187         * lib/lock.c: New file, from GNU gettext.
75188
75189 2005-07-18  Bruno Haible  <bruno@clisp.org>
75190
75191         * lib/lock.h (gl_once_t): New type.
75192         (gl_once_define, gl_once): New macros.
75193         * lib/lock.c (fresh_once): New variable.
75194         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
75195         functions.
75196
75197 2005-07-16  Simon Josefsson  <jas@extundo.com>
75198
75199         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
75200         workaround, suggested by Bruno.
75201
75202 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
75203
75204         * modules/xalloc (Depends-on): Add xalloc-die.
75205         * modules/xvasprintf (Depends-on): Add xalloc-die.
75206
75207 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
75208
75209         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
75210         with a minor change.
75211
75212 2005-07-15  Bruno Haible  <bruno@clisp.org>
75213
75214         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
75215         When using lib/poll.c, define poll as rpl_poll.
75216
75217 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
75218
75219         * modules/argp (Depends-on): Remove unlocked-io.
75220
75221 2005-07-14  Derek Price  <derek@ximbiot.com>
75222
75223         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
75224         for glob symlink bug.
75225
75226 2005-07-14  Bruno Haible  <bruno@clisp.org>
75227
75228         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
75229         Instead, test for *_unlocked function declarations directly.
75230
75231 2005-07-11  Simon Josefsson  <jas@extundo.com>
75232
75233         * modules/size_max: New file.
75234
75235         * modules/xsize: Depend on size_max module for size_max.m4.
75236
75237 2005-07-11  Simon Josefsson  <jas@extundo.com>
75238
75239         * lib/size_max.h: New file.
75240
75241 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
75242
75243         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
75244         copyright symbol and the year.
75245         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
75246         (version_etc_va): Use parameterized copyright notice.
75247         Reword to conform to the current GNU coding standards.
75248
75249 2005-07-11  Karl Berry  <karl@gnu.org>
75250
75251         * doc/gnulib.texi (Quoting): new node.
75252         (Initial import): more info, from Patrice.
75253
75254 2005-07-11  Bruno Haible  <bruno@clisp.org>
75255
75256         * gnulib-tool (func_usage): Document option --avoid.
75257         (Command line options): Handle --avoid.
75258         (func_acceptable): New function.
75259         (func_modules_transitive_closure): Use it.
75260
75261 2005-07-11  Bruno Haible  <bruno@clisp.org>
75262
75263         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
75264         Reported by Jim Meyering.
75265
75266 2005-07-10  Bruno Haible  <bruno@clisp.org>
75267
75268         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
75269         Needed when size_t is smaller than 'unsigned int'.
75270         Reported by Paul Eggert.
75271
75272 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
75273
75274         * modules/argp (Depends-on): Add unlocked-io
75275
75276 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
75277
75278         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
75279         block of defines.
75280
75281 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
75282
75283         * config/srclist.txt: Comment out regcomp.c, since we have a porting
75284         fix now.
75285
75286 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
75287         and Paul Eggert  <eggert@cs.ucla.edu>
75288
75289         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
75290         in wint_t, not wchar_t.  Remove now-unnecessary cast.
75291
75292 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
75293
75294         * modules/regex (Files): Add lib/regex_internal.c,
75295         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
75296         (Depends-on): Add extensions.
75297         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
75298
75299 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
75300
75301         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
75302         pathconf.
75303         * m4/same.m4 (gl_SAME): Likewise.
75304         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
75305
75306         * m4/regex.m4: Adjust to new libc regex implementation.
75307         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
75308         all the .c and .h parts of (the new) regex.
75309         Quote the m4 stuff better.
75310         Check for RE_ICASE bug of old gnulib.
75311         Check for REG_STARTEND of recent libc.
75312         Rename local variables from jm_* to gl_*.
75313         Quote operand of "test -f".
75314         Say "recent enough" version of libc, not "version 2".
75315         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
75316         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
75317         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
75318         Remove check for btowc, isascii.
75319         Require AM_LANGINFO_CODESET.
75320
75321 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
75322
75323         * lib/regex.c, regex.h: Sync from libc.
75324         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
75325         * lib/regexec.c:
75326         New files, synced from libc, except that regex_internal.h
75327         currently has a small porting fix.
75328
75329 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
75330
75331         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
75332         regex_internal.c, regexec.c.
75333         Add regex_internal.h too, but as a comment, since the libc version
75334         is currently broken in gnulib mode.
75335
75336 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
75337
75338         Support programs like Emacs that use gnulib but not gettext.
75339         * MODULES.html.sh (Internationalization functions): Add gettext-h.
75340         * modules/gettext-h: New file.
75341         * modules/gettext (Files): Remove lib/gettext.h.
75342         (Depends-on): Add gettext-h.
75343         (Makefile.am): Remove lib_SOURCES.
75344         * modules/argmatch, modules/c-stack, modules/closeout:
75345         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
75346         * modules/execute, modules/file-type, modules/getaddrinfo:
75347         * modules/getopt, modules/human, modules/javacomp:
75348         * modules/javaexec, modules/mkdir-p, modules/obstack:
75349         * modules/openat, modules/pagealign_alloc, modules/pipe:
75350         * modules/quotearg, modules/regex, modules/rpmatch:
75351         * modules/unicodeio, modules/userspec, modules/version-etc:
75352         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
75353         * modules/xsetenv:
75354         Depend on gettext-h, not gettext.
75355
75356 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
75357
75358         * gnulib-tool (func_import): Add support for 'public domain' license.
75359         * modules/alloca, modules/atexit, modules/memmove:
75360         Now public domain, not GPL.
75361         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
75362         * modules/realloc, modules/strerror, modules/strtod:
75363         Now LGPL, not GPL.
75364
75365 2005-07-05  Bruno Haible  <bruno@clisp.org>
75366
75367         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
75368         autoconf CVS. Needed for mingw.
75369
75370 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
75371
75372         Remove the dependency of the strftime module on the tzset module.
75373         * modules/strftime (Depends-on): Remove dependency on tzset.
75374
75375 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
75376
75377         Remove the dependency of the strftime module on the tzset module.
75378         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
75379         gl_FUNC_TZSET_CLOBBER.
75380
75381 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
75382
75383         Remove the dependency of the strftime module on the tzset module.
75384         * lib/strftime.c (my_strftime)
75385         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
75386         Copy the input structure, to work around some of the bug with
75387         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
75388         Solaris releases, you should also use the tzset module, but we won't
75389         require it as a dependency any more since we don't want LGPLed code
75390         to depend on GPLed code.
75391
75392 2005-07-02  Jim Meyering  <jim@meyering.net>
75393
75394         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
75395         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
75396         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
75397         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
75398
75399 2005-07-02  Jim Meyering  <jim@meyering.net>
75400
75401         * lib/backupfile.c (backup_args): Change a `0' to NULL.
75402
75403 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
75404
75405         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
75406         declares only 'struct timespec;' (!).
75407
75408 2005-07-01  Jim Meyering  <jim@meyering.net>
75409
75410         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
75411         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
75412         * lib/save-cwd.c, tempname.c:
75413         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
75414         and don't include <sys/file.h>).
75415
75416 2005-06-29  Jim Meyering  <jim@meyering.net>
75417
75418         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
75419         type name.  Use the variable name instead.
75420         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
75421         Likewise.
75422
75423 2005-06-28  Simon Josefsson  <jas@extundo.com>
75424
75425         * modules/check-version (Files): Add check-version.m4.
75426
75427 2005-06-28  Simon Josefsson  <jas@extundo.com>
75428
75429         * m4/check-version.m4: New file, suggested by Jim Meyering
75430         <jim@meyering.net>.
75431
75432 2005-06-28  Simon Josefsson  <jas@extundo.com>
75433
75434         * lib/check-version.h, lib/check-version.c: New files.
75435
75436 2005-06-28  Simon Josefsson  <jas@extundo.com>
75437
75438         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
75439         collision with global variable.  Better indentation.  Don't
75440         increment buffer pointer beyond buffer end.  Based on comments
75441         from Paul Eggert <eggert@cs.ucla.edu>.
75442
75443         * lib/base64.h: Indent.
75444
75445 2005-06-28  Simon Josefsson  <jas@extundo.com>
75446
75447         * doc/gnulib.texi (Library version handling): New section.
75448
75449 2005-06-28  Jim Meyering  <jim@meyering.net>
75450
75451         * check-module (find_included_lib_files): Hard-code another
75452         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
75453         but modules/fts-lgpl (correctly) does not list those files.
75454
75455         * modules/canonicalize (Files): Add lib/pathmax.h.
75456
75457 2005-06-25  Simon Josefsson  <jas@extundo.com>
75458
75459         * modules/check-version: New file.
75460
75461 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
75462
75463         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
75464         initializer of struct addrinfo, as an indication that we don't
75465         care how many members the structure has.
75466
75467 2005-06-24  Derek Price  <derek@ximbiot.com>
75468         and Bruno Haible  <bruno@clisp.org>
75469
75470         Remove stat module & update lstat.
75471         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
75472         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
75473         * m4/stat.m4: Remove this file.
75474
75475 2005-06-24  Derek Price  <derek@ximbiot.com>
75476         and Bruno Haible  <bruno@clisp.org>
75477
75478         Remove stat module & update lstat.
75479         * lib/stat.c: Remove this file...
75480         (slash_aware_lstat): ...moving this content and its support...
75481         * lib/lstat.c (rpl_lstat): ...into here.
75482         * lib/lstat.h: New file.
75483
75484 2005-06-24  Derek Price  <derek@ximbiot.com>
75485         and Bruno Haible  <bruno@clisp.org>
75486
75487         Remove stat module & update lstat.
75488         * config/srclist.txt (libc sources): Remove stat.
75489
75490 2005-06-24  Derek Price  <derek@ximbiot.com>
75491         and Bruno Haible  <bruno@clisp.org>
75492
75493         Remove stat module & update lstat.
75494         * MODULES.html.sh (stat): Remove.
75495         * MODULES.html: Regenerated.
75496         * modules/lstat (Description): Correct function name.
75497         (Files): Add "lstat.h".
75498         (Depends-on): Remove stat, add xalloc, stat-macros.
75499         * modules/stat: Remove this file.
75500         (Include): Add "lstat.h", remove <sys/stat.h>.
75501
75502 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
75503
75504         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
75505         (ranged_convert): Don't save conversion in a temporary struct.
75506         This causes a warning with GCC 4.0.0, and anyway in the typical
75507         case it's not worth the extra 100 bytes or so of code.
75508         (ranged_convert, __mktime_internal): When calling a function via a
75509         pointer P, use P () rather than (*P) (), as we now assume C89 or
75510         better.
75511
75512 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
75513
75514         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
75515         "who -r" failed to give output.  Problem reported by Tim Waugh.
75516
75517         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
75518         (xcalloc): Use it to avoid needless tests.
75519         Problem reported by Jim Meyering.
75520
75521 2005-06-20  Derek Price  <derek@ximbiot.com>
75522
75523         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
75524         unnecessary for Autoconfs > 2.59c.
75525
75526 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75527
75528         * lib/argp.h (__option_is_short): Check upper limit of
75529         __key. Isprint() requires its argument to have the value
75530         of an unsigned char or EOF.
75531
75532 2005-06-16  Jim Meyering  <jim@meyering.net>
75533
75534         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
75535         when either N or S is zero.
75536
75537 2005-06-16  Derek Price  <derek@ximbiot.com>
75538
75539         * m4/bison.m4: Declare YACC & YFLAGS precious.
75540
75541 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
75542
75543         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
75544         multibyte string or pattern, fall back on unibyte matching.
75545         Problem reported by James Youngman.
75546
75547 2005-06-08  Bruno Haible  <bruno@clisp.org>
75548
75549         * modules/csharpcomp: New file.
75550         * MODULES.html.sh (C#): Add csharpcomp.
75551
75552 2005-06-08  Bruno Haible  <bruno@clisp.org>
75553
75554         * m4/csharpcomp.m4: New file, from GNU gettext.
75555
75556 2005-06-08  Bruno Haible  <bruno@clisp.org>
75557
75558         * lib/csharpcomp.h: New file, from GNU gettext.
75559         * lib/csharpcomp.c: New file, from GNU gettext.
75560         * lib/csharpcomp.sh.in: New file, from GNU gettext.
75561
75562 2005-06-08  Bruno Haible  <bruno@clisp.org>
75563
75564         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
75565         warning on mingw.
75566
75567 2005-06-07  Derek Price  <derek@ximbiot.com>
75568
75569         Sync from CVS.
75570         * lib/glob_.h: Indent nested #ifdef.
75571
75572 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
75573
75574         Sync from coreutils.
75575         Use "file name" when talking about file names, instead of "filename"
75576         or "path", as per the GNU coding standards.
75577         * lib/mkdir-p.c: Renamed from makepath.c.
75578         (make_dir_parents): Renamed from make_path.  All callers changed.
75579         * lib/mkdir-p.h: Likewise.  All includers changed.
75580         * lib/filenamecat.c: Renamed from path-concat.c.
75581         (file_name_concat): Renamed from path_concat.  All callers changed.
75582         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
75583         * lib/filenamecat.h: Likewise.  All includers changed.
75584         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
75585         in comments or local variable names.
75586         * lib/basename.c: Likewise.
75587         * lib/canonicalize.c, canonicalize.h: Likewise.
75588         * lib/dirname.c, dirname.h: Likewise.
75589         * lib/euidaccess.c: Likewise.
75590         * lib/exclude.c: Likewise
75591         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
75592         * lib/fsusage.c, fsuage.h: Likewise.
75593         * lib/fts.c, fts_.h: Likewise.
75594         * lib/getcwd.c: Likewise.
75595         * lib/getloadavg.c: Likewise.
75596         * lib/mkstemp.c: Likewise.
75597         * lib/mountlist.c, mountlist.h: Likewise.
75598         * lib/openat.c, openat.h: Likewise.
75599         * lib/readlink-stub.c: Likewise.
75600         * lib/readutmp.c, readutmp.h: Likewise.
75601         * lib/rename.c: Likewise.
75602         * lib/rmdir.c: Likewise.
75603         * lib/same.c: Likewise.
75604         * lib/savedir.c: Likewise.
75605         * lib/stripslash.c: Likewise.
75606         * lib/tempname.c: Likewise.
75607         * lib/xreadlink.c: Likewise.
75608         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
75609         All uses changed.
75610         * lib/exclude.h: Likewise.
75611
75612         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
75613         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
75614         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
75615         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
75616         * lib/pathmax.h: Include <limits.h> unconditionally, since other
75617         files have been getting away with it for years (MORE/BSD 4.3
75618         is extinct now).
75619         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
75620         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
75621
75622         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
75623         Define to 256, not 255, as per modern POSIX.
75624
75625 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
75626
75627         Sync from coreutils.
75628         Use "file name" when talking about file names, instead of "filename"
75629         or "path", as per the GNU coding standards.
75630         * MODULES.html.sh: mkdir-p renamed from makepath.
75631         filenamecat renamed from path-concat.
75632         * modules/filenamecat: Renamed from modules/path-concat.
75633         (Files): filenamecat.h and filenamecat.c renamed from
75634         path-concat.h and path-concat.c.
75635         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
75636         (Include): filenamecat.h, not path-concat.h.
75637         * modules/mkdir-p: Renamed from modules/makepath.
75638         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
75639         makepath.c.
75640         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
75641         (Include): mkdir-p.h, not makepath.h.
75642
75643 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
75644
75645         Sync from coreutils.
75646         * m4/mkdir-p.m4: Renamed from makepath.m4.
75647         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
75648         Rename files from makepath.c to mkdir-p.c, and from
75649         makepath.h to mkdir-p.h.
75650         * m4/filenamecat.m4: Renamed from path-concat.m4.
75651         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
75652         Rename files from path-concat.c to filenamecat.c,
75653         and from path-concat.h to filenamecat.h.
75654         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
75655         "file name" in local variables or comments.
75656         * m4/rename.m4: Likewise.
75657
75658 2005-06-01  Bruno Haible  <bruno@clisp.org>
75659
75660         * modules/csharpexec: New file.
75661         * MODULES.html.sh (C#): New section.
75662
75663 2005-06-01  Bruno Haible  <bruno@clisp.org>
75664
75665         * m4/csharp.m4: New file, from GNU gettext.
75666         * m4/csharpexec.m4: New file, from GNU gettext.
75667
75668 2005-06-01  Bruno Haible  <bruno@clisp.org>
75669
75670         * lib/csharpexec.h: New file, from GNU gettext.
75671         * lib/csharpexec.c: New file, from GNU gettext.
75672         * lib/csharpexec.sh.in: New file, from GNU gettext.
75673
75674 2005-05-31  Derek Price  <derek@ximbiot.com>
75675             Paul Eggert  <eggert@cs.ucla.edu>
75676
75677         Sync from cvs.
75678         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
75679
75680 2005-05-31  Derek Price  <derek@ximbiot.com>
75681             Paul Eggert  <eggert@cs.ucla.edu>
75682
75683         Sync from cvs.
75684         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
75685
75686 2005-05-29  Derek Price  <derek@ximbiot.com>
75687
75688         * config/srclist.txt (glob_.h, glob.c): Add these files.
75689
75690 2005-05-29  Derek Price  <derek@ximbiot.com>
75691
75692         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
75693         * modules/glob: New file.
75694         * modules/getlogin_r: Add link to POSIX spec in description.
75695
75696 2005-05-29  Derek Price  <derek@ximbiot.com>
75697             Paul Eggert  <eggert@cs.ucla.edu>
75698
75699         * m4/glob.m4: New file.
75700
75701 2005-05-29  Derek Price  <derek@ximbiot.com>
75702             Paul Eggert  <eggert@cs.ucla.edu>
75703
75704         * lib/glob_.h, lib/glob.c: New files.
75705
75706 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
75707
75708         * modules/fts (Files): Remove m4/inttypes-pri.m4.
75709         * modules/fts-lgpl (Depends-on): Remove gettext.
75710
75711 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
75712
75713         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
75714         and don't require gt_INTTYPES_PRI.
75715
75716 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
75717
75718         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
75719
75720         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
75721         the configuration hassle isn't worth it.
75722         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
75723         (LONGEST_MODIFIER, PRIuMAX): Remove.
75724
75725 2005-05-27  Bruno Haible  <bruno@clisp.org>
75726
75727         * lib/getlogin_r.h: Remove second include of <stddef.h>.
75728
75729 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
75730
75731         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
75732         _POSIX_PTHREAD_SEMANTICS for Solaris.
75733
75734 2005-05-25  Derek Price  <derek@ximbiot.com>
75735
75736         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
75737
75738 2005-05-25  Derek Price  <derek@ximbiot.com>
75739             Paul Eggert  <eggert@cs.ucla.edu>
75740
75741         * modules/getlogin_r, m4/getlogin_r.m4: New files.
75742         * lib/getlogin_r.c, getlogin_r.h: New files.
75743
75744 2005-05-25  Bruno Haible  <bruno@clisp.org>
75745             Derek Price  <derek@ximbiot.com>
75746
75747         * lib/getlogin_r.h: Simplify API documentation.
75748
75749 2005-05-23  Derek Price  <derek@ximbiot.com>
75750
75751         * modules/minmax (Files): Add m4/minmax.m4.
75752         (configure.ac): Add gl_MINMAX.
75753
75754 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
75755
75756         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
75757         so that unistd-safer.h (GPL'ed code) need not be included.
75758
75759 2005-05-22  Bruno Haible  <bruno@clisp.org>
75760
75761         * m4/minmax.m4: New file.
75762         Based on a patch by Derek Price <derek@ximbiot.com>.
75763
75764 2005-05-22  Bruno Haible  <bruno@clisp.org>
75765
75766         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
75767         (INT64_MIN): Fix definition.
75768         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
75769
75770         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
75771         NEED_SIGNED_INT_TYPES.
75772
75773         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
75774         HAVE_SYSTEM_INTTYPES.
75775
75776 2005-05-22  Bruno Haible  <bruno@clisp.org>
75777
75778         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
75779         Also include <sys/param.h> if it defines MIN, MAX.
75780         Based on a patch by Derek Price <derek@ximbiot.com>.
75781
75782 2005-05-21  Jim Meyering  <jim@meyering.net>
75783
75784         * modules/fts (Files): Add m4/inttypes-pri.m4.
75785         (Depends-on): Add lstat and remove gettext.  Alphabetize.
75786
75787 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
75788
75789         New fts module.
75790         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
75791         (setup_dir, free_dir): New functions.
75792         (enter_dir, leave_dir): Define trivial
75793         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
75794         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
75795         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
75796         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
75797         Move to fts-cycle.c.
75798         (fts_open): Use setup_dir.
75799         (fts_close): Use free_dir.
75800         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
75801         This adds a label and some gotos, but the alternatives were messier.
75802         Check for memory allocation failure when entering a dir.
75803         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
75804         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
75805         (FTS): New member fts_cycle, that is a union that contains the
75806         old active_dir_ht and cycle_state.  All uses changed to mention
75807         fts_cycle.ht and fts_cycle.state.
75808         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
75809         fts.c, with the following changes:
75810         (setup_dir, free_dir): New functions.
75811         (enter_dir): Now returns bool.  Return true if successful, false
75812         if memory exhausted.  All callers changed.
75813         Do not bother partly cleaning up on
75814         memory allocation failure; that is free_dir's job.
75815         However, free ad if hash_insert fails, to avoid memory leak.
75816         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
75817         fts->fts_options to see which union member to use.
75818
75819 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
75820
75821         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
75822         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
75823
75824 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
75825
75826         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
75827
75828 2005-05-20  Jim Meyering  <jim@meyering.net>
75829
75830         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
75831         Now a macro, to pacify GCC.
75832
75833 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
75834
75835         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
75836         of -1.
75837
75838 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
75839
75840         * lib/chown.c (rpl_chown): Return -1 on failure.
75841
75842 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
75843
75844         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
75845         Don't check for stddef.h.
75846         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
75847         don't use its results.
75848         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
75849         since we include them unconditionally.  Don't require
75850         AM_STDBOOL_H, since stdbool is a prerequisite.
75851         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
75852         since we assume C89 or better.
75853         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
75854         as we don't use their results.
75855         Don't check for fchdir, memmove, memset, strrchr, as we use
75856         them unconditionally.
75857         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
75858         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
75859
75860 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
75861
75862         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
75863         Include <stddef.h> unconditionally, since we assume C89 now.
75864         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
75865         * lib/fts.c: Include fts_.h first, to check interface.
75866         Do not include intprops.h; no longer needed.
75867         Include cycle-check.h and hash.h, since fts_.h no longer does.
75868         Remove unnecessary casts of closedir to void.
75869         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
75870         decide whether to decrement nlinks.
75871         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
75872         (FTS): Use struct hash_table * instead of Hash_table, so that
75873         we no longer need to include hash.h here.
75874
75875 2005-05-18  Jim Meyering  <jim@meyering.net>
75876
75877         * modules/dirfd (License): Change to LGPL.  Most of the code
75878         is already in the public domain.
75879
75880 2005-05-18  Jim Meyering  <jim@meyering.net>
75881
75882         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
75883         Reported by Yoann Vandoorselaere.
75884
75885 2005-05-17  Jim Meyering  <jim@meyering.net>
75886
75887         * m4/fts.m4: New file, from coreutils.
75888
75889 2005-05-17  Jim Meyering  <jim@meyering.net>
75890
75891         * lib/fts.c, lib/fts_.h: New files, from coreutils.
75892
75893 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
75894
75895         Sync from coreutils.
75896         * m4/unlinkdir.m4: New file.
75897
75898 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
75899
75900         Sync from coreutils.
75901         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
75902         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
75903         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
75904         White space changes only.
75905         * lib/makepath.c (make_path): Port to hosts where leading "//" is
75906         special.
75907         * lib/yesno.c: Include getline.h, not ctype.h.
75908         (yesno): Don't remove leading white space; POSIX doesn't allow it.
75909         Use getline to remove arbitrary restriction on response length.
75910
75911 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
75912
75913         * config/srclist-update: Spell out "Street" in FSF postal
75914         mail address; this is the style the FSF seems to prefer.
75915
75916         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
75917         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
75918         this updates FSF postal mail address.
75919
75920         Sync from coreutils.
75921         * modules/unlinkdir: New file.
75922         * modules/yesno (Depends-on): Add getline.
75923         * MODULES.html.sh (File system functions): Add unlinkdir.
75924
75925 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
75926
75927         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
75928         lib/strsep.h:
75929         Change the initial comment to refer to GPL, not LGPL.
75930         gnulib-tool will change it to LGPL as needed.
75931
75932         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
75933         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
75934         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
75935         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
75936         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
75937         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
75938         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
75939         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
75940         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
75941         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
75942         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
75943         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
75944         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
75945         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
75946         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
75947         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
75948         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
75949         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
75950         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
75951         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
75952         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
75953         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
75954         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
75955         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
75956         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
75957         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
75958         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
75959         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
75960         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
75961         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
75962         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
75963         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
75964         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
75965         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
75966         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
75967         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
75968         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
75969         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
75970         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
75971         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
75972         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
75973         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
75974         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
75975         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
75976         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
75977         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
75978         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
75979         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
75980         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
75981         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
75982         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
75983         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
75984         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
75985         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
75986         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
75987         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
75988         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
75989         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
75990         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
75991         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
75992         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
75993         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
75994         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
75995         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
75996         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
75997         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
75998         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
75999         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
76000         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
76001         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
76002         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
76003         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
76004         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
76005         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
76006         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
76007         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
76008         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
76009         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
76010         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
76011         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
76012         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
76013         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
76014         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
76015         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
76016         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
76017         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
76018         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
76019         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
76020         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
76021         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
76022         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
76023         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
76024         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
76025         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
76026         lib/yesno.c, lib/yesno.h:
76027         Update FSF postal mail address.
76028
76029 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
76030
76031         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
76032         tests/test-memmem.c, tests/test-stpncpy.c:
76033         Update FSF postal mail address.
76034
76035 2005-05-13  Bruno Haible  <bruno@clisp.org>
76036
76037         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
76038         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
76039         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
76040         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
76041         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
76042         Add support for 64-bit integers in the MSVC compiler.
76043
76044 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76045
76046         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
76047
76048 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
76049
76050         * gnulib-tool (func_import): Sort and uniquify recommended includes.
76051
76052 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
76053
76054         * doc/getdate.texi (General date syntax): Don't say that date
76055         date --iso-8601=ns generates acceptable dates; it doesn't yet.
76056         Problem reported by Nic Ferrier.
76057
76058 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76059
76060         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
76061         specified in ai_socktype. Fix invalid ai_protocol
76062         check. ai_protocol is usually set to 0 or depending on
76063         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
76064         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
76065         ai_socktype / ai_protocol in the returned addrinfo structure.
76066
76067 2005-05-10  Simon Josefsson  <jas@extundo.com>
76068
76069         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
76070         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
76071
76072 2005-05-10  Karl Berry  <karl@gnu.org>
76073
76074         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
76075         (from http://www.gnu.org/licenses).
76076         * doc/COPYING.LIB: also rename to COPYING.LESSER.
76077         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
76078         fdl.texi suffices.
76079
76080 2005-05-10  Karl Berry  <karl@gnu.org>
76081
76082         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
76083         (COPYING.DOC): remove.
76084
76085         * config/srclist-update: new FSF address.
76086
76087 2005-05-10  Derek Price  <derek@ximbiot.com>
76088
76089         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
76090         possible.
76091
76092 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76093             Bruno Haible  <bruno@clisp.org>
76094
76095         * modules/inet_ntop: New file.
76096         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
76097         inet_ntop.
76098
76099 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76100             Bruno Haible  <bruno@clisp.org>
76101
76102         * m4/inet_ntop.m4: New file.
76103
76104 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76105             Bruno Haible  <bruno@clisp.org>
76106
76107         * lib/inet_ntop.h: New file.
76108         * lib/inet_ntop.c: New file, from glibc with modifications.
76109
76110 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
76111
76112         * modules/time_r (License): Change to LGPL.
76113         * modules/extensions (License): Change to LGPL.  Actually,
76114         the license is more permissive than that, but currently gnulib-tool
76115         doesn't know how to handle more-permissive licenses.
76116
76117         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
76118         Problem reported by Dave Love.
76119
76120 2005-05-08  Jim Meyering  <jim@meyering.net>
76121
76122         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
76123         blank.
76124
76125 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
76126
76127         * modules/argmatch (Depends-on): Add stdbool.
76128         * modules/backupfile (Depends-on): Likewise.
76129         * modules/chdir-long (Depends-on): Likewise.
76130         * modules/closeout (Depends-on): Likewise.
76131         * modules/cycle-check (Depends-on): Likewise.
76132         * modules/dirname (Depends-on): Likewise.
76133         * modules/fnmatch (Depends-on): Likewise.
76134         * modules/fsusage (Depends-on): Likewise.
76135         * modules/fwriteerror (Depends-on): Likewise.
76136         * modules/getcwd (Depends-on): Likewise.
76137         * modules/getloadavg (Depends-on): Likewise.
76138         * modules/hard-locale (Depends-on): Likewise.
76139         * modules/makepath (Depends-on): Likewise.
76140         * modules/mountlist (Depends-on): Likewise.
76141         * modules/nanosleep (Depends-on): Likewise.
76142         * modules/posixtm (Depends-on): Likewise.
76143         * modules/quotearg (Depends-on): Likewise.
76144         * modules/readtokens (Depends-on): Likewise.
76145         * modules/readtokens0 (Depends-on): Likewise.
76146         * modules/readutmp (Depends-on): Likewise.
76147         * modules/save-cwd (Depends-on): Likewise.
76148         * modules/strftime (Depends-on): Likewise.
76149         * modules/userspec (Depends-on): Likewise.
76150         * modules/utimecmp (Depends-on): Likewise.
76151         * modules/xgetcwd (Depends-on): Likewise.
76152         * modules/xnanosleep (Depends-on): Likewise.
76153         * modules/xstrtod (Depends-on): Likewise.
76154         * modules/yesno (Depends-on): Likewise.
76155
76156 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
76157
76158         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
76159         needless checks.
76160
76161 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
76162
76163         Merge from coreutils.  Among other things,
76164         add bulletproofing for cases where stdin, stdout, or stderr are closed.
76165         * lib/fd-safer.c: New file.
76166         * lib/fcntl-safer.h, open-safer.c: Remove.
76167         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
76168         * lib/dup-safer.c: Include unistd-safer.h first.
76169         Don't include errno.h.
76170         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
76171         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
76172         * lib/file-type.c: Rely on file-type.h change.
76173         * lib/getloadavg.c: Include unistd-safer.h.
76174         (getloadavg): Use safer open.
76175         * lib/getusershell.c: Include "stdio-safer.h".
76176         (getusershell): Use safer fopen.
76177         * lib/long-options.c (long_options): Use NULL rather than 0.
76178         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
76179         'free'.
76180         * lib/modechange.c: Likewise.
76181         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
76182         (MODE_DONE): New constant.
76183         (struct mode_change): Remove 'next' member.
76184         (make_node_op_equals): New function; like the old one of the
76185         same name, except it allocates an array.
76186         (mode_compile, mode_create_from_ref): Use it.
76187         (mode_compile): Allocate result as an array, not a linked list.
76188         Parse octal string ourself, so that we catch mistakes like "+0".
76189         (mode_adjust): Arg is an array, not a linked list.
76190         * lib/modechange.c: Include stat-macros.h, xalloc.h.
76191         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
76192         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
76193         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
76194         Remove.  This is now stat-macros.h's job.
76195         (talloc): Remove.  All callers replaced by xalloc, so that
76196         our invokers don't have to worry about reporting memory failures.
76197         (make_node_op_equals): Remove.
76198         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
76199         New constants.
76200         (struct mode_change): Moved here from modechange.h.
76201         (mode_append_entry): Remove.
76202         (mode_compile): Remove MASKED_OPS arg, since it encouraged
76203         apps to have incorrect behavior.  Use simpler algorithm for head
76204         and tail.  Don't futz with umask; that's now the job of mode_adjust.
76205         Detect more invalid usages rather than having somewhat-random behavior.
76206         Don't insert an "a=" action, as that leads to incorrect behavior.
76207         (mode_compile, mode_create_from_ref): Return NULL on error instead
76208         of an enum, since now there's only one way to have an error.  All
76209         callers changed.
76210         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
76211         at the correct time.  Simplify calculation of "+u" and its ilk.
76212         Don't mishandle "+X".
76213         (mode_free): Remove "register" and localize decls.
76214         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
76215         (struct mode_change): Move to modechange.c; callers don't
76216         need to see this stuff.
76217         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
76218         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
76219         (mode_change, mode_adjust): Reflect the new signatures noted above.
76220         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
76221         that might redefine system include files.
76222         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
76223         (my_usleep): Use NULL rather than (void *) 0.
76224         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
76225         Use siginterrupt to specify that system calls should be interrupted.
76226         (rpl_nanosleep): Move initialization of suspended closer to call of
76227         my_usleep.
76228         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
76229         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
76230         (desirable_utmp_entry): New function.
76231         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
76232         using x2nrealloc, to simplify logic.
76233         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
76234         size calculation.  Do not assume utmp file is a regular file.
76235         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
76236         (READ_UTMP_CHECK_PIDS): New constant.
76237         * lib/save-cwd.c: Include unistd-safer.h.
76238         (save_cwd): Use fd_safer.
76239         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
76240         [!_LIBC] Include "stat-macros.h" instead.
76241         * lib/unistd-safer.h (fd_safer): New decl.
76242
76243 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
76244
76245         * modules/getloadavg (Depends-on): Add unistd-safer.
76246         * modules/getusershell (Depends-on): Add stdio-safer.
76247         * modules/lstat (Depends-on): Remove xalloc.
76248         * modules/mkstemp (Depends-on): Add stat-macros.
76249         * modules/modechange (Depends-on): Remove xstrtol.
76250         Add stat-macros, xalloc.
76251         * modules/save-cwd (Depends-on): Add unistd-safer.
76252         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
76253         * modules/unistd-safer (Files): Add lib/fd-safer.c
76254         (Makefile.am): Remove lib_SOURCES.
76255
76256         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
76257         Remove fcntl-safer; unistd-safer supersedes it.
76258
76259 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
76260
76261         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
76262         AC_HEADER_STAT.
76263         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
76264         (gl_PREREQ_CHOWN): Remove.
76265         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
76266         it.  Don't require AC_HEADER_STAT.
76267         (gl_PREREQ_LSTAT): Remove.
76268         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
76269         Don't require AC_HEADER_STAT.
76270         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
76271         (gl_PREREQ_RMDIR): Remove.
76272         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
76273         mention stat-macros.h or AC_HEADER_STAT, since we'll make
76274         the stat-macros module a prerequisite.
76275         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
76276         * m4/filemode.m4 (gl_FILEMODE): Likewise.
76277         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
76278         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
76279         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
76280         variable names.
76281         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
76282         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
76283         variable prefixes.
76284         * m4/fcntl-safer.m4: Remove.
76285         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
76286         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
76287         Invoke gl_PREREQ_FD_SAFER.
76288         (gl_PREREQ_FD_SAFER): New macro.
76289         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
76290         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
76291         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
76292         Remove duplicate call to AC_LIBOBJ(readutmp).
76293         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
76294
76295         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
76296         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
76297
76298 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
76299
76300         * MODULES.html.sh (Misc): Add byteswap.
76301
76302 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
76303
76304         * modules/getcwd (Depends-on): Add extensions.
76305         * modules/openat (Depends-on): Likewise.
76306
76307 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
76308
76309         * modules/byteswap: New file.
76310
76311 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
76312
76313         * m4/byteswap.m4: New file.
76314
76315 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
76316
76317         * lib/byteswap_.h: New file.
76318
76319 2005-04-25  Karl Berry  <karl@gnu.org>
76320
76321         * m4/gettext.m4: Update from GNU gettext 0.14.4.
76322
76323 2005-04-25  Albert Chin  <china@thewrittenword.com>
76324
76325         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
76326         Toolkit C bug.
76327
76328 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
76329
76330         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
76331         (func_ln_if_changed): Remove forcibly for no error message
76332         in case file does not exist.
76333
76334 2005-04-19  Simon Josefsson  <jas@extundo.com>
76335
76336         * gnulib-tool (Options): Make --symlink mean --symbolic.
76337
76338 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
76339
76340         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
76341
76342 2005-04-16  Simon Josefsson  <jas@extundo.com>
76343
76344         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
76345
76346 2005-04-15  Simon Josefsson  <jas@extundo.com>
76347
76348         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
76349
76350 2005-04-15  Simon Josefsson  <jas@extundo.com>
76351
76352         * gnulib-tool: Rename --symlink to --symbolic.
76353
76354 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
76355
76356         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
76357         symbolic links to files instead of copying/moving.  Add --aux-dir,
76358         specifying directory relative --dir where auxiliary build tools
76359         are placed.
76360
76361 2005-04-14  Bruno Haible  <bruno@clisp.org>
76362
76363         * modules/allocsa (License): Change to LGPL.
76364         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
76365
76366 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
76367
76368         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
76369         that "UTC +1 second" continues to work.  Problem reported
76370         by Dmitry V. Levin.
76371         (relunit_snumber): New rule.
76372         (relunit): Use it.
76373
76374 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
76375
76376         * lib/getdate.y (universal_time_zone_table): New constant.
76377         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
76378         universal_time_zone_table.
76379         (lookup_zone): Prefer universal_time_zone_table to
76380         local_time_zone_table, so that "GMT" time stamps are allowed in
76381         London during the summer.  Problem reported by Ian Abbott.
76382
76383 2005-04-12  Jim Meyering  <jim@meyering.net>
76384
76385         * lib/human.c (humblock): Set *options even when returning due to
76386         xstrtoumax conversion failure.  Thanks to a used-uninitialized
76387         warning from gcc-4.
76388
76389 2005-04-09  Jim Meyering  <jim@meyering.net>
76390
76391         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
76392         -Wuninitialized: initialize tm0.tm_year.
76393
76394 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
76395
76396         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
76397         count, since there's no maximum.  All uses changed.
76398         Add member dsts_seen.
76399         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
76400         not being INT_MAX.
76401         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
76402         Use pc_rels_seen to decide whther a date is absolute.
76403
76404         * lib/getdate.y (number): Don't overwrite year.
76405         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
76406         check.
76407
76408 2005-04-02  Simon Josefsson  <jas@extundo.com>
76409
76410         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
76411         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
76412
76413 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
76414
76415         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
76416         where no absolute path name can be longer than PATH_MAX.
76417
76418 2005-03-27  Jim Meyering  <jim@meyering.net>
76419
76420         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
76421
76422 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
76423
76424         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
76425         "one's complement" -> "ones' complement" in comment, as per Knuth.
76426         "value of type" -> "type or expression" in comment.
76427         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
76428
76429 2005-03-26  Jim Meyering  <jim@meyering.net>
76430
76431         Comment nits.
76432         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
76433         Correct typos: s/or/of/.
76434
76435 2005-03-26  Jim Meyering  <jim@meyering.net>
76436
76437         * modules/check-include-files: Move to ../ and rename to...
76438         * check-module: ...this.
76439
76440 2005-03-25  Jim Meyering  <jim@meyering.net>
76441
76442         * modules/xvasprintf (Files): Add xalloc.h.
76443
76444 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
76445
76446         * modules/gettext (Files): config/config.rpath ->
76447         build-aux/config.rpath
76448         * modules/iconv (Files): Likewise.
76449         Problem reported by Oskar Liljeblad.
76450
76451 2005-03-23  Jim Meyering  <jim@meyering.net>
76452
76453         * modules/check-include-files: New script to check for
76454         missing dependencies, multiple includes, etc.
76455
76456         * modules/c-strtold (Depends-on): Add xalloc.
76457         * modules/c-strtod (Depends-on): Add xalloc.
76458         * modules/hash (Depends-on): Add xalloc.
76459         (Files): Remove lib/xalloc.h.
76460
76461         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
76462         * modules/userspec (Files): Add lib/inttostr.h.
76463
76464 2005-03-23  Jim Meyering  <jim@meyering.net>
76465
76466         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
76467
76468 2005-03-22  Jim Meyering  <jim@meyering.net>
76469
76470         * modules/stat-macros: New module.
76471         * modules/canonicalize, modules/euidaccess, modules/file-type,
76472         * modules/filemode, modules/lchown, modules/makepath,
76473         * modules/rmdir, modules/stat: Depend on new stat-macros module
76474         rather than listing lib/stat-macros.h manually.
76475         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
76476
76477 2005-03-22  Jim Meyering  <jim@meyering.net>
76478
76479         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
76480
76481 2005-03-22  Bruno Haible  <bruno@clisp.org>
76482
76483         * config/srclist.txt: Replace target directory 'config' with
76484         'build-aux'.
76485         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
76486         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
76487         ../build-aux/.
76488
76489 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
76490
76491         * modules/chdir-long (Depends-on): Add mempcpy.
76492
76493         * modules/acl, modules/backupfile, modules/c-strtod,
76494         modules/c-strtold, modules/canon-host, modules/canonicalize,
76495         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
76496         modules/exclude, modules/exitfail, modules/file-type,
76497         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
76498         modules/getdate, modules/getline, modules/getpagesize,
76499         modules/getpass, modules/getugroups, modules/group-member,
76500         modules/hard-locale, modules/hash, modules/human, modules/idcache,
76501         modules/inttostr, modules/long-options, modules/makepath,
76502         modules/md5, modules/memcasecmp, modules/memcoll,
76503         modules/modechange, modules/mountlist, modules/path-concat,
76504         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
76505         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
76506         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
76507         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
76508         modules/strftime, modules/strndup, modules/strverscmp,
76509         modules/timespec, modules/unlocked-io, modules/userspec,
76510         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
76511         modules/yesno:
76512         Remove lib_SOURCES line from Makefile.am section, as this is now
76513         done automatically by the corresponding Autoconf macro.
76514
76515 2005-03-21  Jim Meyering  <jim@meyering.net>
76516
76517         Changes imported from coreutils.
76518
76519         * lib/cycle-check.c: Don't include xalloc.h.
76520
76521         * lib/path-concat.c: Don't include assert.h.
76522         (path_concat): Remove assertion that would have triggered
76523         for ABASE starting with more than one slash.
76524         Reported by Andreas Schwab.
76525
76526         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
76527         properly when ABASE is an absolute file name.
76528         Correct the description of this function.
76529         Include <assert.h>.
76530         Add an assertion and a test driver.
76531         This fixes a bug introduced on 2004-07-02.
76532         Andreas Schwab reported the resulting failure of cp --parents:
76533         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
76534
76535 2005-03-21  Jim Meyering  <jim@meyering.net>
76536
76537         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
76538         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
76539
76540 2005-03-21  Jim Meyering  <jim@meyering.net>
76541         and  Paul Eggert  <eggert@cs.ucla.edu>
76542
76543         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
76544         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
76545         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
76546         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
76547         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
76548         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
76549         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
76550         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
76551         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
76552         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
76553         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
76554         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
76555         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
76556         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
76557         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
76558         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
76559         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
76560         for these modules.
76561
76562 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
76563
76564         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
76565         (which shouldn't happen), generate nothing instead of returning 0
76566         immediately, so that nstrftime (NULL, ...) doesn't return 0.
76567
76568 2005-03-16  Bruno Haible  <bruno@clisp.org>
76569
76570         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
76571         HAVE_LONGLONG_64BIT.
76572
76573 2005-03-16  Bruno Haible  <bruno@clisp.org>
76574
76575         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
76576         HAVE_LONGLONG_64BIT.
76577
76578 2005-03-16  Bruno Haible  <bruno@clisp.org>
76579
76580         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
76581         HAVE_LONGLONG_64BIT.
76582
76583 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
76584
76585         * lib/strftime.c (my_strftime): Prepend space to format so that we can
76586         reliably distinguish strftime failure from empty output on POSIX
76587         hosts.
76588
76589 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
76590
76591         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
76592         (iconv_string): Don't guess a size-zero buffer, as that might cause
76593         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
76594         result would be 'too large', where 'too large' is (heuristically)
76595         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
76596         overflow concerns.  This will prevent some unwanted malloc failures
76597         when the inputs are very large.
76598
76599 2005-03-15  Karl Berry  <karl@gnu.org>
76600
76601         * config/srclist.txt (config.rpath): from gettext.
76602         * config/config.rpath: update.
76603
76604 2005-03-15  Bruno Haible  <bruno@clisp.org>
76605
76606         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
76607         to 'negate'.
76608
76609         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
76610         variable.
76611
76612         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
76613         results.
76614
76615 2005-03-14  Simon Josefsson  <jas@extundo.com>
76616
76617         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
76618         <fx@gnu.org>.
76619
76620 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
76621
76622         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
76623         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
76624         intprops.h.
76625         * lib/strtol.c: Likewise.
76626
76627 2005-03-14  Jim Meyering  <jim@meyering.net>
76628
76629         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
76630         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
76631         to be nonzero so that we (and caller) can detect the difference
76632         between a valid zero-length expansion and an error return, even
76633         when the underlying strftime fails before writing anything into
76634         that location.
76635
76636 2005-03-14  Bruno Haible  <bruno@clisp.org>
76637
76638         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
76639         Update from GNU gettext 0.14.3.
76640
76641 2005-03-10  Jim Meyering  <jim@meyering.net>
76642
76643         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
76644
76645 2005-03-10  Jim Meyering  <jim@meyering.net>
76646
76647         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
76648         so that this module works on systems without fchdir.
76649
76650 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
76651
76652         Factor int-properties macros into a single file, except for
76653         glibc-related files.
76654         * lib/intprops.h: New file.
76655         * lib/getloadavg.c: Include it instead of limits.h.
76656         (INT_STRLEN_BOUND): Remove.
76657         * lib/human.c: Include intprops.h.
76658         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
76659         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
76660         302/1000.
76661         * lib/inttostr.h: Include intprops.h instead of limits.h.
76662         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
76663         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
76664         for consistency with intprops.h.
76665         (time_t_is_integer, twos_complement_arithmetic): Use them.
76666         * lib/sig2str.h: Include <signal.h>, intprops.h.
76667         (INT_STRLEN_BOUND): Remove.
76668         * lib/strftime.c (TYPE_SIGNED): Remove.
76669         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
76670         * lib/strtol.c: Adjust comments to match intprops.h.
76671         * lib/userspec.c: Include intprops.h.
76672         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
76673         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
76674         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
76675         instead of rolling our own expressions.
76676         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
76677
76678         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
76679         instead of int.
76680         (my_strftime): Do not mishandle years close to INT_MAX, by doing
76681         the right thing even if adding 1900 would overflow.  Similarly
76682         for tm_mon + 1 and tm_yday + 1.
76683         Make %Y always equivalent to %C%y, and similarly for %G and %g.
76684         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
76685         (DO_SIGNED_NUMBER): New macro.
76686         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
76687
76688 2005-03-07  Bruno Haible  <bruno@clisp.org>
76689
76690         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
76691
76692 2005-03-07  Bruno Haible  <bruno@clisp.org>
76693
76694         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
76695
76696 2005-03-04  Derek R. Price  <derek@ximbiot.com>
76697
76698         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
76699         (func_import): Only replace files via --import when they have actually
76700         changed.
76701
76702 2005-03-03  Derek R. Price  <derek@ximbiot.com>
76703
76704         * m4/mmap-anon.m4: New file.
76705         * m4/pagealign_alloc.m4: New file.
76706
76707 2005-03-03  Derek R. Price  <derek@ximbiot.com>
76708             Bruno Haible  <bruno@clisp.org>
76709
76710         * modules/pagealign_alloc: New file.
76711         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
76712
76713 2005-03-03  Derek R. Price  <derek@ximbiot.com>
76714             Bruno Haible  <bruno@clisp.org>
76715
76716         * lib/pagealign_alloc.h: New file.
76717         * lib/pagealign_alloc.c: New file.
76718
76719 2005-03-03  Bruno Haible  <bruno@clisp.org>
76720
76721         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
76722         Use an all-permissive copyright notice, recommended by RMS.
76723
76724 2005-03-02  Bruno Haible  <bruno@clisp.org>
76725
76726         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
76727         of AIX, the replacement has to be done only after <string.h> is
76728         included, therefore not in config.h. stpncpy.h does the replacement,
76729         and stpncpy.c uses it.
76730
76731 2005-03-02  Bruno Haible  <bruno@clisp.org>
76732
76733         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
76734         stpncpy.c uses it.
76735
76736 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
76737
76738         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
76739         The workaround isn't strictly needed for POSIX conformance, and
76740         it's too much of a pain to configure and maintain.  We'll ask
76741         people to fix their kernels instead.
76742         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
76743         (NANOSLEEP_BUG_WORKAROUND): Remove.
76744         (xnanosleep): Remove the workaround.
76745
76746 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
76747
76748         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
76749         Reported by Derek Price.
76750         (Include): Add "timespec.h".
76751
76752         * modules/xnanosleep (Depends-on): Remove gethrxtime.
76753
76754 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
76755
76756         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
76757         to detect nanosleep bug.
76758
76759 2005-03-01  Bruno Haible  <bruno@clisp.org>
76760
76761         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
76762
76763 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
76764
76765         * modules/gethrxtime: New file.
76766         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
76767         (Depends-on): Add gethrxtime.
76768         (configure.ac): Add gl_XNANOSLEEP.
76769         (Makefile.am): Remove lib_SOURCES line.
76770
76771 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
76772
76773         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
76774         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
76775
76776 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
76777
76778         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
76779         * lib/timespec.h (gettime): Return void, since it always
76780         succeeds now.  All uses changed.
76781         * lib/gettime.c (gettime): Likewise.
76782         [HAVE_NANOTIME]: Prefer nanotime.
76783         Assume gettimeofday succeeds, as POSIX requires.
76784         Assime time () succeeds, since other code already does.
76785         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
76786         (timespec_subtract): Remove.
76787         (NANOSLEEP_BUG_WORKAROUND): New constant.
76788         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
76789         things considerably.  Use it only on GNU/Linux hosts, since the
76790         workaround shouldn't be needed elsewhere.
76791
76792 2005-02-24  Bruno Haible  <bruno@clisp.org>
76793
76794         * modules/gettext (Files): Add m4/glibc2.m4.
76795
76796 2005-02-24  Bruno Haible  <bruno@clisp.org>
76797
76798         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
76799         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
76800         * m4/progtest.m4:
76801         Update from GNU gettext 0.14.2.
76802         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
76803
76804 2005-02-24  Bruno Haible  <bruno@clisp.org>
76805
76806         * lib/localcharset.c: Update from GNU gettext 0.14.2.
76807         * lib/config.charset: Update from GNU gettext 0.14.2.
76808
76809 2005-02-24  Bruno Haible  <bruno@clisp.org>
76810
76811         * lib/gettext.h: Update from GNU gettext 0.14.2.
76812
76813 2005-02-23  Simon Josefsson  <jas@extundo.com>
76814
76815         * m4/iconvme.m4: New file.
76816
76817 2005-02-23  Jim Meyering  <jim@meyering.net>
76818
76819         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
76820         change.
76821         Thanks to Bruno Haible for catching it.
76822
76823 2005-02-22  Simon Josefsson  <jas@extundo.com>
76824
76825         * modules/iconvme: New file.
76826
76827         * MODULES.html.sh: Add iconvme.
76828
76829 2005-02-22  Simon Josefsson  <jas@extundo.com>
76830
76831         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
76832
76833 2005-02-22  Simon Josefsson  <jas@extundo.com>
76834
76835         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
76836
76837 2005-02-22  Jim Meyering  <jim@meyering.net>
76838
76839         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
76840         s/ifndef/ifdef/.
76841
76842 2005-02-20  Neil Conway  <neilc@samurai.com>
76843
76844         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
76845         returned by OSX/Darwin if the specified buffer is not large
76846         enough for the hostname.
76847
76848 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76849
76850         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
76851         pass it to _help, otherwise the latter coredumps trying to
76852         dereference state.root_argp.
76853
76854 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
76855
76856         * modules/chdir-long (Depends-on): Add memrchr.
76857         * modules/memrchr (Files): Add lib/memrchr.h.
76858         (Include): "memrchr.h".
76859
76860 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
76861
76862         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
76863
76864 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
76865
76866         * lib/memrchr.h: New file.
76867         * lib/chdir-long.c: Include it.
76868         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
76869         Don't bother including stddef.h.
76870
76871 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
76872
76873         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
76874         inclusion.
76875         Include <sys/types.h>, for dev_t.
76876         (ME_DUMMY, ME_REMOTE): Move from here....
76877         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
76878         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
76879         Dmitry V. Levin.
76880         Include mountlist.h first, to test the interface.
76881
76882 2005-01-29  Bruno Haible  <bruno@clisp.org>
76883
76884         * lib/progname.c (program_name): Initialize.
76885         Needed when linking statically on MacOS X.
76886
76887 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
76888
76889         Sync from coreutils.
76890         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
76891         (Depends-on): Add c-strtod.
76892         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
76893
76894 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
76895
76896         Sync from coreutils.
76897         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
76898
76899         Remove files that are specific to coreutils.
76900         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
76901
76902 2005-01-28  Bruno Haible  <bruno@clisp.org>
76903
76904         * modules/javacomp: New file.
76905         * MODULES.html.sh (Java): Add javacomp.
76906
76907 2005-01-28  Bruno Haible  <bruno@clisp.org>
76908
76909         * m4/javacomp.m4: New file, from GNU gettext.
76910
76911 2005-01-28  Bruno Haible  <bruno@clisp.org>
76912
76913         * lib/javacomp.sh.in: New file, from GNU gettext.
76914         * lib/javacomp.h: New file, from GNU gettext.
76915         * lib/javacomp.c: New file, from GNU gettext.
76916
76917 2005-01-26  Simon Josefsson  <jas@extundo.com>
76918
76919         * lib/gai_strerror.c: Use GPL in header.
76920
76921 2005-01-26  Bruno Haible  <bruno@clisp.org>
76922
76923         * modules/javaexec: New file.
76924         * MODULES.html.sh (Java): Add javaexec.
76925
76926 2005-01-26  Bruno Haible  <bruno@clisp.org>
76927
76928         * m4/javaexec.m4: New file, from GNU gettext.
76929
76930 2005-01-26  Bruno Haible  <bruno@clisp.org>
76931
76932         * lib/javaexec.sh.in: New file, from GNU gettext.
76933         * lib/javaexec.h: New file, from GNU gettext.
76934         * lib/javaexec.c: New file, from GNU gettext.
76935
76936 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76937
76938         * modules/lchown (Depends-on): Remove lchown.h
76939
76940 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76941
76942         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
76943         must be defined if the header file was not found, in order
76944         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
76945
76946 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76947
76948         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
76949         initializers for struct pentry_state.
76950         (__argp_error): Check return value of __asprintf
76951         (__argp_failure): Translate error message
76952
76953         * lib/argp-parse.c: Removed braces around the expansion of N_()
76954
76955 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
76956
76957         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
76958         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
76959         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
76960         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
76961         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
76962         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
76963         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
76964         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
76965         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
76966         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
76967         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
76968         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
76969         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
76970         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
76971         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
76972         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
76973         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
76974         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
76975         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
76976         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
76977         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
76978         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
76979         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
76980         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
76981         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
76982         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
76983         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
76984         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
76985         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
76986         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
76987         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
76988         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
76989         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
76990         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
76991         xstrtol.m4, xstrtoumax.m4, yesno.m4:
76992         Use an all-permissive copyright notice, recommended by RMS.
76993
76994 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
76995
76996         * modules/chdir-long (Depends-on): Remove mempcpy.
76997
76998 2005-01-21  Jim Meyering  <jim@meyering.net>
76999
77000         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
77001         same value as for Solaris 9.
77002
77003         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
77004         component length.  This included changing the parameter to be
77005         of type `char *' rather than `char const *'.
77006         * lib/chdir-long.h (chdir_long): Update prototype.
77007
77008         * lib/openat.c (fdopendir, fstatat): New functions.
77009         * lib/openat.h: Include headers required for use of DIR and struct
77010         stat.
77011         [AT_SYMLINK_NOFOLLOW]: Define.
77012         (fdopendir, fstatat): Add prototypes.
77013
77014 2005-01-21  Bruno Haible  <bruno@clisp.org>
77015
77016         * modules/classpath: New file.
77017         * MODULES.html.sh (Java): Add classpath.
77018
77019 2005-01-21  Bruno Haible  <bruno@clisp.org>
77020
77021         * lib/classpath.h: New file, from GNU gettext.
77022         * lib/classpath.c: New file, from GNU gettext.
77023
77024 2005-01-20  Simon Josefsson  <jas@extundo.com>
77025
77026         * modules/version-etc-fsf: New file.
77027
77028 2005-01-20  Simon Josefsson  <jas@extundo.com>
77029
77030         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
77031         * lib/version-etc.c: Remove version_etc_copyright.
77032         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
77033         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
77034
77035 2005-01-20  Simon Josefsson  <jas@extundo.com>
77036
77037         * lib/base64.h (isbase64): Add.
77038
77039         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
77040         using a unsigned prototype, don't inline.
77041         (base64_decode): Use it.
77042
77043 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
77044
77045         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
77046         it.
77047
77048 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
77049
77050         * lib/save-cwd.c (save_cwd): Remove code to support the case
77051         where fchdir is missing or flaky.
77052
77053 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
77054
77055         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
77056
77057 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
77058
77059         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
77060         AC_LIBSOURCES now does this.
77061         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
77062         with new ullong_max module.
77063
77064 2005-01-19  Bruno Haible  <bruno@clisp.org>
77065
77066         * modules/sh-quote: New file.
77067         * MODULES.html.sh (Executing programs): Add sh-quote.
77068
77069 2005-01-19  Bruno Haible  <bruno@clisp.org>
77070
77071         * lib/sh-quote.h: New file, from GNU gettext.
77072         * lib/sh-quote.c: New file, from GNU gettext.
77073
77074 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
77075
77076         Merge from coreutils.
77077         * m4/ullong_max.m4: New file.
77078         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
77079         (gl_MACROS): Assume localeconv exists.
77080
77081 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
77082
77083         Merge changes from coreutils, as described below in several
77084         changelogs dated today.
77085
77086         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
77087         (O_DIRECTORY): Remove; not needed here, since "." must be
77088         a directory.  All uses removed.
77089         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
77090         universal on Suns, and we also need to test for IRIX.
77091         Revamp code to use 'if' rather than '#if'.
77092         Avoid unnecessary comparison of cwd->desc to 0.
77093
77094         * lib/utimens.c (futimens): Robustify the previous patch, by checking
77095         for known valid error numbers rather than observed invalid ones.
77096
77097 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
77098
77099         * modules/ullong_max: New file.
77100
77101         * modules/chdir-long, modules/openat: New files.
77102         * modules/save-cwd (Depends-on): Depend on chdir-long.
77103         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
77104
77105 2005-01-18  Jim Meyering  <jim@meyering.net>
77106
77107         Merge from coreutils.
77108         * m4/chdir-long.m4, m4/openat.m4: New files.
77109         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
77110         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
77111         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
77112         is sane and DOES follow symlinks.  Besides, testing 20 different
77113         systems found no broken chown implementations.
77114         Prompted by a change in rsync's copy of this macro.
77115         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
77116
77117         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
77118
77119         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
77120         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
77121         NULL-means-set-to-current-time semantics.
77122         Remove temporary file immediately, rather than waiting
77123         for configure's at-exit trap code to do it.
77124
77125 2005-01-18  Jim Meyering  <jim@meyering.net>
77126
77127         * lib/version-etc.c (version_etc_copyright): Update copyright date.
77128
77129         * lib/utimens.c (futimens): Account for the fact that futimes
77130         can also fail with errno == ENOSYS or errno == ENOENT.
77131         Patch from Dmitry V. Levin.
77132
77133         Change the name of the robust chdir function from chdir to chdir_long.
77134         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
77135         (restore_cwd): Use chdir_long, not chdir.
77136         * lib/chdir-long.c: Renamed from chdir.c.
77137         * lib/chdir-long.h: Renamed from chdir.h.
77138         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
77139         Hurd.
77140
77141 2005-01-18  Bruno Haible  <bruno@clisp.org>
77142
77143         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
77144         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
77145         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
77146         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
77147         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
77148         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
77149         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
77150         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
77151         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
77152         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
77153         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
77154         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
77155         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
77156         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
77157         Use an all-permissive copyright notice, recommended by RMS.
77158
77159 2005-01-18  Bob Proulx  <bob@proulx.com>
77160
77161         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
77162         simplify offsetof() macro construct to avoid compile failure with
77163         native HP-UX 11.0 ANSI C compiler.
77164
77165 2005-01-17  Bruno Haible  <bruno@clisp.org>
77166
77167         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
77168         redundant because stpncpy.m4 takes care of it.
77169
77170 2005-01-17  Bruno Haible  <bruno@clisp.org>
77171
77172         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
77173
77174 2005-01-17  Bruno Haible  <bruno@clisp.org>
77175
77176         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
77177         used.
77178
77179 2005-01-17  Bruno Haible  <bruno@clisp.org>
77180
77181         * lib/fwriteerror.h (fwriteerror): Change specification to include
77182         fclose.
77183         * lib/fwriteerror.c: Include <stdbool.h>.
77184         (fwriteerror): At the end, close the file stream. Record whether
77185         stdout was already closed.
77186
77187 2005-01-17  Bruno Haible  <bruno@clisp.org>
77188
77189         * lib/execute.c (environ): Declare if needed.
77190         * lib/pipe.c (environ): Likewise.
77191         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
77192
77193 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77194
77195         * modules/argp: Depend on vsnprintf
77196
77197 2005-01-10  Jim Meyering  <jim@meyering.net>
77198
77199         * modules/closeout (Depends-on): Add atexit.
77200
77201 2005-01-06  Bruno Haible  <bruno@clisp.org>
77202
77203         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
77204
77205 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
77206
77207         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
77208         definitions to be after all include files, to avoid collisions.
77209         Problem reported by Bob Proulx.
77210
77211 2005-01-04  Jim Meyering  <jim@meyering.net>
77212
77213         Changes imported from coreutils.
77214         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
77215         as the mkstemp template, use a temporary directory and an
77216         8.3-friendly template to avoid trouble on systems like DJGPP.
77217         Reported by Juan M. Guerrero via Stepan Kasal.
77218         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
77219         close. Remove the temporary directory right away, rather than waiting
77220         for configure's at-exit trap code to do it.
77221         Suggestion from Stepan Kasal.
77222
77223 2005-01-01  Simon Josefsson  <jas@extundo.com>
77224
77225         * gnulib-tool: Print #include directives when --import'ing.
77226
77227 2004-12-28  Simon Josefsson  <jas@extundo.com>
77228
77229         * tests/test-base64.c: Include required header files.  Remove
77230         unused variables.
77231
77232 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
77233
77234         * modules/error (Depends-on): Remove gettext.
77235
77236 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
77237
77238         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
77239         not needed.  This removes a dependency on the gettext module.
77240         [defined _LIBC]: Do not include <libintl.h>; not needed.
77241
77242 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
77243
77244         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
77245         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
77246
77247 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
77248
77249         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
77250         HAVE_DECL_STRTOLD.
77251
77252 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
77253
77254         * modules/getdate (Depends-on): Remove alloca-opt.
77255
77256 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
77257
77258         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
77259
77260 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
77261
77262         * lib/argp-parse.c: Include <stddef.h>.
77263         (alignof, alignto): New macros.
77264         (parser_init): Don't assume that void * is aligned sufficiently
77265         for struct option.
77266
77267         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
77268         need to extend the stack.
77269         (YYINITDEPTH): New macro, so that the initial stack isn't overly
77270         large.
77271
77272 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77273
77274         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
77275
77276 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
77277
77278         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
77279         (2004-10-24) change.  Apparently this was a false alarm.
77280
77281         * modules/getdate: Depend on alloca-opt, not alloca.
77282
77283 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
77284
77285         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
77286         Remove now-obsolete comment about AIX.
77287         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
77288         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
77289         (YYMAXDEPTH): New macro.
77290
77291 2004-12-18  Simon Josefsson  <jas@extundo.com>
77292
77293         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
77294
77295 2004-12-18  Bruno Haible  <bruno@clisp.org>
77296
77297         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
77298
77299 2004-12-18  Bruno Haible  <bruno@clisp.org>
77300
77301         * lib/fatal-signal.c (fatal_signals): Make non-const.
77302         (init_fatal_signals): New function.
77303         (uninstall_handlers, install_handlers): Ignore signals that were set to
77304         SIG_IGN.
77305         (at_fatal_signal): Call init_fatal_signals.
77306         (init_fatal_signal_set): Likewise. Ignore signals that were set to
77307         SIG_IGN.
77308         Reported by Paul Eggert.
77309
77310 2004-12-18  Bruno Haible  <bruno@clisp.org>
77311
77312         * doc/alloca.texi: New file.
77313         * doc/alloca-opt.texi: New file.
77314
77315 2004-12-17  Jim Meyering  <jim@meyering.net>
77316
77317         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
77318         Otherwise, install-sh could exit with improper exit status when
77319         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
77320
77321 2004-12-16  Simon Josefsson  <jas@extundo.com>
77322
77323         * tests/test-base64.c: Add license.
77324
77325 2004-12-15  Stepan Kasal  <address@hidden>
77326
77327         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
77328
77329 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
77330
77331         * modules/getcwd (Files): Add m4/d-ino.m4.
77332         Suggested by Mark D. Baushke.
77333
77334 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
77335
77336         * lib/getdate.y (textint): New member "negative".
77337         (time_zone_hhmm): New function.
77338         Expect 14 shift-reduce conflicts, not 13.
77339         (o_colon_minutes): New rule.
77340         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
77341         (yylex): Set the "negative" member of signed numbers.
77342
77343 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
77344
77345         * doc/getdate.texi (Time of day items, Time zone items):
77346         Describe new formats +00:00, UTC+00:00.
77347
77348 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
77349
77350         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
77351         spurious "-l"s.  Problem reported by Stepan Kasal.
77352
77353 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
77354
77355         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
77356         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
77357
77358 2004-12-04  Simon Josefsson  <jas@extundo.com>
77359
77360         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
77361         Vandoorselaere <yoann@prelude-ids.org>.
77362
77363 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
77364
77365         Changes imported from coreutils.
77366         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
77367         exist.
77368         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
77369
77370 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
77371
77372         Changes imported from coreutils.
77373         * lib/hard-locale.c: Assume <locale.h> exists.
77374         Include "strdup.h".
77375         (GLIBC_VERSION): New macro.
77376         (hard_locale): Assume setlocale exists.
77377         Rewrite to avoid #ifdef.
77378         Use strdup rather than malloc + strcpy.
77379         * lib/human.c: Assume <locale.h> exists.
77380         (human_readable): Assume localeconv exists.
77381
77382 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
77383
77384         * modules/hard-locale (Depends-on): Add strdup.
77385
77386 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
77387
77388         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
77389         convert T2, not T.  (Imported from libc.)
77390
77391 2004-11-30  Simon Josefsson  <jas@extundo.com>
77392
77393         * modules/restrict (License): Change to LGPL.
77394
77395 2004-11-30  Simon Josefsson  <jas@extundo.com>
77396
77397         * m4/restrict.m4: Add copyright and copying conditions.
77398
77399 2004-11-30  Simon Josefsson  <jas@extundo.com>
77400
77401         * m4/base64.m4: New file.
77402
77403 2004-11-30  Simon Josefsson  <jas@extundo.com>
77404
77405         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
77406         base64.
77407
77408         * tests/test-base64.c: New file.
77409
77410         * modules/base64: New file.
77411
77412 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
77413
77414         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
77415         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
77416
77417         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
77418
77419 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
77420
77421         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
77422         (__getcwd.c): Don't restore errno; glibc doesn't.
77423         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
77424         first, falling back to our code only if its results look suspicious.
77425         Ensure that the resulting buffer is only as large as necessary.
77426
77427         * lib/readutmp.c: Include readutmp.h first.
77428         Include <errno.h>, since readutmp.h no longer does that.
77429         * lib/readutmp.h: Don't include <errno.h>,
77430         <sys/param.h>, <time.h>; not needed to establish interface.
77431         (errno): Remove decl.
77432         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
77433         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
77434         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
77435
77436 2004-11-28  Simon Josefsson  <jas@extundo.com>
77437
77438         * lib/base64.h, base64.c: New file.
77439
77440 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
77441
77442         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
77443
77444 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
77445
77446         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
77447         (Depends-on): Remove pathmax, same.  Add mempcpy.
77448         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
77449         (Makefile.am): Append getcwd.h to lib_SOURCES.
77450         (Include): Add getcwd.h.
77451         (Maintainer): Change from Jim Meyering to "all, glibc",
77452         since getdate now uses intended-for-glibc code.
77453         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
77454         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
77455
77456 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
77457
77458         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
77459         HP's ANSI C compiler.
77460         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
77461         Declaring int functions causes warnings on some modern systems and
77462         shouldn't be needed to compile on ancient ones.
77463         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
77464         defined.
77465
77466         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
77467         with the following changes.
77468         (__set_errno): Parenthesize properly.
77469         Include <stdbool.h>.
77470         (MIN, MAX, MATCHING_INO): New macros.
77471         (__getcwd): Define with prototype, not K&R form.
77472         Use heuristics to allocate default buffer on stack if possible.
77473         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
77474         behavior, and to avoid the PATH_MAX limit when computing
77475         ../../../../...
77476         Use MATCHING_INO to compare inode number to file.
77477         Check for arithmetic overflow in size calculations.
77478         Fix bug in reallocation of dot array that caused getcwd to fail
77479         on directories nested deeper than 75.
77480         Be more careful about saving errno on error.
77481         Do not use realloc; use only free+malloc, as this is a bit
77482         more flexible and avoids a needless copy operation.
77483         Do not inspect st_dev and st_ino for symbolic links; POSIX
77484         doesn't specify the latter.
77485         Check for closedir errors.
77486         Avoid needless casts.
77487         Use "#ifdef weak_alias" around weak_alias, to be like other
77488         glibc code.
77489         The following changes to getcwd.c have effect only when used in
77490         gnulib; they have no effect inside glibc proper.
77491         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
77492         as alloca isn't used.
77493         (alloca, __alloca): Likewise.
77494         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
77495         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
77496         unconditionally, as gnulib assumes C89 or better.
77497         Do not include <sys/param.h>.
77498         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
77499         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
77500         better.
77501         (NULL) [!defined NULL]: Remove; we assume C89 or better.
77502         Include <dirent.h> in a way that is compatible with modern Autoconf.
77503         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
77504         New macros, if not already defined.
77505         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
77506         Use "_LIBC", not "defined _LIBC", for consistency.
77507         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
77508         a mempcpy module.
77509         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
77510         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
77511         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
77512         credit only to Jim Meyering and adjust the copyright dates.
77513         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
77514         <stdlib.h>, <unistd.h>, "pathmax.h".
77515         Instead, include "xgetcwd.h" (first) and "getcwd.h".
77516         (INITIAL_BUFFER_SIZE): Remove.
77517         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
77518
77519 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
77520
77521         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
77522         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
77523         Use the _ONCE methods, for efficiency.
77524         Check for fcntl.h.  In test program, include <errno.h>
77525         and <fcntl.h> if available.  Remove old K&R cruft from
77526         test program.  Check for common errors in GNU/Linux,
77527         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
77528         don't do AC_LIBOBJ, as that's getcwd.m4's job.
77529         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
77530         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
77531         name accordingly.
77532         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
77533         accommodate new getcwd.c.
77534         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
77535         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
77536         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
77537         that's all we need now.
77538
77539 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77540
77541         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
77542         argp-parse.c depends on getopt internals, that means we should
77543         always use our getopt, to be on the safe side.
77544         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
77545         order not to spoil the result of an eventual previous invocation
77546         of gl_GETOPT_SUBSTITUTE.
77547
77548 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77549
77550         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
77551         redefinition warnings. To avoid them, include the defines
77552         in `#if !defined __need_getopt ... #endif'. The only place
77553         where __getopt_argv_const is used is in definitions
77554         of getopt_long and getopt_long_only below, which are as well
77555         protected by `#ifndef __need_getopt'.
77556         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
77557         __need_getopt after including <stdio.h> and <unistd.h> These
77558         headers might have defined it.
77559
77560 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
77561
77562         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
77563
77564 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
77565
77566         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
77567         (futimens): New function, which uses futimes if available.
77568         (futimens, utimens): Support timespec==NULL, with same semantics
77569         as utime and utimens.
77570         * lib/utimens.h (futimens): New decl.
77571
77572 2004-11-23  Jim Meyering  <jim@meyering.net>
77573
77574         * lib/getopt_.h: Remove trailing blanks.
77575
77576 2004-11-23  Jim Meyering  <jim@meyering.net>
77577
77578         * lib/__fpending.c: Add comment.
77579
77580 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
77581
77582         * modules/canonicalize (Depends-on): Add xreadlink.
77583         Problem reported by James Youngman.
77584
77585 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
77586
77587         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
77588         New macros.
77589         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
77590         optopt): Use them instead of invoking ## directly; otherwise, the
77591         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
77592
77593 2004-11-19  Bruno Haible  <bruno@clisp.org>
77594
77595         * lib/strtok_r.c: Move comments from here...
77596         * lib/strtok_r.h: ... to here.
77597
77598 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
77599
77600         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
77601         implementations that mishandle size_t overflow.
77602
77603 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
77604
77605         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
77606         might fail.  Problem reported by Yoann Vandoorselaere.
77607         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
77608         implementations that mishandle size_t overflow.
77609
77610 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
77611
77612         * modules/canon-host (Depends-on): Add strdup.
77613
77614 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
77615
77616         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
77617
77618 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
77619
77620         * lib/canon-host.c: Include "strdup.h".
77621         (canon_host): Use getaddrinfo if available, so that IPv6 works.
77622         Use strdup instead of malloc/strcpy to duplicate strings.
77623
77624         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
77625         (human_space_before_unit): New constant.
77626         * lib/human.c (human_readable): Support it.
77627
77628         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
77629         (xgetcwd): Set errno correctly when failing.
77630         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
77631         the failure is actually due to a PATH_MAX problem.
77632
77633         Further getopt changes to make it more likely that glibc will
77634         buy the changes back.
77635         * lib/getopt.c (POSIXLY_CORRECT): New constant.
77636         (getopt): Use it, so to preserve glibc semantic
77637         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
77638         when compiling for libc.
77639         * lib/getopt_.h (__getopt_argv_const): Bring it back.
77640         (getopt_long, getopt_long_only): Use it.
77641
77642         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
77643         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
77644         (getopt): Argv is now char * const *, as per standard.
77645         (_getopt_internal_r, _getopt_internal): Argv is now char **,
77646         not char *__getopt_argv_const *.
77647         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
77648         _getopt_long_only_r): Likewise.
77649         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
77650         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
77651         _getopt_long_r, _getopt_long_only_r): Likewise.
77652         * lib/getopt_.h (__getopt_argv_const): Remove.
77653         (getopt): Argv is now char * const *, as per standard.
77654
77655         * lib/getdate.y (tORDINAL): New token.
77656         (day, relunit): Allow it for relative times.
77657         (relative_time_table): Use tORDINAL for ordinals.
77658
77659 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
77660
77661         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
77662         Document that "second" isn't allowed as an ordinal number.
77663
77664 2004-11-16  Jim Meyering  <jim@meyering.net>
77665
77666         * modules/closeout (Depends-on): Add fpending.
77667
77668 2004-11-15  Jim Meyering  <jim@meyering.net>
77669
77670         * lib/closeout.c: Include "__fpending.h" once again.
77671         Include <stdbool.h>.
77672         (close_stdout): Don't fail just because stdout was closed initially,
77673         since some programs don't write to stdout in the normal course of
77674         operation (other than --version and --help), and we don't want this
77675         function to make e.g. `touch file >&-' fail.
77676         But do fail if it was closed and someone has tried to write to it.
77677         E.g., `printf foo >&-' must fail.
77678
77679 2004-11-13  Jim Meyering  <jim@meyering.net>
77680
77681         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
77682
77683 2004-11-12  Simon Josefsson  <jas@extundo.com>
77684
77685         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
77686         small doc fix is still pending.
77687
77688 2004-11-11  Simon Josefsson  <jas@extundo.com>
77689
77690         * modules/strtok_r: New file.
77691
77692         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77693         strtok_r.
77694
77695 2004-11-11  Simon Josefsson  <jas@extundo.com>
77696
77697         * m4/strtok_r.m4: New file.
77698
77699         * m4/getopt.m4: Replace opterr.
77700
77701 2004-11-11  Simon Josefsson  <jas@extundo.com>
77702
77703         * lib/strtok_r.h, strtok_r.c: New file.
77704
77705 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
77706
77707         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
77708         of replacing opterr, getopt, etc.  This should handle the
77709         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
77710
77711 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
77712
77713         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
77714         we can stop lying to compilers about the constness of argv when we
77715         are compiled outside glibc.
77716         (getopt, getopt_long, getopt_long_only): Use it.
77717         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
77718         _getopt_internal, getopt): Likewise.
77719         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
77720         _getopt_long_only_r): Likewise.
77721         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
77722         _getopt_long_r, _getopt_long_only_r): Likewise.
77723
77724         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
77725         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
77726         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
77727         the other external symbols.
77728         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
77729         declaration, since the above renaming now works around collisions.
77730
77731 2004-11-11  Jim Meyering  <jim@meyering.net>
77732
77733         * lib/linebreak.c: Remove trailing blanks.
77734         * lib/alloca_.h: Likewise.
77735         * lib/acosl.c: Likewise.
77736         * lib/euidaccess.c: Likewise.
77737         * lib/allocsa.h: Likewise.
77738
77739 2004-11-10  Simon Josefsson  <jas@extundo.com>
77740
77741         * m4/getaddrinfo.m4: New file.
77742
77743 2004-11-10  Simon Josefsson  <jas@extundo.com>
77744
77745         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
77746
77747 2004-11-10  Simon Josefsson  <jas@extundo.com>
77748
77749         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77750         getaddrinfo.
77751
77752         * modules/getaddrinfo: New file.
77753
77754 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
77755
77756         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
77757
77758 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
77759
77760         * lib/mktime.c (SHR): New macro, which is a portable
77761         substitute for >> that should work even on Crays.
77762         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
77763         Problem reported by Mark D. Baushke in
77764         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
77765         * lib/getdate.y (SHR): Likewise.
77766         (tm_diff): Use it.
77767         * lib/strftime.c (SHR): Likewise.
77768         (tm_diff): Use it.
77769         * lib/quotearg.c (struct quoting_options): Use unsigned int for
77770         quote_these_too, so that right shifts are well defined.  All uses
77771         changed.
77772
77773 2004-11-10  Jim Meyering  <jim@meyering.net>
77774
77775         Ensure that no close failure goes unreported.
77776         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
77777         return early when it seems there's nothing to flush.
77778         Don't include __fpending.h.
77779
77780 2004-11-10  Jim Meyering  <jim@meyering.net>
77781
77782         * modules/closeout (Depends-on): Remove fpending.
77783
77784 2004-11-10  Jim Meyering  <jim@meyering.net>
77785
77786         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
77787
77788 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
77789
77790         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
77791         gl_FUNC_STRFTIME.
77792         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
77793         and AC_REQUIRE when possible, to avoid duplicate checks.
77794         Check for <wchar.h>.
77795
77796 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
77797
77798         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
77799
77800 2004-11-09  Bruno Haible  <bruno@clisp.org>
77801
77802         * m4/sockpfaf.m4: New file.
77803
77804 2004-11-05  Bruno Haible  <bruno@clisp.org>
77805
77806         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
77807         Reported by Mark D. Baushke <mdb@cvshome.org>.
77808
77809 2004-11-04  Bruno Haible  <bruno@clisp.org>
77810
77811         2004-09-11  Bruno Haible  <bruno@clisp.org>
77812                 * allocsa.valgrind: New file.
77813         2004-02-06  Bruno Haible  <bruno@clisp.org>
77814                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
77815                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
77816                 Reported by Christopher Seip <chris.seip@hp.com>.
77817
77818 2004-11-04  Bruno Haible  <bruno@clisp.org>
77819
77820         * modules/allocsa (Files): Add lib/allocsa.valgrind.
77821         (Makefile.am): Distribute it.
77822
77823 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
77824
77825         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
77826         with errno == ERANGE if the buffer is too small.
77827         Problem reported by Mark D. Baushke.
77828
77829 2004-11-03  Albert Chin  <china@thewrittenword.com>
77830             Paul Eggert  <eggert@cs.ucla.edu>
77831
77832         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
77833         equivalent, substitute $ac_type for equivalent type rather than
77834         blindly using uint32_t *always* which won't work if uint32_t is not
77835         available.  Define _UINT32_T to work around typedef of uint32_t if
77836         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
77837         2.5.1.
77838
77839 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
77840
77841         * m4/jm-macros.m4: Sync from coreutils.
77842         (gl_MACROS): Check for mbrlen, for pathchk.
77843         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
77844
77845 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
77846
77847         * lib/xreadlink.c (MAXSIZE): New macro.
77848         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
77849         size does not exceed MAXSIZE.  Avoid cast.
77850         As suggested by Mark D. Baushke in
77851         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
77852         if readlink fails with buffer size just under MAXSIZE, try again
77853         with MAXSIZE.
77854
77855 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
77856
77857         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
77858
77859 2004-11-02  Derek R. Price  <derek@ximbiot.com>
77860         and  Paul Eggert  <eggert@cs.ucla.edu>
77861
77862         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
77863         (get_date): Overparenthesize to avoid GCC warning.
77864
77865 2004-11-02  Bruno Haible  <bruno@clisp.org>
77866
77867         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
77868         returns void.
77869
77870 2004-11-02  Bruno Haible  <bruno@clisp.org>
77871
77872         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
77873         function returns void.
77874
77875 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
77876
77877         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
77878         fflush_unlocked, flockfile, funlockfile, funlockfile,
77879         fputs_unlocked, putc_unlocked.
77880
77881 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
77882
77883         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
77884         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
77885         already declared.
77886
77887 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
77888
77889         * modules/getdate (Files): Add doc/getdate.texi.
77890         (Depends-on): Add setenv, xalloc.
77891
77892 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
77893
77894         * lib/getdate.y: Add support for TZ="foo" within a date string.
77895         Fix some bugs near time_t boundaries.  Reject dates with
77896         out-of-range components, e.g., "Sept 31".
77897         Include <stdlib.h>, "setenv.h", "xalloc.h".
77898         (ISDIGIT_LOCALE): Remove; unused.
77899         Note that the TZ and time functions used here are not reentrant.
77900         (mktime_ok, get_tz): New functions.
77901         (TZBUFSIZE): New constant.
77902         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
77903         This requires that we sometimes generate our own TZ="XXX..." setting.
77904
77905 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
77906
77907         * doc/getdate.texi: New file, from coreutils with modifications for
77908         the new TZ parsing.
77909
77910 2004-10-27  Derek R. Price  <derek@ximbiot.com>
77911
77912         * lib/mktime.c (not_equal_tm): Remove redundant check.
77913
77914 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
77915
77916         * modules/regex (lib_SOURCES): Add regex.c.
77917         Reported by James Youngman in
77918         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
77919
77920 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
77921
77922         * lib/getdate.y: Use Bison 1.875 features, and some minor
77923         code cleanups.  This change does not affect semantics.
77924         Don't include <stdlib.h>; no longer needed.
77925         Don't include unlocked-io.h; only the "#if TEST" code uses
77926         stdio, and performance isn't crucial there.
77927         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
77928         Bison 1.875 features as described below.
77929         All uses of "PC." replaced by "pc->".
77930         (YYSTYPE): Add a forward declaration.
77931         (yylex, yyerror): Use full prototypes in forward decls.
77932         Use "%pure-parser" rather than obsolescent "%pure_parser".
77933         Use %parse-param and %lex-param instead of obsolescent
77934         YYPARSE_PARAM and YYLEX_PARAM.
77935         (meridian_table, month_and_day_table, time_units_table,
77936         relative_time_table, time_zone_table, military_table,
77937         lookup_zone, lookup_word, get_date):
77938         Use NULL instead of 0 where appropriate.
77939         (to_hour): Avoid abort (), to avoid a dependency on
77940         stdlib.h.
77941         (yyerror, yylex): Now accepts parser_control * arg.
77942         (main) [TEST]: Use '\0' rather than 0 for char.
77943
77944 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
77945
77946         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
77947
77948 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
77949
77950         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
77951         It's now the caller's responsibility to handle the case where
77952         !HAVE_GETPAGESIZE && !defined getpagesize.
77953
77954         * lib/mktime.c (leapyear): Arg is long int, not int.
77955
77956 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
77957
77958         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
77959
77960 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
77961
77962         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
77963         missing.  Problem reported by James Youngman.
77964
77965 2004-10-16  Simon Josefsson  <jas@extundo.com>
77966
77967         * gnulib-tool: Fix comments.  Fix parse problem.
77968         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
77969
77970 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
77971
77972         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
77973         implementation of getopt_long.  Problem reported by Alexander Taler in:
77974         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
77975
77976 2004-10-15  Bruno Haible  <bruno@clisp.org>
77977
77978         * gnulib-tool: Untabify. Initialize supplied_libname.
77979         (func_usage): More homogenous output.
77980         (func_modules_transitive_closure, func_modules_to_filelist,
77981         func_emit_lib_Makefile_am): New functions.
77982         (func_import): New function, extracted from big case statement. Use
77983         func_get_license, func_modules_transitive_closure,
77984         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
77985         opt_lgpl. Don't use test -a, as it's not portable.
77986         (func_create_testdir): Use func_modules_transitive_closure,
77987         func_modules_to_filelist, func_emit_lib_Makefile_am.
77988
77989 2004-10-15  Bruno Haible  <bruno@clisp.org>
77990
77991         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
77992
77993 2004-10-15  Bruno Haible  <bruno@clisp.org>
77994
77995         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
77996         the portions belonging to each module.
77997         Suggested by Derek Robert Price <derek@ximbiot.com>.
77998
77999 2004-10-12  Simon Josefsson  <jas@extundo.com>
78000
78001         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
78002         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
78003         to real functions.
78004
78005 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
78006
78007         * modules/vsnprintf: New file.
78008
78009 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
78010
78011         * m4/vsnprintf.m4: New file.
78012
78013 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
78014
78015         * lib/vsnprintf.h: New file.
78016         * lib/vsnprintf.c: New file.
78017
78018 2004-10-11  Bruno Haible  <bruno@clisp.org>
78019
78020         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
78021         vsnprintf.
78022
78023 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
78024
78025         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
78026
78027 2004-10-07  Bruno Haible  <bruno@clisp.org>
78028
78029         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
78030         fits into the provided buffer.
78031
78032 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
78033
78034         * lib/diacrit.c, diacrit.h: Add GPL notice.
78035
78036         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
78037         notice.
78038         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
78039         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
78040         This avoids a potential constant-folding bug.
78041
78042 2004-10-05  Bruno Haible  <bruno@clisp.org>
78043
78044         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
78045         for the declaration of strsep.
78046
78047 2004-10-05  Bruno Haible  <bruno@clisp.org>
78048
78049         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
78050
78051 2004-10-04  Simon Josefsson  <jas@extundo.com>
78052
78053         * modules/memmem: New file.
78054         * tests/test-memmem.c: New file.
78055         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
78056
78057 2004-10-04  Simon Josefsson  <jas@extundo.com>
78058
78059         * m4/memmem.m4: New file.
78060
78061 2004-10-04  Simon Josefsson  <jas@extundo.com>
78062
78063         * lib/memmem.h: New file.
78064         * lib/memmem.c: New file, taken from glibc.
78065
78066 2004-10-04  Simon Josefsson  <jas@extundo.com>
78067
78068         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
78069         '#ifdef USE_UNLOCKED_IO'.
78070
78071 2004-10-04  Simon Josefsson  <jas@extundo.com>
78072
78073         * config/srclist.txt: Add memmem from glibc.
78074
78075 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
78076
78077         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
78078
78079         * modules/argmatch, modules/argp, modules/closeout, modules/error,
78080         modules/exclude, modules/getdate, modules/getline,
78081         modules/getndelim2, modules/getpass, modules/getpass-gnu,
78082         modules/getusershell, modules/linebuffer, modules/md5,
78083         modules/mountlist, modules/posixtm, modules/readtokens,
78084         modules/readutmp, modules/regex, modules/sha1,
78085         modules/version-etc, modules/yesno:
78086         Remove dependency on unlocked-io.
78087
78088 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
78089
78090         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
78091
78092         * m4/unlocked-io.m4: Add copyright notice.
78093         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
78094
78095 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
78096
78097         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
78098         * lib/xmalloc.c (xmemdup): Likewise.
78099         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
78100         XFREE): Remove these long-obsolescent macros.
78101         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
78102         * lib/xstrdup.c: Remove.
78103
78104         * lib/regex.c (re_comp): Cast gettext return value to char *,
78105         Problem reported by Martin Neitzel via Mark D. Baushke.
78106
78107 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
78108
78109         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
78110         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
78111         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
78112         regex.c, sha1.c, version-etc.c, yesno.c:
78113         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
78114         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
78115         the includer's responsibility.
78116
78117         Sync from coreutils.
78118
78119         * lib/modechange.c (mode_compile): Don't decrement a pointer that
78120         points to the start of a string, as the C Standard says the
78121         resulting behavior is undefined.
78122
78123         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
78124         simple -> simple_backups, numbered_existing ->
78125         numbered_existing_backups, numbered -> numbered_backups
78126         to avoid shadowing problems.  All uses changed.
78127         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
78128         * lib/backupfile.c (check_extension, numbered_backup):
78129         Rename locals to avoid shadowing 'basename'.
78130         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
78131         once.
78132
78133         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
78134         * lib/.cvsignore: Add getopt.h.
78135
78136 2004-10-04  Bruno Haible  <bruno@clisp.org>
78137
78138         * modules/README: New file.
78139         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
78140         not a module.
78141
78142 2004-10-02  Jim Meyering  <jim@meyering.net>
78143
78144         * lib/dirfd.h, getpagesize.h: Add copyright notice.
78145
78146 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
78147
78148         * modules/strsep: New file.
78149
78150 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
78151
78152         * m4/strsep.m4: New file.
78153
78154 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
78155
78156         * lib/strsep.h: New file.
78157         * lib/strsep.c: New file.
78158
78159 2004-10-01  Simon Josefsson  <jas@extundo.com>
78160
78161         * lib/snprintf.c (snprintf): Handle size==0.
78162
78163 2004-10-01  Simon Josefsson  <jas@extundo.com>
78164             Bruno Haible  <bruno@clisp.org>
78165
78166         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
78167         (snprintf): Declare 'args'.
78168
78169 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
78170
78171         * lib/snprintf.c: Remove comments as to why each header is needed.
78172
78173 2004-10-01  Bruno Haible  <bruno@clisp.org>
78174
78175         * MODULES.html.sh: Add strsep.
78176
78177 2004-09-30  Simon Josefsson  <jas@extundo.com>
78178
78179         * modules/snprintf: New file.
78180
78181 2004-09-30  Simon Josefsson  <jas@extundo.com>
78182
78183         * m4/snprintf.m4: New file.
78184
78185 2004-09-30  Simon Josefsson  <jas@extundo.com>
78186
78187         * lib/snprintf.h, lib/snprintf.c: New files.
78188
78189 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78190
78191         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
78192         (hol_entry_help): Never translate an empty string.
78193         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
78194         * lib/argp.h (OPTION_NO_TRANS): New option.
78195
78196 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
78197
78198         * modules/argp (Maintainer): Replace Simon Josefsson
78199         by Sergey Poznyakoff.
78200
78201 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
78202
78203         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
78204         changes merged back into glibc.
78205
78206 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
78207
78208         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
78209
78210 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
78211
78212         * lib/xvasprintf.c: Include xalloc.h.
78213         (xvasprintf): Use xalloc_die, not xmalloc_die.
78214
78215 2004-09-29  Bruno Haible  <bruno@clisp.org>
78216
78217         * modules/alloca-opt: New file, derived from modules/alloca.
78218         * modules/allocsa: Depend on alloca-opt instead of alloca.
78219         * modules/setenv: Likewise.
78220         * modules/vasnprintf: Likewise.
78221         * MODULES.html.sh: Add alloca-opt.
78222
78223 2004-09-28  Simon Josefsson  <jas@extundo.com>
78224
78225         * gnulib-tool: New parameter --lgpl, to asseert that modules are
78226         LGPL, and to replace license template from GPL to LGPL.
78227
78228 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
78229
78230         * modules/dummy: Change license to LGPL.
78231
78232 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
78233
78234         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
78235
78236 2004-09-24  Simon Josefsson  <jas@extundo.com>
78237
78238         * modules/minmax (License): Change from GPL to LGPL.
78239
78240 2004-09-23  Simon Josefsson  <jas@extundo.com>
78241
78242         * gnulib-tool (--import): Typo.
78243
78244 2004-09-23  Simon Josefsson  <jas@extundo.com>
78245
78246         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
78247
78248 2004-09-22  Bruno Haible  <bruno@clisp.org>
78249
78250         * modules/*: Add 'License' field.
78251         * gnulib-tool: Accept --extract-license option.
78252         (func_get_license): New function.
78253
78254 2004-09-21  Bruno Haible  <bruno@clisp.org>
78255
78256         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
78257         Reported by Simon Josefsson.
78258
78259 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
78260
78261         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
78262         gl_AC_TYPE_LONG_LONG.
78263
78264 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
78265
78266         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
78267
78268 2004-09-18  Simon Josefsson  <jas@extundo.com>
78269         and  Paul Eggert  <eggert@cs.ucla.edu>
78270
78271         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
78272         calls with autoreconf.  Define GL_LIB.
78273
78274 2004-09-14  Karl Berry  <karl@gnu.org>
78275
78276         * config/srclist.txt: unsync setenv.c, sigh.
78277
78278 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
78279
78280         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
78281         Problem reported by Bruno Haible in:
78282         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
78283
78284 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
78285
78286         * config/srclist.txt: Comment out argp-pvh.c.
78287
78288 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
78289
78290         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
78291         in case some system header has #define'd it.  Problem reported by
78292         Soeren D. Schulze in
78293         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
78294
78295 2004-09-09  Karl Berry  <karl@gnu.org>
78296
78297         * regex.[ch]: delete from the root.  These were supposed to be
78298                 synced with emacs cvs, but this has not happened for about
78299                 a year, and anyway nothing else uses emacs regex.[ch].
78300                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
78301                 lib/regex[.ch] is untouched.
78302
78303 2004-09-09  Bruno Haible  <bruno@clisp.org>
78304
78305         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
78306
78307 2004-09-09  Bruno Haible  <bruno@clisp.org>
78308
78309         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
78310         modifications.
78311         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
78312
78313 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
78314
78315         * modules/xvasprintf: New file.
78316         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
78317
78318 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
78319
78320         * lib/xvasprintf.h: New file.
78321         * lib/xvasprintf.c: New file.
78322         * lib/xasprintf.c: New file.
78323
78324 2004-09-08  Bruno Haible  <bruno@clisp.org>
78325
78326         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
78327
78328 2004-09-08  Bruno Haible  <bruno@clisp.org>
78329
78330         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
78331         length is > INT_MAX.
78332         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
78333         more.
78334
78335 2004-09-08  Bruno Haible  <bruno@clisp.org>
78336
78337         * lib/stdint_.h: New file, taken from GNU clisp.
78338
78339 2004-09-08  Bruno Haible  <bruno@clisp.org>
78340             Oskar Liljeblad  <oskar@osk.mine.nu>
78341
78342         * modules/stdint: New file.
78343         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
78344
78345 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78346
78347         Import from coreutils.
78348         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
78349         strings on unbounded length.  alloca's performance benefits aren't
78350         that important here.
78351         (V_STRDUP): Remove.
78352         (parse_with_separator): New function, with most of the internals
78353         of the old parse_user_spec.  Allow user to omit both user and group,
78354         for compatibility with FreeBSD.
78355         Clone only the user name, not the entire spec.
78356         Do not set *uid, *gid unless entirely successful.
78357         Avoid memory leak in some failing cases.
78358         Fix regression for USER.GROUP reported by Dmitry V. Levin in
78359         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
78360         (parse_user_spec): Rewrite to use parse_with_separator.
78361
78362 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78363
78364         * modules/userspec: Don't depend on alloca.
78365
78366 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78367
78368         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
78369
78370 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
78371
78372         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
78373         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
78374         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
78375
78376 2004-08-16  Simon Josefsson  <jas@extundo.com>
78377
78378         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
78379         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
78380         Add --dry-run for --import.
78381         Let user provided command line parameters override configure.ac
78382         settings.
78383
78384 2004-08-12  Simon Josefsson  <jas@extundo.com>
78385
78386         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
78387         as discussed with Paul Eggert in threads rooted at
78388         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
78389         and
78390         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
78391         Before, the test was empty, and relied on ELIDE_CODE in source
78392         code.)
78393         (gl_PREREQ_GETOPT): New macro.
78394         (gl_GETOPT): Use them.
78395
78396 2004-08-12  Simon Josefsson  <jas@extundo.com>
78397
78398         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
78399         * lib/getopt_.h: Renamed from getopt.h.
78400
78401 2004-08-12  Simon Josefsson  <jas@extundo.com>
78402
78403         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
78404         Change default library name from libfoo to libgnu.
78405         Now, if you have a configure.ac that says:
78406                 gl_SOURCE_BASE(gl)
78407                 gl_M4_BASE(gl/m4)
78408                 gl_MODULES(error getopt etcetera)
78409                 gl_INIT
78410         you can import all you need by running:
78411                 ../gnulib/gnulib-tool --import
78412
78413         * modules/getopt (Files): Rename getopt.h to getopt_.h.
78414         (Makefile.am): Rewrite, use logic from argz.
78415         (Include): Use <getopt.h> instead of "getopt.h".
78416
78417 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
78418
78419         * modules/argp (Files): Add m4/unlocked-io.m4.
78420         (Depends-on): Add extensions.
78421
78422 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
78423
78424         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
78425         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
78426         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
78427         Check for program_invocation_name, program_invocation_short_name,
78428         flockfile, funlockfile, features.h, _getopt_long_only_r.
78429
78430 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
78431
78432         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
78433         its complicated substitute.
78434         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
78435         and program_invocation_name.
78436         (__argp_basename) [!_LIBC]: Remove; the only use was
78437         replaced by its body.
78438         (__argp_short_program_name): Change condition from
78439         !defined __argp_short_program_name to
78440         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
78441         to match argp-namefrob.h.
78442         (__argp_failure): Don't assume strerror_r returns char *.
78443         * lib/argp-parse.c (N_): Define unconditionally.
78444         (argp_default_options): Fill out initializers with 0 to avoid
78445         gcc warnings.
78446
78447 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
78448
78449         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
78450         getopt1.c.
78451
78452 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
78453
78454         Merge from coreutils.
78455
78456         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
78457
78458         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
78459         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
78460
78461 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
78462
78463         Merge from coreutils.
78464
78465         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
78466         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
78467         for Reliant Unix 5.43.
78468
78469         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
78470         (union fooround): Use uintmax_t, not long int.
78471         The rest is a merge from libc:
78472         [defined _LIBC]: Include <shlib-compat.h>.
78473         (_obstack) [defined _LIBC]: Remove after 2.3.4.
78474
78475         * lib/settime.c (settime): Recode to avoid warning with
78476         Sun Forte C 6U2.
78477
78478         * lib/strverscmp.c: Convert to UTF-8.
78479
78480 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
78481
78482         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
78483         m4/uintmax_t.m4.
78484
78485 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
78486
78487         * modules/xalloc-die: New file.
78488         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
78489
78490         * modules/md5 (Files): Add m4/uint32_t.m4.
78491         * modules/sha1: Renamed from modules/sha.
78492         (Files):
78493         Rename lib/sha.h to lib/sha1.h.
78494         Rename lib/sha.c to lib/sha1.c.
78495         Rename m4/sha.m4 to m4/sha1.m4.
78496         (lib_SOURCES): Likewise.
78497         (configure.ac): Rename gl_SHA to gl_SHA1.
78498         (Include): sha.h -> sha1.h.
78499
78500 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
78501
78502         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
78503         * m4/sha1.m4: Renamed from sha.m4.
78504         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
78505
78506 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
78507
78508         * lib/obstack.h (obstack_empty_p):
78509         Don't assume that chunk->contents is suitably aligned.
78510         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
78511         Likewise. Problem reported by Benno in
78512         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
78513
78514         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
78515         readable.  This could be improved further but it'd take some work.
78516
78517 2004-08-08  Simon Josefsson  <jas@extundo.com>
78518
78519         * modules/xgethostname (Depends-on): Remove exit and error (not
78520         used).
78521
78522         * modules/getpass-gnu: Add getpass.h.
78523         (Depends-on): Add stdbool.
78524         * modules/getpass: Add getpass.h.
78525
78526 2004-08-08  Simon Josefsson  <jas@extundo.com>
78527
78528         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
78529         Check getpass declaration.
78530
78531 2004-08-08  Simon Josefsson  <jas@extundo.com>
78532
78533         * lib/xgethostname.c: Don't include error.h (not used).
78534
78535         * lib/getpass.h: Add.
78536         * lib/getpass.c: Include getpass.h first.
78537
78538 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
78539
78540         * lib/xalloc-die.c: New file.
78541         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
78542         All uses removed.
78543         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
78544         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
78545         xalloc-die.c.
78546         (_, N_, xalloc_die): Move to xalloc-die.c.
78547         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
78548         so that we needn't mess with xalloc_msg_memory_exhausted.
78549
78550         * lib/sha1.h: Renamed from sha.h.
78551         (SHA1_H): Renamed from _SHA_H.
78552         (sha1_ctx): Renamed from sha_ctx.
78553         (sha1_init_ctx): Renamed from sha_init_ctx.
78554         (sha1_process_block): Renamed from sha_process_block.
78555         (sha1_process_bytes): Renamed from sha_process_bytes.
78556         (sha1_finish_ctx): Renamed from sha_finish_ctx.
78557         (sha1_read_ctx): Renamed from sha_read_ctx.
78558         (sha1_stream): Renamed from sha_stream.
78559         (sha1_buffer): Renamed from sha_buffer.
78560         * lib/sha1.c: Likewise; renamed from sha.c.
78561         Do not include <sys/types.h>.
78562         Include <stddef.h> rather than <stdlib.h>.
78563
78564 2004-08-08  Bruno Haible  <bruno@clisp.org>
78565
78566         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
78567         FILESYSTEM_PREFIX_LEN.
78568         * lib/progreloc.c: Likewise.
78569         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
78570
78571 2004-08-06  Simon Josefsson  <jas@extundo.com>
78572
78573         * modules/progname (Depends-on): Don't depend on stdbool.
78574
78575 2004-08-06  Simon Josefsson  <jas@extundo.com>
78576
78577         * modules/getsubopt: New file.
78578         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
78579         getsubopt.
78580
78581 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
78582
78583         More merge from coreutils.
78584
78585         * m4/utimens.m4, m4/utimecmp.m4: New files.
78586         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
78587         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
78588         prereq.m4, sha.m4: Import changes from coreutils.
78589
78590 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
78591
78592         More merge from coreutils.
78593         * modules/raise, modules/readtokens0, modules/utimens:
78594         * modules/utimecmp, module/xnanosleep: New files.
78595         * modules/strftime: Add lib/strftime.h.
78596         Change include from <time.h> to "strftime.h".
78597         * modules/yesno: Add lib/yesno.h.
78598         * modules/backupfile: Remove lib/addext.c.
78599         * modules/euidaccess: Add stat-macros.h.
78600         * modules/canonicalize, modules/euidaccess,
78601         modules/filemode, modules/lchown, modules/makepath,
78602         modules/rmdir, modules/stat: Likewise.
78603
78604 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
78605
78606         Merge from tar.
78607         * lib/argp-help.c (make_hol, hol_append): Don't assume that
78608         SIZE_MAX is a valid preprocessor constant.
78609         (__argp_basename): Change from "#ifndef _LIBC"
78610         to "#ifndef __argp_short_program_name", so that
78611         we don't compile these functions for tar.
78612
78613         More merges from coreutils.
78614         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
78615         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
78616         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
78617         * lib/addext.c: Remove; no longer needed.
78618         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
78619         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
78620         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
78621         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
78622         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
78623         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
78624         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
78625         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
78626         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
78627         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
78628         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
78629         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
78630         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
78631         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
78632         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
78633         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
78634         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
78635         Import changes from coreutils.
78636
78637 2004-08-05  Simon Josefsson  <jas@extundo.com>
78638
78639         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
78640
78641 2004-08-05  Simon Josefsson  <jas@extundo.com>
78642
78643         * m4/getsubopt.m4: New file.
78644
78645 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
78646
78647         Merge from coreutils.
78648
78649         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
78650         * m4/getcwd-path-max.m4: New files.
78651
78652         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
78653         FILESYSTEM_PREFIX_LEN ->
78654         FILE_SYSTEM_PREFIX_LEN.
78655         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
78656         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
78657         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
78658         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
78659
78660         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
78661         prerequisite modules now handle the DOS stuff.
78662         Don't check for unistd.h.
78663
78664 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
78665
78666         Merge from coreutils.
78667
78668         * lib/.gdb-history: Remove; this doesn't belong here.
78669
78670         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
78671         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
78672         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
78673         * lib/getcwd.c: New files.
78674
78675         * lib/dirname.h: Include <stdbool.h>.
78676         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
78677         for consistency with POSIX terminology.  All uses changed.
78678         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
78679         (strip_trailing_slashes): Use bool for booleans.
78680         * lib/stripslash.c (strip_trailing_slashes): Likewise.
78681
78682         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
78683         sometimes returns a positive errno value even when it succeeds.
78684         (print_errno_message) [!LIBC]: Fall back on strerror if
78685         __strerror_r fails.
78686
78687         * lib/path-concat.c (mempcpy): Don't define if a system header defines
78688         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
78689         (longest_relative_suffix): New function.
78690         (path_concat): Use it.  Assume first argument is not NULL.
78691         Port to DOS.  Omit redundant separators.
78692         Report an error instead of returning NULL.
78693         Use mempcpy instead of memcpy.
78694         (xpath_concat): Remove: not declared or used.
78695
78696         * lib/same.h: Include <stdbool.h>
78697         (same_name): Return bool, not int.
78698         * lib/same.c (same_name): Likewise.
78699         (errno): Don't declare; we assume C89 or better now.
78700
78701         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
78702         if not already defined.
78703
78704         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
78705         * lib/dup-safer.c (errno): Likewise.
78706
78707 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
78708
78709         Merge from coreutils.
78710         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
78711         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
78712         * modules/path-concat: Don't depend on strdup.
78713
78714 2004-08-03  Simon Josefsson  <jas@extundo.com>
78715
78716         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
78717         * lib/progname.h: Don't include stdbool.h.
78718
78719 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
78720
78721         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
78722         * MODULES.html.sh (func_all_modules): Remove fatal.
78723
78724 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
78725
78726         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
78727
78728 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
78729
78730         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
78731         working.
78732
78733 2004-08-02  Simon Josefsson  <jas@extundo.com>
78734
78735         * lib/getsubopt.h: New file, with comments from Bruno Haible.
78736         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
78737         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
78738
78739 2004-08-01  Simon Josefsson  <jas@extundo.com>
78740
78741         * lib/xgetdomainname.c: Include stdlib.h, for free().
78742
78743 2004-07-19  Bruno Haible  <bruno@clisp.org>
78744
78745         * MODULES.html.sh (func_all_modules): Add dummy.
78746
78747 2004-07-16  Simon Josefsson  <jas@extundo.com>
78748
78749         * modules/dummy: New file.
78750
78751 2004-07-16  Simon Josefsson  <jas@extundo.com>
78752
78753         * lib/dummy.c: New file.
78754
78755 2004-07-16  Bruno Haible  <bruno@clisp.org>
78756
78757         * lib/backupfile.h: Add extern "C" for C++.
78758         * lib/closeout.h: Likewise.
78759         * lib/copy-file.h: Likewise.
78760         * lib/findprog.h: Likewise.
78761         * lib/full-write.h: Likewise.
78762         * lib/pathname.h: Likewise.
78763         * lib/progname.h: Likewise.
78764         * lib/stpcpy.h: Likewise.
78765         * lib/stpncpy.h: Likewise.
78766         * lib/strcase.h: Likewise.
78767         * lib/strstr.h: Likewise.
78768         * lib/xalloc.h: Likewise.
78769
78770         * lib/mbswidth.h: Add extern "C" for C++.
78771         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
78772
78773 2004-07-13  Robert Millan  <robertmh@gnu.org>
78774
78775         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
78776
78777 2004-07-09  Simon Josefsson  <jas@extundo.com>
78778
78779         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
78780         failed without this.)
78781
78782 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
78783
78784         * modules/chown (Files): Add lib/fchown-stub.c, since
78785         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
78786
78787 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
78788
78789         * lib/fchown-stub.c: New file.
78790
78791 2004-06-24  Jim Meyering  <jim@meyering.net>
78792
78793         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
78794
78795 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
78796
78797         * modules/argz: Omit "#include".
78798
78799         * MODULES.html.sh (func_all_modules): Add calloc, to match
78800         2004-06-01 addition of calloc module.
78801
78802 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
78803
78804         * m4/argz.m4: New file, which is autoupdated from libtool.
78805
78806 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
78807
78808         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
78809         libtool.
78810
78811 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
78812
78813         * config/srclist-update: Don't insist on "USA." before the
78814         close-comment, as libtool omits the period and puts the */ on a
78815         separate line.
78816         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
78817         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
78818
78819 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
78820
78821         * modules/argz: New file.
78822         * MODULES.html.sh (func_all_modules): Add argz.
78823
78824 2004-06-12  Jim Meyering  <jim@meyering.net>
78825         and  Paul Eggert  <eggert@cs.ucla.edu>
78826
78827         * modules/hash (Files): Add lib/xalloc.h.
78828         * modules/pipe (Depends-on): Add wait-process.
78829         * modules/stat (Depends-on): Add xalloc.
78830         * modules/userspec (Files): Add lib/userspec.h.
78831         * modules/xstrto
78832
78833         Upgrade from gettext-0.13.
78834         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
78835         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
78836         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
78837
78838 2004-06-10  Jim Meyering  <jim@meyering.net>
78839
78840         * lib/calloc.c: New file.
78841
78842 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
78843
78844         * lib/getdate.y (yylex): Allow space between sign and number.
78845         Problem reported by Dan Jacobson.
78846
78847 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
78848
78849         Merge from coreutils CVS.
78850
78851         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
78852         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
78853         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
78854         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
78855         xstrtol.m4: Fix copyright date and/or serial number.
78856
78857         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
78858         See if we need an fchown replacement.
78859         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
78860         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
78861         and use the replacement function if we detect either defect.
78862
78863         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
78864         gl_UTIMECMP.
78865
78866 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
78867         and  Jim Meyering  <jim@meyering.net>
78868
78869         Merge from coreutils CVS.
78870
78871         * lib/stat-macros.h: New file, with contents from file-type.h
78872         and coreutils' system.h.
78873         * lib/file-type.c: Include "stat-macros.h".
78874         * lib/file-type.h (file_type): Move all macro definitions to new file,
78875         stat-macros.h.
78876
78877         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
78878         Wrap old code with this conditional.
78879         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
78880         function that does not dereference symlinks.
78881         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
78882
78883         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
78884         dependency problems.
78885         (xreadlink): Accept new arg SIZE, for efficiency.
78886         All decls and uses changed.
78887         * lib/xreadlink.h: Include <stddef.h>, for size_t.
78888
78889         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
78890         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
78891
78892         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
78893         sysexits.h.
78894
78895 2004-06-01  Jim Meyering  <jim@meyering.net>
78896
78897         * m4/calloc.m4: New file.
78898
78899 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
78900
78901         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
78902         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
78903         Also, fix a typo in a diagnostic.
78904
78905 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
78906
78907         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
78908         or AC_FUNC_REALLOC.
78909
78910 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
78911
78912         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
78913         macros to be defined.
78914         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
78915         the allocator returns NULL because the requested size is zero.
78916
78917 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
78918
78919         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
78920         var.  Add comment explaining why libc still defines it.  This
78921         merges the following patch from glibc:
78922         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
78923
78924 2004-05-20  Andreas Schwab  <schwab@suse.de>
78925
78926         * m4/free.m4: Replace free if it not known to work, not the other
78927         way round.
78928
78929 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
78930
78931         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
78932         present in glibc since revision 1.1 of this file.
78933         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
78934         obstack_alignment_mask, obstack_alloc, obstack_base,
78935         obstack_blank, obstack_blank_fast, obstack_chunk_size,
78936         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
78937         obstack_grow0, obstack_init, obstack_int_grow,
78938         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
78939         obstack_next_free, obstack_object_size, obstack_ptr_grow,
78940         obstack_ptr_grow_fast, obstack_room): Remove declarations of
78941         nonexistent functions.
78942
78943 2004-05-18  Karl Berry  <karl@gnu.org>
78944
78945         * config/srclist.txt: break link for vasnprintf.c.
78946
78947 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
78948
78949         Port obstack to the AS/400, where pointers are 16 bytes wide and
78950         you cannot cast an integer to a valid pointer.  This patch is
78951         currently waiting to be integrated into glibc; see
78952         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
78953
78954         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
78955         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
78956         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
78957         (struct obstack): temp member is now a union of a pointer and
78958         an integer, instead of an integer.  All integer uses changed.
78959         This does not affect the physical layout of struct obstack,
78960         except on hosts (like the AS/400) where the size or alignment of
78961         void * is greater than that of ptrdiff_t.
78962         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
78963         __STDC__)]: Store temporary in pointer member of union, not
78964         integer member.
78965         * lib/obstack.c: Include <stddef.h>, for offsetof.
78966         (struct fooalign): Remove; it doesn't need a name.
78967         (union fooround): Change double to long double, and add void *.
78968         (DEFAULT_ALIGNMENT): Use offsetof to compute.
78969         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
78970         not a macro.  Hence the values are always int; so remove all
78971         casts-to-int in uses.
78972
78973 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
78974
78975         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
78976         we can get this patch merged into glibc.
78977
78978 2004-05-17  Derek R. Price  <derek@ximbiot.com>
78979             Paul Eggert  <eggert@cs.ucla.edu>
78980
78981         * m4/argp: Depend on alloca.
78982
78983 2004-05-17  Derek R. Price  <derek@ximbiot.com>
78984             Paul Eggert  <eggert@cs.ucla.edu>
78985
78986         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
78987         freecoding.
78988
78989 2004-05-17  Bruno Haible  <bruno@clisp.org>
78990
78991         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
78992         precision that consists of a '.' followed by an empty digit string.
78993         Patch by Tor Lillqvist <tml@iki.fi>.
78994
78995 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
78996
78997         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
78998         for backward compatibility with older code.  We need our own
78999         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
79000         it under some other name, and our alloca.h will define it.
79001
79002 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
79003             Derek Price  <derek@ximbiot.com>
79004
79005         * lib/alloca.c: Include <alloca.h>, to get our interface.
79006         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
79007         include <alloca.h> first.  Use C89 prototype for alloca; this
79008         requires including <stddef.h> for size_t.  Use extern "C" if C++.
79009         Use #elif for simplicity, since we can assume C89 now.
79010         Don't try to source the system alloca.h since it will not be found
79011         and to prevent recursively including its replacement.
79012         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
79013         * lib/regex.c: Likewise.
79014
79015 2004-05-16  Derek Price  <derek@ximbiot.com>
79016             Paul Eggert  <eggert@cs.ucla.edu>
79017
79018         getline cleanup.  This changes the getndelim2 API: both order of
79019         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
79020         no delimiter).
79021
79022         * lib/getline.c: Don't include stddef.h or stdio.h, since our
79023         interface does that.
79024         (getline): Always use getdelim, so that we don't have two
79025         copies of this code.
79026         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
79027         if available.
79028         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
79029         (GETNDELIM2_MAXIMUM): New macro.
79030         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
79031         instead of the old practice of delim2==0.  All callers changed.
79032         Return -1 on overflow, instead of returning junk.
79033         Do not set *linesize unless allocation succeeds.
79034         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
79035         that we include sys/types.h.
79036         * lib/getnline.h: Likewise.
79037         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
79038         (getndelim2): Reorder arguments.
79039         * lib/getnline.c (getnline, getndelim):
79040         Don't discard the NMAX argument.
79041         (getnline): Invoke getndelim, to avoid code duplication.
79042         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
79043         of (size_t) -1 by callers of the getnline family.
79044
79045 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
79046
79047         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
79048         Check for gettimeofday.
79049         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
79050         Check for settimeofday, stime.
79051
79052 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
79053
79054         * lib/nanosleep.c (suspended): Change its type from int to
79055         sig_atomic_t volatile.
79056         (first_call): Make it private to rpl_nanosleep, and have it
79057         be zero initially as that's a bit faster.
79058         (my_usleep): Round up fractional times instead of truncating them,
79059         as this is the usual meaning for 'sleep'.
79060
79061         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
79062         doesn't work.
79063         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
79064         (ENOSYS): Define if not defined.
79065         (settime): Fall back on stime if it exists and settimeofday fails.
79066         But don't bother with fallbacks if a method fails with errno == EPERM.
79067
79068 2004-05-11  Jim Meyering  <jim@meyering.net>
79069
79070         Prior to this change, the save_cwd caller required read access to the
79071         current directory on most systems (ones with the fchdir function).
79072
79073         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
79074         fails, try write-only, and finally, resort to using xgetcwd.
79075
79076 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
79077
79078         * lib/obstack.c, obstack.h: Import changes from libc.
79079
79080 2004-04-28  Bruno Haible  <bruno@clisp.org>
79081
79082         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
79083         also implicitly appends .exe to executables.
79084         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
79085         accepts Windows pathnames.
79086         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
79087         Treat Cygwin like Windows, since it now accepts Windows pathnames.
79088         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
79089         Treat Cygwin like Windows, since it now accepts Windows pathnames.
79090         Reported by Derek Robert Price <derek@ximbiot.com>.
79091
79092 2004-04-21  Karl Berry  <karl@gnu.org>
79093
79094         * config/srclist.txt (localcharset.c): break sync.
79095
79096 2004-04-20  Paul Eggert  <eggert@twinsun.com>
79097
79098         * m4/host-os.m4: Add a copyright notice.
79099
79100 2004-04-20  Jim Meyering  <jim@meyering.net>
79101
79102         Change UTILS_ to gl_ in AC_DEFINE'd names.
79103         Change utils_- and jm_-prefixed variables, too.
79104         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
79105         UTILS_FUNC_MKDIR_TRAILING_SLASH.
79106         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
79107
79108         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
79109         Don't emit trailing blanks.
79110         Also rename jm_-prefixed variables to have gl_ prefix.
79111
79112         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
79113         Also rename jm_-prefixed variables to have gl_ prefix.
79114
79115         * m4/jm-macros.m4: Reflect the renamings.
79116         * m4/prereq.m4: Likewise.
79117
79118 2004-04-20  Jim Meyering  <jim@meyering.net>
79119
79120         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
79121         memory.
79122
79123 2004-04-20  Jim Meyering  <jim@meyering.net>
79124             Bruno Haible  <bruno@clisp.org>
79125
79126         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
79127         memory when realloc fails.
79128
79129 2004-04-19  Jim Meyering  <jim@meyering.net>
79130
79131         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
79132         now that readutmp.c may call `free (0)'.
79133
79134 2004-04-19  Bruno Haible  <bruno@clisp.org>
79135
79136         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
79137         * m4/inttypes_h.m4: Likewise.
79138         * m4/stdint_h.m4: Likewise.
79139         * m4/intmax_t.m4: Likewise.
79140         * m4/uintmax_t.m4: Likewise.
79141
79142 2004-04-18  Jim Meyering  <jim@meyering.net>
79143
79144         * m4/prereq.m4: Don't forbid jm_ prefix.
79145
79146         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
79147         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
79148         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
79149         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
79150         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
79151         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
79152         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
79153         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
79154         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
79155         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
79156         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
79157         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
79158         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
79159         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
79160         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
79161         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
79162         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
79163         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
79164         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
79165
79166 2004-04-18  Jim Meyering  <jim@meyering.net>
79167
79168         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
79169         failure, don't leak memory and do call END_UTMP_ENT.
79170
79171 2004-04-16  Jim Meyering  <jim@meyering.net>
79172
79173         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
79174         coreutils' stat program.
79175         (gl_PREREQ): Don't require jm_PREREQ_STAT.
79176
79177 2004-04-11  Paul Eggert  <eggert@twinsun.com>
79178
79179         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
79180         C89.
79181         (CHAR_BIT): Remove, since we assume C89.
79182         Include <stdint.h> if available, as per current Autoconf CVS advice.
79183
79184 2004-03-31  Jim Meyering  <jim@meyering.net>
79185
79186         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
79187         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
79188         * m4/xalloc.m4: Likewise.
79189
79190 2004-03-30  Paul Eggert  <eggert@twinsun.com>
79191
79192         Merge from coreutils.
79193
79194         * m4/inttostr.m4: New file.
79195         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
79196         Require AM_STDBOOL_H and gl_TIMESPEC instead.
79197         Require gl_CLOCK_TIME.
79198         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
79199
79200 2004-03-30  Paul Eggert  <eggert@twinsun.com>
79201
79202         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
79203         not bool, to be more consistent with Unix conventions.
79204         Suggested by Bruno Haible.
79205
79206         Merge from coreutils.
79207
79208         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
79209         * lib/umaxtostr.c: New files.
79210
79211         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
79212         the usual <time.h> dance.
79213         (get_date): Change signature to support fractional time stamps.
79214         All callers changed.
79215         * lib/getdate.y: Include "getdate.h" first, as we can now
79216         assume C89 and don't need to worry about 'const'.
79217         Similarly, include "unlocked-io.h" near start, not in middle.
79218         Include <limits.h>.
79219         (textint.value): Use long int rather than int.
79220         (textint.digits): Use size_t rather than int.
79221         (BILLION, LOG10_BILLION): New constants.
79222         (parser_control): New member rel_ns.  Members day_ordinal,
79223         time_zone, month, day, hour, minutes, rel_year, rel_month,
79224         rel_day, rel_hour, rel_minutes, rel_seconds
79225         are now long int, not int.  Member seconds is now struct timespec,
79226         not int.  New member timespec_seen.  Members dates_seen, days_seen,
79227         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
79228         not int.
79229         (%union.intval): Now long int, not int.
79230         New member timespec.
79231         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
79232         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
79233         (spec): Now is a timespec or an item list.
79234         (timespec, items): New nonterminals.
79235         (time, rel, relunit, number, get_date):
79236         Add support for fractional seconds.
79237         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
79238         (gmtime, localtime, mktime): Remove decls; not needed with C89.
79239         (to_hour): First arg is now long int, not int.
79240         (to_year): Returns long int, not int.
79241         Don't treat year -70 like 70.
79242         (tm_diff): Returns long int, not int.
79243         (lookup_word): Use bool instead of int when appropriate.
79244         (yylex): Use size_t for count, not int.
79245         Detect overflow when parsing large integer constants.
79246         Add support for fractions.
79247         (get_date): Make pointers 'const' if possible.
79248         Use more-portable code to detect integer overflow.
79249         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
79250         Don't use ctime; it's not reliable if the year has >4 digits.
79251
79252         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
79253         This is for compatibility with BSD.
79254
79255         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
79256         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
79257         From coreutils' system.h.
79258
79259         * lib/userspec.c: Don't include "posixver.h".
79260         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
79261         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
79262         compatible extension.  Simplify code by removing a boolean int
79263         that was always nonzero if a string was nonnull.
79264
79265 2004-03-30  Jim Meyering  <jim@meyering.net>
79266
79267         Merge from coreutils.
79268
79269         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
79270         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
79271         on some systems one must include <grp.h> before it.
79272         Reported by Christian Krackowizer.
79273
79274 2004-03-30  Jim Meyering  <jim@meyering.net>
79275
79276         Merge from coreutils.
79277
79278         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
79279
79280         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
79281         an empty input stream.
79282
79283         * lib/readtokens.c: Include <stdbool.h>.
79284         (readtoken): Use `size_t' rather than int/long.
79285         All callers adjusted.
79286         Use `bool' rather than `int' where appropriate.
79287         Use memset rather than an explicit loop.
79288         Use x2nrealloc rather than xrealloc.
79289         Allow the use of `\0' as a delimiter.
79290         (readtokens): Likewise.
79291         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
79292
79293 2004-03-30  Jim Meyering  <jim@meyering.net>
79294
79295         * m4/realloc.m4: Remove file, since now it does no more than
79296         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
79297         the `configure.ac' section of module/realloc.
79298         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
79299
79300 2004-03-30  Bruno Haible  <bruno@clisp.org>
79301
79302         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
79303         nonnull.
79304
79305 2004-03-29  Paul Eggert  <eggert@twinsun.com>
79306
79307         Merge changes to getloadavg.c from coreutils and Emacs.
79308
79309         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
79310         Define to an expression, not to the empty string.
79311         Include cloexec.h and xalloc.h.
79312         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
79313         Use set_cloexec_flag rather than rolling our own.
79314         * lib/cloexec.c, lib/cloexec.h: New files.
79315
79316 2004-03-29  Paul Eggert  <eggert@twinsun.com>
79317
79318         * m4/cloexec.m4: New file.
79319
79320 2004-03-18  Paul Eggert  <eggert@twinsun.com>
79321
79322         * lib/getopt.h: Sync with libc CVS.
79323
79324 2004-03-18  Paul Eggert  <eggert@twinsun.com>
79325             Bruno Haible  <bruno@clisp.org>
79326
79327         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
79328         mbswidth.
79329
79330 2004-03-18  Paul Eggert  <eggert@twinsun.com>
79331             Bruno Haible  <bruno@clisp.org>
79332
79333         * lib/mbswidth.h: Include <wchar.h> only if
79334         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
79335         <wchar.h>.
79336         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
79337
79338 2004-03-09  Paul Eggert  <eggert@twinsun.com>
79339
79340         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
79341         Sync with libc CVS.
79342         * lib/getopt_int.h: New file, also synced from libc.
79343
79344 2004-03-09  Paul Eggert  <eggert@twinsun.com>
79345
79346         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
79347         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
79348         Bring back getopt.c, getopt.h, getopt1.c.
79349
79350 2004-03-07  Paul Eggert  <eggert@twinsun.com>
79351
79352         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
79353         All uses changed.  Check for sa_sigaction member; this fixes
79354         a bug first reported by Jason Andrade in
79355         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
79356
79357 2004-03-07  Paul Eggert  <eggert@twinsun.com>
79358
79359         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
79360         '#if' expressions.  Unlike the code it replaces, it does not
79361         depend on (defined _SC_PAGESIZE).  However, it does depend on
79362         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
79363         first reported by Jason Andrade in
79364         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
79365
79366 2004-02-25  Simon Josefsson  <jas@extundo.com>
79367
79368         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
79369
79370 2004-02-25  Simon Josefsson  <jas@extundo.com>
79371
79372         * lib/strdup.h: New file.
79373         * lib/strdup.c: Include it.
79374         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
79375         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
79376
79377 2004-02-23  Karl Berry  <karl@gnu.org>
79378
79379         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
79380         (from fencepost.gnu.org:/gd/gnuorg).
79381
79382 2004-02-23  Karl Berry  <karl@gnu.org>
79383
79384         * config/srclistvars.sh (GNUORG) [karl]: redefine.
79385         * config/srclist.txt: add maintain/standards documents.
79386
79387 2004-02-18  Bruno Haible  <bruno@clisp.org>
79388
79389         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
79390         Reported by Derek Robert Price <derek@ximbiot.com>.
79391
79392 2004-02-16  Karl Berry  <karl@gnu.org>
79393
79394         * config/mkinstalldirs, install-sh: update from automake.
79395
79396 2004-02-06  Karl Berry  <karl@gnu.org>
79397
79398         * m4/po.m4: update from gettext 0.14.1.
79399
79400 2004-02-06  Karl Berry  <karl@gnu.org>
79401
79402         * lib/config.charset: update from gettext 0.14.1.
79403
79404 2004-02-05  Paul Eggert  <eggert@twinsun.com>
79405
79406         Add comments and code, prompted by suggestions from Bruno Haible
79407         for sh-quote.
79408         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
79409         describing the enum quoting_style values.
79410         * lib/quotearg.c (quotearg_alloc): New function.
79411         (quotearg_buffer_restyled): Treat lone { and } as special.
79412         Treat = as special.  Work around bug with older shells
79413         that "see" a '\' that is really the 2nd byte of a multibyte char.
79414         Quote empty string with shell_quoting_style.
79415
79416 2004-02-03  Bruno Haible  <bruno@clisp.org>
79417
79418         * m4/pipe.m4: New file, from GNU gettext.
79419
79420 2004-02-03  Bruno Haible  <bruno@clisp.org>
79421
79422         * lib/pipe.h: New file, from GNU gettext.
79423         * lib/pipe.c: New file, from GNU gettext.
79424
79425 2004-01-27  Bruno Haible  <bruno@clisp.org>
79426
79427         * m4/execute.m4: New file, from GNU gettext.
79428
79429 2004-01-27  Bruno Haible  <bruno@clisp.org>
79430
79431         * lib/execute.h: New file, from GNU gettext.
79432         * lib/execute.c: New file, from GNU gettext.
79433         * lib/w32spawn.h: New file, from GNU gettext.
79434
79435 2004-01-24  Paul Eggert  <eggert@twinsun.com>
79436
79437         Merge from diffutils.
79438
79439         * lib/file-type.c (file_type): Add typed memory objects.
79440         * lib/file-type.h (S_TYPEISTMO): New macro.
79441
79442         * lib/c-stack.h (c_stack_action): Remove argv argument.
79443         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
79444         (die): Don't calculate message unless segv_action returns.
79445         (get_stack_location, min_address_from_argv, max_address_from_argv,
79446         volatile stack_base, volatile_stack_size): Remove.
79447         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
79448         that every segmentation violation is a stack overflow.  (Ouch!)
79449         See Debian bug 136249 (still outstanding) for more info about why
79450         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
79451
79452 2004-01-24  Paul Eggert  <eggert@twinsun.com>
79453
79454         Exit-status fix from coreutils.
79455
79456         Use exit_failure consistently in place of EXIT_FAILURE,
79457         so that program exit statuses are consistent on failure.
79458
79459         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
79460         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
79461         * lib/argmatch.h: Comment fix to match the above.
79462         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
79463         Now a macro referring to exit_failure, instead of a separate
79464         variable.  Include "exitfail.h" to get it.
79465         * lib/xstrtol.h: Include "exitfail.h".
79466         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
79467
79468         * lib/long-options.c (parse_long_options): Use prototype
79469         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
79470         for clarity.
79471
79472 2004-01-21  Jim Meyering  <jim@meyering.net>
79473
79474         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
79475         so as not to conflict with a different-sized __mktime_internal
79476         function in GNU libc.
79477         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
79478         Problem building statically-linked `ls' reported by Michael Brunnbauer.
79479
79480 2004-01-20  Karl Berry  <karl@gnu.org>
79481
79482         * config/config.guess: update from config.
79483
79484         * config/srclistvars.sh: GNUWWWLICENSES for karl.
79485
79486 2004-01-20  Bruno Haible  <bruno@clisp.org>
79487
79488         Safer stack allocation.
79489         * lib/setenv.c: Include allocsa.h.
79490         (alloca): Remove fallback definition.
79491         (freea): Remove macro.
79492         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
79493         instead of freea.
79494
79495 2004-01-20  Bruno Haible  <bruno@clisp.org>
79496
79497         * m4/eealloc.m4: New file, from GNU gettext.
79498
79499 2004-01-20  Bruno Haible  <bruno@clisp.org>
79500
79501         * m4/allocsa.m4: New file, from GNU gettext.
79502
79503 2004-01-20  Bruno Haible  <bruno@clisp.org>
79504
79505         * lib/xallocsa.h: New file, from GNU gettext.
79506         * lib/xallocsa.c: New file, from GNU gettext.
79507
79508 2004-01-20  Bruno Haible  <bruno@clisp.org>
79509
79510         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
79511
79512 2004-01-20  Bruno Haible  <bruno@clisp.org>
79513
79514         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
79515         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
79516         specially.
79517
79518 2004-01-20  Bruno Haible  <bruno@clisp.org>
79519
79520         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
79521         patch.
79522
79523 2004-01-20  Bruno Haible  <bruno@clisp.org>
79524
79525         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
79526
79527 2004-01-20  Bruno Haible  <bruno@clisp.org>
79528
79529         * lib/eealloc.h: New file.
79530
79531 2004-01-20  Bruno Haible  <bruno@clisp.org>
79532
79533         * lib/binary-io.h: Avoid warnings on Cygwin.
79534
79535 2004-01-20  Bruno Haible  <bruno@clisp.org>
79536
79537         * lib/allocsa.h: New file, from GNU gettext.
79538         * lib/allocsa.c: New file, from GNU gettext.
79539
79540 2004-01-18  Karl Berry  <karl@gnu.org>
79541
79542         * doc/gpl.texi, doc/lgpl.texi: new files.
79543
79544 2004-01-18  Karl Berry  <karl@gnu.org>
79545
79546         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
79547         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
79548
79549 2004-01-15  Paul Eggert  <eggert@twinsun.com>
79550
79551         Merge from coreutils.
79552
79553         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
79554         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
79555         (gl_DEFAULT_POSIX2_VERSION): Move
79556         the documentation from 'configure' into 'config.hin',
79557         so that 'configure --help' isn't burdened by it and
79558         we don't have to worry about its formatting there.
79559         Reword the documentation so that it's more succinct
79560         and can be run together into a single paragraph.
79561         * m4/same.m4 (gl_SAME): Check for pathconf.
79562
79563 2004-01-15  Paul Eggert  <eggert@twinsun.com>
79564
79565         Merge from coreutils.
79566
79567         * lib/posixver.c: Include posixver.h.
79568
79569         * lib/same.c: Include <stdbool.h>, <limits.h>.
79570         (_POSIX_NAME_MAX): Define if not defined.
79571         (MIN): New macro.
79572         (same_name): If file names are silently truncated, report
79573         that the file names are the same if they are the same after
79574         the silent truncation.
79575
79576         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
79577         conversion function.
79578         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
79579         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
79580         longer needed.
79581
79582 2004-01-15  Jim Meyering  <jim@meyering.net>
79583
79584         Merge from coreutils.
79585
79586         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
79587         if no library is required.
79588         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
79589         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
79590         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
79591         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
79592         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
79593         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
79594         value, $ac_cv_search_crypt, if it's "none required".
79595         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
79596         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
79597         not gl_FUNC_GETLOADAVG.
79598         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
79599         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
79600
79601 2004-01-15  Jim Meyering  <jim@meyering.net>
79602
79603         Merge from coreutils.
79604
79605         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
79606         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
79607         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
79608
79609         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
79610         optional configure-time default.
79611
79612         * lib/version-etc.c (version_etc_copyright): Update copyright date.
79613
79614         * lib/xreadlink.c (xreadlink): Correct outdated comment.
79615
79616 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
79617
79618         Merge from coreutils.
79619
79620         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
79621         value, $ac_cv_search_nanosleep, if it's "none required".
79622
79623 2004-01-14  Paul Eggert  <eggert@twinsun.com>
79624
79625         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
79626         with like-named macro in fnmatch.c.
79627         (EXT): Use an internal constant instead.
79628
79629         Merge fnmatch patches from glibc.
79630         * lib/fnmatch.c (mbsinit): Remove define.
79631         Add libc_hidden_ver (__fnmatch, fnmatch).
79632         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
79633         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
79634
79635 2004-01-14  Karl Berry  <karl@gnu.org>
79636
79637         * config/install-sh: update from automake.
79638
79639 2004-01-13  Karl Berry  <karl@gnu.org>
79640
79641         * config/install-sh: update from automake.
79642
79643 2004-01-09  Karl Berry  <karl@gnu.org>
79644
79645         * config/install-sh: update from automake.
79646
79647 2004-01-05  Karl Berry  <karl@gnu.org>
79648
79649         * config/config.{sub,guess}: update from config.
79650
79651 2003-12-31  Karl Berry  <karl@gnu.org>
79652
79653         * config/depcomp: update from automake.
79654
79655 2003-12-14  Karl Berry  <karl@gnu.org>
79656
79657         * lib/config.charset: update from gettext-runtime.
79658
79659 2003-12-03  Paul Eggert  <eggert@twinsun.com>
79660
79661         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
79662         Bug reported by Alfred M. Szmidt.
79663
79664 2003-12-03  Bruno Haible  <bruno@clisp.org>
79665
79666         * m4/gettext.m4: Upgrade from gettext-0.13.
79667         * m4/po.m4: Upgrade from gettext-0.13.
79668         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
79669         * m4/intmax.m4: New file, from gettext-0.13.
79670         * m4/printf-posix.m4: New file, from gettext-0.13.
79671
79672 2003-11-29  Karl Berry  <karl@gnu.org>
79673
79674         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
79675
79676 2003-11-25  Paul Eggert  <eggert@twinsun.com>
79677             Bruno Haible  <bruno@clisp.org>
79678
79679         * lib/printf-parse.h: Don't include sys/types.h.
79680         (ARG_NONE): New macro.
79681         (char_directive): Change type of *arg_index fields to size_t.
79682         * lib/printf-parse.c: Don't include sys/types.h.
79683         (SSIZE_MAX): Remove macro.
79684         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
79685         Remove unnecessary overflow check.
79686         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
79687         fields.
79688
79689 2003-11-25  Bruno Haible  <bruno@clisp.org>
79690
79691         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
79692
79693 2003-11-25  Bruno Haible  <bruno@clisp.org>
79694
79695         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
79696         gt_TYPE_SSIZE_T.
79697
79698 2003-11-24  Paul Eggert  <eggert@twinsun.com>
79699
79700         * modules/alloca: Remove dependency on xalloc.
79701
79702 2003-11-24  Paul Eggert  <eggert@twinsun.com>
79703
79704         * lib/alloca.c: Remove dependency on xalloc module.
79705         (xalloc_die): Remove.
79706         (memory_full) [!defined emacs]: New macro.
79707         [!defined emacs]: Don't include xalloc.h.
79708         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
79709         address arithmetic overflows.  Change datatypes a bit to avoid
79710         unnecessary casts.
79711
79712 2003-11-22  Jim Meyering  <jim@meyering.net>
79713
79714         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
79715         s/size/size_t/.
79716
79717 2003-11-21  Karl Berry  <karl@gnu.org>
79718
79719         * config/config.{sub,guess}: update from config.
79720
79721 2003-11-18  Karl Berry  <karl@gnu.org>
79722
79723         * config/config.{sub,guess}: update from config.
79724
79725         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
79726
79727 2003-11-17  Paul Eggert  <eggert@twinsun.com>
79728
79729         * README: Mention that S+T cannot overflow if S is the size of
79730         an existing object and T is sufficiently small.
79731
79732 2003-11-17  Jim Meyering  <jim@meyering.net>
79733
79734         On systems without utime and without a utimes function capable of
79735         dealing with a NULL struct utimbuf* argument, this utime replacement
79736         could -- in unusual circumstances -- leak a file descriptor.
79737         * lib/utime.c: Include <unistd.h> and <errno.h>.
79738         (utime_null): Be sure to close `fd' and to preserve errno.
79739         Reported by Geoff Collyer via Arnold Robbins.
79740
79741 2003-11-17  Bruno Haible  <bruno@clisp.org>
79742
79743         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
79744         (Depends-on): Add xsize.
79745
79746 2003-11-17  Bruno Haible  <bruno@clisp.org>
79747
79748         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
79749
79750 2003-11-17  Bruno Haible  <bruno@clisp.org>
79751
79752         * lib/vasnprintf.c (alloca): Remove fallback definition.
79753         (freea): Remove definition.
79754         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
79755         Reported by Paul Eggert.
79756
79757 2003-11-16  Paul Eggert  <eggert@twinsun.com>
79758             Bruno Haible  <bruno@clisp.org>
79759
79760         Protect against address arithmetic overflow.
79761         * lib/printf-args.h: Include stddef.h.
79762         (arguments): Change type of field 'count' to size_t.
79763         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
79764         'unsigned int' where appropriate.
79765         * lib/printf-parse.h: Include sys/types.h.
79766         (char_directive): Change type of *arg_index fields to ssize_t.
79767         (char_directives): Change type of fields 'count', max_*_length to
79768         size_t.
79769         * lib/printf-parse.c: Include sys/types.h and xsize.h.
79770         (SSIZE_MAX): Define fallback value.
79771         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
79772         instead of 'int' where appropriate. Check a_allocated, d_allocated
79773         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
79774         * lib/vasnprintf.c: Include xsize.h.
79775         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
79776         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
79777         overflow. Avoid wraparound when converting a width or precision from
79778         decimal to binary.
79779
79780 2003-11-16  Bruno Haible  <bruno@clisp.org>
79781
79782         Update from GNU gettext.
79783         * lib/printf-parse.c: Generalize to it can be compiled for wide
79784         strings.
79785         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
79786         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
79787         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
79788         SNPRINTF): New macros.
79789         Don't include <alloca.h> if the file is used inside libintl.
79790         (local_wcslen): New function, for Solaris 2.5.1.
79791         (VASNPRINTF): Use it instead of wcslen.
79792
79793 2003-11-16  Bruno Haible  <bruno@clisp.org>
79794
79795         * lib/xsize.h (xmax): New function.
79796         (xsum, xsum3, xsum4): Declare as "pure" functions.
79797
79798 2003-11-12  Paul Eggert  <eggert@twinsun.com>
79799
79800         * modules/xalloc (Files): Undo latest change, since xalloc.h
79801         no longer needs SIZE_MAX or PTRDIFF_MAX.
79802
79803 2003-11-12  Paul Eggert  <eggert@twinsun.com>
79804
79805         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
79806         gl_PTRDIFF_MAX.
79807
79808 2003-11-12  Paul Eggert  <eggert@twinsun.com>
79809
79810         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
79811         "return", to pacify some unknown compiler.  Problem reported
79812         by Joerg Schilling.
79813
79814 2003-11-12  Paul Eggert  <eggert@twinsun.com>
79815
79816         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
79817         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
79818         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
79819         heuristic is just as accurate as far as we know, and it removes a
79820         dependency on size_max.m4 and ptrdiff_max.m4.
79821
79822 2003-11-11  Bruno Haible  <bruno@clisp.org>
79823
79824         * modules/xsize (Files): Add m4/size_max.m4.
79825         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
79826
79827 2003-11-11  Bruno Haible  <bruno@clisp.org>
79828
79829         * m4/size_max.m4: New file.
79830         * m4/ptrdiff_max.m4: New file.
79831         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
79832         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
79833         (gl_XALLOC): Invoke it.
79834
79835 2003-11-11  Bruno Haible  <bruno@clisp.org>
79836
79837         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
79838         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
79839         defined.
79840
79841 2003-11-10  Paul Eggert  <eggert@twinsun.com>
79842
79843         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
79844         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
79845         rejected some allocations of exactly SIZE_MAX - 2 bytes.
79846         From Bruno Haible.
79847         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
79848         not (size_t) -1, since it's defined here.
79849
79850 2003-11-09  Karl Berry  <karl@gnu.org>
79851
79852         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
79853
79854 2003-11-06  Paul Eggert  <eggert@twinsun.com>
79855
79856         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
79857         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
79858         Reject sizes of exactly SIZE_MAX bytes.
79859         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
79860         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
79861
79862 2003-11-05  Bruno Haible  <bruno@clisp.org>
79863
79864         * lib/xsize.h: Include limits.h, to avoid a possible collision with
79865         SIZE_MAX defined in <limits.h> on Solaris.
79866
79867 2003-11-04  Jim Meyering  <jim@meyering.net>
79868
79869         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
79870         variable names, rather than @VAR@.
79871         * modules/poll: Likewise.
79872
79873 2003-11-04  Bruno Haible  <bruno@clisp.org>
79874
79875         * modules/xsize: New file.
79876         * modules/linebreak: Depend on xsize.
79877         * MODULES.html.sh (func_all_modules): Add xsize.
79878
79879 2003-11-04  Bruno Haible  <bruno@clisp.org>
79880
79881         * m4/xsize.m4: New file.
79882
79883 2003-11-04  Bruno Haible  <bruno@clisp.org>
79884
79885         * lib/xsize.h: New file.
79886         * lib/linebreak.c: Include xsize.h.
79887         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
79888         argument for overflow.
79889         Suggested by Paul Eggert.
79890
79891 2003-11-03  Karl Berry  <karl@gnu.org>
79892
79893         * config/config.{guess,sub}: update from config.
79894
79895 2003-11-03  Jim Meyering  <jim@meyering.net>
79896
79897         * modules/userspec (lib_SOURCES): Add userspec.h.
79898         (Include): Add "userspec.h".
79899         Improve description.
79900
79901 2003-11-03  Jim Meyering  <jim@meyering.net>
79902
79903         * lib/userspec.c: Include "userspec.h".
79904         * lib/userspec.h: New file.
79905
79906 2003-11-03  Bruno Haible  <bruno@clisp.org>
79907
79908         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
79909
79910 2003-11-03  Bruno Haible  <bruno@clisp.org>
79911
79912         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
79913         available, to avoid (extremely rare) race condition.
79914         Suggested by Paul Eggert.
79915
79916 2003-11-02  Karl Berry  <karl@gnu.org>
79917
79918         * config/srclist.txt (vasprintf.c): sync broken, sigh.
79919
79920 2003-10-31  Paul Eggert  <eggert@twinsun.com>
79921
79922         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
79923         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
79924         (read_filesystem_list): Set and use me_type_malloced.
79925         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
79926         whatever the type happens to be), for brevity and consistency.
79927         Check for size calculation overflow on Alphas running OSF/1.
79928
79929 2003-10-31  Jim Meyering  <jim@meyering.net>
79930
79931         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
79932
79933         * lib/linebuffer.c: Include <string.h> for declaration of memset.
79934
79935 2003-10-30  Paul Eggert  <eggert@twinsun.com>
79936             Bruno Haible  <bruno@clisp.org>
79937
79938         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
79939         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
79940
79941 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
79942
79943         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
79944         netbsd*-gnu*.  Suggested by Robert Millan.
79945
79946 2003-10-29  Paul Eggert  <eggert@twinsun.com>
79947
79948         * modules/group-member: Depend on stdbool.
79949
79950 2003-10-29  Paul Eggert  <eggert@twinsun.com>
79951
79952         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
79953
79954 2003-10-29  Paul Eggert  <eggert@twinsun.com>
79955
79956         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
79957         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
79958         after the 'gnu' in these cases.  This fixes some bugs in the
79959         previous change, and is based on suggestions by Robert Millan.
79960
79961 2003-10-29  Paul Eggert  <eggert@twinsun.com>
79962
79963         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
79964         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
79965         no longer needed.
79966         * lib/quotearg.c (quotearg_n_options): Use it.
79967         * lib/group-member.c: Include <stdbool.h>.
79968         (free_group_info): Arg is now const *; don't free arg.
79969         (get_group_info): Now returns bool and accepts struct group_info *,
79970         rather than returning a malloc'ed struct group_info *.
79971         All uses changed.  Check for overflow in internal size calculation.
79972
79973         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
79974         rather than xmalloc/xrealloc.
79975         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
79976         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
79977         conformance bug: the old code used a pointer after freeing the
79978         storage that it addressed.
79979         * lib/hash.c (hash_initialize): Simplify the code by using
79980         xalloc_oversized rather than doing it by hand.
79981         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
79982         the buffer preserved.  Use free and xmalloc instead.
79983         * lib/quotearg.c (quotearg_n_options): Likewise.
79984         Use a simpler test for size overflow.  Don't use xalloc_oversized
79985         because unsigned int might be wider than size_t (!); this suggests
79986         that we should switch from unsigned int to size_t for slot numbers.
79987
79988 2003-10-28  Paul Eggert  <eggert@twinsun.com>
79989
79990         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
79991         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
79992         NetBSD kernels.  Requested by Richard Stallman.
79993
79994 2003-10-27  Paul Eggert  <eggert@twinsun.com>
79995
79996         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
79997         to allocate the returned structure.  Do not allocate a subarray,
79998         as x2nrealloc will do that.
79999         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
80000         instead of xnrealloc.
80001         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
80002
80003 2003-10-27  Bruno Haible  <bruno@clisp.org>
80004
80005         * lib/stdbool_.h: Better support for BeOS.
80006
80007 2003-10-26  Paul Eggert  <eggert@twinsun.com>
80008
80009         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
80010         now uses inline.
80011
80012 2003-10-26  Paul Eggert  <eggert@twinsun.com>
80013
80014         * lib/xalloc.h (xalloc_oversized): New static inline function, for
80015         callers that want to do their own size-overflow checking.  Include
80016         <stdbool.h>, since xalloc_oversized returns bool.
80017         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
80018         to use xalloc_oversized.
80019
80020         Add two functions x2realloc, x2nrealloc, for programs that grow
80021         arrays dynamically by doubling their sizes.
80022         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
80023         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
80024         New functions.
80025
80026         Port to C99 semantics for 'inline' of external functions.
80027         Bug reported by Bruno Haible.
80028         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
80029         with the old contents of xnmalloc.
80030         (xnmalloc, xmalloc): Use it.
80031         (xnrealloc_inline): New static inline function,
80032         with the old contents of xnrealloc.
80033         (xnrealloc, xrealloc): Use it.
80034
80035         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
80036         that.
80037
80038 2003-10-26  Karl Berry  <karl@gnu.org>
80039
80040         * config/srclist.txt (COPYING.DOC): no longer available from
80041         /gd/gnuorg; don't know where the ultimate source is.
80042
80043 2003-10-25  Paul Eggert  <eggert@twinsun.com>
80044
80045         Fix several address-calculation bugs in the hash modules,
80046         plus some minor code cleanup.
80047
80048         * lib/hash.h: Include <stdbool.h>, for bool.
80049         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
80050         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
80051         hash_get_n_entries, hash_get_max_bucket_length,
80052         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
80053         hash_rehash): Use size_t rather than unsigned.
80054         * lib/hash.c (struct hash_table, hash_get_n_buckets,
80055         hash_get_n_buckets_used, hash_get_n_entries,
80056         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
80057         hash_get_entries, hash_do_for_each, hash_string, is_prime,
80058         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
80059         Likewise.
80060         (SIZE_MAX): Define if not defined.
80061         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
80062         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
80063         hash_print):
80064         Use const * when possible.
80065         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
80066         (check_tuning): Fix bug: if tuning parameters were very close to
80067         0 or 1, rounding errors could have caused subscript violations.
80068         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
80069         (hash_initialize): Add 'fail:' label
80070         to free table and return NULL, and use it to simplify code.
80071         Use calloc rather than clearing the storage ourself.
80072         (hash_initialize, hash_rehash): Check for arithmetic overflow in
80073         buffer size calculations.
80074         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
80075         Include <stddef.h>, for size_t.
80076         * lib/hash-pjw.c (hash_pjw): Likewise.
80077         Switch to method described by Bruno Haible.
80078         Include <limits.h>, for CHAR_BIT.
80079         (SIZE_BITS): New macro.
80080
80081 2003-10-23  Paul Eggert  <eggert@twinsun.com>
80082
80083         * m4/getline.m4 (AM_FUNC_GETLINE):
80084         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
80085         hosts.  Problem reported by Derek Robert Price in
80086         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
80087         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
80088         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
80089
80090 2003-10-21  Paul Eggert  <eggert@twinsun.com>
80091
80092         * lib/getndelim2.c (getndelim2): When size calculation overflows,
80093         ceiling the allocation at NMAX bytes rather than silently
80094         discarding input bytes before NMAX is reached.  This makes
80095         a difference only if NMAX exceeds SIZE_MAX / 2.
80096
80097         * lib/obstack.c: Merge from glibc.
80098         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
80099         Add libc_hidden_def (_obstack_newchunk).
80100         (_obstack_free) [! defined _LIBC]: Remove.
80101         [defined _LIBC]: Make a strong alias from obstack_free, rather than
80102         a clone of the function body.
80103         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
80104         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
80105
80106         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
80107         glibc.
80108         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
80109         arg to memcpy.
80110
80111         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
80112         (obstack_ptr_grow_fast, obstack_int_grow_fast):
80113         Don't use lvalue casts, as GCC plans to remove support for them
80114         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
80115         was also present in the non-GCC version, indicating that this
80116         code had always been buggy and had never been widely used.
80117         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
80118         Use the fast variant of each macro, rather than copying the
80119         definiens of the fast variant; that way, we'll be more likely to
80120         catch future bugs in the fast variants.
80121
80122 2003-10-20  Bruno Haible  <bruno@clisp.org>
80123
80124         * modules/wait-process: New file.
80125         * MODULES.html.sh (func_all_modules): Add wait-process.
80126
80127 2003-10-20  Bruno Haible  <bruno@clisp.org>
80128
80129         * m4/wait-process.m4: New file.
80130
80131 2003-10-20  Bruno Haible  <bruno@clisp.org>
80132
80133         * lib/wait-process.h: New file, from GNU gettext.
80134         * lib/wait-process.c: New file, from GNU gettext.
80135
80136 2003-10-19  Jim Meyering  <jim@meyering.net>
80137
80138         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
80139         HPUX 10.20.
80140
80141 2003-10-18  Karl Berry  <karl@gnu.org>
80142
80143         * config/config.guess: update from config.
80144
80145 2003-10-16  Paul Eggert  <eggert@twinsun.com>
80146
80147         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
80148         (getgroups): First arg is int, not size_t.
80149         Don't let 'free' mangle errno.
80150
80151 2003-10-16  Paul Eggert  <eggert@twinsun.com>
80152
80153         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
80154
80155 2003-10-16  Karl Berry  <karl@gnu.org>
80156
80157         * config/config.{guess,sub}: update from config.
80158
80159 2003-10-16  Jim Meyering  <jim@meyering.net>
80160
80161         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
80162         memcpy.
80163
80164 2003-10-15  Paul Eggert  <eggert@twinsun.com>
80165
80166         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
80167         (SIZE_MAX): Remove.
80168         (new_exclude, add_exclude_file): Initial size no longer needs to
80169         be a power of 2.
80170         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
80171         our own address arithmetic overflow checking.
80172
80173         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
80174         (fnmatch): Do not alloca more than 2000 wide characters;
80175         instead, use malloc for large buffers.
80176         Check for address arithmetic overflow, and return -1
80177         with errno set to ENOMEM in that case.
80178         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
80179         (NEW_PATTERN): Do not alloca more than 8000 bytes;
80180         instead, return -1.  Check for address arithmetic overflow.
80181
80182 2003-10-14  Paul Eggert  <eggert@twinsun.com>
80183
80184         Handle invalid suffixes and overflow independently, so that
80185         callers can treat them independently as needed.  Fix some bugs in
80186         suffix handling, e.g., "100k@" was not diagnosed as an invalid
80187         suffix for a human-readable blocksize.  The major caller-visible
80188         change is the addition of a new
80189         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
80190         that both overflow and suffix chars were found.
80191
80192         * lib/human.c (humblock): Don't check separately for invalid suffix
80193         char; that is xstrtoumax's job (now that its bug is fixed).
80194         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
80195         INTMAX_MAX]: New macros.
80196         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
80197         TYPE_MAXIMUM): New macros.
80198         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
80199         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
80200         if overflow occurs, as it's what __strtol does and it's more useful
80201         in practice.
80202         (__xstrtol): If __strtol reports some error other than ERANGE,
80203         reflect it to the caller as LONGINT_INVALID.  If it reports
80204         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
80205         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
80206         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
80207         value.
80208         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
80209         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
80210         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
80211         [defined UINTMAX_MAX]: New macros.
80212
80213 2003-10-14  Bruno Haible  <bruno@clisp.org>
80214
80215         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
80216
80217 2003-10-14  Bruno Haible  <bruno@clisp.org>
80218
80219         * m4/sig_atomic_t: New file, from GNU gettext.
80220         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
80221
80222 2003-10-14  Bruno Haible  <bruno@clisp.org>
80223
80224         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
80225         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
80226         Also use volatile where needed.
80227
80228 2003-10-12  Paul Eggert  <eggert@twinsun.com>
80229
80230         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
80231         Change maintainer from Bruno Haible to 'all'.
80232
80233 2003-10-12  Paul Eggert  <eggert@twinsun.com>
80234
80235         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
80236
80237 2003-10-12  Paul Eggert  <eggert@twinsun.com>
80238
80239         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
80240         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
80241         and define in terms of the other primitives.
80242         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
80243         (SIZE_MAX): Define if not already defined.
80244         (array_size_overflow): New function.
80245         (xalloc_die): Abort instead of exiting if 'error' returns.
80246         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
80247         (xmalloc, xrealloc): Use them.
80248         (xcalloc): Check for address arithmetic overflow.
80249         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
80250         a bit faster than strcpy.
80251
80252 2003-10-10  Simon Josefsson  <jas@extundo.com>
80253
80254         * modules/argp (Depends-on): Add restrict and strcase.
80255
80256 2003-10-10  Simon Josefsson  <jas@extundo.com>
80257
80258         * m4/argp.m4: Add AC_C_INLINE.
80259
80260 2003-10-08  Paul Eggert  <eggert@twinsun.com>
80261
80262         Merge getpass from libc, plus a few fixes.
80263
80264         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
80265         Include <stdbool.h>.
80266         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
80267         __fsetlocking to empty.
80268         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
80269         do include <bits/libc-lock.h>.
80270         Do not include <fcntl.h>; not needed.
80271         [_LIBC]: Include <wchar.h>.
80272         (NOTCANCEL_MODE): New macro.
80273         (flockfile, funlockfile) [_LIBC]: New macros.
80274         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
80275         [!_LIBC]: New macros.
80276         (call_fclose): New function.
80277         (getpass): Use it.  Save tty stream separately; this simplifies the
80278         code and makes it more reliable if stdin happens to equal stdout.
80279         Invoke __fsetlocking on tty.
80280         Handle thread cancellation if needed.
80281         Namespace cleanup (use __tcgetattr, __getline).
80282         Use bool for Booleans.
80283         [USE_IN_LIBIO]: Handle wide streams.
80284         [!_LIBC]: Unconditionally do the fseek, since we don't know what
80285         stream might go where.
80286
80287         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
80288         doesn't have to include <stdio.h> before us.
80289         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
80290         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
80291         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
80292         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
80293         if not declared, so that we can use getpass.c code from libc without
80294         rewriting it.
80295         (flockfile, ftrylockfile, funlockfile): New macros.
80296
80297 2003-10-08  Paul Eggert  <eggert@twinsun.com>
80298
80299         * modules/getpass: Depend on stdbool.
80300
80301 2003-10-08  Paul Eggert  <eggert@twinsun.com>
80302
80303         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
80304
80305 2003-10-07  Karl Berry  <karl@gnu.org>
80306
80307         * config/config.{guess,sub}: update from config.
80308
80309 2003-10-06  Jim Meyering  <jim@meyering.net>
80310             Bruno Haible  <bruno@clisp.org>
80311
80312         This lets translators provide better translations for the
80313         "Written by ..." part of --version output.
80314         * lib/version-etc.h: Include stdarg.h.
80315         (version_etc_copyright): Declare as readonly.
80316         (version_etc): Make this function variadic with a NULL-terminated list
80317         of author name strings.
80318         (version_etc_va): New declaration.
80319         * lib/version-etc.c: Include stdarg.h, stdlib.h.
80320         (version_etc_copyright): Declare as readonly.
80321         (version_etc_va): New function. Provide a different translatable string
80322         for each possible number of authors < 10. Abbreviate when there are 10
80323         authors or more.
80324         (version_etc): Make this function variadic. Call version_etc_va.
80325         Suggestion from Gary V. Vaughan.
80326
80327         * lib/long-options.h (parse_long_options): Change prototype: the
80328         authors string is moved to the end and becomes variadic.
80329         * lib/long-options.c: Include stdarg.h.
80330         (parse_long_options): Make this function variadic, too.
80331         Call version_etc_va, not version_etc.
80332
80333 2003-10-06  Bruno Haible  <bruno@clisp.org>
80334
80335         * modules/version-etc-2: Remove file.
80336         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
80337
80338 2003-10-06  Bruno Haible  <bruno@clisp.org>
80339
80340         * modules/fatal-signal: New file.
80341         * MODULES.html.sh (func_all_modules): Add fatal-signal.
80342
80343 2003-10-06  Bruno Haible  <bruno@clisp.org>
80344
80345         * m4/fatal-signal.m4: New file.
80346         * m4/signalblocking.m4: New file, from GNU gettext.
80347
80348 2003-10-06  Bruno Haible  <bruno@clisp.org>
80349
80350         * lib/version-etc-2.h: Remove file.
80351         * lib/version-etc-2.c: Remove file.
80352
80353 2003-10-06  Bruno Haible  <bruno@clisp.org>
80354
80355         * lib/fatal-signal.h: New file, from GNU gettext.
80356         * lib/fatal-signal.c: New file, from GNU gettext.
80357
80358 2003-10-05  Paul Eggert  <eggert@twinsun.com>
80359
80360         * README: Rework advice for preventing empty .o files.
80361         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
80362         not <sys/types.h>.
80363
80364 2003-10-04  Karl Berry  <karl@gnu.org>
80365
80366         * lib/argp*: update from libc.
80367
80368 2003-10-04  Karl Berry  <karl@gnu.org>
80369
80370         * config/config.{guess,sub}: update from config.
80371
80372 2003-10-02  Bruno Haible  <bruno@clisp.org>
80373
80374         * modules/lchown (Include): Add lchown.h.
80375         * modules/time_r (Include): Use "..." syntax.
80376         * modules/xgetdomainname (Include): Add xgetdomainname.h.
80377
80378 2003-10-01  Simon Josefsson  <jas@extundo.com>
80379
80380         * MODULES.html.sh (func_all_modules): Move gethostname from section
80381         'based on' to section 'lacking' POSIX:2001.
80382
80383 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
80384
80385         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
80386         to output mode on the same stream.
80387
80388 2003-09-29  Paul Eggert  <eggert@twinsun.com>
80389
80390         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
80391         Fix arg typo in previous patch.
80392
80393 2003-09-28  Jim Meyering  <jim@meyering.net>
80394
80395         * lib/error.c: Correct cpp indentation.
80396
80397 2003-09-27  Paul Eggert  <eggert@twinsun.com>
80398
80399         * modules/free: New file.
80400
80401 2003-09-27  Paul Eggert  <eggert@twinsun.com>
80402
80403         * m4/free.m4: New file.
80404
80405 2003-09-27  Paul Eggert  <eggert@twinsun.com>
80406
80407         * lib/minmax.h (MIN, MAX)
80408         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
80409         Omit the special code that used __typeof__, since we worry that
80410         it could be more trouble than it's worth.  See:
80411         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
80412         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
80413
80414         * lib/free.c: New file.
80415
80416 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
80417
80418         Trivial fixes to Makefile.am parts of module listings.
80419         * modules/strstr: Append strstr.h to lib_SOURCES.
80420         * modules/strcase: Likewise, for strcase.h.
80421
80422 2003-09-27  Karl Berry  <karl@gnu.org>
80423
80424         * config/mkinstalldirs: update from automake.
80425
80426 2003-09-26  Paul Eggert  <eggert@twinsun.com>
80427
80428         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
80429         (error_tail): Do not loop, reallocating temporary buffer, since
80430         the output cannot contain more wide characters than the input
80431         contains bytes, the size must be big enough already.  This avoids
80432         one potential size overflow calculation.  Check for size overflow
80433         when calculating temporary buffer size.  Free temporary buffer
80434         when done, if it was allocated with malloc; this plugs a memory
80435         leak.  Remove casts from void * to pointers, that are no longer
80436         needed now that we're assuming C89 or better.
80437
80438         Merge error changes from glibc.
80439
80440         * lib/error.c, error.h: Update copyright notice header to match glibc.
80441         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
80442         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
80443         Disable cancellation while printing error.
80444         * lib/error.h: Prepend __ to parameter names.
80445
80446 2003-09-26  Jim Meyering  <jim@meyering.net>
80447
80448         * lib/error.c (error_tail): Move some declarations
80449         into inner scope where the local variables are used.
80450
80451 2003-09-26  Bruno Haible  <bruno@clisp.org>
80452
80453         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
80454         stpncpy().
80455         Don't define stpncpy through config.h; it's now done through stpncpy.h.
80456
80457 2003-09-26  Bruno Haible  <bruno@clisp.org>
80458
80459         * lib/stpncpy.h (gnu_stpncpy): New declaration.
80460         (stpncpy): Define as alias for gnu_stpncpy.
80461         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
80462
80463 2003-09-25  Simon Josefsson  <jas@extundo.com>
80464
80465         * lib/xgetdomainname.h: New file.
80466         * lib/xgetdomainname.c: New file.
80467
80468 2003-09-25  Simon Josefsson  <jas@extundo.com>
80469             Bruno Haible  <bruno@clisp.org>
80470
80471         * modules/getdomainname: New file.
80472         * modules/xgetdomainname: New file.
80473         * MODULES.html.sh (func_all_modules): Add getdomainname,
80474         xgetdomainname.
80475
80476 2003-09-25  Simon Josefsson  <jas@extundo.com>
80477             Bruno Haible  <bruno@clisp.org>
80478
80479         * m4/getdomainname.m4: New file.
80480
80481 2003-09-25  Simon Josefsson  <jas@extundo.com>
80482             Bruno Haible  <bruno@clisp.org>
80483
80484         * lib/getdomainname.h: New file.
80485         * lib/getdomainname.c: New file.
80486
80487 2003-09-25  Karl Berry  <karl@gnu.org>
80488
80489         * lib/argp-fmtstream.c, argp-help.c: update from libc.
80490
80491 2003-09-25  Karl Berry  <karl@gnu.org>
80492
80493         * config/install-sh: update from automake.
80494
80495 2003-09-25  Bruno Haible  <bruno@clisp.org>
80496
80497         * modules/version-etc-2: New file, from modules/version-etc with
80498         modifications.
80499         * MODULES.html.sh (func_all_modules): Add version-etc-2.
80500
80501 2003-09-25  Bruno Haible  <bruno@clisp.org>
80502
80503         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
80504         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
80505
80506 2003-09-24  Simon Josefsson  <jas@extundo.com>
80507
80508         * modules/xgethostname: Add xgethostname.h.
80509
80510 2003-09-24  Paul Eggert  <eggert@twinsun.com>
80511
80512         * lib/linebuffer.c (freebuffer): Don't free the argument, just
80513         the buffer associated with the argument.  Bug reported by
80514         Simon Josefsson.
80515
80516 2003-09-24  Paul Eggert  <eggert@twinsun.com>
80517
80518         * README: Document assumptions that 'int' is at least 32 bits
80519         wide, that integer arithmetic is 2's complement without overflow,
80520         that there are no holes in integer values, that adding sizes of
80521         two nonoverlapping objects can't overflow, and that all-bits-zero
80522         yields scalar zero.  Fix spelling and capitalization typos.
80523
80524 2003-09-19  Karl Berry  <karl@gnu.org>
80525
80526         * lib/argp.h: update from libc.
80527
80528 2003-09-17  Paul Eggert  <eggert@twinsun.com>
80529
80530         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
80531         to avoid spurious warnings like "AC_RUN_IFELSE was called before
80532         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
80533
80534 2003-09-17  Paul Eggert  <eggert@twinsun.com>
80535
80536         * gnulib-tool: Use "test -h", not "test -L", for portability
80537         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
80538         (tags_regexp): Remove, since \| doesn't conform to POSIX.
80539         (sed_extract_prog): Issue s commands one-by-one, rather than
80540         using \| in one s command.
80541
80542 2003-09-16  Paul Eggert  <eggert@twinsun.com>
80543
80544         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
80545         input error, instead of returning NULL the next time we are called
80546         (and therefore losing track of errno).
80547
80548 2003-09-16  Bruno Haible  <bruno@clisp.org>
80549
80550         * gnulib-tool (func_create_testdir): Warn about duplicated
80551         dependencies.
80552
80553 2003-09-15  Paul Eggert  <eggert@twinsun.com>
80554
80555         * modules/argmatch, modules/fatal, modules/obstack,
80556         modules/xalloc, modules/xgethostname: Sort dependencies by
80557         importance, not alphabetically.
80558
80559 2003-09-15  Paul Eggert  <eggert@twinsun.com>
80560
80561         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
80562         fails, so that the caller gets the proper errno.
80563
80564         * lib/readutmp.c (read_utmp): Likewise.
80565         Check for fstat error.  Close stream and free storage
80566         when failing.
80567
80568 2003-09-14  Karl Berry  <karl@gnu.org>
80569
80570         * config/srclist.txt (strdup.c): disable for c89 changes.
80571
80572 2003-09-14  Jim Meyering  <jim@meyering.net>
80573
80574         * lib/getloadavg.c: Correct cpp indentation.
80575         * lib/strdup.c: Likewise.
80576         * lib/vasnprintf.c: Likewise.
80577
80578 2003-09-14  Bruno Haible  <bruno@clisp.org>
80579
80580         * modules/fwriteerror: New file.
80581         * MODULES.html.sh (func_all_modules): Add fwriteerror.
80582
80583 2003-09-14  Bruno Haible  <bruno@clisp.org>
80584
80585         * lib/fwriteerror.h: New file.
80586         * lib/fwriteerror.c: New file.
80587
80588 2003-09-12  Paul Eggert  <eggert@twinsun.com>
80589
80590         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
80591         modules/xgethostname, modules/xalloc: Depend on exit.
80592
80593 2003-09-12  Paul Eggert  <eggert@twinsun.com>
80594
80595         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
80596
80597         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
80598         and AC_MINIX, too, so that their extensions are available.
80599
80600         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
80601         This macro has been superseded by gl_BACKUPFILE.
80602
80603         More patches to assume C89 or better.
80604
80605         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
80606
80607         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
80608         unconditionally.
80609         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
80610         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
80611         Include <string.h>, <stdlib.h> unconditionally.
80612         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
80613         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
80614         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
80615         headers or for string.h.
80616         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
80617         or strtoul.
80618
80619         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
80620         headers.
80621         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
80622         * m4/userspec.m4 (gl_USERSPEC): Likewise.
80623         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
80624         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
80625         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
80626         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
80627         memcpy, memset.
80628         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
80629         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
80630         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
80631         strtol.
80632         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
80633         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
80634         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
80635         strtoul.
80636
80637 2003-09-12  Paul Eggert  <eggert@twinsun.com>
80638
80639         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
80640         * lib/obstack.c [!defined _LIBC]: Likewise.
80641         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
80642         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
80643         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
80644
80645         More changes to assume C89 or better.
80646
80647         * lib/error.c (error_tail): Assume vprintf.
80648
80649         * lib/argmatch.c (getenv): Remove decl.
80650         * lib/progreloc.c (get_full_program_name): Define via prototype.
80651         * lib/setenv.c (clearenv): Likewise.
80652         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
80653         needed.
80654         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
80655         (malloc, memcpy): Remove decls.
80656         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
80657         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
80658         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
80659         (memcpy): Remove macro.
80660         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
80661         (__P): Remove.  All uses removed.
80662         (PTR): Remove.  All uses changed to void *.
80663         (CHAR_BIT, NULL): Remove.
80664         (spaces, zeros, memset_space, memset_zero)
80665         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
80666         Remove.
80667         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
80668         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
80669         Define with prototype.
80670         Remove now-unnecessary prototype decl.
80671         (extra_args_spec): Assume ANSI C.  All uses changed.
80672         (extra_args_spec_iso): Remove.
80673         (my_strftime, emacs_strftimeu): Define via prototype.
80674         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
80675         unconditionally.
80676         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
80677         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
80678         (strtoul, strtol): Remove decls.
80679         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
80680         LONG_MAX): Remove.
80681         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
80682         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
80683         (LOCALE_PARAM_PROTO): New macro.
80684         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
80685         (INTERNAL (strtol), strtol): Define with a prototype.
80686         (PARAMS): Remove.  All uses removed.
80687         * lib/tempname.c: Include <string.h> unconditionally.
80688         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
80689         * lib/xgethostname.c (main): Define with a prototype.
80690         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
80691         Include <stdlib.h> unconditionally.
80692         (calloc, malloc, realloc, free): Remove decls.
80693         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
80694         Include <stdlib.h> unconditionally.  Sort include file names.
80695         (strtod): Remove.
80696         (xstrtod): Define with a prototype.
80697         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
80698         (strtol, strtoul): Remove decls.
80699
80700 2003-09-11  Paul Eggert  <eggert@twinsun.com>
80701
80702         More patches to assume C89 or better.
80703         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
80704         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
80705         string.h, memchr, STDC_HEADERS.
80706
80707 2003-09-11  Paul Eggert  <eggert@twinsun.com>
80708
80709         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
80710         Include <stdlib.h>, <string.h> unconditionally.
80711         Remove now-unnecessary cast to char *.
80712         * lib/strnlen.c: Include <string.h> unconditionally.
80713         * lib/yesno.c (yesno): Define with a prototype.
80714
80715 2003-09-11  Bruno Haible  <bruno@clisp.org>
80716
80717         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
80718
80719 2003-09-10  Jim Meyering  <jim@meyering.net>
80720
80721         * lib/error.c: Correct indentation of cpp directives.
80722
80723 2003-09-10  Bruno Haible  <bruno@clisp.org>
80724
80725         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
80726         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
80727         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
80728         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
80729         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
80730         <stdlib.h> and <string.h> checks.
80731         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
80732         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
80733
80734 2003-09-10  Bruno Haible  <bruno@clisp.org>
80735
80736         * lib/strcspn.c: Include <string.h> unconditionally.
80737         * lib/strpbrk.c: Include <string.h> unconditionally.
80738         * lib/strstr.c: Include <string.h> unconditionally.
80739         * lib/unicodeio.c: Include <string.h> unconditionally.
80740         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
80741         * lib/unsetenv.c: Likewise.
80742         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
80743         * lib/yesno.c: Include <stdlib.h> unconditionally.
80744         (rpmatch): Add prototype.
80745
80746 2003-09-09  Paul Eggert  <eggert@twinsun.com>
80747
80748         More patches to assume C89 or better.
80749         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
80750         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
80751         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
80752         or for string.h.
80753         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
80754         stdlib.h.
80755         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
80756         C headers.
80757         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
80758         string.h.
80759         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
80760         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
80761         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
80762         or for string.h.
80763         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
80764         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
80765         C headers.
80766         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
80767         memcpy.
80768         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
80769         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
80770         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
80771         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
80772         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
80773         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
80774         string.h, free.
80775         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
80776         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
80777         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
80778         C headers, or for string.h.
80779         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
80780         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
80781         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
80782         headers, memory.h, stdlib.h, string.h, strings.h.
80783         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
80784         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
80785         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
80786         strchr.
80787         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
80788         headers, memory.h, string.h.
80789         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
80790         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
80791         free.
80792         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
80793         headers.
80794         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
80795         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
80796         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
80797         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
80798         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
80799
80800 2003-09-09  Paul Eggert  <eggert@twinsun.com>
80801
80802         More K&R removal.
80803
80804         * lib/acosl.c (main): Use a prototype.
80805         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
80806         tanl.c: Likewise.
80807
80808         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
80809
80810         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
80811         (getopt, etopt_long, getopt_long_only, _getopt_internal)
80812         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
80813         with a prototype.
80814         * lib/getopt.c (const): Remove macro.
80815         Include <string.h> unconditionally.
80816         (my_index): Remove; all uses changed to strchr.
80817         (strlen): Remove decl.
80818         (exchange): Remove forward decl; no longer needed.
80819         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
80820         Define with prototype.
80821         * lib/getopt1.c (const): Remove macro.
80822         (getopt_long, getopt_long_only, main): Define with prototype.
80823
80824         * lib/getugroups.c: Include <string.h> unconditionally.
80825
80826         * lib/getusershell.c: Include <stdlib.h> unconditionally.
80827         (getusershell, setusershell, endusershell, readname, main):
80828         Define with prototypes.
80829
80830         * lib/group-member.c: Include group-member.h first.
80831         Include <stdlib.h> unconditionally.
80832
80833         * lib/hard-locale.c: Include hard-locale.h first.
80834         Include <stdlib.h>, <string.h> unconditionally.
80835
80836         * lib/hash.c (free, malloc): Remove decls.
80837         Include <stdlib.h> unconditionally.
80838
80839         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
80840         (getenv): Do not declare.
80841
80842         * lib/idcache.c: Include <string.h> unconditionally.
80843
80844         * lib/long-options.c: Include long-options.h first, to test interface.
80845         Include <stdlib.h> unconditionally.
80846
80847         * lib/makepath.c: Include makepath.h first, to test interface.
80848         Include <stdlib.h> and <string.h> unconditionally.
80849
80850         * lib/linebuffer.c: Include <stdlib.h>.
80851         (free): Remove decl.
80852
80853         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
80854         stddef.h. rpl_malloc returns void *, not char *.
80855         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
80856         prototype.
80857
80858         * lib/md5.h: Include <limits.h> unconditionally.
80859         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
80860         (__P): Remove; all uses removed.
80861         * lib/md5.c: Include "md5.h" first.
80862         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
80863         md5_buffer, md5_process_bytes, md5_process_block):
80864         Define with prototypes.
80865         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
80866         * lib/sha.c: Include "sha.h" first.
80867         Include <stdlib.h>, <string.h> unconditionally.
80868
80869         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
80870         * lib/memcmp.c (__ptr_t): Likewise.
80871         * lib/memrchr.c (__ptr_t): Likewise.
80872         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
80873         Include <string.h> unconditionally.
80874         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
80875         * lib/memchr.c: Include <stdlib.h> unconditionally.
80876         * lib/memchr.c (LONG_MAX): Remove.
80877         * lib/memrchr.c (LONG_MAX): Likewise.
80878         * lib/memchr.c (__memchr): Define via a prototype.
80879         * lib/memrchr.c (__memrchr): Likewise.
80880         * lib/memcmp.c (__P): Remove, and remove all uses.
80881         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
80882         Remove forward decls; no longer needed.
80883         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
80884         Use types required by C89 in prototype.
80885
80886         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
80887         * lib/savedir.c: Likewise.
80888         * lib/mkdir.c (free): Remove decl.
80889         * lib/rmdir.c (rmdir): Define with a prototype.
80890         * lib/savedir.c: Include savedir.h first, to test interface.
80891
80892         * lib/mktime.c (STDC_HEADERS): Remove.
80893         Include <stdlib.h>, <string.h> unconditionally.
80894
80895         * lib/modechange.c: Include <stdlib.h> unconditionally.
80896         (malloc): Remove decl.
80897
80898         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
80899         (free): Remove decl.
80900
80901         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
80902         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
80903         (This type really should be intptr_t, but that's a C99ism.)
80904         (_obstack_memcpy): Remove: all uses changed to memcpy.
80905         Include <string.h> unconditionally.
80906         (struct obstack): Assume __STDC__ for types of members
80907         chunkfun, freefun, extra_arg.
80908         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
80909         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
80910         obstack_begin, obstack_specify_allocation,
80911         obstack_specify_allocation_with_arg, obstack_chunkfun,
80912         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
80913         Remove unprototyped decls and the macros that use them.
80914         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
80915         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
80916         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
80917         (defined __STDC__ && __STDC__)]:
80918         Remove nonprototyped code.
80919         Include <stdlib.h> unconditionally.
80920         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
80921         _obstack_allocated_p, _obstack_free, obstack_free,
80922         _obstack_memory_used, print_and_abort):
80923         Define using prototypes.
80924         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
80925         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
80926         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
80927         obstack_next_free, obstack_object_size, obstack_room) [0]:
80928         Remove unused, unprototyped code.
80929
80930         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
80931
80932         * lib/physmem.c (physmem_total, physmem_available, main): Define
80933         with prototypes.
80934
80935         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
80936         (main): Define with a prototype.
80937
80938         * lib/posixver.c (getenv): Remove decl.
80939
80940         * lib/putenv.c (malloc): Returns void *, not char *.
80941         Include <string.h> unconditionally.
80942         (strchr, memcpy, NULL): Do not define.
80943
80944         * lib/readtokens.c: Include readtokens.h first, to test interface.
80945         Include <stdlib.h>, <string.h> unconditionally.
80946         (init_tokenbuffer): Define with a prototype.
80947
80948         * lib/regex.c (PARAMS): Remove.  All uses removed.
80949         All uses of _RE_ARGS removed, too.
80950         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
80951         unconditionally.
80952         (bzero): Assume memset exists.
80953         (memcmp, memcpy, NULL): Remove.
80954         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
80955         char, or assignments to local vars of type signed char.
80956         (init_syntax_once, PREFIX(extract_number_and_incr),
80957         PREFIX(print_partial_compiled_pattern),
80958         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
80959         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
80960         PREFIX(regex_grow_registers), PREFIX(regex_compile),
80961         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
80962         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
80963         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
80964         wcs_compile_range, byte_compile_range, truncate_wchar,
80965         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
80966         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
80967         count_mbs_length, wcs_re_match_2_internal,
80968         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
80969         PREFIX(alt_match_null_string_p),
80970         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
80971         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
80972         regfree, PREFIX(extract_number)): Define with prototype.  Remove
80973         now-unnecessary declaration, if any.
80974         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
80975         regcomp, regexec):
80976         Remove now-unnecessary casts among pointer types.
80977         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
80978
80979         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
80980         (free): Remove decl.
80981
80982         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
80983
80984         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
80985         (free): Remove decl.
80986
80987         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
80988         * lib/xgetcwd.c: Likewise.
80989
80990         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
80991         (free): Remove decl.
80992
80993         * lib/strchrnul.c (strchrnul): Define with a prototype.
80994         Fix bug: c_in was not converted to char before searching.
80995
80996         The following changes are not K&R related:
80997
80998         * lib/group-member.h: Include <sys/types.h>, so that this file is
80999         self-contained.
81000         * lib/makepath.h: Likewise.
81001
81002         * lib/getusershell.c (readname, default_index, line_size, readname):
81003         Use size_t, not int, for sizes.
81004         (readname): If the size overflows, report an error instead of
81005         looping forever.
81006
81007 2003-09-09  Paul Eggert  <eggert@twinsun.com>
81008
81009         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
81010         libc.
81011
81012 2003-09-09  Paul Eggert  <eggert@twinsun.com>
81013
81014         * README: New section: portability guidelines.
81015
81016 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
81017
81018         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
81019         C89 spec.
81020
81021 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
81022
81023         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
81024
81025 2003-09-08  Paul Eggert  <eggert@twinsun.com>
81026
81027         Assume C89 or better; remove K&R cruft.
81028         A few of these changes were first proposed by Derek Robert Price
81029         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
81030
81031         * lib/addext.c: Include <string.h> unconditionally.
81032         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
81033         Don't declare getenv or malloc.
81034
81035         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
81036         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
81037         (NULL): Remove.
81038         (find_stack_direction, alloca): Use prototypes.
81039
81040         * lib/atexit.c (atexit): Define using a prototype.
81041
81042         * lib/basename.c, dirname.c, stripslash.c:
81043         Include <string.h> unconditionally.
81044
81045         * lib/bcopy.c: Include <stddef.h>.
81046         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
81047
81048         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
81049
81050         * lib/error.h (error, error_at_line, error_print_progname)
81051         [! (defined (__STDC__) && __STDC__)]: Remove decls.
81052         * lib/error.c: Include error.h first, to check interface.
81053         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
81054         (VA_START): Remove; all uses changeed to va_start.
81055         (exit, strerror): Remove decls.
81056         (error_print_progname): Prototype uncondionally.
81057         Don't include <errno.h>; no longer needed.
81058         (private_strerror): Remove.
81059         (error_tail): Always define.
81060         (error, error_at_line): Assume C89 or better; always use prototypes.
81061         * lib/fatal.c: Include "fatal.h" first, to test interface.
81062         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
81063         (VA_START): Remove; all uses changed to va_start.
81064         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
81065         this case.
81066         (exit): Remove decl.
81067         (fatal): Prototype unconditionally.  Assume va_start works.
81068         Abort at end, to pacify gcc.
81069
81070         * lib/euidaccess.c (main): Define with a prototype.
81071
81072         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
81073
81074         * lib/exitfail.c: Include <stdlib.h> unconditionally.
81075
81076         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
81077         prototypes.
81078         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
81079         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
81080         (getenv): Remove decl.
81081         (fnmatch): Define using a prototype.
81082         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
81083         (FCT): Define using a prototype.
81084
81085         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
81086
81087         * lib/gethostname.c: Include <stddef.h>.
81088         (gethostname): Define with prototype.  Length is size_t, not int.
81089
81090 2003-09-08  Paul Eggert  <eggert@twinsun.com>
81091
81092         Assume C89 or better; remove K&R cruft.
81093         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
81094         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
81095         string.h, getenv, malloc.
81096         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
81097         headers.
81098         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
81099         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
81100         do not check for strerror.
81101         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
81102         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
81103         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
81104         do not check for doprnt or vprintf.
81105         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
81106         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
81107
81108 2003-09-08  Paul Eggert  <eggert@twinsun.com>
81109
81110         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
81111         getversion.c should have been removed then, but was accidentally
81112         preserved.
81113
81114         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
81115         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
81116
81117 2003-09-08  Karl Berry  <karl@gnu.org>
81118
81119         * config/config.sub, config.guess, srclistvars.sh: update from savannah
81120                 config, forget about prep.
81121
81122         * config/depcomp, missing: update from automake.
81123
81124 2003-09-07  Paul Eggert  <eggert@twinsun.com>
81125
81126         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
81127         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
81128
81129 2003-09-07  Paul Eggert  <eggert@twinsun.com>
81130
81131         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
81132         copy_tm_result.  Bug reported by Simon Josefsson in
81133         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
81134
81135 2003-09-06  Paul Eggert  <eggert@twinsun.com>
81136
81137         * m4/time_r.m4: New file.
81138         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
81139         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
81140         is. Check for timegm declaration.
81141         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
81142         Do not check for gmtime_r.
81143         Replace mktime if __mktime_internal does not exist and if mktime
81144         hasn't been replaced already.
81145
81146 2003-09-06  Paul Eggert  <eggert@twinsun.com>
81147
81148         * lib/time_r.c, lib/time_r.h: New files.
81149
81150         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
81151         __localtime_r.
81152         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
81153         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
81154
81155         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
81156         __gmtime_r.
81157         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
81158         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
81159         Include <time_r.h>.
81160
81161         * lib/timegm.c: Switch to glibc implementation, with the following
81162         changes:
81163         [defined HAVE_CONFIG_H]: Include <config.h>.
81164         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
81165         (__mktime_internal) [!defined _LIBC]: New decl.
81166         (__gmtime_r) [!defined _LIBC]: New macro and function.
81167         (timegm): Use a prototype, since gnulib assumes C89.
81168         Do not bother declaring tmp to be const, as it's not really usefu.
81169         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
81170         (timegm): Declare only if HAVE_DECL_TIMEGM.
81171
81172 2003-09-06  Paul Eggert  <eggert@twinsun.com>
81173
81174         * MODULES.html.sh (func_all_modules): Add time_r.
81175         * modules/time_r: New file.
81176         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
81177         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
81178
81179 2003-09-03  Paul Eggert  <eggert@twinsun.com>
81180
81181         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
81182         Bug reported by Lute Kamstra in
81183         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
81184
81185         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
81186         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
81187         course with correspondingly smaller numbers for tomorrow and
81188         yesterday.  From Tadayoshi Funaba.  Originally installed into
81189         sh-utils on 1999-08-07, but the patch got lost (I guess during the
81190         coreutils merge?).
81191
81192 2003-08-31  Simon Josefsson  <jas@extundo.com>
81193
81194         * modules/timegm: New file.
81195         * MODULES.html.sh (func_all_modules): Add timegm.
81196
81197 2003-08-31  Simon Josefsson  <jas@extundo.com>
81198
81199         * m4/timegm.m4: New file.
81200
81201 2003-08-31  Simon Josefsson  <jas@extundo.com>
81202
81203         * lib/timegm.h: New file.
81204         * lib/timegm.c: New file.  Based on
81205         wget-1.8.2/src/http.c:mktime_from_utc.
81206
81207 2003-08-31  Karl Berry  <karl@gnu.org>
81208
81209         * lib/argp.h: update from libc.
81210
81211 2003-08-28  Bruno Haible  <bruno@clisp.org>
81212
81213         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
81214         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
81215         followed by '#define fnmatch fnmatch_posix' gives an error.
81216
81217 2003-08-28  Bruno Haible  <bruno@clisp.org>
81218
81219         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
81220         warning on QNX, which defines O_BINARY to 000000.
81221
81222 2003-08-27  Jim Meyering  <jim@meyering.net>
81223
81224         * m4/mkstemp.m4: Require that the system mkstemp be able to create
81225         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
81226         would fail after 32.  Reported by Danny Levinson.  Details here:
81227         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
81228
81229 2003-08-24  Bruno Haible  <bruno@clisp.org>
81230
81231         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
81232         MSVC7 <stdio.h> is included later.
81233
81234 2003-08-22  Simon Josefsson  <jas@extundo.com>
81235
81236         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
81237
81238 2003-08-20  Karl Berry  <karl@gnu.org>
81239
81240         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
81241
81242 2003-08-20  Bruno Haible  <bruno@clisp.org>
81243
81244         * modules/progname: New file.
81245         * MODULES.html.sh (func_all_modules): Add progname.
81246
81247 2003-08-20  Bruno Haible  <bruno@clisp.org>
81248
81249         * lib/progname.h: New file, from GNU gettext.
81250         * lib/progname.c: New file, from GNU gettext.
81251         * lib/progreloc.c: New file, from GNU gettext.
81252
81253 2003-08-19  Jim Meyering  <jim@meyering.net>
81254
81255         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
81256         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
81257
81258 2003-08-19  Bruno Haible  <bruno@clisp.org>
81259
81260         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
81261         more.
81262
81263 2003-08-19  Bruno Haible  <bruno@clisp.org>
81264
81265         * lib/xstrdup.c: Assume <string.h> exists.
81266
81267 2003-08-18  Paul Eggert  <eggert@twinsun.com>
81268
81269         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
81270         in makefile rules.
81271
81272 2003-08-18  Jim Meyering  <jim@meyering.net>
81273
81274         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
81275         * m4/lib-ld.m4: Likewise.
81276
81277 2003-08-18  Jim Meyering  <jim@meyering.net>
81278
81279         * lib/setenv.h: Indent nested cpp directive.
81280         * lib/vasnprintf.c: Remove trailing blanks.
81281
81282 2003-08-17  Simon Josefsson  <jas@extundo.com>
81283
81284         * modules/xstrndup: New file.
81285         * MODULES.html.sh (func_all_modules): Add xstrndup.
81286
81287 2003-08-17  Simon Josefsson  <jas@extundo.com>
81288
81289         * modules/argp: Fix autoconf macro name. Add more dependencies.
81290
81291 2003-08-17  Simon Josefsson  <jas@extundo.com>
81292
81293         * m4/xstrndup.m4: New file.
81294
81295 2003-08-17  Simon Josefsson  <jas@extundo.com>
81296
81297         * m4/argp.m4: New file.
81298
81299 2003-08-17  Simon Josefsson  <jas@extundo.com>
81300             Bruno Haible  <bruno@clisp.org>
81301
81302         * lib/xstrndup.h: New file.
81303         * lib/xstrndup.c: New file.
81304
81305 2003-08-17  Bruno Haible  <bruno@clisp.org>
81306
81307         * modules/strndup (Files, Include): Add lib/strndup.h.
81308
81309 2003-08-17  Bruno Haible  <bruno@clisp.org>
81310
81311         * modules/euidaccess (Files): Add lib/euidaccess.h.
81312
81313 2003-08-17  Bruno Haible  <bruno@clisp.org>
81314
81315         * lib/strndup.h: New file.
81316
81317 2003-08-17  Bruno Haible  <bruno@clisp.org>
81318
81319         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
81320         like AC_GNU_SOURCE.
81321         * modules/extensions (configure.ac): Comment out the invocation of
81322         gl_USE_SYSTEM_EXTENSIONS.
81323
81324 2003-08-16  Paul Eggert  <eggert@twinsun.com>
81325
81326         Merges from coreutils, etc.
81327         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
81328         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
81329         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
81330         fixing a typo.
81331         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
81332         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
81333
81334 2003-08-16  Paul Eggert  <eggert@twinsun.com>
81335
81336         Document merge from coreutils.
81337         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
81338         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
81339         * modules/utime: Add m4/utimes-null.m4.
81340
81341 2003-08-16  Paul Eggert  <eggert@twinsun.com>
81342
81343         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
81344         space, undoing this 2003-08-12 change:
81345         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
81346
81347 2003-08-16  Paul Eggert  <eggert@twinsun.com>
81348
81349         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
81350         strtoul.c from libc, undoing this 2003-08-12 change:
81351         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
81352
81353 2003-08-16  Jim Meyering  <jim@meyering.net>
81354
81355         Merges from coreutils.
81356         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
81357         prefix.  Adjust cache variables similarly.  Create 500 rather than
81358         just 300 files, to exercise bug on Darwin6.5, too.
81359         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
81360         $missing_dir.
81361         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
81362         AM_SYS_POSIX_TERMIOS.
81363         Reported by mkc@mathdogs.com.
81364         Also change use of $am_cv_sys_posix_termios
81365         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
81366         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
81367         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
81368         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
81369         in /proc/mounts until it finds one with matching device number.  This
81370         is unnecessary when the FILE argument *is* a mount point.  No stat call
81371         is necessary in that case.  So, disable the statvfs-testing code on
81372         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
81373         as RedHat bug# 84846.
81374         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
81375         to 1MB, so as not to render systems with no stack size limit (e.g.,
81376         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
81377         Include <unistd.h>.  On some systems,
81378         it is required for the definition of _SC_PAGESIZE.
81379
81380 2003-08-16  Jim Meyering  <jim@meyering.net>
81381
81382         Merge from coreutils.
81383         * lib/xstrtoimax.c: #else #if -> #elif.
81384         * lib/xstrtoumax.c: Likewise.
81385
81386 2003-08-16  Jim Meyering  <jim@meyering.net>
81387
81388         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
81389         * m4/utimes.m4: Removed.
81390         * m4/utimes-null.m4: Renamed from utimes.m4.
81391
81392         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
81393         to 1MB, so as not to render systems with no stack size limit (e.g.,
81394         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
81395         Include <unistd.h>.  On some systems,
81396         it is required for the definition of _SC_PAGESIZE.
81397
81398 2003-08-16  Jim Meyering  <jim@meyering.net>
81399         and Paul Eggert  <eggert@cs.ucla.edu>
81400
81401         Merges from coreutils, etc.
81402
81403         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
81404         using the latest version from cvs.  This avoids problems with #line
81405         directives using a vendor (Sun) compiler.
81406         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
81407         Don't set GETGROUPS_LIB here; now it's
81408         done via getgroups.m4's wrapper function.
81409         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
81410         rather than just in sh-util/configure.in, so that the
81411         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
81412         same.
81413         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
81414         AC_FUNC_GETLOADAVG where to find getloadavg.c.
81415         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
81416         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
81417         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
81418         Remove code that is now done by the newly-required macros.
81419         Append $(EXEEXT) to DF_PROG.
81420         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
81421         Do not invoke or require the following here,
81422         since prereq.m4 or some gnulib .m4 now does this for us:
81423         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
81424         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
81425         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
81426         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
81427         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
81428         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
81429         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
81430         AC_FUNC_OBSTACK.
81431         Do not replace the following functions, as this is now the job
81432         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
81433         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
81434         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
81435         atexit getpass, strdup, getpagesize.
81436         Replace 'raise'.
81437         Do not check for the following functions, as this is now the job
81438         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
81439         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
81440         setregid.
81441         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
81442         Check for sys/sysctl.h.
81443         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
81444         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
81445         of checking for ssize_t ourselves.
81446
81447         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
81448         Require every macro that gnulib/modules/* suggests for us.
81449         (jm_PREREQ_ADDEXT): New macro.
81450         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
81451         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
81452
81453         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
81454         (gl_PHYSMEM): Use it.
81455         Also check for `table' function.
81456         Check for new headers and functions.
81457         Add check for sys/sysmp.h.
81458         With suggestions from Kaveh Ghazi.
81459         Ignore headers that are present but cannot be compiled.  This
81460         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
81461         C 5.4.
81462
81463 2003-08-15  Paul Eggert  <eggert@twinsun.com>
81464
81465         Document merge from coreutils.
81466         * modules/userspec: Depend on posixver.
81467         * modules/strftime: Depend on tzset.
81468
81469 2003-08-15  Paul Eggert  <eggert@twinsun.com>
81470
81471         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
81472         rather than tab, after '#' in shell-script copyright notices.
81473         Suggested by Bruno Haible.
81474
81475 2003-08-15  Paul Eggert  <eggert@twinsun.com>
81476
81477         * config/srclist-update: Use three spaces, rather than tab, after '#'
81478         in shell-script copyright notices.  Suggested by Bruno Haible.
81479         Remove unnecessary parenthesization in regular expression.
81480
81481 2003-08-15  Jim Meyering  <jim@meyering.net>
81482
81483         Merge from coreutils.
81484         * lib/xgethostname.c: Include <stdlib.h>.
81485         (xghostname): Don't exit for anything other than memory-related
81486         failure; just return NULL.
81487         * lib/userspec.c: Include "posixver.h".
81488         (parse_user_spec): Accept `.' as a separator only
81489         in pre-POSIX-200112 mode.
81490         * lib/strtoimax.c: Use #elif rather than #else #if.
81491         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
81492         Remove function, now that we can rely on a working tzset function.
81493         [!_LIBC]: Ensure that the required autoconf test has been run.
81494         [!defined _NL_CURRENT && HAVE_STRFTIME]:
81495         Use underlying_strftime for %r.
81496         * lib/sha.c: Merge in some clean-up and optimization changes from
81497         glibc.
81498         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
81499         Ensure that it is a multiple of 64.
81500         Rearrange loop exit tests so as to avoid performing an
81501         additional fread after encountering an error or EOF.
81502         * lib/realloc.c: Update copyright date.
81503
81504 2003-08-15  Jim Meyering  <jim@meyering.net>
81505         and Paul Eggert  <eggert@twinsun.com>
81506
81507         Merge from coreutils.
81508         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
81509         member but strut utmpx does not.  Needed for AIX 4.3.3.
81510         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
81511
81512 2003-08-15  Jim Meyering  <jim@meyering.net>
81513         and Paul Eggert  <eggert@cs.ucla.edu>
81514
81515         Merges from coreutils, etc.
81516         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
81517         Require gl_FUNC_TZSET_CLOBBER.
81518         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
81519         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
81520         members.
81521
81522 2003-08-14  Paul Eggert  <eggert@twinsun.com>
81523
81524         Help the merge from coreutils.
81525         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
81526         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
81527         * m4/tzset.m4: Use it too.
81528
81529 2003-08-14  Paul Eggert  <eggert@twinsun.com>
81530
81531         * modules/tzset: New file.
81532
81533 2003-08-14  Jim Meyering  <jim@meyering.net>
81534
81535         Merges from coreutils.
81536         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
81537         variable names, rather than @FNMATCH_H@.
81538         * modules/alloca: Likewise for $(ALLOCA_H).
81539
81540         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
81541         the three copies of the literal target, `fnmatch.h'.
81542         * modules/alloca (alloca.h): Likewise.
81543
81544 2003-08-14  Jim Meyering  <jim@meyering.net>
81545
81546         Merge from coreutils.
81547         * m4/tzset.m4: New file.
81548         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
81549         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
81550         otherwise, AIX 5.1 systems would end up using the latter.
81551         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
81552         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
81553         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
81554         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
81555
81556 2003-08-14  Jim Meyering  <jim@meyering.net>
81557
81558         Merge from coreutils.
81559         * lib/obstack.h: Whitespace changes.
81560         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
81561         and xcalloc return values.
81562         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
81563         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
81564         hang on OSF/1 5.1 for DIR on both local and remote file systems.
81565         Reported by (and fix confirmed by) Nelson H. F. Beebe.
81566         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
81567         error from mntctl.
81568         Use mntctl's return value to drive the entry-processing loop, since
81569         we can't rely on the value of the vmt_length member in the last
81570         entry.  On some systems doing so could result in exhausting
81571         virtual memory.  Based in part on a patch from Mike Jetzer.
81572
81573 2003-08-14  Jim Meyering  <jim@meyering.net>
81574         and Paul Eggert  <eggert@twinsun.com>
81575
81576         Merges from coreutils, plus other fixes.
81577         * lib/physmem.c: Merge in portability changes from gcc/libiberty
81578         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
81579         for credits and details.  Thanks to Kaveh Ghazi for helping
81580         to keep these files in sync.
81581         (ARRAY_SIZE): Define it.
81582         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
81583         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
81584         (memcasecmp): Don't assume size_t fits in unsigned int.
81585         Remove casts and duplicate code.
81586         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
81587         (memcpy): Remove definition.
81588         Merge in some clean-up and optimization changes from glibc.
81589         [BLOCKSIZE]: Move definition to top of file.
81590         Ensure that it is a multiple of 64.
81591         Rearrange loop exit tests so as to avoid performing an
81592         additional fread after encountering an error or EOF.
81593         * lib/md5.h (md5_uintptr): Define.
81594         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
81595         return to the initial working directory.  Preserve errno
81596         for caller.
81597         * lib/idcache.c: Include "xalloc.h".
81598         (xmalloc, xrealloc): Remove decls.
81599         (getuser): Remove casts no longer required in C89.
81600         * lib/human.c: Include stdio.h, for sprintf.
81601         * lib/group-member.c: Include "xalloc.h".
81602         (xmalloc, xrealloc): Remove decls.
81603         (get_group_info): Remove casts no longer required in C89.
81604         * lib/getusershell.c (readname): Remove casts no longer required in
81605         C89.
81606         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
81607         * lib/getline.c: Whitespace fix, from coreutils.
81608
81609 2003-08-13  Paul Eggert  <eggert@twinsun.com>
81610
81611         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
81612         Check for isascii.
81613
81614         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
81615         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
81616         Undo previous (whitespace-only) change.
81617
81618 2003-08-13  Paul Eggert  <eggert@twinsun.com>
81619
81620         * lib/exclude.c: Include <ctype.h>
81621         (IN_CTYPE_DOMAIN): New macro.
81622         (is_space): New fn.
81623         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
81624         and empty lines.
81625
81626         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
81627         Undo previous (whitespace-only) change.
81628
81629 2003-08-13  Paul Eggert  <eggert@twinsun.com>
81630
81631         * config/srclist-update: Change update back to the old behavior,
81632         leaving whitespace alone.  Use one 'sed' command rather than a
81633         pipeline.
81634         (fixlicense): Now a variable, not a function.
81635         (remove_trailing_blanks): Remove.
81636         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
81637         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
81638         Undo previous (whitespace-only) change.
81639
81640 2003-08-12  Paul Eggert  <eggert@twinsun.com>
81641
81642         Merge from coreutils.
81643         * modules/euidaccess: Add lib_SOURCES, include for new
81644         file euidaccess.h
81645
81646 2003-08-12  Paul Eggert  <eggert@twinsun.com>
81647
81648         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
81649         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
81650         Normalize leading white space and remove trailing white space.
81651
81652         Merge from coreutils
81653         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
81654
81655         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
81656         0.12.1.  These files are now being upgraded automatically by
81657         ../config/srclist-update.
81658
81659 2003-08-12  Paul Eggert  <eggert@twinsun.com>
81660
81661         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
81662         Normalize leading white space and remove trailing white space.
81663         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
81664         notice, as per ../config/srclist-update.
81665
81666         Merge from coreutils.
81667         * lib/euidaccess.h: New file.
81668         * lib/euidaccess.c: Include it.
81669         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
81670         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
81671         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
81672
81673 2003-08-12  Paul Eggert  <eggert@twinsun.com>
81674
81675         * config/srclist-update: Add copyright notice.
81676         (remove_id_lines, remove_trailing_blanks): New constants.
81677         (fixfile): Use them to normalize spacing a bit in copied files.
81678         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
81679         Normalize leading white space and remove trailing white space.
81680
81681         * config/texinfo.tex: Sync with texinfo.
81682
81683         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
81684         strtoul.c from libc, to merge coreutils whitespace changes.
81685
81686         * config/srclist.txt: Get the following m4 files from gettext:
81687         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
81688         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
81689         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
81690         wint_t.m4.
81691
81692 2003-08-12  Karl Berry  <karl@gnu.org>
81693
81694         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
81695         been made.
81696
81697 2003-08-11  Paul Eggert  <eggert@twinsun.com>
81698
81699         * modules/gnu-source, m4/gnu-source.m4:
81700         Remove; we're assuming Autoconf 2.54 or later now.
81701         Suggested by Bruno Haible.
81702         * MODULES.html.sh (func_all_modules): Remove gnu-source.
81703
81704 2003-08-11  Bruno Haible  <bruno@clisp.org>
81705
81706         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
81707
81708 2003-08-11  Bruno Haible  <bruno@clisp.org>
81709
81710         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
81711         (vasnprintf): Use it instead of wcslen.
81712
81713 2003-08-11  Bruno Haible  <bruno@clisp.org>
81714
81715         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
81716         value to ensure that _Bool promotes to int. Use #define for _Bool when
81717         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
81718
81719 2003-08-10  Karl Berry  <karl@gnu.org>
81720
81721         * lib/regex.h: update from libc (whitespace fix).
81722
81723 2003-08-09  Paul Eggert  <eggert@twinsun.com>
81724
81725         Merge some files from coreutils.  These changes were
81726         originally made by Jim Meyering.
81727         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
81728         many older Unixes require this.
81729         * lib/alloca.c (alloca): Remove cast to argument of free;
81730         no longer needed in C89.
81731         * lib/alloca_.h, regex.h: Fix white space to match
81732         what GNU indent does.
81733
81734 2003-08-09  Paul Eggert  <eggert@twinsun.com>
81735
81736         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
81737         apparently Emacs's Unicode mode got confused before my 2003-08-05
81738         checkin.
81739
81740 2003-08-08  Paul Eggert  <eggert@twinsun.com>
81741
81742         * m4/extensions.m4: New file.
81743         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
81744         Require gl_USE_SYSTEM_EXTENSIONS.
81745         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
81746         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
81747
81748 2003-08-08  Paul Eggert  <eggert@twinsun.com>
81749
81750         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
81751         * modules/extensions, modules/gnu-source: New files.
81752         * modules/timespec, modules/unlocked-io: Depend on extensions.
81753
81754 2003-08-07  Paul Eggert  <eggert@twinsun.com>
81755
81756         * modules/restrict: New file.
81757         * MODULES.html.sh (func_all_modules): Add restrict.
81758         * modules/regex: Depend on restrict.
81759
81760 2003-08-07  Paul Eggert  <eggert@twinsun.com>
81761
81762         * m4/restrict.m4: New file.
81763         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
81764
81765 2003-08-07  Bruno Haible  <bruno@clisp.org>
81766
81767         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
81768         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
81769
81770 2003-08-07  Bruno Haible  <bruno@clisp.org>
81771
81772         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
81773         makes the module 'getndelim2' compatible with the module 'getline'.
81774
81775 2003-08-05  Paul Eggert  <eggert@twinsun.com>
81776
81777         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
81778         byte with "\201" to avoid glitches when editing that source file
81779         with multi-gnome-terminal.
81780
81781 2003-08-05  Paul Eggert  <eggert@twinsun.com>
81782
81783         * lib/bumpalloc.h: Remove.
81784
81785 2003-08-05  Paul Eggert  <eggert@twinsun.com>
81786
81787         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
81788         * modules/bumpalloc: Remove.
81789
81790 2003-08-04  Paul Eggert  <eggert@twinsun.com>
81791
81792         * lib/getloadavg.c: Change copyright notice and spacing to conform to
81793         GNU coding style.
81794
81795         Merge from coreutils.
81796         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
81797         1. From glibc.
81798         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
81799         from Karl Berry, implemented by Jim Meyering.
81800         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
81801         from Dmitry V. Levin.
81802         Remove anachronistic cast of xrealloc.
81803         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
81804         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
81805         type. Otherwise, it wouldn't compile with at least /bin/cc on
81806         ymp-cray-unicos9.0.2.X.
81807         Combine two mostly-identical uses of alloca into one.
81808         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
81809
81810 2003-08-04  Dave Love  <d.love@dl.ac.uk>
81811
81812         [From Emacs.]
81813
81814         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
81815         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
81816         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
81817         obsolete NLIST_NAME_UNION.
81818         [__GNU__]: Undef BSD and FSCALE.
81819         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
81820
81821 2003-08-03  Paul Eggert  <eggert@twinsun.com>
81822
81823         * lib/stdbool_.h (_Bool): Make it signed char, instead of
81824         an enum type, so that it's guaranteed to promote to int.  See:
81825         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
81826
81827 2003-08-03  Karl Berry  <karl@gnu.org>
81828
81829         * config/depcomp: update from automake.
81830
81831 2003-07-31  Paul Eggert  <eggert@twinsun.com>
81832
81833         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
81834         (strerror): Don't assume that a printable int fits in 14 bytes.
81835
81836 2003-07-31  Bruno Haible  <bruno@clisp.org>
81837
81838         * modules/getpass-gnu: New file.
81839         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
81840
81841 2003-07-31  Bruno Haible  <bruno@clisp.org>
81842
81843         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
81844
81845 2003-07-24  Karl Berry  <karl@gnu.org>
81846
81847         * config/missing: update from automake.
81848
81849 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
81850             Bruno Haible  <bruno@clisp.org>
81851
81852         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
81853         * lib/getline.c (getline, getdelim): Likewise.
81854         Remove _GNU_SOURCE define; now it's defined in config.h through
81855         m4/getline.m4.
81856
81857 2003-07-23  Karl Berry  <karl@gnu.org>
81858
81859         * config/config.sub: update from prep.
81860
81861 2003-07-22  Paul Eggert  <eggert@twinsun.com>
81862
81863         * modules/xalloc (Depends-on): Add exitfail.
81864         * modules/xmemcoll: Likewise.
81865
81866 2003-07-22  Paul Eggert  <eggert@twinsun.com>
81867
81868         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
81869         over-parenthesization in macros.
81870
81871         Sync with coreutils.
81872
81873         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
81874         required by C99.
81875
81876         Use `exit_failure' for xalloc and xmemcoll instead of their own
81877         private exit-failure variables.
81878         * lib/xalloc.h (xalloc_exit_failure): Remove.
81879         * lib/xmalloc.c: Likewise.  Include exitfail.h.
81880         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
81881         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
81882         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
81883         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
81884
81885 2003-07-20  Jim Meyering  <jim@meyering.net>
81886
81887         * modules/closeout (Depends-on): Add exitfail.
81888         Suggestion from Bruno Haible.
81889
81890 2003-07-19  Karl Berry  <karl@gnu.org>
81891
81892         * config/config.sub: update from prep.
81893
81894 2003-07-18  Paul Eggert  <eggert@twinsun.com>
81895
81896         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
81897         Remove.
81898         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
81899         to test that it can stand by itself.  Include "exitfail.h".
81900         Clients should set exit_failure instead.
81901         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
81902
81903 2003-07-18  Bruno Haible  <bruno@clisp.org>
81904
81905         * modules/getndelim2: New file.
81906         * modules/getline: Share files with module getndelim2.
81907         * modules/getnline: Depend on getndelim2 instead of sharing files with
81908         it. Add getnline.c to lib_SOURCES.
81909         * MODULES.html.sh (func_all_modules): Add getndelim2.
81910
81911 2003-07-18  Bruno Haible  <bruno@clisp.org>
81912
81913         * m4/getndelim2.m4: New file.
81914         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
81915         invoke gl_PREREQ_GETNDELIM2.
81916         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
81917         gl_PREREQ_GETNDELIM2.
81918         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
81919         gl_GETNDELIM2.
81920
81921 2003-07-18  Bruno Haible  <bruno@clisp.org>
81922
81923         * lib/getndelim2.h: New file.
81924         * lib/getndelim2.c: Make into a module of its own. Include config.h,
81925         getndelim2.h.
81926         (getndelim2): Make non-static. Change return type to ssize_t.
81927         * lib/getline.h: Change argument names.
81928         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
81929         * lib/getnline.c: Include getndelim2.h.
81930
81931 2003-07-18  Andreas Schwab  <schwab@suse.de>
81932
81933         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
81934
81935 2003-07-17  Karl Berry  <karl@gnu.org>
81936
81937         * config/config.sub: update from prep.
81938
81939 2003-07-17  Bruno Haible  <bruno@clisp.org>
81940
81941         * modules/getnline: New file.
81942         * modules/getline: Add lib/getndelim2.c to source file list.
81943         * MODULES.html.sh (func_all_modules): Add getnline.
81944
81945 2003-07-17  Bruno Haible  <bruno@clisp.org>
81946
81947         * m4/getnline.m4: New file.
81948
81949 2003-07-17  Bruno Haible  <bruno@clisp.org>
81950
81951         * m4/Makefile.am.in: Remove file.
81952         * m4/Makefile.am: Remove file.
81953         * m4/Makefile.in: Remove file.
81954
81955 2003-07-17  Bruno Haible  <bruno@clisp.org>
81956
81957         * lib/getnline.h: New file.
81958         * lib/getnline.c: New file.
81959         * lib/getndelim2.c: New file, extracted from getline.c.
81960         (getndelim2): Renamed from getdelim2, with added nmax argument.
81961         * lib/getline.c: Include getndelim2.c.
81962         (getdelim2): Moved out to getndelim2.c.
81963         (getline, getdelim): Update.
81964
81965 2003-07-17  Bruno Haible  <bruno@clisp.org>
81966
81967         * lib/Makefile.am: Remove file.
81968         * lib/Makefile.in: Remove file.
81969
81970 2003-07-17  Bruno Haible  <bruno@clisp.org>
81971
81972         * configure.in: Remove file.
81973         * Makefile.in: Remove file.
81974
81975 2003-07-17  Bruno Haible  <bruno@clisp.org>
81976
81977         * MODULES.html.sh: Put the </BODY> right before </HTML>.
81978
81979 2003-07-16  Karl Berry  <karl@gnu.org>
81980
81981         * config/srclist-update: was running fixlicense twice, which caused
81982                 texinfo.tex to be nullified for some reason.  Simplify,
81983                 $gplsrc is no longer needed as far as I can see?
81984
81985 2003-07-16  Jim Meyering  <jim@meyering.net>
81986
81987         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
81988
81989 2003-07-15  Paul Eggert  <eggert@twinsun.com>
81990
81991         * config/srclist.txt: Get the following files from gettext-runtime/intl
81992         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
81993         ref-del.sin.  From Bruno Haible.
81994         * config/srclist-update (fixfile): Change grep pattern again, since the
81995         previous fix didn't work (there was another trailing $).  Use
81996         '[$]' to escape the $s.
81997
81998 2003-07-15  Karl Berry  <karl@gnu.org>
81999
82000         * lib/vasnprintf.c: update from gettext.
82001
82002 2003-07-15  Karl Berry  <karl@gnu.org>
82003
82004         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
82005         gets expanded when surrounded by '$'.
82006
82007 2003-07-15  Jim Meyering  <jim@meyering.net>
82008
82009         * modules/save-cwd: Don't depend on error.  From Derek Price.
82010
82011 2003-07-15  Jim Meyering  <jim@meyering.net>
82012
82013         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
82014
82015 2003-07-14  Simon Josefsson  <jas@extundo.com>
82016
82017         * modules/mempcpy: New file.
82018         * MODULES.html.sh (func_all_modules): Add mempcpy.
82019
82020 2003-07-14  Simon Josefsson  <jas@extundo.com>
82021
82022         * m4/mempcpy.m4: New file.
82023
82024 2003-07-14  Simon Josefsson  <jas@extundo.com>
82025
82026         * lib/mempcpy.h: New file.
82027         * lib/mempcpy.c: New file.
82028
82029 2003-07-14  Paul Eggert  <eggert@twinsun.com>
82030
82031         * modules/getdate, modules/posixtm: Depend on mktime.
82032
82033 2003-07-14  Paul Eggert  <eggert@twinsun.com>
82034
82035         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
82036         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
82037         unicodeio.c, unicodeio.h, unlocked-io.h:
82038         Switch from LGPL to GPL.
82039
82040 2003-07-14  Paul Eggert  <eggert@twinsun.com>
82041
82042         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
82043         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
82044         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
82045         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
82046         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
82047         updated automatically by ../config/srclist-update.  This changes
82048         their license from LPGL to GPL.
82049
82050 2003-07-14  Paul Eggert  <eggert@twinsun.com>
82051
82052         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
82053         assumed to refer to the root of the most recent stable gettext version.
82054         * config/srclistvars.sh: Add defaults for eggert.
82055         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
82056         Match "This program" as well as "The program".  This is needed
82057         for gettext.
82058
82059 2003-07-14  Jim Meyering  <jim@meyering.net>
82060
82061         Don't emit diagnostics.  Let callers do that.
82062         * lib/save-cwd.c: Don't include "error.h".
82063         (save_cwd): Don't call error.  Ensure that errno is valid
82064         when returning nonzero.
82065
82066         * lib/save-cwd.h (restore_cwd): Update prototype.
82067         * lib/save-cwd.c (restore_cwd): Remove two parameters.
82068         Simplify.  Don't call error upon failure.  Let callers do that.
82069         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
82070         when auditing is enabled.  But don't bother updating the #if.
82071
82072 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
82073
82074         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
82075         it breaks C++ compilation.
82076         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
82077
82078 2003-07-10  Simon Josefsson  <jas@extundo.com>
82079
82080         * modules/strchrnul (Makefile.am): Add strchrnul.h.
82081
82082 2003-07-10  Jim Meyering  <jim@meyering.net>
82083
82084         * m4/clock_time.m4: Remove trailing blank.
82085         * m4/intmax_t.m4: Likewise.
82086
82087 2003-07-10  Jim Meyering  <jim@meyering.net>
82088
82089         * lib/vasnprintf.c: Remove trailing blanks.
82090         Make cpp indentation consistent.
82091
82092 2003-07-09  Paul Eggert  <eggert@twinsun.com>
82093
82094         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
82095         posixver.c, strftime.c, strnlen.c, strverscmp.c:
82096         Switch from LGPL to GPL.
82097
82098 2003-07-09  Paul Eggert  <eggert@twinsun.com>
82099
82100         * config/srclist.txt: Sort sublists.  Add
82101         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
82102         that differ from gnulib for one reason or another; we'd like this list
82103         to be smaller but for now let's document what we have.
82104
82105 2003-07-08  Paul Eggert  <eggert@twinsun.com>
82106
82107         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
82108         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
82109         and sweeter "eval x=$x".
82110         * config/srclist.txt: Get lib/argp* from glibc.
82111
82112 2003-07-07  Paul Eggert  <eggert@twinsun.com>
82113
82114         * lib/mktime.c: Fix some boundary cases and remove need for floating
82115         point.
82116
82117         Issue a compile-time diagnostic if time_t is floating point, or if
82118         two's complement arithmetic is not in effect, or if arithmetic
82119         right shift does not propagate the sign.  These assumptions were
82120         all in the original code but they weren't checked.
82121
82122         (TIME_T_MIDPOINT, verify): New macros.
82123         (__isleap): Remove; it has integer overflow problems.
82124         (leapyear): New function, without those problems.
82125         (ydhms_tm_diff): Remove; splitting into two parts.
82126         (ydhms_diff): New function, containing the arithmetic part of
82127         the old ydhms_tm_diff function.  Issue a compile-time
82128         diagnostic if we are not using C99 integer division.
82129         Avoid casts when possible.
82130         (guess_time_tm): New function, containing the checking part of
82131         the old ydhms_tm_diff function.  Return the new value, rather than
82132         the difference between it and the old.  Accept a new argument T
82133         so that *T specifies the old value.  Check for overflow in the result.
82134
82135         (__mktime_internal): Use a time_t offset, not a long int offset.
82136         This undoes the 2003-06-04 change, which is no longer needed now
82137         that we have better overflow checking.
82138         (localtime_offset): Likewise.
82139
82140         (__mktime_internal): Avoid harmful overflow on hosts where time_t
82141         and long are 64-bit but int is only 32-bit.
82142         (ydhms_diff): Use long int to store year1 and yday1.
82143         Issue a compile-time diagnostic if long int is not wide enough.
82144
82145         (__mktime_internal): Use long int to store adjusted year and yday.
82146         Use plain C rather than preprocessor commands, if that doesn't
82147         affect efficiency.
82148         Check for overflow (and try to repair) after each probe
82149         rather than checking only at the very end.  This avoids some bugs
82150         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
82151         does not equal GMT offset at maximum time).
82152         Use integer to check for overflow rather than floating point; this
82153         is more portable to non-IEEE hosts, and is a tad faster.
82154         When we detect that we are oscillating between two values,
82155         don't check whether tm_isdst has the requested value, since
82156         we already know the answer.  When tm_isdst has the wrong value,
82157         use a different heuristic to find the right one, based on the
82158         extreme values actually observed in practice in tz2003a,
82159         rather than the (overly optimistic) "previous 3 calendar quarters".
82160
82161         (not_equal_tm, print_tm, check_result): Use "const T" rather than
82162         "T const" to accommodate glibc style.
82163         (check_result): Use less-confusing report format.  "long" -> "long int.
82164         (main): Likewise.
82165         Don't loop if the iteration overflows time_t.
82166         Allow a negative step in the iteration.
82167
82168 2003-07-06  Karl Berry  <karl@gnu.org>
82169
82170         * config/depcomp: update from automake.
82171         * config/config.sub: update from prep.
82172
82173 2003-07-03  Karl Berry  <karl@gnu.org>
82174
82175         * config/config.guess: update from prep.
82176
82177 2003-07-01  Paul Eggert  <eggert@twinsun.com>
82178
82179         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
82180         xreadlink.c now includes it unconditionally.
82181
82182 2003-07-01  Paul Eggert  <eggert@twinsun.com>
82183
82184         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
82185         having it depend on HAVE_SYS_TYPES_H.
82186
82187 2003-07-01  Bruno Haible  <bruno@clisp.org>
82188
82189         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
82190         <sys/types.h> should be sufficient.
82191         Reported by Paul Eggert.
82192
82193 2003-06-26  Karl Berry  <karl@gnu.org>
82194
82195         * config/depcomp: update from automake.
82196
82197 2003-06-26  Bruno Haible  <bruno@clisp.org>
82198
82199         * modules/human: Depend on module stdbool.
82200
82201 2003-06-25  Bruno Haible  <bruno@clisp.org>
82202
82203         * modules/readlink: New file.
82204         * modules/xreadlink: Depend on it.
82205         * MODULES.html.sh (func_all_modules): Add readlink.
82206
82207 2003-06-25  Bruno Haible  <bruno@clisp.org>
82208
82209         * m4/readlink.m4: New file.
82210
82211 2003-06-25  Bruno Haible  <bruno@clisp.org>
82212
82213         * lib/readlink.c: New file.
82214
82215 2003-06-22  Karl Berry  <karl@gnu.org>
82216
82217         * config/srclist.txt: update mkinstalldirs from automake.
82218         * config/mkinstalldirs: update.
82219
82220 2003-06-22  Bruno Haible  <bruno@clisp.org>
82221
82222         Portability to mingw32.
82223         * m4/ssize_t.m4: New file, from GNU gettext.
82224         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
82225         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
82226
82227 2003-06-22  Bruno Haible  <bruno@clisp.org>
82228
82229         * modules/safe-read: Add m4/ssize_t.m4.
82230         * modules/xreadlink: Add m4/ssize_t.m4.
82231
82232 2003-06-20  Bruno Haible  <bruno@clisp.org>
82233
82234         Assume C89, so PARAMS isn't needed.
82235         * lib/unicodeio.h (PARAMS): Remove.
82236         * lib/unicodeio.c: Don't use PARAMS.
82237
82238 2003-06-18  Karl Berry  <karl@gnu.org>
82239
82240         * config/config.{guess,sub}: update from prep.
82241
82242 2003-06-18  Jim Meyering  <jim@meyering.net>
82243
82244         Merge changes from coreutils.
82245         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
82246         Remove explicit declarations of xmalloc and realloc.
82247         Include xalloc.h.
82248         (read_utmp): Remove anachronistic cast of xmalloc.
82249
82250 2003-06-17  Paul Eggert  <eggert@twinsun.com>
82251
82252         Assume C89, so PARAMS isn't needed.
82253         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
82254         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
82255         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
82256         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
82257         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
82258         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
82259         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
82260         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
82261         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
82262         lib/xstrtod.h, lib/xstrtol.h: Likewise.
82263         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
82264         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
82265         no longer needed. Anyway, config.h should always be included before any
82266         other file.
82267
82268 2003-06-11  Simon Josefsson  <jas@extundo.com>
82269
82270         * modules/sysexits: New file.
82271         * MODULES.html.sh (func_all_modules): Add sysexits.
82272
82273 2003-06-11  Simon Josefsson  <jas@extundo.com>
82274
82275         * lib/sysexit_.h: New file.
82276
82277 2003-06-11  Derek Price  <derek@ximbiot.com>
82278
82279         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
82280         necessary.
82281
82282 2003-06-11  Bruno Haible  <bruno@clisp.org>
82283
82284         * m4/sysexits.m4: New file.
82285
82286 2003-06-10  Simon Josefsson  <jas@extundo.com>
82287
82288         * lib/argp.h: New file, from glibc.
82289         * lib/argp-ba.c: New file, from glibc.
82290         * lib/argp-eexst.c: New file, from glibc.
82291         * lib/argp-fmtstream.c: New file, from glibc.
82292         * lib/argp-fmtstream.h: New file, from glibc.
82293         * lib/argp-fs-xinl.c: New file, from glibc.
82294         * lib/argp-help.c: New file, from glibc.
82295         * lib/argp-namefrob.h: New file, from glibc.
82296         * lib/argp-parse.c: New file, from glibc.
82297         * lib/argp-pv.c: New file, from glibc.
82298         * lib/argp-pvh.c: New file, from glibc.
82299         * lib/argp-xinl.c: New file, from glibc.
82300
82301 2003-06-10  Simon Josefsson  <jas@extundo.com>
82302
82303         * modules/strchrnul: New file.
82304
82305 2003-06-10  Simon Josefsson  <jas@extundo.com>
82306
82307         * modules/argp: New file.
82308
82309 2003-06-10  Simon Josefsson  <jas@extundo.com>
82310
82311         * m4/strchrnul.m4: New file.
82312
82313 2003-06-10  Simon Josefsson  <jas@extundo.com>
82314
82315         * lib/strchrnul.h: New file.
82316         * lib/strchrnul.c: New file.
82317
82318 2003-06-10  Bruno Haible  <bruno@clisp.org>
82319
82320         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
82321
82322 2003-06-07  Karl Berry  <karl@gnu.org>
82323
82324         * config/config.{guess,sub}: update from prep.
82325
82326 2003-06-07  Jim Meyering  <jim@meyering.net>
82327
82328         * modules/strtod: Use $(...) notation, not @...@ for
82329         AC_REPLACE'd variables.
82330         * modules/localcharset: Likewise.
82331
82332 2003-06-07  Jim Meyering  <jim@meyering.net>
82333
82334         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
82335         in place of my name in the copyright comment.
82336         Remove definition and uses of __P.
82337
82338         From coreutils.
82339         * lib/stat.c: Don't declare xmalloc explicitly.
82340         Instead, include "xalloc.h".
82341         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
82342         xrealloc, and xcalloc return values.
82343         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
82344         Improve comment.
82345         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
82346
82347 2003-06-07  Bruno Haible  <bruno@clisp.org>
82348
82349         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
82350         avoid AC_CONFIG_LINKS.
82351         * modules/fnmatch (Makefile.am): Use explicit creation rule for
82352         fnmatch.h, to avoid AC_CONFIG_LINKS.
82353         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
82354
82355 2003-06-07  Bruno Haible  <bruno@clisp.org>
82356
82357         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
82358         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
82359         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
82360         directory.
82361         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
82362         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
82363         directory.
82364
82365 2003-06-06  Jim Meyering  <jim@meyering.net>
82366
82367         Merge from coreutils.
82368         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
82369         Consolidate declarations and initializations of *_base* locals.
82370
82371         Merge from coreutils.
82372         This avoids a core dump on systems without GNU putenv,
82373         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
82374         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
82375         (unsetenv): New static function, from GNU libc.
82376         (rpl_putenv): Use it.
82377
82378         * lib/modechange.c: Remove trailing blanks.
82379
82380         Merge from coreutils.
82381         * lib/fsusage.c: Remove declaration of statfs.
82382         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
82383
82384         * lib/posixtm.c: Include <stdbool.h> unconditionally.
82385
82386 2003-06-06  Jim Meyering  <jim@meyering.net>
82387
82388         * lib/stdbool_.h: Renamed from stdbool.h.in.
82389
82390 2003-06-06  Jim Meyering  <jim@meyering.net>
82391             Bruno Haible  <bruno@clisp.org>
82392
82393         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
82394         Adjust Makefile.am snippet not to redirect directly to target.
82395         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
82396
82397 2003-06-05  Paul Eggert  <eggert@twinsun.com>
82398
82399         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
82400         mismatch, look in future quarters as well as past.  This fixes a
82401         bug when processing fall-backwards gaps immediately after a long
82402         period of daylight-saving time.
82403
82404         * lib/mktime.c: Assume freestanding C89 or better.
82405         (HAVE_LIMITS_H): Remove.  Assume it's 1.
82406         (__P): Remove; not used.
82407         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
82408         (mktime, not_equal_tm, print_tm, check_result,
82409         main): Use prototypes.  Use const * where appropriate.
82410         (main): Fix typo in testing code that uncovered by above changes.
82411         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
82412
82413 2003-06-04  Paul Eggert  <eggert@twinsun.com>
82414
82415         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
82416         locale.h, localeconv.  This merges changes from coreutils.
82417
82418         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
82419         It can be removed after the next Autoconf is released.
82420         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
82421         needed.
82422
82423 2003-06-04  Paul Eggert  <eggert@twinsun.com>
82424
82425         * lib/mktime.c: Fix Debian bug 177940
82426         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
82427         (localtime_offset): Now long int, not time_t, because we want it
82428         to be guaranteed to be signed.  All uses changed.
82429         (__mktime_internal): If overflow would occur when adding offset,
82430         don't add it.
82431
82432         Merge 'human' changes from coreutils.  Rewrite to support
82433         locale-specific notations like thousands separators.
82434         * lib/human.c: Simplify authorship notice.
82435         Include human.h immediately after config.h.
82436         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
82437         <limits.h>: Do not include, since human.h does.
82438         (SIZE_MAX, UINTMAX_MAX): New macros.
82439         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
82440         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
82441         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
82442         (power_letter): Renamed from suffixes.
82443         (generate_suffix_backwards): Remove.
82444         (adjust_value): Now takes int style (because of human.h changes)
82445         and long double value (for greater precision on some platforms).
82446         (group_number): New function.
82447         (human_readable): Use it.  Use integer options, not enum.
82448         Put the options before the sizes in the arg list.
82449         Support all the new options.
82450         The old human_readable function has been removed;
82451         use inttostr.h instead.
82452         (human_readable, default_block_size, humblock):
82453         Use uintmax_t, not int, for block sizes.
82454         (human_readable_inexact, block_size_types): Remove.
82455         (block_size_opts): New constant.
82456         (human_options): Renamed from human_block_size, with new signature
82457         that allows block sizes up to UINTMAX_MAX.  All callers changed.
82458         * lib/human.h: Add copyright and authorship notice.
82459         Include <limits.h> and <stdbool.h> unconditionally.
82460         (PARAMS): Remove.  All uses removed.
82461         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
82462         (enum human_inexact_style): Remove tag; now a nameless enum.
82463         (human_floor, human_ceiling, human_round_to_even): Now have
82464         values 2, 0, 1 rather than -1, 1, 0.
82465         (human_group_digits, human_suppress_point_zero, human_autoscale,
82466         human_base_1024, human_SI, human_B): New constants.
82467         (human_readable_inexact, human_block_size): Remove.
82468         (human_readable): Size args are now uintmax_t, not int.
82469         (human_options): New decl.
82470
82471         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
82472         unnecessary now that we assume C89 or better.  This change
82473         imported from coreutils.
82474
82475         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
82476         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
82477         in the 2003-05-30 sync from glibc.
82478
82479         .h files should stand alone, but we shouldn't include <sys/types.h>
82480         if we can get away with just <stddef.h>.
82481
82482         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
82483         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
82484         rather than <sys/types.h>, as we merely need size_t.
82485         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
82486         to get size_t.
82487         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
82488         Include <stdio.h>, to get FILE.
82489         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
82490         memcasecmp.h has included <stddef.h> and all we need is size_t.
82491         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
82492         our interface, instead of including <sys/types.h>
82493
82494 2003-06-04  Paul Eggert  <eggert@twinsun.com>
82495
82496         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
82497         now, as glibc mktime is buggy on non-glibc systems.
82498
82499 2003-06-03  Karl Berry  <karl@gnu.org>
82500
82501         * config/config.sub: update from prep.
82502
82503 2003-06-02  Paul Eggert  <eggert@twinsun.com>
82504
82505         [from coreutils]
82506         Fix some minor time-related bugs with POSIX time arguments.
82507         Some valid time stamps were being rejected (notably -1, and
82508         time stamps before 1900 on 64-bit hosts).  And some invalid
82509         time stamps were being accepted, e.g. September 31.
82510
82511         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
82512         that we can return (time_t) -1 successfully.
82513         * lib/posixtm.c: Likewise.
82514         [HAVE_STDBOOL_H]: Include <stdbool.h>.
82515         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
82516         (t): Remove static var.
82517         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
82518         of static var.  All uses changed.
82519         (year): Do not reject years before 1900; they can occur with
82520         64-bit time_t.
82521         (posix_time_parse): Do not check for out-of-range components;
82522         that is now the caller's responsibility, since our checks were
82523         only approximations.
82524         (posixtime): Use mktime to check for out-of-range components,
82525         since it knows them exactly.
82526         If mktime returns (time_t) -1, check whether an error actually occurred
82527         by invoking localtime on -1.
82528         (main) [TEST_POSIXTIME]: Check for input data errors, and report
82529         posixtime failures better.
82530         Improve the test data (in comments only).
82531
82532 2003-06-02  Karl Berry  <karl@gnu.org>
82533
82534         * config/mkinstalldirs (version): new variable.
82535         (--version): new option.
82536         (usage): improve message.
82537
82538 2003-05-30  Karl Berry  <karl@gnu.org>
82539
82540         * lib/mktime.c: update from libc.
82541
82542 2003-05-30  Bruno Haible  <bruno@clisp.org>
82543
82544         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
82545         * config/config.rpath: Upgrade to gettext-0.12.1.
82546
82547 2003-05-30  Bruno Haible  <bruno@clisp.org>
82548
82549         * m4/gettext.m4: Upgrade to gettext-0.12.1.
82550         * m4/nls.m4: New file, from gettext-0.12.1.
82551         * m4/po.m4: New file, from gettext-0.12.1.
82552         * m4/progtest.m4: Upgrade to gettext-0.12.1.
82553
82554 2003-05-30  Bruno Haible  <bruno@clisp.org>
82555
82556         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
82557         * lib/localcharset.h: Likewise.
82558         * lib/localcharset.c: Likewise.
82559
82560 2003-05-29  Karl Berry  <karl@gnu.org>
82561
82562         * config/config.rpath: update from gettext.
82563
82564 2003-05-28  Paul Eggert  <eggert@twinsun.com>
82565
82566         Assume the headers required for C89 freestanding compilers.
82567         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
82568         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
82569         * m4/human.m4 (gl_HUMAN): Likewise.
82570         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
82571         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
82572         * m4/userspec.m4 (gl_USERSPEC): Likewise.
82573         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
82574         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
82575         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
82576
82577 2003-05-28  Paul Eggert  <eggert@twinsun.com>
82578
82579         Assume the headers required for C89 freestanding compilers.
82580         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
82581         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
82582         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
82583         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
82584         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
82585         define, since <limits.h> is guaranteed to do that.
82586         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
82587         * lib/exclude.c: Include <stdbool.h> unconditionally.
82588         * lib/tempname.c: Include <stddef.h> unconditionally.
82589         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
82590         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
82591         <stddef.h> does that.
82592         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
82593         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
82594         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
82595         needed.
82596         * lib/xstrtol.c: Likewise.
82597         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
82598         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
82599
82600         * lib/addext.c (addext): Use assignment rather than cast, to avoid
82601         warnings on some platforms.
82602
82603         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
82604         arbitrarily.
82605
82606 2003-05-26  Jim Meyering  <jim@meyering.net>
82607
82608         Merge in a change from coreutils:
82609         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
82610         that is guaranteed to be `no'.  Use `no_such_member' to indicate
82611         that condition, rather than `-1' which is slightly misleading.
82612         Change the name of the cache variable to have the gl_ prefix.
82613         Prompted by a patch from Richard Dawe for DJGPP.
82614
82615 2003-05-24  Karl Berry  <karl@gnu.org>
82616
82617         * config/config.guess: update from prep.
82618
82619 2003-05-22  Karl Berry  <karl@gnu.org>
82620
82621         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
82622
82623 2003-05-20  Karl Berry  <karl@gnu.org>
82624
82625         * config/config.guess: update from prep.
82626
82627 2003-05-18  Karl Berry  <karl@gnu.org>
82628
82629         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
82630         might actually be set by the user.
82631
82632         * config/depcomp, install-sh, mdate-sh: update from automake.
82633
82634 2003-05-17  Bruno Haible  <bruno@clisp.org>
82635
82636         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
82637         invalid expansion for AC_EGREP_CPP.
82638         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
82639         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
82640         Suggested by Akim Demaille <akim@epita.fr> in
82641         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
82642
82643 2003-05-12  Jim Meyering  <jim@meyering.net>
82644
82645         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
82646         the space-padded-by-default conversion specifiers, %e, %k, %l.
82647
82648 2003-05-12  Bruno Haible  <bruno@clisp.org>
82649
82650         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
82651         the string is longer than 4 KB.
82652
82653 2003-05-11  Karl Berry  <karl@gnu.org>
82654
82655         * config/config.{guess,sub}: update from prep.
82656
82657 2003-05-09  Bruno Haible  <bruno@clisp.org>
82658
82659         * modules/error: Add m4/strerror_r.m4 to file list.
82660
82661 2003-05-03  Bruno Haible  <bruno@clisp.org>
82662
82663         Upgrade to Unicode-4.0.
82664         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
82665         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
82666         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
82667         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
82668         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
82669         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
82670         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
82671         Change width of U+E0100..U+E01EF from 1 to 0.
82672
82673 2003-04-25  Jim Meyering  <jim@meyering.net>
82674
82675         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
82676         of type size_t, not int.
82677
82678 2003-04-25  Bruno Haible  <bruno@clisp.org>
82679
82680         * lib/copy-file.c: Include <stddef.h>, for size_t.
82681
82682 2003-04-21  Paul Eggert  <eggert@twinsun.com>
82683
82684         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
82685         code which expansion is under static control.  Patch imported from
82686         Akim Demaille's patch to Bison; see
82687         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
82688
82689 2003-04-14  Bruno Haible  <bruno@clisp.org>
82690
82691         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
82692
82693 2003-04-11  Jim Meyering  <jim@meyering.net>
82694
82695         Merge changes from Coreutils.
82696
82697         2003-03-22  Jim Meyering  <jim@meyering.net>
82698
82699         * lib/strftime.c (widen): Cast alloca return value to proper type.
82700
82701         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
82702
82703         From GNU libc.
82704         * lib/strftime.c (my_strftime): Handle very large width
82705         specifications for numeric values correctly.  Improve checks for
82706         overflow.
82707
82708         2003-01-19  Jim Meyering  <jim@meyering.net>
82709
82710         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
82711         definitions.
82712         (nl_get_alt_digit) [! defined my_strftime]: Define.
82713         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
82714         _nl_get_alt_digit and _nl_get_walt_digit.
82715
82716         * lib/strftime.c (my_strftime): Merge in locale-related changes from
82717         libc. These changes have no effect outside of _LIBC.
82718
82719 2003-04-10  Bruno Haible  <bruno@clisp.org>
82720
82721         * modules/findprog: New file.
82722         * MODULES.html.sh (func_all_modules): Add it.
82723
82724 2003-04-10  Bruno Haible  <bruno@clisp.org>
82725
82726         * m4/findprog.m4: New file.
82727         * m4/eaccess.m4: New file.
82728
82729 2003-04-10  Bruno Haible  <bruno@clisp.org>
82730
82731         * lib/findprog.h: New file, from GNU gettext.
82732         * lib/findprog.c: New file, from GNU gettext.
82733
82734 2003-04-05  Jim Meyering  <jim@meyering.net>
82735
82736         Merge changes from Coreutils.
82737
82738         * lib/exclude.h (PARAMS): Remove definition and uses.
82739         * lib/exclude.c: Remove uses of `PARAMS'.
82740
82741         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
82742         Add test-cases for DOS filenames. Declare program_name.
82743         (main): Set up program_name.  Patch by Rich Dawe.
82744
82745         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
82746         error from mntctl.
82747         Use mntctl's return value to drive the entry-processing loop, since
82748         we can't rely on the value of the vmt_length member in the last
82749         entry.  On some systems doing so could result in exhausting
82750         virtual memory.  Based in part on a patch from Mike Jetzer.
82751
82752 2003-04-04  Bruno Haible  <bruno@clisp.org>
82753
82754         * modules/linebreak: New file.
82755         * MODULES.html.sh (func_all_modules): Add it.
82756
82757 2003-04-04  Bruno Haible  <bruno@clisp.org>
82758
82759         * m4/linebreak.m4: New file.
82760
82761 2003-04-04  Bruno Haible  <bruno@clisp.org>
82762
82763         * lib/linebreak.h: New file, from GNU gettext.
82764         * lib/linebreak.c: New file, from GNU gettext with slight
82765         modifications.
82766         * lib/lbrkprop.h: New file, from GNU gettext.
82767
82768 2003-04-03  Bruno Haible  <bruno@clisp.org>
82769
82770         * modules/utf8-ucs4: New file.
82771         * modules/utf16-ucs4: New file.
82772         * modules/ucs4-utf8: New file.
82773         * modules/ucs4-utf16: New file.
82774         * MODULES.html.sh (func_all_modules): Add them.
82775
82776 2003-04-03  Bruno Haible  <bruno@clisp.org>
82777
82778         * m4/utf-ucs4.m4: New file.
82779         * m4/ucs4-utf.m4: New file.
82780
82781 2003-04-03  Bruno Haible  <bruno@clisp.org>
82782
82783         * lib/utf8-ucs4.h: New file, from GNU gettext.
82784         * lib/utf16-ucs4.h: New file, from GNU gettext.
82785         * lib/ucs4-utf8.h: New file, from GNU gettext.
82786         * lib/ucs4-utf16.h: New file, from GNU gettext.
82787
82788 2003-04-02  Bruno Haible  <bruno@clisp.org>
82789
82790         * modules/binary-io: New file.
82791         * MODULES.html.sh (func_all_modules): Add it.
82792
82793 2003-04-02  Bruno Haible  <bruno@clisp.org>
82794
82795         * lib/binary-io.h: New file, from GNU gettext.
82796
82797 2003-04-01  Bruno Haible  <bruno@clisp.org>
82798
82799         * modules/pathname: New file.
82800         * MODULES.html.sh (func_all_modules): Add it.
82801
82802 2003-04-01  Bruno Haible  <bruno@clisp.org>
82803
82804         * lib/pathname.h: New file, from GNU gettext.
82805         * lib/concatpath.c: New file, from GNU gettext.
82806
82807 2003-03-30  Bruno Haible  <bruno@clisp.org>
82808
82809         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
82810
82811 2003-03-30  Bruno Haible  <bruno@clisp.org>
82812
82813         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
82814         function chown() doesn't exist.
82815
82816 2003-03-28  Bruno Haible  <bruno@clisp.org>
82817
82818         * modules/copy-file: New file.
82819         * MODULES.html.sh (func_all_modules): Add it.
82820
82821 2003-03-28  Bruno Haible  <bruno@clisp.org>
82822
82823         * m4/copy-file.m4: New file.
82824
82825 2003-03-28  Bruno Haible  <bruno@clisp.org>
82826
82827         * lib/copy-file.h: New file, from GNU gettext.
82828         * lib/copy-file.c: New file, from GNU gettext.
82829
82830 2003-03-18  Jim Meyering  <jim@meyering.net>
82831
82832         * lib/quote.c (quote_n): Fix typo in comment.
82833
82834 2003-03-18  Bruno Haible  <bruno@clisp.org>
82835
82836         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
82837         checking.
82838         * m4/onceonly_2_57.m4: Likewise.
82839
82840 2003-03-17  Bruno Haible  <bruno@clisp.org>
82841
82842         * m4/onceonly.m4: Require autoconf 2.54 or newer.
82843         (m4_quote): Remove macro.
82844         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
82845
82846 2003-03-14  Jim Meyering  <jim@meyering.net>
82847
82848         Merge changes from Coreutils.
82849         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
82850         to be const, in order to avoid warnings.
82851         (obstack_room): Likewise.
82852         (obstack_empty_p): Likewise.
82853
82854 2003-03-14  Bruno Haible  <bruno@clisp.org>
82855
82856         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
82857         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
82858
82859 2003-03-13  Paul Eggert  <eggert@twinsun.com>
82860
82861         Merge changes from Bison.
82862         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
82863         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
82864         when compiling Bison 1.875's `bitset bset = obstack_alloc
82865         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
82866         * lib/hash.c: Include <stdbool.h> unconditionally.
82867
82868 2003-03-13  Paul Eggert  <eggert@twinsun.com>
82869
82870         * m4/onceonly.m4 (m4_quote): New macro.
82871         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
82872         Quote AC_FOREACH variable-expansions properly.
82873
82874 2003-03-13  Paul Eggert  <eggert@twinsun.com>
82875
82876         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
82877
82878 2003-03-09  Paul Eggert  <eggert@twinsun.com>
82879
82880         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
82881         Reported by Bruce Becker; see:
82882         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
82883
82884 2003-03-03  Paul Eggert  <eggert@twinsun.com>
82885             Bruno Haible  <bruno@clisp.org>
82886
82887         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
82888         Reported by John Hughes, see
82889         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
82890
82891 2003-02-20  Bruno Haible  <bruno@clisp.org>
82892
82893         * MODULES.html.sh (func_all_modules): Add poll.
82894
82895 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
82896
82897         * modules/poll: New file.
82898
82899 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
82900
82901         * lib/poll_.h: New file.
82902         * lib/poll.c: New file.
82903
82904 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
82905
82906         * m4/poll.m4: New file.
82907
82908 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
82909
82910         * modules/mathl: New file.
82911
82912 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
82913
82914         * lib/mathl.h: New file.
82915         * lib/acosl.c: New file.
82916         * lib/asinl.c: New file.
82917         * lib/atanl.c: New file.
82918         * lib/ceill.c: New file.
82919         * lib/cosl.c: New file.
82920         * lib/expl.c: New file.
82921         * lib/floorl.c: New file.
82922         * lib/frexpl.c: New file.
82923         * lib/ldexpl.c: New file.
82924         * lib/logl.c: New file.
82925         * lib/sincosl.c: New file.
82926         * lib/sinl.c: New file.
82927         * lib/sqrtl.c: New file.
82928         * lib/tanl.c: New file.
82929         * lib/trigl.c: New file.
82930         * lib/trigl.h: New file.
82931
82932 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
82933
82934         * m4/mathl.m4: New file.
82935
82936 2003-02-18  Bruno Haible  <bruno@clisp.org>
82937
82938         * MODULES.html.sh (func_all_modules): Add mathl.
82939
82940 2003-02-17  Bruno Haible  <bruno@clisp.org>
82941
82942         * modules/mkdtemp: New module.
82943         * MODULES.html.sh (func_all_modules): Add it.
82944
82945 2003-02-17  Bruno Haible  <bruno@clisp.org>
82946
82947         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
82948
82949 2003-02-17  Bruno Haible  <bruno@clisp.org>
82950
82951         * lib/mkdtemp.h: New file, from GNU gettext.
82952         * lib/mkdtemp.c: New file, from GNU gettext.
82953
82954 2003-02-02  Jim Meyering  <jim@meyering.net>
82955
82956         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
82957         e.g. glibc-2.2.93.
82958
82959 2003-01-31  Bruno Haible  <bruno@clisp.org>
82960
82961         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
82962         'rpl_rename'.
82963         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
82964         'rpl_strnlen'.
82965         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
82966         'rpl_strtod'.
82967         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
82968         'rpl_utime'.
82969
82970 2003-01-31  Bruno Haible  <bruno@clisp.org>
82971
82972         * lib/rename.c: #undef rename before defining rpl_rename.
82973         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
82974
82975 2003-01-30  Bruno Haible  <bruno@clisp.org>
82976
82977         * modules/vasnprintf, modules/vasprintf: New modules.
82978         * MODULES.html.sh (func_all_modules): Add them.
82979
82980 2003-01-30  Bruno Haible  <bruno@clisp.org>
82981
82982         * m4/signed.m4: New file, from GNU gettext.
82983         * m4/longdouble.m4: New file, from GNU gettext.
82984         * m4/wchar_t.m4: New file, from GNU gettext.
82985         * m4/wint_t.m4: New file, from GNU gettext.
82986         * m4/vasnprintf.m4: New file.
82987         * m4/vasprintf.m4: New file.
82988
82989 2003-01-30  Bruno Haible  <bruno@clisp.org>
82990
82991         * lib/printf-args.h: New file, from GNU gettext.
82992         * lib/printf-args.c: New file, from GNU gettext.
82993         * lib/printf-parse.h: New file, from GNU gettext.
82994         * lib/printf-parse.c: New file, from GNU gettext.
82995         * lib/vasnprintf.h: New file, from GNU gettext.
82996         * lib/vasnprintf.c: New file, from GNU gettext.
82997         * lib/asnprintf.c: New file, from GNU gettext.
82998         * lib/vasprintf.h: New file, from GNU gettext with modifications.
82999         * lib/vasprintf.c: New file, from GNU gettext.
83000         * lib/asprintf.c: New file, from GNU gettext.
83001
83002 2003-01-29  Bruno Haible  <bruno@clisp.org>
83003
83004         * modules/stpncpy: New module.
83005         * MODULES.html.sh (func_all_modules): Add it.
83006
83007 2003-01-29  Bruno Haible  <bruno@clisp.org>
83008
83009         * m4/stpncpy.m4: New file.
83010
83011 2003-01-29  Bruno Haible  <bruno@clisp.org>
83012
83013         * lib/stpncpy.h: New file, from GNU gettext with modifications.
83014         * lib/stpncpy.c: New file, from GNU gettext with modifications.
83015
83016 2003-01-28  Bruno Haible  <bruno@clisp.org>
83017
83018         * modules/c-ctype: New module.
83019         * MODULES.html.sh (func_all_modules): Add it.
83020
83021 2003-01-28  Bruno Haible  <bruno@clisp.org>
83022
83023         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
83024         Paul Eggert.
83025         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
83026         Paul Eggert.
83027
83028 2003-01-27  Bruno Haible  <bruno@clisp.org>
83029
83030         * modules/xsetenv: New module.
83031         * MODULES.html.sh (func_all_modules): Add it.
83032
83033 2003-01-27  Bruno Haible  <bruno@clisp.org>
83034
83035         * lib/xsetenv.h: New file, from GNU gettext.
83036         * lib/xsetenv.c: New file, from GNU gettext.
83037
83038 2003-01-23  Jim Meyering  <jim@meyering.net>
83039
83040         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
83041         from working on systems without dirfd (at least Irix and OSF1/Tru64).
83042
83043 2003-01-23  Bruno Haible  <bruno@clisp.org>
83044
83045         * modules/minmax: New module.
83046         * MODULES.html.sh (func_all_modules): Add it.
83047
83048 2003-01-23  Bruno Haible  <bruno@clisp.org>
83049
83050         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
83051         Eggert.
83052
83053 2003-01-22  Bruno Haible  <bruno@clisp.org>
83054
83055         * modules/exit: New module.
83056         * MODULES.html.sh (func_all_modules): Add it.
83057
83058 2003-01-22  Bruno Haible  <bruno@clisp.org>
83059
83060         * lib/exit.h: New file, from GNU gettext.
83061
83062 2003-01-19  Bruno Haible  <bruno@clisp.org>
83063
83064         * gnulib-tool: Recognize option --extract-maintainer.
83065         (func_get_maintainer): New function.
83066         * modules/*: Add Maintainer entry.
83067
83068 2003-01-16  Jim Meyering  <jim@meyering.net>
83069
83070         * m4/regex.m4: The `regex' struct is both input and output.
83071         Initialize it before each use.  Patch by Tim Waugh.
83072
83073 2003-01-16  Bruno Haible  <bruno@clisp.org>
83074
83075         * MODULES.html.sh: Add a table of contents. Add the module name as
83076         leftmost column. Add hyperlinks.
83077
83078 2003-01-15  Bruno Haible  <bruno@clisp.org>
83079
83080         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
83081
83082 2003-01-15  Bruno Haible  <bruno@clisp.org>
83083
83084         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
83085         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
83086         suffix.
83087
83088 2003-01-15  Bruno Haible  <bruno@clisp.org>
83089
83090         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
83091
83092 2003-01-15  Bruno Haible  <bruno@clisp.org>
83093
83094         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
83095         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
83096
83097 2003-01-14  Jim Meyering  <jim@meyering.net>
83098
83099         * lib/same.c (same_name): Tweak a comment.
83100
83101 2003-01-14  Bruno Haible  <bruno@clisp.org>
83102
83103         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
83104         when a string comparison is sufficient.
83105
83106 2003-01-14  Bruno Haible  <bruno@clisp.org>
83107
83108         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
83109         'unsigned int'.
83110
83111 2003-01-14  Bruno Haible  <bruno@clisp.org>
83112
83113         * lib/hash-pjw.c: Add comment about low quality of this function.
83114
83115 2003-01-13  Bruno Haible  <bruno@clisp.org>
83116
83117         * modules/stpcpy: Distribute lib/stpcpy.h.
83118         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
83119
83120 2003-01-13  Bruno Haible  <bruno@clisp.org>
83121
83122         * modules/*: Add a description.
83123         * modules/strpbrk: Fix Makefile.am snippet.
83124         * modules/strtoimax: Fix dependencies.
83125         * modules/strtoumax: Likewise.
83126
83127 2003-01-13  Bruno Haible  <bruno@clisp.org>
83128
83129         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
83130         * modules/alloca (Makefile.am): All object files depend on alloca.h.
83131         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
83132
83133 2003-01-13  Bruno Haible  <bruno@clisp.org>
83134
83135         * gnulib-tool (func_create_testdir): Store config/* files in the main
83136         directory.
83137         * config.rpath: Move to ...
83138         * config/config.rpath: ... here.
83139         * modules/gettext: Contains config/config.rpath, not config.rpath.
83140         * modules/iconv: Likewise.
83141
83142 2003-01-12  Paul Eggert  <eggert@twinsun.com>
83143
83144         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
83145         to avoid collisions with libcurses and libreadline.
83146
83147         * m4/getstr.m4: Remove.
83148         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
83149
83150 2003-01-12  Paul Eggert  <eggert@twinsun.com>
83151
83152         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
83153         to avoid collisions with libcurses and libreadline.
83154
83155         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
83156         * lib/getstr.h, getstr.c: Remove.
83157         * lib/getline.c: Include "getline.h", to check interface.
83158         Move body of old getstr.c here: this defines MIN_CHUNK and
83159         declares getdelim2, which is renamed from getstr.
83160         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
83161
83162         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
83163         All uses changed.
83164         * lib/linebuffer.h: Likewise.
83165         (readline): Remove backward-compatibility macro.
83166
83167 2003-01-12  Paul Eggert  <eggert@twinsun.com>
83168
83169         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
83170         to avoid collisions with libcurses and libreadline.
83171         * getstr: Remove.
83172         * MODULES.html.sh: Remove getstr.
83173         * modules/getline: Depend on unlocked-io, not getstr.
83174
83175 2003-01-12  Jim Meyering  <jim@meyering.net>
83176
83177         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
83178
83179 2003-01-10  Bruno Haible  <bruno@clisp.org>
83180
83181         * modules/alloca: Change Makefile.am requirements. Simplify Include
83182         requirements. Add lib/alloca_.h to file list.
83183
83184 2003-01-10  Bruno Haible  <bruno@clisp.org>
83185
83186         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
83187
83188 2003-01-10  Bruno Haible  <bruno@clisp.org>
83189
83190         * lib/alloca_.h: New file.
83191         * lib/getdate.y: Unconditionally include alloca.h.
83192         * lib/makepath.c: Likewise.
83193         * lib/setenv.c: Likewise.
83194         * lib/userspec.c: Likewise.
83195
83196 2003-01-09  Karl Berry  <karl@gnu.org>
83197
83198         * MODULES.html.sh: include `dirname $0` in PATH, to find
83199         gnulib-tool.
83200
83201 2003-01-09  Bruno Haible  <bruno@clisp.org>
83202
83203         * modules/stdbool: Change configure.ac, Makefile.am requirements.
83204         Simplify Include requirements. Add lib/stdbool.h.in to file list.
83205
83206 2003-01-09  Bruno Haible  <bruno@clisp.org>
83207
83208         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
83209
83210 2003-01-09  Bruno Haible  <bruno@clisp.org>
83211
83212         * lib/stdbool.h.in: New file.
83213
83214 2003-01-09  Bruno Haible  <bruno@clisp.org>
83215
83216         * gnulib-tool (func_all_modules): Ignore files ending in ~.
83217         * MODULES.html.sh: Likewise.
83218
83219 2003-01-08  Jim Meyering  <jim@meyering.net>
83220
83221         * lib/full-write.c: Undefine and define-away `const' after inclusion
83222         of errno.h, not before.  Suggestion from Bruno Haible.
83223
83224 2003-01-08  Bruno Haible  <bruno@clisp.org>
83225
83226         * modules/full-read: Depend on full-write.
83227
83228 2003-01-08  Bruno Haible  <bruno@clisp.org>
83229
83230         * lib/safe-read.c: Include specification header first, to ensure its
83231         selfcontainedness.
83232         * lib/full-write.c: Likewise.
83233
83234 2003-01-07  Jim Meyering  <jim@meyering.net>
83235
83236         * lib/full-write.c: Rework so that it may serve to define full_read,
83237         too.
83238         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
83239
83240 2003-01-07  Bruno Haible  <bruno@clisp.org>
83241
83242         * lib/strtoimax.c: Include <stdint.h> as an alternative to
83243         <inttypes.h>.
83244         * lib/xstrtol.h: Likewise.
83245         * lib/xstrtoimax.c: Likewise.
83246         * lib/xstrtoumax.c: Likewise.
83247         * lib/human.h: Likewise.
83248
83249         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
83250         on systems that have <inttypes.h> but not <stdint.h>.
83251
83252 2003-01-07  Bruno Haible  <bruno@clisp.org>
83253
83254         * MODULES.html.sh: Add copyright notice.
83255         (missed_files): Omit CVS directory entries.
83256         (func_module): Make it work with sed-3.02.
83257         * MODULES.txt: Remove file.
83258
83259 2003-01-06  Jim Meyering  <jim@meyering.net>
83260
83261         * lib/version-etc.c: Update year in translatable copyright string.
83262
83263 2003-01-03  Karl Berry  <karl@gnu.org>
83264
83265         * config/config.{guess,sub}: update from prep.
83266
83267 2003-01-02  Karl Berry  <karl@gnu.org>
83268
83269         * doc/COPYING.DOC: belatedly updated to 1.2.
83270
83271 2003-01-01  Karl Berry  <karl@gnu.org>
83272
83273         * gnulib-tool (func_verify_module): report module name $module in
83274         error message, not $1.
83275         * gnulib-tool (create-testdir): don't complain if destdir couldn't
83276         be created, only if it doesn't exist.
83277         * gnulib-tool (last_checkin_date): don't expand the $Date here.
83278
83279 2002-12-31  Paul Eggert  <eggert@twinsun.com>
83280
83281         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
83282
83283 2002-12-31  Paul Eggert  <eggert@twinsun.com>
83284
83285         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
83286         memcmp if strcoll doesn't work.
83287
83288 2002-12-31  Bruno Haible  <bruno@clisp.org>
83289
83290         * lib/utime.c (utime_null): No need to call ftruncate if the file was
83291         nonempty.
83292
83293 2002-12-31  Bruno Haible  <bruno@clisp.org>
83294
83295         * lib/memcoll.c (STRCOLL): New macro.
83296         (memcoll): Use it.
83297
83298 2002-12-31  Bruno Haible  <bruno@clisp.org>
83299
83300         * lib/localcharset.h: New file.
83301         * lib/localcharset.c: Include it.
83302         * lib/unicodeio.c: Likewise.
83303
83304 2002-12-31  Bruno Haible  <bruno@clisp.org>
83305
83306         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
83307         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
83308
83309 2002-12-31  Bruno Haible  <bruno@clisp.org>
83310
83311         * lib/getline.h: Include <stddef.h>, for size_t.
83312
83313         * lib/unicodeio.h: Include <stddef.h>, for size_t.
83314         * lib/unicodeio.c: Don't include <stddef.h>.
83315
83316 2002-12-31  Bruno Haible  <bruno@clisp.org>
83317
83318         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
83319         HAVE_TM_ZONE.
83320
83321 2002-12-24  Karl Berry  <karl@gnu.org>
83322
83323         * config/config.guess: update from prep.
83324
83325 2002-12-24  Bruno Haible  <bruno@clisp.org>
83326
83327         General infrasructure.
83328         * m4/README: Rewritten.
83329         * m4/onceonly.m4: New file.
83330         * m4/onceonly_2_57.m4: New file.
83331
83332         Module atexit.
83333         * m4/atexit.m4: New file.
83334
83335         Module strtod.
83336         * m4/strtod.m4: New file.
83337
83338         Module strtol.
83339         * m4/strtol.m4: New file.
83340
83341         Module strtoul.
83342         * m4/strtoul.m4: New file.
83343
83344         Module memchr.
83345         * m4/memchr.m4: New file.
83346
83347         Module memcmp.
83348         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
83349         (jm_FUNC_MEMCMP): Invoke it.
83350
83351         Module memcpy.
83352         * m4/memcpy.m4: New file.
83353
83354         Module memmove.
83355         * m4/memmove.m4: New file.
83356
83357         Module memset.
83358         * m4/memset.m4: New file.
83359
83360         Module strcspn.
83361         * m4/strcspn.m4: New file.
83362
83363         Module strpbrk.
83364         * m4/strpbrk.m4: New file.
83365
83366         Module strstr.
83367         * m4/strstr.m4: New file.
83368
83369         Module strerror.
83370         * m4/strerror.m4: New file.
83371
83372         Module mktime.
83373         * m4/mktime.m4: Renamed from jm-mktime.m4.
83374         (gl_PREREQ_MKTIME): New macro.
83375         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
83376
83377         Module malloc.
83378         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
83379         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
83380         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
83381
83382         Module realloc.
83383         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
83384         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
83385         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
83386
83387         Module strftime.
83388         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
83389         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
83390         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
83391         gl_TM_GMTOFF.
83392         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
83393
83394         Module xalloc.
83395         * m4/xalloc.m4: New file.
83396
83397         Module alloca.
83398         * m4/alloca.m4: New file.
83399
83400         Module putenv.
83401         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
83402         (jm_FUNC_PUTENV): Invoke it.
83403
83404         Module setenv.
83405         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
83406         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
83407         when invoked twice.
83408         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
83409         gt_FUNC_SETENV.
83410
83411         Module memrchr.
83412         * m4/memrchr.m4: New file.
83413
83414         Module stpcpy.
83415         * m4/stpcpy.m4: New file.
83416
83417         Module strcase.
83418         * m4/strcase.m4: New file.
83419
83420         Module strdup.
83421         * m4/strdup.m4: New file.
83422
83423         Module strnlen.
83424         * m4/strnlen.m4: New file.
83425
83426         Module strndup.
83427         * m4/strndup.m4: New file.
83428
83429         Module xstrtod.
83430         * m4/xstrtod.m4: New file.
83431
83432         Module xstrtol.
83433         * m4/xstrtol.m4: New file.
83434
83435         Module getdate.
83436         * m4/getdate.m4: New file.
83437
83438         Module unlocked-io.
83439         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
83440         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
83441         * m4/jm-glibc-io.m4n: Remove file.
83442
83443         Module long-options.
83444         * m4/long-options.m4: New file.
83445
83446         Module md5.
83447         * m4/md5.m4: New file.
83448
83449         Module sha.
83450         * m4/sha.m4: New file.
83451
83452         Module getstr.
83453         * m4/getstr.m4: New file.
83454
83455         Module getline.
83456         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
83457         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
83458         <sys/types.h>, for size_t. Use the function name gnu_getline, not
83459         simply getline. Infoke gl_PREREQ_GETLINE.
83460
83461         Module obstack.
83462         * m4/obstack.m4: New file.
83463
83464         Module hash.
83465         * m4/hash.m4: New file.
83466
83467         Module readtokens.
83468         * m4/readtokens.m4: New file.
83469
83470         Module strverscmp.
83471         * m4/strverscmp.m4: New file.
83472
83473         Module stdbool.
83474         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
83475         OSF/1.
83476
83477         Module strtoll.
83478         * m4/strtoll.m4: New file.
83479
83480         Module strtoull.
83481         * m4/strtoull.m4: New file.
83482
83483         Module strtoimax.
83484         * m4/strtoimax.m4: New file.
83485
83486         Module strtoumax.
83487         * m4/strtoumax.m4: New file.
83488
83489         Module xstrtoimax.
83490         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
83491         jm_AC_PREREQ_XSTRTOIMAX.
83492         Moved the strtol prerequisites to strtol.m4.
83493         Moved the strtoll prerequisites to strtoll.m4.
83494         Moved the strtoimax prerequisites to strtoimax.m4.
83495
83496         Module xstrtoumax.
83497         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
83498         jm_AC_PREREQ_XSTRTOUMAX.
83499         Moved the strtoul prerequisites to strtoul.m4.
83500         Moved the strtoull prerequisites to strtoull.m4.
83501         Moved the strtoumax prerequisites to strtoumax.m4.
83502
83503         Module chown.
83504         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
83505         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
83506
83507         Module dup2.
83508         * m4/dup2.m4: New file.
83509
83510         Module ftruncate.
83511         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
83512         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
83513
83514         Module getgroups.
83515         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
83516         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
83517
83518         Module gettimeofday.
83519         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
83520         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
83521         gl_PREREQ_GETTIMEOFDAY.
83522
83523         Module mkdir.
83524         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
83525         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
83526
83527         Module mkstemp.
83528         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
83529         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
83530         jm_AC_TYPE_UINTMAX_T.
83531         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
83532
83533         Module stat.
83534         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
83535         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
83536
83537         Module lstat.
83538         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
83539         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
83540
83541         Module timespec.
83542         * m4/timespec.m4 (gl_TIMESPEC): New macro.
83543         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
83544         * m4/st_mtim.m4: Indentation.
83545
83546         Module nanosleep.
83547         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
83548         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
83549         gl_PREREQ_NANOSLEEP.
83550
83551         Module regex.
83552         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
83553         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
83554         (gl_REGEX): New macro.
83555
83556         Module rename.
83557         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
83558         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
83559
83560         Module rmdir.
83561         * m4/rmdir.m4: New file.
83562
83563         Module utime.
83564         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
83565         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
83566         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
83567
83568         Module dirname.
83569         * m4/dirname.m4: New file.
83570
83571         Module getopt.
83572         * m4/getopt.m4: New file.
83573
83574         Module unistd-safer.
83575         * m4/unistd-safer.m4: New file.
83576
83577         Module fnmatch.
83578         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
83579         declaration.
83580         (gl_PREREQ_FNMATCH_EXTRA): New macro.
83581         (gl_FUNC_FNMATCH_POSIX): New macro.
83582         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
83583         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
83584         simply fnmatch.
83585
83586         Module exclude.
83587         * m4/exclude.m4: New file.
83588
83589         Module human.
83590         * m4/human.m4: New file.
83591
83592         Module acl.
83593         * m4/acl.m4: Nop.
83594
83595         Module backupfile.
83596         * m4/backupfile.m4: New file.
83597         * m4/d-ino.m4: Indentation.
83598
83599         Module fsusage.
83600         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
83601         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
83602         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
83603
83604         Module dirfd.
83605         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
83606         requirements.
83607
83608         Module euidaccess.
83609         * m4/euidaccess.m4: New file.
83610
83611         Module file-type.
83612         * m4/file-type.m4: New file.
83613
83614         Module fileblocks.
83615         * m4/fileblocks.m4: New file.
83616
83617         Module filemode.
83618         * m4/filemode.m4: New file.
83619
83620         Module isdir.
83621         * m4/isdir.m4: New file.
83622
83623         Module lchown.
83624         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
83625         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
83626
83627         Module makepath.
83628         * m4/makepath.m4: New file.
83629
83630         Module modechange.
83631         * m4/modechange.m4: New file.
83632
83633         Module mountlist.
83634         * m4/mountlist.m4: New file.
83635         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
83636         Indentation.
83637
83638         Module path-concat.
83639         * m4/path-concat.m4: New file.
83640
83641         Module pathmax.
83642         * m4/pathmax.m4: New file.
83643
83644         Module same.
83645         * m4/same.m4: New file.
83646
83647         Module save-cwd.
83648         * m4/save-cwd.m4: New file.
83649
83650         Module savedir.
83651         * m4/savedir.m4: New file.
83652
83653         Module xgetcwd.
83654         * m4/xgetcwd.m4: New file.
83655         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
83656
83657         Module xreadlink.
83658         * m4/xreadlink.m4: New file.
83659
83660         Module safe-read.
83661         * m4/safe-read.m4: New file.
83662
83663         Module safe-write.
83664         * m4/safe-write.m4: New file.
83665
83666         Module closeout.
83667         * m4/closeout.m4: New file.
83668
83669         Module stdio-safer.
83670         * m4/stdio-safer.m4: New file.
83671
83672         Module getpass.
83673         * m4/getpass.m4: New file.
83674
83675         Module getugroups.
83676         * m4/getugroups.m4: New file.
83677
83678         Module group-member.
83679         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
83680         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
83681
83682         Module idcache.
83683         * m4/idcache.m4: New file.
83684
83685         Module userspec.
83686         * m4/userspec.m4: New file.
83687
83688         Module gettime.
83689         * m4/clock_time.m4: New file.
83690         * m4/gettime.m4: New file.
83691
83692         Module settime.
83693         * m4/settime.m4: New file.
83694
83695         Module posixtm.
83696         * m4/posixtm.m4: New file.
83697
83698         Module gethostname.
83699         * m4/gethostname.m4: New file.
83700
83701         Module canon-host.
83702         * m4/canon-host.m4: New file.
83703
83704         Module gettext.
83705         * m4/codeset.m4: New file, from gettext-0.11.5.
83706         * m4/gettext.m4: New file, from gettext-0.11.5.
83707         * m4/glibc21.m4: New file, from gettext-0.11.5.
83708         * m4/iconv.m4: New file, from gettext-0.11.5.
83709         * m4/intdiv0.m4: New file, from gettext-0.11.5.
83710         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
83711         * m4/inttypes.m4: New file, from gettext-0.11.5.
83712         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
83713         * m4/isc-posix.m4: New file, from gettext-0.11.5.
83714         * m4/lcmessage.m4: New file, from gettext-0.11.5.
83715         * m4/lib-ld.m4: New file, from gettext-0.11.5.
83716         * m4/lib-link.m4: New file, from gettext-0.11.5.
83717         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
83718         * m4/progtest.m4: New file, from gettext-0.11.5.
83719         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
83720         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
83721         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
83722
83723         Module localcharset.
83724         * m4/localcharset.m4: New file.
83725
83726         Module hard-locale.
83727         * m4/hard-locale.m4: New file.
83728
83729         Module mbswidth.
83730         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
83731         onceonly macros.
83732         * m4/mbrtowc.m4: Add comment.
83733
83734         Module memcasecmp.
83735         * m4/memcasecmp.m4: New file.
83736
83737         Module memcoll.
83738         * m4/memcoll.m4: New file.
83739
83740         Module unicodeio.
83741         * m4/unicodeio.m4: New file.
83742
83743         Module rpmatch.
83744         * m4/rpmatch.m4: New file.
83745
83746         Module yesno.
83747         * m4/yesno.m4: New file.
83748
83749         Module exitfail.
83750         * m4/exitfail.m4: New file.
83751
83752         Module c-stack.
83753         * m4/c-stack.m4 (gl_C_STACK): New macro.
83754         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
83755
83756         Module error.
83757         * m4/error.m4 (gl_ERROR): New macro.
83758         (jm_PREREQ_ERROR): Use onceonly macros.
83759
83760         Module fatal.
83761         * m4/fatal.m4: New file.
83762
83763         Module getloadavg.
83764         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
83765         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
83766
83767         Module getpagesize.
83768         * m4/getpagesize.m4: New file.
83769
83770         Module getusershell.
83771         * m4/getusershell.m4: New file.
83772
83773         Module physmem.
83774         * m4/physmem.m4: New file.
83775
83776         Module posixver.
83777         * m4/posixver.m4: New file.
83778
83779         Module quotearg.
83780         * m4/quotearg.m4: New file.
83781
83782         Module quote.
83783         * m4/quote.m4: New file.
83784
83785         Module readutmp.
83786         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
83787
83788         Module sig2str.
83789         * m4/sig2str.m4: New file.
83790
83791         Other.
83792         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
83793         ulonglong.m4.
83794         * m4/intmax_t.m4: New file.
83795         * m4/d-type.m4: Indentation.
83796         * m4/jm-macros.m4: Update.
83797         * m4/prereq.m4 (jm_PREREQ): Update.
83798         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
83799         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
83800         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
83801         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
83802         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
83803         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
83804         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
83805         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
83806         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
83807         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
83808         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
83809         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
83810         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
83811         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
83812         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
83813         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
83814         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
83815         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
83816         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
83817
83818 2002-12-24  Bruno Haible  <bruno@clisp.org>
83819
83820         * MODULES.txt: Update according to m4/ changes.
83821
83822         Module gettext.
83823         * config.rpath: New file, from gettext-0.11.5.
83824
83825         * modules/*: New module descriptions.
83826         * gnulib-tool: New file.
83827         * MODULES.html.sh: New file.
83828
83829 2002-12-21  Karl Berry  <karl@gnu.org>
83830
83831         * doc/fdl.texi: update to version 1.2.
83832
83833 2002-12-19  Karl Berry  <karl@gnu.org>
83834
83835         * config/config.guess: update from prep.
83836
83837 2002-12-18  Bruno Haible  <bruno@clisp.org>
83838
83839         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
83840         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
83841
83842 2002-12-17  Bruno Haible  <bruno@clisp.org>
83843
83844         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
83845         stdlib.h, string.h.
83846
83847 2002-12-17  Bruno Haible  <bruno@clisp.org>
83848
83849         * lib/canon-host.c (strdup): Remove unused declaration.
83850
83851         * lib/fsusage.c: Include full_read.h.
83852         (get_fs_usage): Use full_read instead of safe_read.
83853
83854         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
83855
83856 2002-12-12  Karl Berry  <karl@gnu.org>
83857
83858         * config/config.guess: update from prep.
83859
83860 2002-12-11  Bruno Haible  <bruno@clisp.org>
83861
83862         * m4/setenv.m4: New file, from gettext-0.11.5.
83863
83864 2002-12-11  Bruno Haible  <bruno@clisp.org>
83865
83866         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
83867         not unsetenv().
83868         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
83869         modifications:
83870
83871         2002-12-11  Bruno Haible  <bruno@clisp.org>
83872
83873                 * setenv.c (alloca): Fall back to malloc.
83874                 (freea): New macro.
83875                 (setenv): Use freea() to free memory allocated with alloca().
83876
83877         2002-11-13  Bruno Haible  <bruno@clisp.org>
83878
83879                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
83880                 function declarations.
83881                 * unsetenv.c (unsetenv): Likewise.
83882
83883         2002-03-04  Bruno Haible  <bruno@clisp.org>
83884
83885                 Portability to AIX 4.3.3.
83886                 * unsetenv.c: New file, extracted from setenv.c.
83887                 * setenv.c: Move the unsetenv() function to unsetenv.c.
83888
83889         2001-12-20  Bruno Haible  <bruno@clisp.org>
83890
83891                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
83892                 use malloc instead. For SunOS 4.
83893
83894         2001-12-11  Bruno Haible  <bruno@clisp.org>
83895
83896                 * setenv.c: Declare alloca.
83897                 (compar_fn_t): New typedef.
83898                 (KNOWN_VALUE, STORE_VALUE): Use it.
83899
83900         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
83901         setenv.h.
83902
83903 2002-12-10  Paul Eggert  <eggert@twinsun.com>
83904
83905         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
83906         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
83907         Choose values that are less likely to collide with system fnmatch
83908         options.
83909         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
83910         defined (e.g., a pure POSIX system).
83911         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
83912         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
83913
83914 2002-12-06  Paul Eggert  <eggert@twinsun.com>
83915
83916         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
83917         a pain in practice to deal with generated m4 files.  This change
83918         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
83919
83920         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
83921         and jm-glibc-io.m4, as they are no longer a special case.
83922         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
83923         kludge and the auto-generation stuff.  Check only whether the
83924         functions are declared, not whether they exist, since older hosts
83925         that don't declare the functions can't use the optimization anyway.
83926
83927 2002-12-06  Jim Meyering  <jim@meyering.net>
83928
83929         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
83930
83931         Merge in changes from libc's misc/error.c, in preparation
83932         for the merge of gnulib's changes back into libc.
83933
83934         * lib/error.c (_): Define only if not already defined.
83935         Move definition to follow all #include directives.
83936         Include unlocked-io.h only if !_LIBC.
83937         [_LIBC]: Include <libio/libioP.h>.
83938         [USE_IN_LIBIO]: Include <libio/iolibio.h>
83939         (fflush): Tweak definition to use INTUSE.
83940         (putc): Define.
83941
83942 2002-12-05  Paul Eggert  <eggert@twinsun.com>
83943
83944         * lib/alloca.c [defined emacs]: Include "lisp.h".
83945         (xalloc_die) [defined emacs]: New macro.
83946         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
83947         [! defined emacs]: Include <xalloc.h>.
83948         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
83949         (pointer): Typedef to POINTER_TYPE *.
83950         (malloc): Remove decl; we now always use xmalloc.
83951         (alloca): Use old-style definition, since Emacs needs this.
83952         Check for arithmetic overflow when computing combined size.
83953
83954 2002-12-04  Paul Eggert  <eggert@twinsun.com>
83955
83956         Do not generate unlocked-io.h automatically, since it's easier to
83957         maintain it by hand.
83958
83959         * lib/unlocked-io.h: New file, from GNU diffutils,
83960         but with proper copyright notice and attribution.
83961         * lib/gen-uio: Remove.
83962         * lib/Makefile.am: Add copyright notice.
83963         (libfetish_a_SOURCES): Add unlocked-io.h.
83964         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
83965         (DISTCLEANFILES, io_functions): Remove macros.
83966         (EXTRA_DIST): Remove gen_uio.
83967         (unlocked-io.h): Remove rule.
83968
83969 2002-12-04  Jim Meyering  <jim@meyering.net>
83970
83971         Reflect the fact that stat.c and lstat.c are no longer generated.
83972         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
83973         (DISTCLEANFILES): Likewise.
83974         (EXTRA_DIST): Likewise.
83975         (all_local): Don't depend on stat.c or lstat.c.
83976         (stat.c, lstat.c): Remove rules.
83977         (EXTRA_DIST): Remove xstat.in.
83978
83979         * lib/xstat.in: Remove file.  Contents moved into stat.c.
83980         * lib/stat.c: New file.  Contents mostly from xstat.in.
83981         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
83982         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
83983
83984         * lib/safe-read.c: Rework so that it may serve to define safe_write,
83985         too.
83986         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
83987
83988 2002-12-03  Jim Meyering  <jim@meyering.net>
83989
83990         * lib/safe-read.c, safe-write.c: Change variable names and comments,
83991         but not semantics, to minimize the differences between these two files.
83992         (safe_read): Change comment to mention SAFE_READ_ERROR.
83993
83994         * lib/safe-read.c (IS_EINTR): Define.
83995         (safe_read): Use IS_EINTR in place of in-function cpp directives.
83996
83997 2002-12-02  Jim Meyering  <jim@meyering.net>
83998
83999         * lib/safe-read.c (EINTR): Define.
84000         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
84001         (INT_MAX): Provide fallback.
84002         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
84003
84004         * lib/safe-read.h (SAFE_READ_ERROR): Define.
84005
84006 2002-12-02  Bruno Haible  <bruno@clisp.org>
84007
84008         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
84009         Define, taken from safe-read.c.
84010         (INT_MAX): Provide fallback.
84011         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
84012         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
84013
84014         * lib/safe-read.c (EINTR): Remove definition.
84015         (safe_read): Don't use EINTR if it is absent.
84016
84017 2002-12-01  Jim Meyering  <jim@meyering.net>
84018
84019         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
84020         zero.
84021         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
84022
84023 2002-11-27  Paul Eggert  <eggert@twinsun.com>
84024
84025         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
84026         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
84027         with `if (! (value < limit)) abort ();', for readability.
84028
84029 2002-11-26  Karl Berry  <karl@gnu.org>
84030
84031         * lib/strdup.c: copy from libc again, with jim's ok.
84032         * lib/.cppi-disable: re-add strdup.c
84033
84034 2002-11-25  Karl Berry  <karl@gnu.org>
84035
84036         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
84037         instead of "strtol.c".
84038
84039 2002-11-25  Karl Berry  <karl@gnu.org>
84040
84041         * config/install-sh: update from automake for variable quoting, $0 in
84042         error msgs, etc.
84043
84044         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
84045         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
84046         entry.
84047
84048 2002-11-25  Jim Meyering  <jim@meyering.net>
84049
84050         * lib/mktime.c: Sync from libc, now that it has the latest fix.
84051
84052 2002-11-24  Karl Berry  <karl@gnu.org>
84053
84054         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
84055         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
84056
84057 2002-11-24  Jim Meyering  <jim@meyering.net>
84058
84059         Update from coreutils:
84060
84061         * lib/mktime.c: Merge in changes from libc.
84062
84063         Avoid a link-time failure on some Linux systems.
84064         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
84065         (otherwise).
84066         (__mon_yday): Declare with the STATIC attribute.
84067         (__mktime_internal): Likewise.
84068         Based on a report from Greg Schafer.
84069
84070 2002-11-23  Jim Meyering  <jim@meyering.net>
84071
84072         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
84073         Use `unsigned', not `int', as type of index.
84074
84075         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
84076
84077         * lib/fsusage.c: Remove unneeded parentheses around operands of
84078         `defined'.
84079
84080 2002-11-22  Paul Eggert  <eggert@twinsun.com>
84081
84082         * lib/quotearg.h: Allow multiple inclusion by surrounding with
84083         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
84084         so that we can be included first.
84085         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
84086         * lib/quotearg.c: Include quotearg.h immediately after config.h.
84087         No need to include stddef.h or sys/types.h any more.
84088         Surround local include files with "", not "<>".
84089         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
84090         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
84091         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
84092         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
84093         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
84094         (ISPRINT): Remove; no longer needed now that we assume C89.
84095
84096         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
84097         Preserve errno.
84098
84099         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
84100         quotearg_char): Use SIZE_MAX rather than
84101         (size_t) -1 when we are talking about "infinity".
84102
84103         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
84104
84105 2002-11-22  Paul Eggert  <eggert@twinsun.com>
84106
84107         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
84108         hint that one should use `if (! x) abort ();' rather than `assert
84109         (x);', and anyway it's one less thing to worry about configuring.
84110         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
84111         hash_rehash, hash_insert): Use abort rather than assert.
84112
84113 2002-11-22  Bruno Haible  <bruno@clisp.org>
84114
84115         * lib/safe-read.h: Assume C89. Add comments.
84116         (safe_read): Change return type to size_t.
84117         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
84118         byte counts > SSIZE_MAX correctly.
84119         * lib/safe-write.h: New file.
84120         * lib/safe-write.c: New file.
84121         * lib/full-read.h: New file.
84122         * lib/full-read.c: New file.
84123         * lib/full-write.h: Assume C89. Add comments.
84124         * lib/full-write.c: Include safe-write.h.
84125         (full_write): Rewritten to use safe_write.
84126         Suggested by Jim Meyering and Paul Eggert.
84127
84128 2002-11-21  Jim Meyering  <jim@meyering.net>
84129
84130         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
84131
84132         Merge in changes from the coreutils.
84133
84134         2002-09-25  Paul Eggert  <eggert@twinsun.com>
84135         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
84136         <stdint.h>.
84137         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
84138         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
84139         int.  Work more efficiently if X is the same width as uintmax_t.
84140         Do not compare X to -1, to avoid bogus compiler warning.
84141         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
84142         Don't assume that f_frsize and f_bsize are the same type.
84143
84144         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
84145         warning on FreeBSD.
84146
84147         * lib/makepath.c (make_path): Restore umask *before* creating the final
84148         component.
84149         (make_path): Minor reformatting.
84150
84151         * lib/xmalloc.c: Adjust to work with new autoconf macros,
84152         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
84153         HAVE_MALLOC/HAVE_REALLOC.
84154
84155         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
84156         dummy ones.  At least on GNU/Linux systems, `auto' means something
84157         else.
84158         From Michael Stone.
84159
84160 2002-11-21  Bruno Haible  <bruno@clisp.org>
84161
84162         Remove case insensitive option matching.
84163         * lib/argmatch.h (argcasematch): Remove declaration.
84164         (ARGCASEMATCH): Remove macro.
84165         (__xargmatch_internal): Remove case_sensitive argument.
84166         (XARGMATCH): Update.
84167         (XARGCASEMATCH): Remove macro.
84168         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
84169         case_sensitive argument.
84170         (argcasematch): Remove function.
84171         (__xargmatch_internal): Remove case_sensitive argument.
84172         (main): Use XARGMATCH instead of XARGCASEMATCH.
84173
84174         * lib/xmalloc.c: Change compile-time error message. Add comment about
84175         required autoconf version.
84176
84177 2002-11-20  Paul Eggert  <eggert@twinsun.com>
84178
84179         Merge argmatch cleanups from Bison.  Assume C89.
84180
84181         * lib/argmatch.c: Include config.h here, not in argmatch.h.
84182         Include stdlib.h, for EXIT_FAILURE.
84183         Always include <string.h>, since we assume C89.
84184         (EXIT_FAILURE): Remove pre-C89 bug workaround.
84185         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
84186         Include <stddef.h> instead, since it's all we need for size_t.
84187         (PARAMS): Remove.  All uses removed.
84188         (ARRAY_CARDINALITY): Do not bother to #undef.
84189         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
84190         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
84191         Remove unnecessary parentheses.
84192         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
84193         Insert necessary parentheses.
84194         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
84195         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
84196
84197 2002-11-19  Bruno Haible  <bruno@clisp.org>
84198
84199         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
84200         * lib/mbswidth.h: Include <stddef.h>, for size_t.
84201
84202         * lib/mbswidth.h (PARAMS): Remove macro.
84203         (mbswidth, mbsnwidth): Use ANSI C function declarations.
84204         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
84205
84206         * lib/gcd.h (PARAMS): Remove macro.
84207         (gcd): Use ANSI C function declarations.
84208         * lib/gcd.c (gcd): Likewise.
84209
84210 2002-11-15  Bruno Haible  <bruno@clisp.org>
84211
84212         * lib/strcspn.c: Include <stddef.h>.
84213         (strcspn): Use ANSI C function declaration. Change return type to
84214         size_t. Use NULL.
84215         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
84216         (strpbrk): Use NULL.
84217         * lib/strpbrk.h (PARAMS): Remove macro.
84218         (strpbrk): Use ANSI C function declaration.
84219         * lib/strstr.c: Don't include <sys/types.h>.
84220         * lib/strstr.h (PARAMS): Remove macro.
84221         (strstr): Use ANSI C function declarations.
84222
84223 2002-11-14  Karl Berry  <karl@gnu.org>
84224
84225         * config/mkinstalldirs: `do' on separate line, instead of
84226         `for var; do'.
84227
84228 2002-11-06  Bruno Haible  <bruno@clisp.org>
84229
84230         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
84231         * lib/gcd.c (gcd): Likewise.
84232
84233 2002-11-05  Bruno Haible  <bruno@clisp.org>
84234
84235         * lib/gcd.h: New file, from gettext-0.11.5.
84236         * lib/gcd.c: New file, from gettext-0.11.5.
84237
84238 2002-11-05  Bruno Haible  <bruno@clisp.org>
84239
84240         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
84241         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
84242         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
84243         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
84244
84245         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
84246         <libintl.h>.
84247         * lib/makepath.c: Include gettext.h instead of <locale.h> and
84248         <libintl.h>.
84249
84250         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
84251         * lib/human.c: Include gettext.h instead of <libintl.h>.
84252         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
84253         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
84254         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
84255         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
84256         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
84257         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
84258         (textdomain): Remove definition.
84259         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
84260
84261         * lib/long-options.c: Remove include of <libintl.h> and definition of
84262         _.
84263         * lib/same.c: Remove include of <libintl.h> and definition of _.
84264
84265 2002-11-04  Owen Taylor  <otaylor@redhat.com>
84266
84267         * lib/config.charset: A few additions for Solaris.
84268
84269 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
84270
84271         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
84272         * lib/localcharset.c (locale_charset): Declare as extern "C".
84273
84274 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
84275
84276         * lib/config.charset: msdos in uk_UA uses CP1125.
84277
84278 2002-11-04  Bruno Haible  <bruno@clisp.org>
84279
84280         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
84281         * lib/strcase.h: New file, from GNU gettext-0.11.5.
84282         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
84283         * lib/strstr.h: New file, from GNU gettext-0.11.5.
84284         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
84285
84286 2002-11-04  Bruno Haible  <bruno@clisp.org>
84287
84288         * lib/localcharset.c (locale_charset): Don't return an empty string.
84289
84290 2002-11-04  Bruno Haible  <bruno@clisp.org>
84291
84292         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
84293         aliases.
84294
84295 2002-11-04  Bruno Haible  <bruno@clisp.org>
84296
84297         * lib/config.charset: Update for newest glibc. Add canonical names
84298         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
84299
84300 2002-11-04  Bruno Haible  <bruno@clisp.org>
84301
84302         * lib/config.charset: Add support for NetBSD.
84303
84304 2002-11-04  Bruno Haible  <bruno@clisp.org>
84305
84306         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
84307
84308 2002-11-01  Bruno Haible  <bruno@clisp.org>
84309
84310         * configure.in: Add AC_CONFIG_AUX_DIR call.
84311         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
84312         test/Makefile.
84313         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
84314
84315 2002-09-28  Karl Berry  <karl@gnu.org>
84316
84317         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
84318         installed automake until the next release, since changes have been
84319         made.
84320
84321 2002-09-25  Karl Berry  <karl@gnu.org>
84322
84323         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
84324         * lib/getopt*: copy from libc/posix.
84325         * lib/gettext.h: copy from gettext.
84326         * lib/.cppi-disable: add strdup.c, gettext.h.
84327
84328 2002-09-25  Karl Berry  <karl@gnu.org>
84329
84330         * config/srclist.txt: enable gettext.h check.
84331         * config/config.{guess,sub}: update from prep.
84332         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
84333                 from automake 1.6.3.
84334         See srclist*.
84335
84336 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
84337
84338         * regex.c (PATFETCH): Remove the translating fetch.
84339         (PATFETCH_RAW): Rename to PATFETCH.
84340         (set_image_of_range): New fun.
84341         (SET_RANGE_TABLE_WORK_AREA): Use it.
84342         (regex_compile): Don't translate the pattern chars so eagerly.
84343         Only do it when inserting an `exactn' bytecode or when handling
84344         a char-range.
84345         (mutually_exclusive_p): Avoid empty statement.
84346
84347 2002-07-06  Jim Meyering  <meyering@lucent.com>
84348
84349         * m4/README: Don't mention Makefile.am.in.
84350         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
84351
84352 2002-07-01  Jim Meyering  <meyering@lucent.com>
84353
84354         * lib/c-stack.c: Include sys/time.h.
84355         From Volker Borchert.
84356
84357 2002-06-26  Paul Eggert  <eggert@twinsun.com>
84358
84359         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
84360
84361 2002-06-26  Paul Eggert  <eggert@twinsun.com>
84362
84363         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
84364         New macro.  Use it uniformly instead of
84365         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
84366         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
84367         reported by Vin Shelton.
84368
84369 2002-06-22  Paul Eggert  <eggert@twinsun.com>
84370
84371         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
84372         Do not assume SA_SIGINFO behavior.
84373         Bug reported by Jim Meyering on NetBSD 1.5.2.
84374
84375 2002-06-22  Jim Meyering  <meyering@lucent.com>
84376
84377         * m4/c-stack.m4: New file, from diffutils-2.8.2.
84378         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
84379
84380         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
84381         now that configure.ac uses AC_GNU_SOURCE.
84382         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
84383         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
84384
84385         Update to latest tools.  Suggestions from Paul Eggert.
84386         * m4/stdbool.m4: New file, from diffutils-2.8.2.
84387         * m4/gnu-source.m4: Update from diffutils-2.8.2.
84388         * m4/fnmatch.m4: Likewise.
84389         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
84390         to AC_HEADER_STDBOOL
84391
84392 2002-06-22  Jim Meyering  <meyering@lucent.com>
84393
84394         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
84395         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
84396
84397 2002-06-22  Jim Meyering  <meyering@lucent.com>
84398
84399         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
84400
84401         * lib/exitfail.c, exitfail.h: Likewise.
84402         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
84403
84404         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
84405         of fnmatch.h.
84406         (EXTRA_DIST): Add fnmatch_loop.c.
84407         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
84408
84409         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
84410         * lib/fnmatch.c: Update from diffutils-2.8.2.
84411         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
84412         * lib/fnmatch.h: Remove file.
84413
84414 2002-06-21  Jim Meyering  <meyering@lucent.com>
84415
84416         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
84417         * m4/mbrtowc.m4: Likewise.
84418
84419         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
84420         * m4/mbswidth.m4: Reflect name change:
84421         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
84422         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
84423
84424         * m4/lib-link.m4: Update from gettext-0.11.2.
84425         * m4/gettext.m4: Likewise.
84426
84427         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
84428         From Alfred M. Szmidt.
84429
84430 2002-06-18  Paul Eggert  <eggert@twinsun.com>
84431
84432         * lib/file-type.h: Report an error if neither S_ISREG nor
84433         S_IFREG is defined, instead of using a test specific to glibc
84434         2.2.  This should be safe, since POSIX requires S_ISREG and
84435         Unix Version 7 had S_IFREG.  We don't need to check for
84436         <sys/types.h> since we don't use any symbols that it defines.
84437
84438 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
84439
84440         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
84441         $@-t, so that each temporary file name is unique and valid in the first
84442         8 characters, for operation under DOS.
84443
84444 2002-06-15  Paul Eggert  <eggert@twinsun.com>
84445
84446         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
84447
84448 2002-06-15  Jim Meyering  <meyering@lucent.com>
84449
84450         Work even with DJGPP 2.03, which lacks support for symlinks.
84451         From Richard Dawe.
84452         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
84453         is defined.
84454         * lib/lchown.c (S_ISLNK): Likewise.
84455
84456 2002-06-15  Jim Meyering  <meyering@lucent.com>
84457
84458         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
84459         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
84460         have been included before this file.
84461
84462 2002-06-14  Jim Meyering  <meyering@lucent.com>
84463
84464         * lib/file-type.h: Use the version from diffutils-2.8.2.
84465         * lib/file-type.c: Likewise.
84466
84467 2002-06-07  Jim Meyering  <meyering@lucent.com>
84468
84469         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
84470         They're needed at least for NetBSD 1.5.2.
84471         ($statxfs_includes): Include those same headers.
84472         ($statxfs_includes): Include sys/vfs.h if available.
84473         ($statxfs_includes): Likewise for sys/statvfs.h.
84474         Check for the following members in both structs statfs and statvfs:
84475         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
84476
84477 2002-06-01  Jim Meyering  <meyering@lucent.com>
84478
84479         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
84480         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
84481
84482 2002-05-28  Jim Meyering  <meyering@lucent.com>
84483
84484         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
84485         Reported by Volker Borchert.
84486
84487 2002-05-27  Jim Meyering  <meyering@lucent.com>
84488
84489         Fix a problem seen only on nonconforming systems whereby ls.c's
84490         use of localtime, and then of gettimeofday would cause trouble:
84491         the localtime call used to initialize rpl_gettimeofday's save
84492         mechanism would clobber ls's current local time information so
84493         that in any long listing the first file would always be listed
84494         with date 1970-01-01.  Analysis by Volker Borchert.
84495
84496         * lib/gettimeofday.c (localtime): Undefine.
84497         (rpl_localtime): New function.
84498
84499 2002-05-27  Jim Meyering  <meyering@lucent.com>
84500
84501         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
84502         localtime.
84503
84504         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
84505         use the replacement function; it wouldn't resolve at link time.
84506         Reported by Volker Borchert.
84507
84508 2002-05-22  Jim Meyering  <meyering@lucent.com>
84509
84510         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
84511         file-type.h.
84512         * lib/file-type.h: New file.
84513         * lib/file-type.c (file_type): New file/function.  Extracted from
84514         diffutils.
84515
84516 2002-04-30  Jim Meyering  <meyering@lucent.com>
84517
84518         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
84519
84520 2002-04-29  Paul Eggert  <eggert@twinsun.com>
84521
84522         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
84523
84524 2002-04-29  Paul Eggert  <eggert@twinsun.com>
84525
84526         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
84527         Do not check for alloca.h (no longer used) or stdbool.h (was never
84528         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
84529
84530 2002-04-29  Paul Eggert  <eggert@twinsun.com>
84531
84532         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
84533
84534 2002-04-29  Jim Meyering  <meyering@lucent.com>
84535
84536         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
84537         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
84538         Use AC_FUNC_STRNLEN here instead.
84539
84540         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
84541         With autoconf-2.53a, it's part of AC_PROG_CC.
84542
84543 2002-04-28  Paul Eggert  <eggert@twinsun.com>
84544
84545         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
84546         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
84547
84548 2002-04-28  Paul Eggert  <eggert@twinsun.com>
84549
84550         * lib/sig2str.h, lib/sig2str.c: New files.
84551         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
84552
84553 2002-04-28  Paul Eggert  <eggert@twinsun.com>
84554
84555         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
84556         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
84557         of 127, since 64 is the largest conceivable number for ancient
84558         nonstandard hosts.
84559         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
84560
84561 2002-04-28  Jim Meyering  <meyering@lucent.com>
84562
84563         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
84564
84565 2002-04-24  Jim Meyering  <meyering@lucent.com>
84566
84567         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
84568         (jm_PREREQ): Use it.
84569
84570         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
84571         mach/mach.h fcntl.h.
84572         Check for this function: setlocale.
84573
84574 2002-04-24  Jim Meyering  <meyering@lucent.com>
84575
84576         * lib/gettext.h: New file, from Gettext.
84577         * lib/Makefile.am (INCLUDES): Remove -I../intl.
84578         (libfetish_a_SOURCES): Add gettext.h.
84579
84580 2002-04-16  Jim Meyering  <meyering@lucent.com>
84581
84582         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
84583         ut_pid, ut_id, ut_exit.
84584
84585 2002-04-16  Jim Meyering  <meyering@lucent.com>
84586
84587         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
84588         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
84589         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
84590
84591 2002-04-12  Jim Meyering  <meyering@lucent.com>
84592
84593         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
84594         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
84595         existence of the getmntinfo function.  Needed for Darwin 5.3.
84596
84597         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
84598         This is necessary at least on Darwin 5.3.
84599
84600         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
84601         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
84602         strnlen.o in the library, and that makes some versions of ranlib
84603         object.
84604
84605 2002-04-12  Jim Meyering  <meyering@lucent.com>
84606
84607         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
84608
84609 2002-04-09  Jim Meyering  <meyering@lucent.com>
84610
84611         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
84612         to be more precise.  Rather than saying we're checking whether the
84613         function `works', say what we're testing.
84614         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
84615         Reported by Bruno Haible.
84616
84617 2002-03-10  Jim Meyering  <meyering@lucent.com>
84618
84619         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
84620         Suggestion from Santiago Vila.
84621
84622 2002-03-08  Jim Meyering  <meyering@lucent.com>
84623
84624         * lib/rename.c: Mention that this wrapper is needed also on
84625         mips-dec-ultrix4.4 systems.
84626
84627 2002-03-02  Jim Meyering  <meyering@lucent.com>
84628
84629         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
84630         not HAVE_CLOCK_SETTIME.
84631
84632 2002-02-27  Paul Eggert  <eggert@twinsun.com>
84633
84634         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
84635         Check for clock_settime.
84636
84637 2002-02-27  Paul Eggert  <eggert@twinsun.com>
84638
84639         * lib/nanosleep.h: Rename to....
84640         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
84641
84642         * lib/gettime.c: New file.
84643         * lib/settime.c: New file.
84644         * lib/stime.c: Remove.
84645
84646         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
84647         timespec.h.  Remove nanosleep.h.
84648
84649 2002-02-25  Paul Eggert  <eggert@twinsun.com>
84650
84651         * m4/acl.m4: New file.
84652         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
84653         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
84654
84655 2002-02-25  Paul Eggert  <eggert@twinsun.com>
84656
84657         * lib/acl.c, lib/acl.h: New files.
84658         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
84659
84660 2002-02-24  Jim Meyering  <meyering@lucent.com>
84661
84662         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
84663         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
84664         cause trouble.  Reported by Nelson Beebe.
84665
84666 2002-02-23  Paul Eggert  <eggert@twinsun.com>
84667
84668         * lib/path-concat.c (xpath_concat): Reorder code to pacify
84669         compilers that don't know that xalloc_die never returns.
84670
84671 2002-02-20  Jim Meyering  <meyering@lucent.com>
84672
84673         * lib/getdate.c: Regenerate using bison-1.33.
84674
84675 2002-02-17  Jim Meyering  <meyering@lucent.com>
84676
84677         * config/config.guess (main): Don't use `head -1'; it's no longer
84678         portable. Use `sed 1q' instead.
84679
84680 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
84681
84682         * m4/codeset.m4: Upgrade to gettext-0.11.
84683         * m4/gettext.m4: Upgrade to gettext-0.11.
84684         * m4/glibc21.m4: Upgrade to gettext-0.11.
84685         * m4/iconv.m4: Upgrade to gettext-0.11.
84686         * m4/isc-posix.m4: Upgrade to gettext-0.11.
84687         * m4/lcmessage.m4: Upgrade to gettext-0.11.
84688         * m4/lib-ld.m4: New file, from gettext-0.11.
84689         * m4/lib-link.m4: New file, from gettext-0.11.
84690         * m4/lib-prefix.m4: New file, from gettext-0.11.
84691         * m4/progtest.m4: Upgrade to gettext-0.11.
84692
84693 2002-02-15  Paul Eggert  <eggert@twinsun.com>
84694
84695         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
84696         (jm_PREREQ): Use it.
84697
84698 2002-02-15  Paul Eggert  <eggert@twinsun.com>
84699
84700         * lib/posixver.c, lib/posixver.h: New files.
84701         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
84702
84703 2002-02-02  Paul Eggert  <eggert@twinsun.com>
84704             Bruno Haible  <bruno@clisp.org>
84705
84706         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
84707         (fwrite_success_callback): New declaration.
84708         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
84709         print_unicode_char. Call failure callback instead of error.
84710         (fwrite_success_callback): New function.
84711         (exit_failure_callback): New function.
84712         (fallback_failure_callback): New function.
84713         (print_unicode_char): Call unicode_to_mb.
84714
84715 2002-01-26  Jim Meyering  <meyering@lucent.com>
84716
84717         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
84718         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
84719
84720 2002-01-26  Jim Meyering  <meyering@lucent.com>
84721
84722         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
84723
84724 2002-01-22  Paul Eggert  <eggert@twinsun.com>
84725
84726         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
84727
84728 2002-01-22  Jim Meyering  <meyering@lucent.com>
84729
84730         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
84731         Otherwise, some versions of automake would omit the rule that makes
84732         Makefile from Makefile.in.
84733
84734 2002-01-21  Paul Eggert  <eggert@twinsun.com>
84735
84736         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
84737         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
84738         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
84739         (memcoll): Set errno to zero if there is no error.
84740
84741         * lib/quotearg.c (quotearg_buffer_restyled):
84742         Fix bug with quoting buffers containing NUL when backslashing escapes.
84743         This bug was exposed by the other changes in this patch.
84744         (quotearg_n_options): New arg ARGSIZE.
84745         All callers changed.
84746         (quoting_options_from_style): New function.
84747         (quotearg_n_style): Use it.
84748         (quotearg_n_style_mem): New function.
84749
84750         * lib/quotearg.h (quotearg_n_style_mem): New function.
84751
84752 2002-01-19  Jim Meyering  <meyering@lucent.com>
84753
84754         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
84755         Remove useless quotes: DF_PROG="df".
84756         * m4/strnlen.m4: New file.
84757
84758 2002-01-16  Paul Eggert  <eggert@twinsun.com>
84759
84760         * lib/backupfile.c (ISDIGIT): Comment fix.
84761         * lib/getdate.y (ISDIGIT): Likewise.
84762         * lib/posixtm.c (ISDIGIT, year): Likewise.
84763         * lib/strverscmp.c (ISDIGIT): Likewise.
84764         * lib/userspec.c (ISDIGIT): Likewise.
84765
84766 2002-01-16  Jim Meyering  <meyering@lucent.com>
84767
84768         * lib/getdate.y: Add three semicolons, each just before a closing
84769         brace. Bison (as of version 1.31) no longer papers over that mistake.
84770
84771 2002-01-05  Jim Meyering  <meyering@lucent.com>
84772
84773         * lib/version-etc.c (version_etc_copyright): Update copyright year.
84774
84775 2001-12-19  Paul Eggert  <eggert@twinsun.com>
84776
84777         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
84778         not silently exit merely because the output buffer happens to
84779         have nothing pending.
84780
84781 2001-12-18  Paul Eggert  <eggert@twinsun.com>
84782
84783         See the big note in ../ChangeLog.
84784         * lib/human.c (suffixes): Prefer K to k for 1024.
84785         (generate_suffix_backwards): New function.
84786         (human_readable_inexact): Use it.
84787         * lib/xstrtol.c (__xstrtol): If there is no number but there
84788         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
84789         Accept 'K' as well as 'k'.
84790
84791 2001-12-15  Jim Meyering  <meyering@lucent.com>
84792
84793         * lib/regex.h (__restrict_arr): Update from libc.
84794
84795         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
84796         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
84797         (STREQ): Define.
84798
84799 2001-12-14  Jim Meyering  <meyering@lucent.com>
84800
84801         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
84802         Suggestion from Bruno Haible.
84803
84804 2001-12-10  Jim Meyering  <meyering@lucent.com>
84805
84806         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
84807         xrealloc, Instead, include "xalloc.h".
84808         (initbuffer): Don't cast xmalloc return value to char*.
84809         (readline): Reword comment.
84810         Don't cast xrealloc return value to char*
84811         Return NULL, not 0.
84812
84813 2001-12-09  Jim Meyering  <meyering@lucent.com>
84814
84815         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
84816         about `signed and unsigned type in conditional expression'.
84817         * lib/posixtm.c (posix_time_parse): Likewise.
84818
84819         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
84820
84821         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
84822         to avoid a pedantic warning.
84823
84824         * lib/getstr.c: Don't include assert.h.
84825         (getstr): Remove warning-evoking assertions.
84826         Return -1 if offset parameter is out of bounds.
84827         Change the type of a local from int to size_t.
84828
84829         * lib/strftime.c (my_strftime_localtime_r): Include this function
84830         definition in the `#if ! HAVE_TM_GMTOFF' block.
84831
84832         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
84833         Include xalloc.h instead.
84834
84835 2001-12-02  Jim Meyering  <meyering@lucent.com>
84836
84837         * lib/tempname.c: Don't declare getenv, thus reverting the change of
84838         2001-11-18.  It's no longer necessary, now that stdlib.h is always
84839         included.
84840
84841         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
84842         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
84843
84844 2001-11-30  Akim Demaille  <akim@epita.fr>
84845
84846         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
84847         before being defined.
84848
84849 2001-11-27  Paul Eggert  <eggert@twinsun.com>
84850
84851         * lib/quotearg.h (quotearg_n, quotearg_n_style):
84852         First arg is int, not unsigned.
84853         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
84854         (SIZE_MAX, UINT_MAX): New macros.
84855         (quotearg_n_options): Abort if N is negative.
84856         Avoid overflow check on hosts where size_t is 64 bits and int
84857         is 32 bits, as overflow is impossible there.
84858         Fix off-by-one typo that caused unnecessary reallocation.
84859
84860 2001-11-27  Jim Meyering  <meyering@lucent.com>
84861
84862         * lib/tempname.c: Merge with version from libc.
84863         * lib/regex.c: Likewise.
84864
84865         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
84866         systems for which STDC_HEADERS is 0, it was not included, resulting in
84867         a warning about an integer-to-pointer conversion problem with getenv.
84868         Reported by Volker Borchert.
84869
84870 2001-11-26  Jim Meyering  <meyering@lucent.com>
84871
84872         * lib/gtod.h: Remove file.
84873         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
84874         * lib/gettimeofday.c: Don't include gtod.h.
84875         (GTOD_init): Remove function.
84876         (rpl_gettimeofday): Do its job here instead, rather than aborting.
84877         Suggestion from Volker Borchert.
84878
84879 2001-11-23  Jim Meyering  <meyering@lucent.com>
84880
84881         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
84882         it.
84883         * lib/hash.c (struct hash_table): Define it here instead.
84884
84885 2001-11-22  Jim Meyering  <meyering@lucent.com>
84886
84887         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
84888
84889 2001-11-20  Jim Meyering  <meyering@lucent.com>
84890
84891         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
84892         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
84893
84894 2001-11-19  Jim Meyering  <meyering@lucent.com>
84895
84896         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
84897         directory.  Use "conftestXXXXXX" as the template.
84898         Suggestion from Paul Eggert.
84899
84900         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
84901         immediately, so the test doesn't mistakenly hit the max-open-files
84902         limit.
84903
84904 2001-11-18  Paul Eggert  <eggert@twinsun.com>
84905
84906         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
84907         (TEMPORARIES): New macro.
84908         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
84909         removes an artificial limitation (e.g. HP-UX 10.20, where
84910         TMP_MAX is 17576).
84911
84912 2001-11-18  Jim Meyering  <meyering@lucent.com>
84913
84914         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
84915
84916 2001-11-18  Jim Meyering  <meyering@lucent.com>
84917
84918         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
84919         on SunOS 4.
84920
84921         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
84922         files will be created before anything else.
84923
84924 2001-11-17  Paul Eggert  <eggert@twinsun.com>
84925
84926         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
84927         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
84928
84929 2001-11-17  Jim Meyering  <meyering@lucent.com>
84930
84931         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
84932         Prompted by a report from Bob Proulx.
84933
84934         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
84935         Instead, require UTILS_FUNC_MKSTEMP.
84936
84937 2001-11-17  Jim Meyering  <meyering@lucent.com>
84938
84939         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
84940         Now, that's done as part of AC_FUNC_STRTOD.
84941
84942 2001-11-17  Jim Meyering  <meyering@lucent.com>
84943
84944         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
84945         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
84946         rather than group writable.  Patch by Juan F. Codagnone.
84947
84948         * lib/readtokens.c: Remove explicit declarations of xmalloc and
84949         xrealloc, Instead, include "xalloc.h".
84950
84951         * lib/mountlist.c: Include unlocked-io.h after all system headers.
84952         Remove explicit declarations of xmalloc, xrealloc,
84953         and xstrdup.  Instead, include "xalloc.h".
84954
84955         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
84956         unlocked-io.h.
84957         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
84958         Likewise.
84959         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
84960
84961         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
84962         Reported by Padraig Brady.
84963
84964         * lib/mkstemp.c: #undef mkstemp.
84965         Include config.h.
84966         (rpl_mkstemp): Rename from mkstemp.
84967         Protoize.
84968
84969 2001-11-16  Jim Meyering  <meyering@lucent.com>
84970
84971         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
84972         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
84973         determine the amount of total physical memory, use pstat_getstatic.
84974         HPUX-11 doesn't define _SC_PHYS_PAGES.
84975         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
84976         If sysconf couldn't be used to determine the amount of available
84977         physical memory, use both pstat_getstatic and pstat_getdynamic.
84978         Based on a patch from Bob Proulx.
84979
84980 2001-11-10  Jim Meyering  <meyering@lucent.com>
84981
84982         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
84983         (jm_PREREQ): Use it.
84984
84985 2001-11-09  Jim Meyering  <meyering@lucent.com>
84986
84987         * m4/jm-macros.m4: Require autoconf-2.52f.
84988         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
84989         Use these AC_-prefixed names, not the AM_-prefixed ones.
84990
84991         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
84992
84993 2001-11-05  Jim Meyering  <meyering@lucent.com>
84994
84995         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
84996
84997 2001-11-04  Jim Meyering  <meyering@lucent.com>
84998
84999         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
85000         $DEFS.
85001
85002 2001-11-03  Jim Meyering  <meyering@lucent.com>
85003
85004         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
85005         of AC_DEFUN.
85006
85007         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
85008         know the name of the variable in the macro definition.
85009
85010 2001-11-03  Jim Meyering  <meyering@lucent.com>
85011
85012         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
85013         in argmatch_to_argument call.
85014
85015         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
85016         argument.
85017
85018         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
85019         e.g., a fault due to an attempt to free a NULL pointer.
85020
85021 2001-11-01  Jim Meyering  <meyering@lucent.com>
85022
85023         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
85024         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
85025
85026 2001-11-01  Jim Meyering  <meyering@lucent.com>
85027
85028         * lib/dirfd.c, lib/dirfd.h: New files.
85029         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
85030
85031         * lib/hash.c (hash_print) [TESTING]: Clean up.
85032
85033 2001-10-22  Paul Eggert  <eggert@twinsun.com>
85034
85035         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
85036         to avoid a warning if -Wall.
85037
85038 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
85039
85040         * README: New file
85041         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
85042         (per RMS's instructions, this is now the canonical source)
85043         * lgpl/, gpl/: New directories.
85044
85045 2001-10-21  Paul Eggert  <eggert@twinsun.com>
85046
85047         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
85048
85049 2001-10-21  Jim Meyering  <meyering@lucent.com>
85050
85051         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
85052         this code would end up calling gettext even in packages built
85053         with --disable-nls.
85054         * lib/getopt.c (_): Likewise.
85055         * lib/regex.c (_): Likewise.
85056
85057 2001-10-20  Paul Eggert  <eggert@twinsun.com>
85058
85059         * m4/error.m4 (jm_PREREQ_ERROR):
85060         Do not invoke AC_CHECK_FUNCS with strerror_r, as
85061         AC_FUNC_STRERROR_R does that.
85062         Check for strerror declaration.
85063
85064         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
85065         are supposed to have them these days.
85066         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
85067         Merge changes from latest Autoconf CVS.
85068         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
85069         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
85070         POSIX decided to standardize on the int flavor of strerror_r.
85071
85072 2001-10-20  Paul Eggert  <eggert@twinsun.com>
85073
85074         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
85075         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
85076         Use strerror_r that is only a macro, even if it is not a function.
85077         (strerror): Check for HAVE_DECL_STRERROR before declaring.
85078         (private_strerror): Use prototypes, not old-style function definition.
85079         (print_errno_message): New function.
85080         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
85081         char*-flavored one.
85082         (error_tail, error, error_at_line): Use it.
85083
85084 2001-10-11  Jim Meyering  <meyering@lucent.com>
85085
85086         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
85087         and quote_n (1, ... to avoid clobbering a buffer.
85088
85089 2001-10-05  Jim Meyering  <meyering@lucent.com>
85090
85091         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
85092         hash-pjw.h.
85093         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
85094         * lib/hash-pjw.h: New file.
85095
85096 2001-09-30  Jim Meyering  <meyering@lucent.com>
85097
85098         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
85099         `struct fsstat' has the `f_fstypename' member.
85100         Use that to define FS_TYPE, which is now used to make
85101         the getfsstat link test tighter.
85102
85103 2001-09-30  Jim Meyering  <meyering@lucent.com>
85104
85105         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
85106         Include <sys/ucred.h>, for Apple Darwin.
85107         Include sys/mount.h and sys/fs_types.h only if available.
85108         (FS_TYPE): Define.
85109         (read_filesystem_list): Use FS_TYPE.
85110
85111 2001-09-29  Paul Eggert  <eggert@twinsun.com>
85112
85113         * lib/exclude.c (excluded_filename): 0 -> false, since it's
85114         a boolean context.
85115
85116 2001-09-29  Jim Meyering  <meyering@lucent.com>
85117
85118         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
85119         [one-argument getmntent function]): Include stdio.h before mntent.h.
85120         SunOS 4.1.x needs it for the declaration of `FILE'.
85121         Patch by Volker Borchert.
85122
85123         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
85124         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
85125         sys/fs_types.h, and make the link-test for getfsstat guard #include
85126         directives with appropriate #if HAVE_*_H tests so that we can
85127         detect getfsstat on Apple Darwin1.3.7 systems.
85128         Reported by Nelson Beebe.
85129         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
85130
85131 2001-09-28  Paul Eggert  <eggert@twinsun.com>
85132
85133         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
85134         #defines strtoimax.  Also treat the other strto* functions
85135         like strtoimax.
85136
85137         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
85138         Check for strtoul and strtoumax,
85139         as those declarations are made even in the signed case.
85140         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
85141         Likewise, for strtol and strtoimax.
85142
85143 2001-09-28  Paul Eggert  <eggert@twinsun.com>
85144
85145         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
85146         #defines strtoimax.  Also treat the other strto* functions
85147         like strtoimax.
85148
85149         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
85150         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
85151         (strtoimax, strtoumax): Do not declare if already defined as a macro.
85152
85153 2001-09-26  Jim Meyering  <meyering@lucent.com>
85154
85155         Most macros in unlocked-io.h had the wrong number of arguments.
85156         * lib/gen-uio: New script.
85157         (USE_UNLOCKED_IO): Define to 1 if not already defined.
85158         * lib/unlocked-io.hin: Remove file.
85159         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
85160         rather than trying to embed it here.
85161         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
85162         Reported by Padraig Brady.
85163
85164 2001-09-25  Volker Borchert  <bt@teknon.de>
85165
85166         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
85167         `result'.
85168
85169 2001-09-24  Jim Meyering  <meyering@lucent.com>
85170
85171         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
85172
85173 2001-09-23  Jim Meyering  <meyering@lucent.com>
85174
85175         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
85176         instead of the mere test for existence of mntent.h.  The latter
85177         would get a false-positive on AIX 3.4 systems.
85178         In the outer getmntent if-block, don't die if neither of the getmntent
85179         tests succeeds.  Instead, just fall through and continue with the
85180         remaining tests.
85181
85182 2001-09-23  Jim Meyering  <meyering@lucent.com>
85183
85184         * lib/mountlist.c: Remove useless parentheses in #if directives.
85185         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
85186         the deprecated MOUNTED symbol is no longer defined in mntent.h.
85187
85188 2001-09-22  Jim Meyering  <meyering@lucent.com>
85189
85190         * m4/gettext.m4: New file.  From gettext.
85191         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
85192         * m4/progtest.m4: Likewise
85193         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
85194         * m4/glibc21.m4: Likewise.
85195
85196         * m4/libintl.m4: Remove.  No longer used.
85197
85198 2001-09-22  Jim Meyering  <meyering@lucent.com>
85199
85200         * lib/localcharset.c: Update from latest gettext.
85201         * lib/config.charset: Likewise.
85202
85203 2001-09-20  Jim Meyering  <meyering@lucent.com>
85204
85205         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
85206         strtoimax.
85207         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
85208         strtoumax.
85209
85210 2001-09-20  Jim Meyering  <meyering@lucent.com>
85211
85212         * lib/xstrtol.c (strtoimax): Guard declaration with
85213         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
85214         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
85215         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
85216         (strtoumax): Likewise, for completeness (it wasn't necessary).
85217
85218 2001-09-17  Paul Eggert  <eggert@twinsun.com>
85219
85220         * lib/strtoimax.c (HAVE_LONG_LONG):
85221         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
85222         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
85223         to work around bug in IBM C compiler.
85224
85225 2001-09-17  Jim Meyering  <meyering@lucent.com>
85226
85227         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
85228         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
85229         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
85230         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
85231         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
85232         whenever the right hand side need not be expanded by the shell.
85233
85234 2001-09-16  Paul Eggert  <eggert@twinsun.com>
85235
85236         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
85237         library.  It's not correct, as some older glibcs are buggy.
85238         fnmatch wasn't fixed until glibc 2.2.
85239
85240         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
85241         special shell magic here.
85242
85243 2001-09-16  Jim Meyering  <meyering@lucent.com>
85244
85245         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
85246         * m4/jm-macros.m4: Require it.
85247
85248 2001-09-16  Jim Meyering  <meyering@lucent.com>
85249
85250         * lib/mkdir.c: New file.
85251
85252 2001-09-15  Jim Meyering  <meyering@lucent.com>
85253
85254         * m4/jm-macros.m4: Check for help2man.
85255
85256 2001-09-11  Jim Meyering  <meyering@lucent.com>
85257
85258         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
85259         The body, by Paul Eggert, was moved here from configure.in.
85260         * m4/jm-macros.m4: Require UTILS_HOST_OS.
85261
85262 2001-09-04  Paul Eggert  <eggert@twinsun.com>
85263
85264         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
85265         (jm_PREREQ): Use it.
85266
85267 2001-09-04  Paul Eggert  <eggert@twinsun.com>
85268
85269         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
85270         Use ssize_t, not int, to store result of readlink.
85271         Check for ssize_t overflow as well as size_t overflow,
85272         as POSIX says the result of readlink is implementation-defined
85273         when ssize_t overflows.
85274         Remove unnecessary cast to char*.
85275         Use free+malloc instead of realloc, as the storage doesn't need
85276         to be preserved and it's clearer and can be more efficient that way.
85277         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
85278         * lib/xreadlink.h (xreadlink): Update prototype.
85279
85280 2001-09-04  Paul Eggert  <eggert@twinsun.com>
85281
85282         * lib/xgetcwd.c: Revert some of the previous change; intead,
85283         fix the HAVE_GETCWD_NULL code to behave more like the
85284         !HAVE_GETCWD_NULL code used to.
85285
85286         Include "xalloc.h".
85287         (xgetcwd): Do not return NULL when memory is exhausted; instead,
85288         invoke xalloc_die.
85289
85290 2001-09-03  Paul Eggert  <eggert@twinsun.com>
85291
85292         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
85293         sys/param.h, as pathmax.h includes them.
85294
85295 2001-09-03  Paul Eggert  <eggert@twinsun.com>
85296
85297         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
85298         (jm_PREREQ_XGETCWD): New macro.
85299
85300         * m4/getcwd.m4: New file.
85301
85302 2001-09-03  Paul Eggert  <eggert@twinsun.com>
85303
85304         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
85305         like the HAVE_GETCWD_NULL code.
85306         Include pathmax.h if not HAVE_GETCWD.
85307         Do not include xalloc.h.
85308         (INITIAL_BUFFER_SIZE): New symbol.
85309         Do not use xmalloc / xrealloc, since the caller is responsible for
85310         handling errors.  Preserve errno around `free' during failure.
85311         Do not overrun buffer when using getwd.
85312
85313 2001-09-03  Paul Eggert  <eggert@twinsun.com>
85314
85315         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
85316         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
85317         getcwd (NULL, 0).
85318
85319 2001-09-03  Paul Eggert  <eggert@twinsun.com>
85320
85321         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
85322         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
85323         spotted by Jim Meyering.
85324
85325 2001-09-03  Jim Meyering  <meyering@lucent.com>
85326
85327         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
85328         failure.
85329
85330 2001-09-02  Jim Meyering  <meyering@lucent.com>
85331
85332         * lib/error.c: Update from GNU libc.
85333
85334 2001-09-01  Jim Meyering  <meyering@lucent.com>
85335
85336         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
85337         Used by df.
85338
85339 2001-09-01  Jim Meyering  <meyering@lucent.com>
85340
85341         * lib/xreadlink.c: New file.
85342         * lib/xreadlink.h: New file.
85343         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
85344         xreadlink.h.
85345
85346         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
85347         doesn't conflict with sparc Solaris 7's definition in
85348         /usr/include/sys/int_types.h.
85349
85350         * lib/exclude.c: Use `""', not `<>' to #include non-system header
85351         files.
85352         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
85353         and strncasecmp as r-values.  Unixware didn't have declarations.
85354
85355 2001-08-31  Paul Eggert  <eggert@twinsun.com>
85356
85357         * lib/xstrtol.h: Add copyright notice.
85358         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
85359         LONGINT_INVALID_SUFFIX_CHAR.
85360
85361 2001-08-31  Paul Eggert  <eggert@twinsun.com>
85362
85363         * lib/xstrtol.c (strtoimax): New decl.
85364
85365 2001-08-31  Paul Eggert  <eggert@twinsun.com>
85366
85367         * lib/xgetcwd.c: Don't include pathmax.h.
85368         Include stdlib.h and unistd.h if available.
85369         Include xalloc.h.
85370         (xmalloc, xstrdup, free): Remove decls.
85371         (xgetcwd): Don't assume sizes fit in unsigned.
85372         Check for overflow when computing sizes.
85373         Simplify reallocation code.
85374
85375 2001-08-31  Paul Eggert  <eggert@twinsun.com>
85376
85377         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
85378         a directory's st_size can have an arbitrary value, so the old
85379         usage could waste an arbitrary amount of memory.  All uses
85380         changed.
85381         * lib/savedir.h: Update prototype.
85382
85383 2001-08-31  Paul Eggert  <eggert@twinsun.com>
85384
85385         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
85386
85387         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
85388         old strtoimax.c.
85389
85390         Also, make the following further changes to make this file's
85391         configuration more similar to that of strtol.c:
85392         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
85393         (strtoumax, uintmax_t, strtoull, strtol): Remove.
85394         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
85395         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
85396         changed to signed values.
85397
85398         And make the following changes as well:
85399         Fix copyright notice, as 1999 was missing.
85400         (verify): New macro.
85401         (strtoimax): Check sizes at compile-time, not run-time.
85402         Prefer strtol to strtoll if both work.
85403         (main): Remove; it was not that useful and was a pain to maintain.
85404
85405         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
85406
85407 2001-08-31  Jim Meyering  <meyering@lucent.com>
85408
85409         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
85410         Use an initial, malloc'd, buffer of length 128 rather than
85411         a statically allocated one of length 1024.
85412
85413 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85414
85415         Simplify code, partly by assuming autoconf 2.52 semantics.
85416
85417         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
85418
85419         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
85420         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
85421         All uses removed.
85422         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
85423         Move AC_REQUIRE to next-to-top level, to avoid confusion.
85424         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
85425         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
85426         jm_AC_HEADER_INTTYPES_H.
85427         * m4/jm-macros.m4 (jm_MACROS): Likewise.
85428
85429         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
85430
85431         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
85432         Quote first arg of AC_DEFUN.
85433         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
85434         since they are needed to parse the include file even if we need
85435         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
85436         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
85437         but with opposite signedness.
85438
85439 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85440
85441         Merge 'exclude' changes from tar 1.13.22.
85442         This fixes one or two unlikely storage allocation overflow bugs,
85443         but doesn't change user-visible behavior otherwise.
85444
85445 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85446
85447         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
85448         (jm_PREREQ_EXCLUDE): New macro.
85449
85450 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85451
85452         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
85453         tm to be declared.
85454
85455 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85456
85457         * lib/hash.c: Remove '2001' from copyright notice.
85458
85459 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85460
85461         * lib/full-write.h: New file.
85462         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
85463         * lib/full-write.c: Correct credits, as cccp.c no longer
85464         exists and anyway it was so heavily changed from the old cccp
85465         code as to be unrecognizable.  Include full-write.h.
85466         (full_write): Return size_t, with short writes meaning failure.
85467         All callers changed.  This fixes a bug with large buffers
85468         on 64-bit hosts.
85469         * lib/utime.c: Include full-write.h.
85470
85471 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85472
85473         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
85474         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
85475         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
85476         Include if available.
85477         (<xalloc.h>): Include
85478         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
85479         (verify): New macro.  Use it to verify that EXCLUDE macros do not
85480         collide with FNM macros.
85481         (struct patopts): New struct.
85482         (struct exclude): Use it, as exclude patterns now come with options.
85483         (new_exclude): Support above changes.
85484         (new_exclude, add_exclude_file):
85485         Initial size must now be a power of two to simplify overflow checking.
85486         (free_exclude, fnmatch_no_wildcards): New function.
85487         (excluded_filename): No longer requires options arg, as the options
85488         are determined by add_exclude.  Now returns bool, not int.
85489         (excluded_filename, add_exclude):
85490         Add support for the fancy new exclusion options.
85491         (add_exclude, add_exclude_file): Now takes int options arg.
85492         Check for arithmetic overflow when computing sizes.
85493         (add_exclude_file): xrealloc might modify errno, so don't
85494         realloc until after errno might be used.
85495
85496         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
85497         New macros.
85498         (free_exclude): New decl.
85499         (add_exclude, add_exclude_file): Now takes int options arg.
85500         (excluded_filename): No longer requires options arg, as the options
85501         are determined by add_exclude.  Now returns bool, not int.
85502
85503 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85504
85505         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
85506
85507 2001-08-27  Jim Meyering  <meyering@lucent.com>
85508
85509         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
85510
85511         * lib/version-etc.c (N_): Remove definition.
85512         Revert most of last change.
85513         Instead, simply don't mark the `Copyright...' string for translation.
85514         Based on advice from Paul Eggert.
85515
85516         * lib/strtoxmax.c: Tweak comment.
85517
85518 2001-08-26  Jim Meyering  <meyering@lucent.com>
85519
85520         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
85521
85522         * m4/xstrtoimax.m4: New file.
85523         * m4/xstrtoumax.m4: Add comments explaining why we
85524         AC_REPLACE_FUNCS(strtol).
85525
85526 2001-08-26  Jim Meyering  <meyering@lucent.com>
85527
85528         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
85529         of copyright with `%s' so translators don't get an untranslated
85530         message in 2002.
85531         (COPYRIGHT_YEAR): Define.
85532         (version_etc): Use fprintf rather than fputs.
85533         Suggestion from Ulrich Drepper.
85534
85535         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
85536
85537         * lib/strtoll.c: New file, from GNU libc.
85538         * lib/xstrtoimax.c: New file.
85539
85540         * lib/xstrtol.h: Add xstrtoimax.
85541         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
85542         * lib/strtoimax.c: New file.  Likewise, but first define
85543         STRTOUXMAX_SIGNED.
85544
85545         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
85546         ...
85547         * lib/strtoxmax.c: ... then renamed to this.
85548
85549 2001-08-18  Paul Eggert  <eggert@twinsun.com>
85550
85551         * m4/inttypes.m4: Add AC_PREREQ(2.13).
85552         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
85553         (jm_AC_TYPE_INTMAX_T): New macro.
85554         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
85555
85556         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
85557
85558         * m4/longlong.m4: Renamed from ulonglong.m4.
85559         * m4/inttypes.m4: Renamed from inttypes_h.m4.
85560         * m4/uintmax_t.m4: Removed.
85561
85562 2001-08-13  Paul Eggert  <eggert@twinsun.com>
85563
85564         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
85565         Port to Solaris 8, where 'sed' requires a space after the 'r'
85566         command, and where sh dislikes "$/".  Clean up the spacing a bit.
85567         Redirect output to $tmp just once.
85568
85569 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
85570
85571         * lib/addext.c (<errno.h>): Include.
85572         (errno): Declare if not defined.
85573         (addext): Work correctly when pathconf returns -1 and leaves
85574         errno alone because there is no limit.  Also, work even if
85575         pathconf returns a value greater than SIZE_MAX.
85576
85577 2001-08-12  Jim Meyering  <meyering@lucent.com>
85578
85579         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
85580         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
85581         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
85582         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
85583         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
85584         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
85585         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
85586         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
85587         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
85588         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
85589         utime.m4, utimes.m4, xstrtoumax.m4:
85590         Quote the first argument in each use of AC_DEFUN.
85591
85592 2001-08-12  Jim Meyering  <meyering@lucent.com>
85593
85594         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
85595         Simply `return getcwd (NULL, 0);'.
85596         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
85597         Use 1300 as initial value for length, not PATH_MAX.
85598
85599         * lib/pathmax.h: Clean up cpp syntax.
85600
85601 2001-08-12  Jim Meyering  <meyering@lucent.com>
85602
85603         * lib/gettimeofday.c: New file.
85604         * lib/gtod.h: New file.
85605         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
85606
85607 2001-08-05  Jim Meyering  <meyering@lucent.com>
85608
85609         * m4/jm-macros.m4: Require autoconf-2.52.
85610
85611 2001-08-04  Jim Meyering  <meyering@lucent.com>
85612
85613         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
85614         stmt, to get in sync with glibc.
85615
85616 2001-08-03  Paul Eggert  <eggert@twinsun.com>
85617
85618         The following changes are from gettext 0.10.39 as maintained by
85619         Bruno Haible.
85620
85621         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
85622         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
85623         with inverted sense.  All uses changed.
85624
85625         * lib/mbswidth.c: Don't include <limits.h>.
85626         Include <stdlib.h> and <string.h> unconditionally.
85627         (iswcntrl, mbsinit, ISCNTRL): New macros.
85628         (mbsnwidth): Use K&R style function declarations.
85629         Don't bother checking for MB_LEN_MAX == 1, since the compiler
85630         can optimize it when MB_CUR_MAX == 1.
85631         The width of control characters is zero, not 1.
85632
85633 2001-08-03  Paul Eggert  <eggert@twinsun.com>
85634
85635         The following changes are from gettext 0.10.39 as maintained by
85636         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
85637
85638         * m4/codeset.m4: Upgrade to serial AM1.
85639         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
85640         all uses changed.  Quote first arg of AC_DEFUN.
85641         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
85642
85643         * m4/iconv.m4: Upgrade to serial AM2.
85644         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
85645         Add --with-libconv-prefix.
85646         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
85647         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
85648         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
85649         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
85650         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
85651
85652         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
85653         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
85654         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
85655         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
85656         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
85657         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
85658         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
85659         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
85660         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
85661
85662         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
85663         string.h any more.
85664
85665         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
85666         not the default value.
85667
85668         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
85669         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
85670         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
85671         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
85672         Also check for iswcntrl, used for wcwidth fallback.
85673         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
85674         to Autoconf 2.13.
85675
85676 2001-08-03  Jim Meyering  <meyering@lucent.com>
85677
85678         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
85679         as it was in the original.  Reported by Paul Eggert.
85680
85681 2001-07-16  Jim Meyering  <meyering@lucent.com>
85682
85683         * m4/gettimeofday.m4: New file.
85684         Prompted by a report from Bernhard Baehr.
85685
85686 2001-07-15  Jim Meyering  <meyering@lucent.com>
85687
85688         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
85689         stuff. Now it's in ../Makefile.cfg.
85690
85691 2001-07-15  Jim Meyering  <meyering@lucent.com>
85692
85693         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
85694         (BUILT_SOURCES): Add unlocked-io.h.
85695         (io_functions): Define.
85696         (unlocked-io.h): New rule.
85697         (DISTCLEANFILES): Add unlocked-io.h.
85698         (all-local): Depend on unlocked-io.h, to ensure it is created.
85699
85700         * lib/unlocked-io.hin: New file
85701
85702         * lib/regex.c: Update from glibc.
85703
85704 2001-07-05  Jim Meyering  <meyering@lucent.com>
85705
85706         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
85707         recommendation.
85708         (libfetish_a_SOURCES): Put all .h files here instead.
85709         Remove a thus-exposed (better checks in automake) duplicate and
85710         two unnecessary .h files.
85711
85712 2001-07-04  Jim Meyering  <meyering@lucent.com>
85713
85714         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
85715         that generates jm-glibc-io.m4 so that it doesn't trigger any make
85716         distcheck failure.
85717
85718 2001-07-02  Jim Meyering  <meyering@lucent.com>
85719
85720         The following changes were prompted by suggestions from Bruno Haible.
85721
85722         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
85723         is now generated.
85724         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
85725         definition of EXTRA_DIST.
85726         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
85727         ensure that the generated file is created/updated whenever the list
85728         of $(unlocked_functions) is changed.
85729         (jm-glibc-io.m4): New rule.
85730         (unlocked-io.h): New rule -- currently unused.
85731
85732 2001-06-24  Jim Meyering  <meyering@lucent.com>
85733
85734         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
85735         unmatched right bracket, rather than kludging it with an extra,
85736         falsely-matching quote in a comment.  Patch by Akim Demaille.
85737
85738 2001-06-11  Jim Meyering  <meyering@lucent.com>
85739
85740         * lib/regex.c: Update from GNU libc.
85741
85742 2001-05-27  Jim Meyering  <meyering@lucent.com>
85743
85744         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
85745         Check for ut_type in struct utmp.
85746
85747 2001-05-27  Jim Meyering  <meyering@lucent.com>
85748
85749         * lib/readutmp.h (UT_TYPE): Define.
85750
85751 2001-05-24  Jim Meyering  <meyering@lucent.com>
85752
85753         * lib/argmatch.c: Include "quote.h".
85754         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
85755         quote function.  Reported by Göran Uddeborg.
85756
85757 2001-05-22  Jim Meyering  <meyering@lucent.com>
85758
85759         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
85760         now that we use the package-supplied version unconditionally.
85761         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
85762
85763 2001-05-21  Jim Meyering  <meyering@lucent.com>
85764
85765         * m4/regex.m4: Change a couple backticks to single quotes to avoid
85766         shell syntax errors.
85767
85768 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
85769
85770         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
85771
85772 2001-05-20  Paul Eggert  <eggert@twinsun.com>
85773
85774         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
85775         Don't bother to check library strftime, since
85776         we'll be using our own my_strftime function anyway.
85777         Define my_strftime instead of strftime.
85778
85779 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
85780
85781         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
85782         which is not yet declared.
85783
85784 2001-05-15  Jim Meyering  <meyering@lucent.com>
85785
85786         * m4/regex.m4: Use proper quoting so brackets appear in the test
85787         program.
85788         Reported by, and with help from, Bruno Haible.
85789
85790 2001-05-13  Jim Meyering  <meyering@lucent.com>
85791
85792         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
85793         undefined.
85794
85795 2001-05-11  Paul Eggert  <eggert@twinsun.com>
85796
85797         dirname code cleanup.  base_name now behaves more compatibly
85798         with POSIX basename when given file names that have trailing
85799         slashes, and similarly for dir_name.  Add new primitives
85800         base_len and dir_len.  Put the directory-name-related decls
85801         into dirname.h.
85802
85803         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
85804         * lib/backupfile.c (base_name): Likewise.
85805         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
85806         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
85807         * lib/makepath.c (strip_trailing_slashes): Likewise.
85808         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
85809         ISSLASH): Likewise.
85810         * lib/rename.c (strip_trailing_slashes): Likewise.
85811         * lib/same.c (base_name): Likewise.
85812         * lib/stripslash.c (ISSLASH): Likewise.
85813
85814         * lib/addext.c: Include <dirname.h> after size_t is defined.
85815         * lib/backupfile.c: Likewise.
85816
85817         * lib/addext.c (addext): Use base_len to trim redundant
85818         trailing slashes instead of doing it ourselves.
85819         But do not trim the last slash if it is not redundant.
85820
85821         * lib/backupfile.c (find_backup_file_name,
85822         max_backup_version): Use base_len instead of rolling it ourselves.
85823         Handle the case of "" and (on DOS) "C:" correctly.
85824
85825         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
85826         needed. Include <string.h>, <dirname.h>.
85827         (base_name): Allow file names ending in slashes, other than names
85828         that are all slashes.  In this case, return the basename followed
85829         by the slashes.  This is more general, and can be used in places
85830         where the original base_name purposely had an assertion failure.
85831         (base_len): New function.
85832
85833         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
85834         Do not include <assert.h>; no longer needed.
85835         Include xalloc.h.
85836         (memrchr): Remove decl.
85837         (dir_name_r): Remove.
85838         (dir_len): Renamed from dirlen.  All callers changed.
85839         Rewrite in terms of base_name, for simplicity and consistency.
85840         (dir_name): Never return NULL.  All callers changed.
85841         Do not include <stdlib.h> in test program; no longer needed.
85842         return 0; is fine for test program.
85843
85844         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
85845         New macros.
85846         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
85847
85848         * lib/path-concat.c (path_concat): Use base_len to compute
85849         base length, not strlen; this means we cannot rely on memcpy
85850         to null-terminate.
85851
85852         * lib/same.c (STREQ): Remove.
85853         (same_name): Handle the case where the basename ends in trailing '/'.
85854
85855         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
85856         a slash was stripped.  Do not strip the last slash after a
85857         file system prefix.
85858
85859 2001-05-11  Paul Eggert  <eggert@twinsun.com>
85860
85861         * lib/Makefile.am (libfetish_a_SOURCES):
85862         Add strftime.c, since we now compile it on all hosts.
85863
85864         * lib/strftime.c (my_strftime):
85865         Define to nstrftime if emacs, but only if my_strftime is not defined.
85866         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
85867         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
85868         Add one more extra argument: a nanoseconds value.
85869         All uses changed.
85870         (ns): New macro.
85871         (my_strftime function): Add %N format.
85872         (emacs_strftimeu): Renamed from emacs_strftime,
85873         with extra ut argument.
85874
85875 2001-05-09  Paul Eggert  <eggert@twinsun.com>
85876
85877         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
85878
85879 2001-04-21  Jim Meyering  <meyering@lucent.com>
85880
85881         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
85882         doesn't interfere.
85883
85884 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
85885
85886         * m4/ftruncate.m4: Check for chsize.
85887         Link with ftruncate.o unconditionally if ftruncate is missing.
85888         This was required when cross-compiling to i586-mingw32msvc.
85889
85890 2001-04-08  Jim Meyering  <meyering@lucent.com>
85891
85892         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
85893         recomputed; that's necessary when the offset spans a DST transition.
85894         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
85895
85896 2001-04-02  Jim Meyering  <meyering@lucent.com>
85897
85898         * lib/regex.h, regex.c: Update from GNU libc.
85899
85900 2001-03-24  Jim Meyering  <meyering@lucent.com>
85901
85902         * m4/jm-macros.m4: Require autoconf-2.49d.
85903
85904 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
85905
85906         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
85907
85908 2001-03-19  Paul Eggert  <eggert@twinsun.com>
85909
85910         * lib/version-etc.c (version_etc_copyright): Update to 2001.
85911
85912 2001-03-17  Jim Meyering  <meyering@lucent.com>
85913
85914         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
85915         now that the version in autoconf is equivalent.
85916         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
85917
85918         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
85919         Suggestion from Akim Demaille.
85920
85921         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
85922         (jm_PREREQ_TEMPNAME): New function.
85923
85924 2001-03-16  Paul Eggert  <eggert@twinsun.com>
85925
85926         * lib/tempname.c (uint64_t): Define to uintmax_t if
85927         not defined, and if UINT64_MAX is not defined.
85928         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
85929         Reported by John David Anglin.
85930
85931 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
85932
85933         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
85934         resolve alias if codeset is empty.
85935         * lib/config.charset (BeOS): Use wildcard syntax.
85936
85937 2001-03-13  Jim Meyering  <meyering@lucent.com>
85938
85939         * lib/path-concat.c (path_concat)
85940         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
85941         concatenating e.g., `C:' and `foo'.
85942         From Bruno Haible.
85943
85944 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
85945
85946         * lib/localcharset.c (locale_charset): Don't use
85947         setlocale(LC_CTYPE,NULL). Don't return NULL.
85948         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
85949
85950 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
85951
85952         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
85953         support for DOS/DJGPP.
85954
85955 2001-03-01  Paul Eggert  <eggert@twinsun.com>
85956
85957         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
85958         lacks mkstemp.  Compile our own tempname.c if we compile our own
85959         mkstemp.c, as mkstemp relies on tempname.
85960
85961 2001-03-01  Jim Meyering  <meyering@lucent.com>
85962
85963         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
85964         AH_VERBATIM really does output its argument verbatim.
85965
85966 2001-02-28  Paul Eggert  <eggert@twinsun.com>
85967
85968         * lib/Makefile.am (libfetish_a_SOURCES):
85969         Add dup-safer.c, fopen-safer.c.
85970         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
85971
85972         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
85973         * lib/unistd-safer.h: New files.
85974
85975 2001-02-25  Paul Eggert  <eggert@twinsun.com>
85976
85977         The mkstemp replacement is taken from glibc 2.2.2, with some
85978         portability fixes for use outside glibc, as follows:
85979
85980         * lib/tempname.c (struct_stat64): New macro.
85981         (direxists, __gen_tempname): Use it.
85982         This avoids a portability problem with Solaris 8.
85983
85984         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
85985         (<stddef.h>, <stdint.h>, <string.h>):
85986         Include only if STDC_HEADERS || _LIBC.
85987         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
85988         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
85989         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
85990         (__set_errno): Define this macro if <errno.h> doesn't.
85991         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
85992         Define these macros if <stdio.h> doesn't.
85993         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
85994         Define these macros if <sys/stat.h>
85995         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
85996         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
85997         __xstat64): Define if not _LIBC.
85998         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
85999         (__gen_tempname): Invoke gettimeofday only if
86000         HAVE_GETTIMEOFDAY || _LIBC;
86001         otherwise, fall back on plain "time".
86002         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
86003
86004         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
86005
86006         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
86007
86008 2001-02-18  Paul Eggert  <eggert@twinsun.com>
86009
86010         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
86011
86012 2001-02-17  Paul Eggert  <eggert@twinsun.com>
86013
86014         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
86015         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
86016         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
86017         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
86018
86019 2001-02-17  Paul Eggert  <eggert@twinsun.com>
86020
86021         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
86022         Remove workaround macros for hosts that have mbrtowc but not
86023         mbstate_t, as we now insist on proper declarations for both
86024         before using mbrtowc.
86025
86026 2001-02-17  Jim Meyering  <meyering@lucent.com>
86027
86028         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
86029         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
86030         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
86031         UnixWare 7.1.1.
86032
86033         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
86034         rather than AC_CACHE_VAL.
86035
86036 2001-02-17  Jim Meyering  <meyering@lucent.com>
86037
86038         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
86039         around included file name.
86040
86041         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
86042
86043         * lib/strftime.c: Update from GNU libc (the only changes were to
86044         comments).
86045
86046 2001-02-17  Jim Meyering  <meyering@lucent.com>
86047
86048         * lib/regex.c: Update from libc.
86049
86050 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
86051
86052         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
86053         clash.
86054
86055 2001-02-16  Paul Eggert  <eggert@twinsun.com>
86056
86057         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
86058         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
86059         Reported by Mark Hounschell via Paul Eggert.
86060
86061 2001-02-07  Jim Meyering  <meyering@lucent.com>
86062
86063         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
86064
86065 2001-02-05  Jim Meyering  <meyering@lucent.com>
86066
86067         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
86068         it includes the patch required for `large file' support with at least
86069         HP-UX's 10.20 /bin/cc.
86070
86071 2001-02-03  Jim Meyering  <meyering@lucent.com>
86072
86073         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
86074         AS_IF, now that it works once again (mysteriously).
86075         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
86076
86077 2001-01-30  Jim Meyering  <meyering@lucent.com>
86078
86079         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
86080         * m4/chown.m4: Rename conftestchown to conftest.chown.
86081         * m4/rename.m4: s/conftestdir/conftest.d1/ and
86082         s/conftestdir2/conftest.d2/.
86083         * m4/utimes.m4: s/conftestdata/conftest.data/
86084         Inspired by Pavel Roskin's change in autoconf.
86085
86086 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
86087
86088         * lib/config.charset: Update for FreeBSD 4.2.
86089
86090 2001-01-27  Jim Meyering  <meyering@lucent.com>
86091
86092         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
86093         a use of AS_IF.
86094         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
86095
86096 2001-01-26  Jim Meyering  <meyering@lucent.com>
86097
86098         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
86099         quotearg.c includes it.
86100
86101 2001-01-26  Jim Meyering  <meyering@lucent.com>
86102
86103         * lib/quotearg.c: Include stddef.h.
86104         * lib/quote.c: Include stddef.h.
86105         Reported by Axel Kittenberger.
86106
86107         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
86108         line in double quotes so that it evokes a better diagnostic.
86109         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
86110         Reported by Axel Kittenberger.
86111
86112 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
86113
86114         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
86115         as if it was a `charset'.
86116
86117 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
86118
86119         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
86120         has const.
86121
86122 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
86123
86124         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
86125         to avoid a warning.  Add back 'const' to inptr.
86126
86127 2001-01-20  Jim Meyering  <meyering@lucent.com>
86128
86129         Be sure that headers are checked before used in code compiled
86130         for the type checks.
86131         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
86132         In place of that, invoke jm_CHECK_ALL_TYPES.
86133         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
86134         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
86135         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
86136         The check for ssize_t was mistakenly run before the test for unistd.h.
86137
86138         The configure-time check for stdbool.h was missing.
86139         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
86140         (jm_PREREQ_HASH): New function.
86141
86142 2001-01-17  Jim Meyering  <meyering@lucent.com>
86143
86144         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
86145         for autoconf-2.49c.
86146         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
86147
86148 2001-01-16  Jim Meyering  <meyering@lucent.com>
86149
86150         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
86151         From Bruno Haible.
86152
86153 2001-01-14  Jim Meyering  <meyering@lucent.com>
86154
86155         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
86156         foo and bar.  Create conftestdir/ in the script, not in the C code.
86157         Remove directories in the script, not in the C code.
86158         Remove conftestdir{,2} before trying to create the directory.
86159         Make the entire configure script fail if the mkdir fails.
86160
86161 2001-01-14  Jim Meyering  <meyering@lucent.com>
86162
86163         * lib/rename.c: New file.  From Volker Borchert.
86164         Include stdlib.h, string.h or strings.h, and xalloc.h.
86165         Use strip_trailing_slashes rather than open-coding it.
86166
86167 2001-01-03  Paul Eggert  <eggert@twinsun.com>
86168
86169         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
86170
86171 2001-01-03  Jim Meyering  <meyering@lucent.com>
86172
86173         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
86174         of local `inptr' to avoid warning with some system declarations of
86175         iconv.
86176
86177 2001-01-02  Volker Borchert  <bt@teknon.de>
86178
86179         * m4/rename.m4: New file.
86180         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
86181
86182 2001-01-01  Jim Meyering  <meyering@lucent.com>
86183
86184         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
86185         even on systems with utmpx.h.  It's necessary for the declaration of
86186         utmp's ut_user member.  Reported by Andreas Jaeger.
86187
86188         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
86189         available. They are required for the declarations of getgrgid and
86190         getpwuid resp.
86191         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
86192         Reported by Andreas Jaeger.
86193
86194 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
86195
86196         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
86197         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
86198         so `make install' also works in VPATH builds.
86199
86200 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
86201
86202         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
86203         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
86204         can be used in subdirectories.
86205
86206 2000-12-29  Paul Eggert  <eggert@twinsun.com>
86207
86208         * lib/modechange.c: Do not assume that mode_t uses the
86209         traditional octal encoding.  E.g. "chmod 1 FOO" should set
86210         the other-execute bit of FOO even if S_IXOTH != 1.
86211
86212         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
86213         WOTH, XOTH, ALLM): New macros.
86214         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
86215          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
86216         Use them.
86217         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
86218         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
86219         (mode_compile):
86220         No need to use uintmax_t; unsigned long is long enough.
86221         Don't bother to get suffix since we don't use it.
86222
86223 2000-12-26  Jim Meyering  <meyering@lucent.com>
86224
86225         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
86226         better with autoheader.
86227
86228 2000-12-24  Jim Meyering  <meyering@lucent.com>
86229
86230         * lib/hash.c (is_prime): Return explicit boolean values.
86231         (hash_get_first): Return NULL to appease Irix5.6's 89.
86232         Reported by Nelson Beebe.
86233
86234 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
86235
86236         * lib/localcharset.c (locale_charset): Add support for Win32.
86237
86238 2000-12-18  Paul Eggert  <eggert@twinsun.com>
86239
86240         * lib/physmem.h, lib/physmem.c: New files.
86241
86242         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
86243         (noinst_HEADERS): Add physmem.h.
86244
86245         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
86246         't' for compatibility with Solaris 8 sort.
86247
86248 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
86249
86250         * lib/config.charset: Add support for BeOS.
86251
86252 2000-12-17  Jim Meyering  <meyering@lucent.com>
86253
86254         * m4/dos.m4 (jm_AC_DOS): New file and macro.
86255         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
86256
86257 2000-12-16  Jim Meyering  <meyering@lucent.com>
86258
86259         This bug had a serious impact on chown: `chown N:M FILE' (for integer
86260         N and M) would have treated it like `chown N:N FILE'.
86261
86262         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
86263
86264 2000-12-16  Jim Meyering  <meyering@lucent.com>
86265
86266         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
86267         SHELLS_FILE to a file name that's useful on djgpp systems.
86268         Include stdlib.h.
86269         (ADDITIONAL_DEFAULT_SHELLS): Define.
86270         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
86271         Based mostly on a patch from Prashant TR.
86272
86273 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
86274
86275         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
86276         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
86277         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
86278
86279 2000-12-08  Andreas Schwab  <schwab@suse.de>
86280
86281         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
86282         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
86283
86284 2000-12-07  Jim Meyering  <meyering@lucent.com>
86285
86286         * lib/stripslash.c (ISSLASH): Define.
86287         (strip_trailing_slashes): Use ISSLASH rather than comparing against
86288         `/'.
86289         From Prashant TR.
86290
86291         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
86292         (dir_name_r): Declare this function as static.
86293         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
86294         manifest itself on a name containing a mix of slashes and
86295         backslashes.
86296         Make this function work with names starting with a DOS-style
86297         drive letter and colon prefix.
86298         (dir_name): Append `.' if necessary.
86299         Based mostly on patches from Prashant TR and Eli Zaretskii.
86300
86301         * lib/dirname.h (dir_name_r): Remove prototype.
86302
86303 2000-12-06  Paul Eggert  <eggert@twinsun.com>
86304
86305         * m4/off_t-format.m4: Remove this file.
86306         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
86307
86308 2000-12-06  Jim Meyering  <meyering@lucent.com>
86309
86310         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
86311         replacement strtoull, we may well need the replacement strtoul, too.
86312         Check for declarations of strtoul and strtoull.
86313         Check for strtol.  Mainly as a cue to cause automake to include
86314         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
86315         Check for limits.h -- strtol.c needs it.
86316
86317 2000-12-05  Jim Meyering  <meyering@lucent.com>
86318
86319         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
86320
86321 2000-12-04  Jim Meyering  <meyering@lucent.com>
86322
86323         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
86324         Also include memory.h, stdlib.h, unistd.h if appropriate.
86325         Reported by Andreas Jaeger (conflicting declaration of malloc).
86326
86327 2000-12-02  Jim Meyering  <meyering@lucent.com>
86328
86329         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
86330         * m4/jm-macros.m4 (jm_MACROS): require it.
86331
86332 2000-12-02  Jim Meyering  <meyering@lucent.com>
86333
86334         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
86335
86336 2000-12-01  Paul Eggert  <eggert@twinsun.com>
86337
86338         * lib/memrchr.c: Include <config.h> before any system include file.
86339
86340 2000-11-30  Jim Meyering  <meyering@lucent.com>
86341
86342         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
86343
86344 2000-11-30  Jim Meyering  <meyering@lucent.com>
86345
86346         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
86347
86348 2000-11-29  Paul Eggert  <eggert@twinsun.com>
86349
86350         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
86351
86352 2000-11-26  Jim Meyering  <meyering@lucent.com>
86353
86354         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
86355
86356 2000-11-22  Paul Eggert  <eggert@twinsun.com>
86357
86358         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
86359         size of (size_t) -1; it's not portable.
86360
86361 2000-11-17  Jim Meyering  <meyering@lucent.com>
86362
86363         * lib/strstr.c: Update from GNU libc.
86364
86365 2000-11-17  Akim Demaille  <akim@epita.fr>
86366
86367         * lib/obstack.h: Formatting changes.
86368         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
86369         prevent type checking.
86370         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
86371         cast the value to (void *): assigning a `foo *' to a `void *'
86372         variable is valid.
86373         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
86374
86375 2000-11-16  Jim Meyering  <meyering@lucent.com>
86376
86377         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
86378
86379 2000-11-11  Jim Meyering  <meyering@lucent.com>
86380
86381         * lib/error.c: Add a couple #includes, merging from GNU libc version.
86382
86383 2000-11-10  Jim Meyering  <meyering@lucent.com>
86384
86385         * lib/obstack.h: Update from GNU libc.
86386         * lib/obstack.c: Likewise.
86387
86388 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
86389
86390         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
86391
86392 2000-11-06  Paul Eggert  <eggert@twinsun.com>
86393
86394         * lib/getusershell.c (setusershell): Use rewind rather than
86395         fseek/fseeko, to avoid configuration hassles with fseeko.
86396         Don't bother opening SHELLS_FILE if shellstream is NULL;
86397         it's not necessary.
86398
86399 2000-11-05  Jim Meyering  <meyering@lucent.com>
86400
86401         * lib/makepath.h (make_dir): Declare.
86402         * lib/makepath.c (make_dir): Remove `static' attribute.
86403         Tweak a comment.
86404
86405 2000-11-04  Jim Meyering  <meyering@lucent.com>
86406
86407         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
86408
86409 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
86410
86411         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
86412         last one in a bucket, advance to the next bucket.
86413
86414 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
86415
86416         * lib/fnmatch.c: Do not comment out all the code if we are using
86417         the GNU C library, because in some cases we are replacing buggy
86418         code in the GNU C library itself.
86419
86420 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
86421
86422         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
86423         (regex_compile): Catch bogus \(\1\).
86424
86425 2000-10-30  Paul Eggert  <eggert@twinsun.com>
86426
86427         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
86428         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
86429         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
86430
86431 2000-10-30  Paul Eggert  <eggert@twinsun.com>
86432
86433         * lib/error.h, getline.h, modechange.h:
86434         Remove "2000" from Copyright line, as the file hasn't been
86435         changed this year other than in the copyright notice.
86436
86437         * lib/xalloc.h: Add "2000" to Copyright line, as this file
86438         was changed this year.
86439
86440 2000-10-29  Jim Meyering  <meyering@lucent.com>
86441
86442         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
86443         renaming.
86444         * m4/ls-mntd-fs.m4: Likewise
86445
86446 2000-10-29  Jim Meyering  <meyering@lucent.com>
86447
86448         * lib/xstat.in: Fix grammar in comment.
86449
86450 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
86451
86452         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
86453         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
86454         doesn't define __restrict_arr.
86455
86456 2000-10-28  Jim Meyering  <meyering@lucent.com>
86457
86458         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
86459         (jm_PREREQ_MEMCHR): New function.
86460
86461 2000-10-28  Jim Meyering  <meyering@lucent.com>
86462
86463         * lib/memchr.c: Update from libc.
86464         Adjust for portability:
86465         [HAVE_STDLIB_H]: Include stdlib.h.
86466         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
86467         Undef __memchr, too.
86468         [!weak_alias]: Define __memchr to memchr.
86469
86470         * lib/regex.c: Update from libc.
86471         * lib/regex.h: Likewise.
86472         * lib/getopt1.c: Likewise.
86473         * lib/memcmp.c: Likewise.
86474
86475         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
86476         Avoid using fseek, when possible -- it's broken by design.
86477         Patch by Ulrich Drepper.
86478
86479 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
86480
86481         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
86482         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
86483         Giving in to popular pressure to shut up the compiler with casts.
86484
86485 2000-10-26  Jim Meyering  <meyering@lucent.com>
86486
86487         * lib/strftime.c: Update from libc.
86488
86489 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
86490
86491         * regex.c: More `unsigned char' -> `re_char' changes.
86492         Also change several `int' into `re_wchar_t'.
86493         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
86494         (PUSH_FAILURE_POINTER): Don't cast any more.
86495         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
86496         We want GCC to complain, since this piece of code makes
86497         re_match non-reentrant, which *should* be fixed.
86498         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
86499         (EXTEND_BUFFER): Use RETALLOC.
86500         (SET_LIST_BIT): Don't cast.
86501         (re_wchar_t): New type.
86502         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
86503         that those two functions will always properly return.
86504         (IMMEDIATE_QUIT_CHECK): Cast to void.
86505         (analyse_first): Use recursion rather than an explicit stack.
86506         (re_compile_fastmap): Can't fail anymore.
86507         (re_search_2): Don't check re_compile_fastmap for failure.
86508         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
86509         Now also sets the new value (passed in a new argument).
86510         (re_match_2_internal): Use it.
86511         Also, use a new var `reg' of type size_t when looping through regs
86512         rather than reuse the inappropriate `mcnt'.
86513
86514 2000-10-25  Jim Meyering  <meyering@lucent.com>
86515
86516         * lib/obstack.c: Update from libc.
86517
86518 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
86519
86520         * regex.c (regex_compile): Change the way of handling a range from
86521         a char less than 256 to a char not less than 256.
86522
86523 2000-10-24  Andrew Innes  <andrewi@gnu.org>
86524
86525         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
86526         NT-Emacs only.
86527         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
86528         so that re_search functions only quit when callers expect them to.
86529
86530 2000-10-23  Jim Meyering  <meyering@lucent.com>
86531
86532         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
86533         wrong.  That set_locale call must not have any side effects.
86534         From Paul Eggert.
86535
86536 2000-10-22  Jim Meyering  <meyering@lucent.com>
86537
86538         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
86539         [CYCLIC]: Remove now-unused definition.
86540
86541         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
86542         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
86543         Suggestion from Ulrich Drepper.
86544
86545 2000-10-21  Jim Meyering  <meyering@lucent.com>
86546
86547         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
86548         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
86549         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
86550
86551 2000-10-21  Jim Meyering  <meyering@lucent.com>
86552
86553         * lib/dirname.c (memrchr): Declare if necessary.
86554         (dir_name): Remove the restriction that there be no
86555         trailing slashes.  Now, this code skips past them, effectively
86556         ignoring them.
86557         [TEST_DIRNAME] (main): New unit tests.
86558
86559         * lib/memrchr.c: New file from GNU libc.
86560         Undef __memrchr, too.
86561         [!weak_alias]: Define __memrchr to memrchr.
86562         Guard weak_alias use with `#ifdef weak_alias'.
86563
86564 2000-10-21  Jim Meyering  <meyering@lucent.com>
86565
86566         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
86567         (dir_name): Use dir_name_r.
86568         * lib/dirname.h (dir_name_r): Declare it.
86569
86570 2000-10-17  Jim Meyering  <meyering@lucent.com>
86571
86572         * lib/quote.h (PARAMS): Define and use.
86573         Reported by Akim Demaille.
86574
86575         * lib/getopt.c: Update from libc.
86576
86577 2000-10-16  Jim Meyering  <meyering@lucent.com>
86578
86579         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
86580         setlocale.
86581         From Jan Fedak.
86582
86583 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
86584
86585         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
86586
86587 2000-09-25  Jim Meyering  <meyering@lucent.com>
86588
86589         * lib/md5.h (rol): Define (from GnuPG).
86590
86591         * lib/sha.c: Give credit (GnuPG) where due.
86592         (M): Use rol rather than open-coding it.
86593         Add a FIXME comment.
86594
86595 2000-09-21  Jim Meyering  <meyering@lucent.com>
86596
86597         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
86598         Reported by Michael Stone.
86599
86600 2000-09-20  Jim Meyering  <meyering@lucent.com>
86601
86602         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
86603         (noinst_HEADERS): Add sha.h.
86604         Based on code from Scott G. Miller and from GnuPG.
86605
86606 2000-09-18  Jim Meyering  <meyering@lucent.com>
86607
86608         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
86609         LIBS. Otherwise, everyone ends up linking with -lelf for some
86610         configurations.
86611         Reported by Mike Stone.
86612
86613 2000-09-15  Jim Meyering  <meyering@lucent.com>
86614
86615         * lib/regex.c: Update from libc.
86616
86617 2000-09-10  Jim Meyering  <meyering@lucent.com>
86618
86619         * lib/getopt.c (_getopt_internal): Update from glibc.
86620
86621 2000-09-09  Jim Meyering  <meyering@lucent.com>
86622
86623         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
86624         think it should be used as a general replacement for isascii.
86625         * lib/fnmatch.c: Likewise.
86626         * lib/mbswidth.c: Likewise
86627         * lib/regex.c: Likewise.
86628
86629         Don't use atoi.
86630         * lib/userspec.c: Include sys/param.h and limits.h.
86631         Include xstrtol.h.
86632         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
86633         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
86634         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
86635         UID, GID.  Check range.
86636
86637 2000-09-06  Jim Meyering  <meyering@lucent.com>
86638
86639         * lib/getopt.c (_getopt_internal): Update from glibc.
86640
86641 2000-08-30  Jim Meyering  <meyering@lucent.com>
86642
86643         * lib/strftime.c: Merge in changes from GNU libc.
86644
86645 2000-08-26  Jim Meyering  <meyering@lucent.com>
86646
86647         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
86648         * m4/fpending.m4: New file.
86649
86650 2000-08-26  Jim Meyering  <meyering@lucent.com>
86651
86652         * lib/closeout.c: Include "__fpending.h".
86653         (close_stdout_status): Return right away if there's nothing to flush.
86654
86655         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
86656         * lib/__fpending.c: New file.
86657         * lib/__fpending.h: New file.
86658
86659 2000-08-20  Jim Meyering  <meyering@lucent.com>
86660
86661         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
86662         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
86663         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
86664
86665 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
86666
86667         Improve fileutils installation on systems where running
86668         programs (like install) can't be unlinked.
86669         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
86670         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
86671
86672 2000-08-07  Paul Eggert  <eggert@twinsun.com>
86673
86674         Standardize on "memory exhausted" instead of "Memory exhausted"
86675         or "virtual memory exhausted".
86676         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
86677         "virtual memory exhausted".
86678         * lib/same.c (same_name): Invoke xalloc_die instead of printing
86679         our own message.
86680         * lib/userspec.c (parse_user_spec): Likewise.
86681         * lib/bumpalloc.h: comment fix
86682         * lib/same.c, userspec.c: Include xalloc.h.
86683
86684         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
86685         not char *const and pointing to a constant array.
86686         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
86687         (xrealloc): Comment fix.
86688
86689         * lib/userspec.c (parse_user_spec):
86690         Don't translate a message until just before returning,
86691         to avoid unnecessary translation.
86692
86693 2000-08-07  Jim Meyering  <meyering@lucent.com>
86694
86695         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
86696         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
86697         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
86698         getgroups.c, gethostname.c, getopt.h, group-member.c,
86699         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
86700         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
86701         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
86702         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
86703         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
86704         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
86705         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
86706         yesno.c: Back out Copyright date changes for each file with no change
86707         this year.  This eases coordination with other programs using the same
86708         source code modules.  From Paul Eggert.
86709
86710 2000-08-06  Paul Eggert  <eggert@twinsun.com>
86711
86712         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
86713         not char, for compatibility with glibc 2.1.3 strftime.c.
86714
86715 2000-08-03  Greg McGary  <greg@mcgary.org>
86716
86717         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
86718         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
86719         (EXTEND_BUFFER): Use them.
86720
86721 2000-08-01  Jim Meyering  <meyering@lucent.com>
86722
86723         * lib/dirname.c (ISSLASH): Define.
86724         (BACKSLASH_IS_PATH_SEPARATOR): Define.
86725         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
86726         both `\' and `/' may be use as path separators.
86727         Based on a patch from Prashant TR.
86728
86729 2000-07-31  Paul Eggert  <eggert@twinsun.com>
86730
86731         * lib/quotearg.c (quotearg_n_options): Don't make the initial
86732         slot vector a constant, since it might get modified.
86733
86734 2000-07-31  Jim Meyering  <meyering@lucent.com>
86735
86736         * lib/xmalloc.c: Use `virtual memory exhausted', not
86737         `Memory exhausted'.
86738         * lib/obstack.c (print_and_abort): Likewise.
86739
86740 2000-07-30  Paul Eggert  <eggert@twinsun.com>
86741
86742         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
86743         buffer, so that the caller can always quote one small
86744         component of a "memory exhausted" message in slot 0.
86745         From a suggestion by Jim Meyering.
86746
86747 2000-07-30  Jim Meyering  <meyering@lucent.com>
86748
86749         * lib/makepath.c (make_path): Quote the other instance, too.
86750
86751         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
86752         (STATIC_BUF_SIZE): Define.
86753         (quotearg_n_options): Use only statically allocated storage when
86754         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
86755         than STATIC_BUF_SIZE.
86756
86757 2000-07-29  Jim Meyering  <meyering@lucent.com>
86758
86759         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
86760         * lib/dirname.c (dir_name): Likewise.
86761
86762         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
86763         `/'.
86764
86765         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
86766         (dir_name): Assert that there are no trailing slashes.
86767
86768 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
86769
86770         * lib/mbswidth.h (mbswidth): Add a flags argument.
86771         (mbswidth): New declaration.
86772         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
86773         * lib/mbswidth.c (mbswidth): Add a flags argument.
86774         (mbsnwidth): New function.
86775
86776 2000-07-24  Jim Meyering  <meyering@lucent.com>
86777
86778         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
86779
86780 2000-07-23  Paul Eggert  <eggert@twinsun.com>
86781
86782         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
86783
86784 2000-07-23  Paul Eggert  <eggert@twinsun.com>
86785
86786         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
86787         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
86788         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
86789         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
86790         invoke multibyte primitives.
86791
86792 2000-07-23  Paul Eggert  <eggert@twinsun.com>
86793
86794         * lib/quotearg.c:
86795         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
86796         so that mbstate_t is always defined.
86797
86798         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
86799         be 1 in at least one GCC installation, and this configuration
86800         error is likely to be common.  Ignoring MB_LEN_MAX hurts
86801         performance on hosts that have mbrtowc but have only unibyte
86802         locales, but I assume these hosts are rare.
86803
86804 2000-07-23  Paul Eggert  <eggert@twinsun.com>
86805
86806         * lib/mbswidth.c (_XOPEN_SOURCE):
86807         Don't define; this causes problems on Solaris 7.
86808         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
86809
86810 2000-07-23  Jim Meyering  <meyering@lucent.com>
86811
86812         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
86813         too: getgrgid, getpwuid, getuid.
86814
86815 2000-07-23  Jim Meyering  <meyering@lucent.com>
86816
86817         * lib/basename.c (base_name): Add an assertion.
86818
86819 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
86820
86821         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
86822         shadow its mbsinit function.
86823
86824 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
86825
86826         * lib/mbswidth.h: New file.
86827         * lib/mbswidth.c: New file.
86828         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
86829         (noinst_HEADERS): Add mbswidth.h.
86830
86831 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
86832
86833         * lib/config.charset: Add support for FreeBSD. Improve support for
86834         HP-UX and IRIX 6.
86835
86836 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
86837
86838         * m4/mbswidth.m4: New file.
86839         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
86840
86841 2000-07-15  Jim Meyering  <meyering@lucent.com>
86842
86843         * lib/makepath.c: Include quote.h.
86844         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
86845         corresponding argument in a `quote (...)' call.
86846         Give better diagnostics.
86847
86848         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
86849         (noinst_HEADERS): Add quote.h.
86850
86851         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
86852         from tar's src/misc.c.
86853         * lib/quote.h: New file.  Prototypes for same.
86854
86855 2000-07-14  Paul Eggert  <eggert@twinsun.com>
86856
86857         From a suggestion by Bruno Haible.
86858         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
86859         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
86860         to decide whether to define the BeOS workaround macro;
86861         this adjusts to the change to AC_MBSTATE_T.
86862
86863 2000-07-14  Jim Meyering  <meyering@lucent.com>
86864
86865         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
86866         jm_AC_TYPE_UINTMAX_T.
86867
86868 2000-07-13  Paul Eggert  <eggert@twinsun.com>
86869
86870         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
86871
86872         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
86873         quotearg_buffer_restyled): Add support for
86874         clocale_quoting_style.  Undo previous change to
86875         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
86876         and "{RIGHT QUOTATION MARK}" msgids.
86877
86878 2000-07-10  Paul Eggert  <eggert@twinsun.com>
86879
86880         From a suggestion by Bruno Haible.
86881         * m4/mbstate_t.m4 (AC_MBSTATE_T):
86882         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
86883         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
86884         and mbstate_t, to a single-part test that simply defines mbstate_t.
86885         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
86886         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
86887
86888 2000-07-10  Jim Meyering  <meyering@lucent.com>
86889
86890         * m4/strerror_r.m4: Mirror the correction made in autoconf.
86891
86892         * m4/gnu-source.m4: Output to confdefs.h directly.
86893         Suggestion from Akim Demaille.
86894
86895 2000-07-09  Paul Eggert  <eggert@twinsun.com>
86896
86897         The old behavior of quoting `like this' doesn't look good with
86898         newer, ISO-style fonts.  See:
86899         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
86900
86901         Instead, quote "like this" by default.  Let the translator
86902         tailor the locale-specific quoting behavior by providing
86903         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
86904
86905         * lib/quotearg.c (N_): New macro.
86906         (gettext_default): New function.
86907         (quotearg_buffer_restyled): Use
86908         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
86909         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
86910
86911 2000-07-09  Jim Meyering  <meyering@lucent.com>
86912
86913         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
86914         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
86915
86916         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
86917         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
86918
86919 2000-07-09  Jim Meyering  <meyering@lucent.com>
86920
86921         * lib/Most files: Update copyright dates to include 2000.
86922
86923 2000-07-08  Jim Meyering  <meyering@lucent.com>
86924
86925         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
86926         if not defined.
86927         (xgethostname): Remove now-unnecessary #ifdef.
86928         Move declaration of `err' into loop where it's used.
86929
86930 2000-07-05  Paul Eggert  <eggert@twinsun.com>
86931         and Bruno Haible  <haible@clisp.cons.org>
86932
86933         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
86934         only if the test for an object-type mbstate_t fails.  This
86935         prevents us from mistakenly reporting that mbstate_t is a
86936         system object type after we "#define mbstate_t int" to work
86937         around its lack.
86938
86939 2000-07-05  Paul Eggert  <eggert@twinsun.com>
86940         and Bruno Haible  <haible@clisp.cons.org>
86941
86942         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
86943
86944 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
86945
86946         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
86947         to strerror_r.
86948         Include <ctype.h> for use of isalpha.
86949
86950 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
86951
86952         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
86953         by allocating a larger buffer. Test the gethostname return value for
86954         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
86955         returns an error and ENAMETOOLONG isn't defined.
86956
86957 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
86958
86959         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
86960         dimension.
86961
86962 2000-07-04  Jim Meyering  <meyering@lucent.com>
86963
86964         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
86965         of the deprecated AC_CHECKING.
86966
86967 2000-07-04  Jim Meyering  <meyering@lucent.com>
86968
86969         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
86970         Reported by Bruno Haible.
86971
86972 2000-07-04  Jim Meyering  <meyering@lucent.com>
86973
86974         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
86975         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
86976         lacks mbrtowc.
86977
86978 2000-07-03  Paul Eggert  <eggert@twinsun.com>
86979
86980         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
86981         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
86982
86983 2000-07-03  Paul Eggert  <eggert@twinsun.com>
86984         and Bruno Haible  <haible@clisp.cons.org>
86985
86986         * lib/quotearg.c (mbrtowc):
86987         Assign to *pwc, and return 1 only if result is nonzero.
86988         (iswprint): Use ISPRINT when substituting our own mbrtowc.
86989
86990 2000-07-03  Jim Meyering  <meyering@lucent.com>
86991
86992         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
86993
86994 2000-07-03  Jim Meyering  <meyering@lucent.com>
86995
86996         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
86997         This is necessary to get a definition of e.g., UTMP_FILE on
86998         HP-UX 10.20.
86999         From Bob Proulx.
87000
87001 2000-07-02  Jim Meyering  <meyering@lucent.com>
87002
87003         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
87004
87005         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
87006         AC_LIBOBJ(function_name).
87007         * m4/chown.m4: Likewise.
87008         * m4/fnmatch.m4: Likewise.
87009         * m4/ftruncate.m4: Likewise.
87010         * m4/getgroups.m4: Likewise.
87011         * m4/getline.m4: Likewise.
87012         * m4/group-member.m4: Likewise.
87013         * m4/jm-macros.m4: Likewise.
87014         * m4/lstat.m4: Likewise.
87015         * m4/malloc.m4: Likewise.
87016         * m4/memcmp.m4: Likewise.
87017         * m4/nanosleep.m4: Likewise.
87018         * m4/putenv.m4: Likewise.
87019         * m4/realloc.m4: Likewise.
87020         * m4/regex.m4: Likewise.
87021         * m4/stat.m4: Likewise.
87022         * m4/strftime.m4: Likewise.
87023
87024 2000-07-02  Jim Meyering  <meyering@lucent.com>
87025
87026         * lib/quotearg.c (mbstate_t): Don't define here.
87027
87028 2000-07-02  Jim Meyering  <meyering@lucent.com>
87029
87030         * lib/nanosleep.c (SIGCONT): Define if not already defined.
87031
87032 2000-07-01  Jim Meyering  <meyering@lucent.com>
87033
87034         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
87035
87036 2000-07-01  Jim Meyering  <meyering@lucent.com>
87037
87038         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
87039         problem.
87040
87041 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
87042
87043         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
87044         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
87045
87046 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
87047
87048         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
87049         per change in ../m4/ls-mntd-fs.m4.
87050         (read_filesystem_list): Ignore symbolic links.
87051
87052 2000-06-29  Jim Meyering  <meyering@lucent.com>
87053
87054         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
87055         for declaration of strcmp.
87056
87057         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
87058
87059         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
87060         Avoid warning by casting result to `char *' to remove `const'.
87061
87062 2000-06-28  Jim Meyering  <meyering@lucent.com>
87063
87064         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
87065         included by quotearg.c, for which we perform this test.  From
87066         Bruno Haible.
87067
87068 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
87069
87070         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
87071         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
87072         <utmpx.h> exists, put readutmp.o into LIBOBJS.
87073
87074 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
87075
87076         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
87077
87078 2000-06-26  Paul Eggert  <eggert@twinsun.com>
87079
87080         savedir now sets errno on failure and invokes xmalloc to get memory.
87081         Fix a couple of other minor bugs while we're at it.
87082
87083         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
87084         (NAMLEN): Remove macro.
87085         (malloc, realloc): Remove decls.
87086         (stpcpy): Likewise.
87087         ("xalloc.h"): Include.
87088         (NAME_SIZE_DEFAULT): New macro.
87089         (savedir): Use xmalloc / xrealloc to allocate memory.
87090         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
87091         Skip "" directory entries.
87092         Use strlen to calculate directory entry length, since the old method
87093         is rarely used these days and isn't worth supporting.
87094         Don't use a pointer after freeing it.
87095         Check for integer overflow when calculating allocation size.
87096         Use memcpy to copy entries, instead of stpcpy.
87097         Set errno properly when returning NULL.
87098         Check for readdir error.
87099
87100 2000-06-26  Jim Meyering  <meyering@lucent.com>
87101
87102         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
87103
87104 2000-06-25  Jim Meyering  <meyering@lucent.com>
87105
87106         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
87107         Linux header bug when _XOPEN_SOURCE is defined to 500.
87108
87109 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
87110
87111         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
87112         deficiency.
87113
87114 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
87115
87116         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
87117         Include xalloc.h.
87118         Don't include <stdlib.h>.  Don't declare malloc, realloc.
87119
87120 2000-06-24  Jim Meyering  <meyering@lucent.com>
87121
87122         * m4/strerror_r.m4: Revive this file -- to try out an experimental
87123         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
87124         for which strerror does return char*, but which lacks a conveniently
87125         accessible declaration of the function.  If the compile-test says
87126         strerror_r doesn't work, then resort to a `run'-test that works on
87127         BeOS and segfaults on DEC Unix.
87128
87129 2000-06-24  Jim Meyering  <meyering@lucent.com>
87130
87131         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
87132
87133 2000-06-23  Paul Eggert  <eggert@twinsun.com>
87134
87135         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
87136         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
87137
87138 2000-06-23  Paul Eggert  <eggert@twinsun.com>
87139
87140         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
87141         (mbrtowc, mbstate_t): Define substitutes if
87142         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
87143         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
87144         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
87145
87146 2000-06-23  Jim Meyering  <meyering@lucent.com>
87147
87148         * m4/afs.m4: Add missing AC_MSG_RESULT.
87149         Reported by Bruno Haible.
87150
87151         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
87152         Suggestion from Bruno Haible.
87153
87154 2000-06-23  Jim Meyering  <meyering@lucent.com>
87155
87156         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
87157
87158 2000-06-21  Jim Meyering  <meyering@lucent.com>
87159
87160         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
87161
87162 2000-06-21  Jim Meyering  <meyering@lucent.com>
87163
87164         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
87165         (noinst_HEADERS): Add getstr.h.
87166
87167         * lib/getline.c (getstr): Move into a separate file.
87168         * lib/getstr.c (getstr): New file, extracted from getline.c, with
87169         the following changes: new parameter, delim2; both delim[12]
87170         parameters have type `int', not `char'.  The latter would lose
87171         with 8-bit delimiters.
87172         * lib/getstr.h: New file.
87173
87174 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
87175
87176         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
87177         than 1024, return a memory chunk of least possible size, instead
87178         of size PATH_MAX + 2. In the loop, increment the size proportionally.
87179         Use free/xmalloc instead of xrealloc to avoid copying for very long
87180         paths.
87181
87182 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
87183
87184         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
87185         the empty string.
87186
87187 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
87188
87189         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
87190         address, not strdup.  Include <stdlib.h> and don't declare free().
87191
87192 2000-06-19  Jim Meyering  <meyering@lucent.com>
87193
87194         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
87195
87196 2000-06-18  Jim Meyering  <meyering@lucent.com>
87197
87198         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
87199
87200         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
87201         `checking whether...' message to be consistent with that of the
87202         lstat test.
87203
87204 2000-06-18  Jim Meyering  <meyering@lucent.com>
87205
87206         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
87207         Besides, these days every porting target provides a mkdir function.
87208
87209         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
87210         needed. (this snippet comes from src/system.h).
87211
87212 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
87213
87214         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
87215
87216 2000-06-15  Paul Eggert  <eggert@twinsun.com>
87217
87218         * lib/human.c (adjust_value): New function.
87219         (human_readable_inexact): Apply rounding style even when
87220         printing approximate values.
87221
87222 2000-06-14  Paul Eggert  <eggert@twinsun.com>
87223
87224         * lib/human.c (human_readable_inexact): Allow an input block
87225         size that is not a multiple of the output block size, and vice versa.
87226         Reported by Piergiorgio Sartor.
87227
87228 2000-06-14  Paul Eggert  <eggert@twinsun.com>
87229
87230         * lib/getdate.y (get_date): Apply relative times after time
87231         zone indicator, not before.  Reported by Todd A. Jacobs.
87232
87233 2000-06-13  Jim Meyering  <meyering@lucent.com>
87234
87235         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
87236
87237         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
87238
87239 2000-06-12  Paul Eggert  <eggert@twinsun.com>
87240
87241         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
87242
87243 2000-06-12  Jim Meyering  <meyering@lucent.com>
87244
87245         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
87246         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
87247         optional argument.
87248         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
87249         the optional argument, `lib'.
87250
87251 2000-06-08  Jim Meyering  <meyering@lucent.com>
87252
87253         * m4/largefile.m4: Remove file (now that it's part of autoconf).
87254
87255 2000-06-04  Paul Eggert  <eggert@twinsun.com>
87256
87257         Rewrite largefile configuration so that we don't need to run
87258         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
87259         AC_CANONICAL_HOST in configure.in -- jmm]
87260
87261         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
87262         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
87263         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
87264         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
87265         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
87266         All uses changed.
87267         Instead of inspecting the output of getconf, try to compile the
87268         test program without and with the macro definition.
87269         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
87270         for getconf.  Instead, check for the needed flags by compiling
87271         test programs.
87272
87273 2000-06-04  Paul Eggert  <eggert@twinsun.com>
87274
87275         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
87276
87277 2000-06-04  Jim Meyering  <meyering@lucent.com>
87278
87279         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
87280         SunOS 4.1.4 for which gid_t is an unsigned type.
87281
87282 2000-06-03  Jim Meyering  <meyering@lucent.com>
87283
87284         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
87285         now that autoconf requires that.
87286
87287         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
87288         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
87289         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
87290
87291 2000-06-03  Jim Meyering  <meyering@lucent.com>
87292
87293         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
87294
87295 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
87296
87297         * m4/glibc21.m4: New file.
87298         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
87299
87300 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
87301
87302         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
87303         newer, don't install charset.alias.
87304         * lib/config.charset: Change the Linux/glibc rules so they become empty
87305         on glibc-2.1 or newer.
87306
87307 2000-06-02  Jim Meyering  <meyering@lucent.com>
87308
87309         * lib/mountlist.c: Back out last change.  Instead, do this...
87310         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
87311         me_dummy member using the same `ignore'-testing code.
87312         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
87313         fs_type strings.
87314         From Mark D. Roth.
87315
87316 2000-05-29  Jim Meyering  <meyering@lucent.com>
87317
87318         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
87319         mounts with the `ignore' attribute.  Based on a patch from
87320         Mark D. Roth.
87321
87322 2000-05-28  Jim Meyering  <meyering@lucent.com>
87323
87324         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
87325         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
87326         * m4/stat.m4: Likewise.
87327         * m4/lstat.m4: Likewise.
87328         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
87329
87330         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
87331         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
87332
87333 2000-05-26  Jim Meyering  <meyering@lucent.com>
87334
87335         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
87336
87337 2000-05-24  Jim Meyering  <meyering@lucent.com>
87338
87339         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
87340         autoconf requires that.
87341         * m4/lib-check.m4: Likewise.
87342         * m4/jm-macros.m4: Likewise.
87343         * m4/strftime.m4: Likewise.
87344
87345         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
87346         AC_CHECK_DECLS, now that autoconf requires that.
87347
87348 2000-05-22  Jim Meyering  <meyering@lucent.com>
87349
87350         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
87351         * m4/lstat.m4: Likewise.
87352
87353 2000-05-22  Jim Meyering  <meyering@lucent.com>
87354
87355         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
87356
87357 2000-05-20  Jim Meyering  <meyering@lucent.com>
87358
87359         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
87360         (jm_PREREQ): Use it.
87361
87362 2000-05-18  Jim Meyering  <meyering@lucent.com>
87363
87364         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
87365         back, too, since it may have been modified by allocate_entry.
87366         (hash_delete): Rewrite to use neither the assignment operator
87367         nor the comma operator in an if-expression.
87368
87369 2000-05-15  Paul Eggert  <eggert@twinsun.com>
87370
87371         * lib/closeout.c:
87372         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
87373         Remove; no longer needed.
87374         "quotearg.h": Add include.
87375         (file_name): Do not bother to explicitly initialize to NULL; it's less
87376         efficient on some hosts.
87377         (close_stdout_status): Remove test as to whether stdout was already
87378         closed; it breaks for the case "echo x | sort >&-".
87379         Quote file name colons.
87380         Do not assume that _("write error") lacks format strings.
87381
87382 2000-05-15  Jim Meyering  <meyering@lucent.com>
87383
87384         * lib/version-etc.c (version_etc_copyright): Update the copyright
87385         string used in all --version output.
87386
87387 2000-05-14  Jim Meyering  <meyering@lucent.com>
87388
87389         * lib/closeout.c (close_stdout_set_file_name): New function.
87390         (close_stdout_status): Use new file-scoped global.
87391         Return right away if fstat says the stdout file descriptor is invalid.
87392         * lib/closeout.h (close_stdout_set_file_name): Declare.
87393
87394 2000-05-10  Jim Meyering  <meyering@lucent.com>
87395
87396         * lib/closeout.c [default_exit_status]: New file-scoped variable.
87397         (close_stdout_set_status): New function.
87398         * lib/closeout.h (close_stdout_set_status): Declare.
87399
87400 2000-05-09  Jim Meyering  <meyering@lucent.com>
87401
87402         * m4/gettext.m4: Rename this...
87403         * m4/libintl.m4: ...to this.
87404
87405 2000-05-08  Jim Meyering  <meyering@lucent.com>
87406
87407         * lib/long-options.c: Don't include closeout.h.
87408         (parse_long_options): Don't call close_stdout for --version.
87409
87410 2000-05-06  Paul Eggert  <eggert@twinsun.com>
87411
87412         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
87413         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
87414         2.1.3 bug.  This avoids a clash when files like regex.c define
87415         _GNU_SOURCE.
87416
87417 2000-05-06  Jim Meyering  <meyering@lucent.com>
87418
87419         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
87420         (AC_REPLACE_FUNCS): Add strnlen.
87421
87422         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
87423         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
87424
87425         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
87426         AC_SEARCH_LIBS call for nanosleep.
87427         (LIB_NANOSLEEP): Set and AC_SUBST.
87428
87429 2000-05-06  Jim Meyering  <meyering@lucent.com>
87430
87431         * lib/strnlen.c: Undefine __strnlen and strnlen.
87432         [!weak_alias]: Define __strnlen to strnlen.
87433
87434         * lib/atexit.c: New file, from libiberty.
87435
87436 2000-05-06  Jim Meyering  <meyering@lucent.com>
87437
87438         * lib/closeout.c (close_stdout_status): Also check for errors on the
87439         stderr stream.
87440
87441 2000-05-05  Jim Meyering  <meyering@lucent.com>
87442
87443         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
87444         AC_SEARCH_LIBS call for clock_gettime.
87445         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
87446
87447         * m4/search-libs.m4: Update from autoconf.
87448
87449         su doesn't work on Solaris 2.6.
87450         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
87451         <shadow.h>.  Reported by Dragos Harabor.
87452
87453 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
87454
87455         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
87456         memcpy instead of xmalloc, xrealloc, path_concat.
87457         (locale_charset): Treat empty environment variables as absent.
87458         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
87459
87460 2000-05-04  Jim Meyering  <meyering@lucent.com>
87461
87462         * lib/getopt.c: Update from glibc.
87463         * lib/obstack.c: Likewise.
87464         * lib/obstack.h: Likewise.
87465         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
87466         file
87467
87468         * lib/regex.h: Likewise.
87469         * lib/strndup.c: Likewise.
87470         * lib/strnlen.c: New file, from glibc.
87471
87472 2000-05-03  Jim Meyering  <meyering@lucent.com>
87473
87474         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
87475
87476 2000-05-02  Paul Eggert  <eggert@twinsun.com>
87477
87478         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
87479         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
87480         compile-time test, rather than inspecting host and OS, to
87481         decide whether to define _LARGEFILE_SOURCE.
87482
87483 2000-05-01  Jim Meyering  <meyering@lucent.com>
87484
87485         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
87486
87487         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
87488         Based on a patch from Bruno Haible.
87489
87490 2000-05-01  Jim Meyering  <meyering@lucent.com>
87491
87492         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
87493
87494 2000-04-29  Jim Meyering  <meyering@lucent.com>
87495
87496         * lib/path-concat.c: Declare strdup only if it's not defined.
87497         * lib/canon-host.c: Likewise.
87498
87499 2000-04-28  Jim Meyering  <meyering@lucent.com>
87500
87501         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
87502         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
87503         is included first, then limits.h is included by locale.h by libintl.h.
87504         From John David Anglin.
87505
87506 2000-04-25  Jim Meyering  <meyering@lucent.com>
87507
87508         * lib/makepath.c (S_IRWXUGO): Define.
87509         (make_path): Always perform explicit chmod if MODE specifies any
87510         of the `special' permission bits.  Prompted by a bug report against
87511         install from Mate Wierdl and Joost van Baal.
87512
87513 2000-04-18  Jim Meyering  <meyering@lucent.com>
87514
87515         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
87516         (jm_PREREQ): Use it.
87517
87518 2000-04-18  Jim Meyering  <meyering@lucent.com>
87519
87520         * lib/README: New file.
87521
87522         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
87523         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
87524
87525 2000-04-17  Jim Meyering  <meyering@lucent.com>
87526
87527         Get it right :-)
87528         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
87529         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
87530         Suggestion from Akim Demaille.
87531
87532 2000-04-17  Jim Meyering  <meyering@lucent.com>
87533
87534         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
87535         the definition of it to rpl_strftime also defined-away the system's
87536         declaration.
87537
87538 2000-04-15  Jim Meyering  <meyering@lucent.com>
87539
87540         Use `C' to denote so-called `contiguous' files, the same way
87541         that tar does.
87542         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
87543         (ftypelet): Use S_ISCTG.
87544         From Michael Deutschmann.
87545
87546 2000-04-14  Jim Meyering  <meyering@lucent.com>
87547
87548         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
87549         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
87550         clobbered.
87551
87552 2000-04-14  Jim Meyering  <meyering@lucent.com>
87553
87554         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
87555
87556 2000-04-13  Jim Meyering  <meyering@lucent.com>
87557
87558         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
87559         AH_VERBATIM to insert required #ifndef into config.h.in.
87560         Suggestion from Akim Demaille.
87561
87562 2000-04-12  Jim Meyering  <meyering@lucent.com>
87563
87564         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
87565         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
87566         Christian Krackowizer.
87567
87568         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
87569         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
87570         (AC_SYS_LARGEFILE): Require.
87571         (AM_C_PROTOTYPES): Require.
87572
87573 2000-04-08  Jim Meyering  <meyering@lucent.com>
87574
87575         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
87576         names don't conflict.  Reported by Eli Zaretskii.
87577
87578 2000-04-07  Jim Meyering  <meyering@lucent.com>
87579
87580         * lib/putenv.c: Move inclusion of errno.h so it follows that of
87581         sys/types.h, to work around system header problems on AIX 3.2.5.
87582         From Bruno Haible.
87583
87584 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
87585
87586         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
87587         bug.  Deal with the different error behavior of Irix iconv.
87588
87589 2000-04-05  Paul Eggert  <eggert@twinsun.com>
87590
87591         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
87592         IRIX if the installer said otherwise.
87593
87594 2000-04-05  Jim Meyering  <meyering@lucent.com>
87595
87596         Portability tweaks required for ultrix4.3.
87597         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
87598         (jm_CHECK_DECLS): Add getutent to the list of functions.
87599         (_jm_DECL_HEADERS): Add utmpx.h.
87600         From John David Anglin.
87601
87602         * m4/strftime.m4: Back out the 2000-04-02 change.
87603         Instead of that change, simply undefine putenv in the test program.
87604
87605 2000-04-05  Jim Meyering  <meyering@lucent.com>
87606
87607         Portability tweaks required for ultrix4.3.
87608         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
87609         getutent.
87610         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
87611         * lib/canon-host.c: Declare strdup.
87612         * lib/path-concat.c: Likewise.
87613         From John David Anglin.
87614
87615 2000-04-04  Jim Meyering  <meyering@lucent.com>
87616
87617         Be more DOS 8.3-friendly.
87618         * lib/ref-add.sin: Renamed from ref-add.sed.in.
87619         * lib/ref-del.sin: Renamed from ref-del.sed.in.
87620         * lib/Makefile.am: Reflect renaming.
87621         Reported by Eli Zaretskii.
87622
87623         Use a temporary file name that won't clash with `charset.alias'
87624         in the DOS 8.3 name space.
87625         * lib/Makefile.am (charset_tmp): Define.
87626         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
87627         (uninstall-local): Likewise.
87628         Reported by Eli Zaretskii.
87629
87630 2000-04-03  Jim Meyering  <meyering@lucent.com>
87631
87632         * m4/gettext.m4: Fix typo in comment.
87633
87634         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
87635         textutils/configure.in).  Suggestion from Paul Eggert.
87636         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
87637
87638 2000-04-02  Paul Eggert  <eggert@twinsun.com>
87639
87640         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
87641         variable in the shell rather than using putenv, which isn't
87642         portable.  This avoids the configure-time inter-test dependency
87643         on the potentially-renamed putenv function.
87644
87645 2000-03-30  Paul Eggert  <eggert@twinsun.com>
87646
87647         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
87648         before checking struct stat.st_blksize, so that
87649         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
87650
87651 2000-03-29  Paul Eggert  <eggert@twinsun.com>
87652
87653         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
87654         since strftime.c uses HAVE_STRFTIME to decide whether to use
87655         the underlying strftime.
87656
87657 2000-03-29  Paul Eggert  <eggert@twinsun.com>
87658
87659         * lib/time/strftime.c (my_strftime): Make sure we call the system
87660         strftime, not ourselves, when invoking the underlying strftime.
87661
87662 2000-03-24  Jim Meyering  <meyering@lucent.com>
87663
87664         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
87665         (charset_alias): Define.
87666         (install-exec-local): Factor out common code.
87667         (uninstall-local): Split lines longer than 80.
87668         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
87669         (SUFFIXES): Define.
87670         (.sed.in.sed): New rule.  Don't redirect directly to $@.
87671         (CLEANFILES): Add ref-add.sed and ref-del.sed.
87672
87673 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
87674
87675         * lib/config.charset: Output a line containing "Packages using this
87676         file".
87677         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
87678         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
87679         ref-del.sed): New rules.
87680
87681 2000-03-17  Jim Meyering  <meyering@lucent.com>
87682
87683         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
87684         Otherwise, include <strings.h>
87685
87686 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
87687
87688         * lib/unicodeio.c (utf8_wctomb): New function.
87689         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
87690         format instead of in UCS-4 with platform dependent endianness.
87691
87692 2000-03-10  Jim Meyering  <meyering@lucent.com>
87693
87694         * m4/lib-check.m4: Look for getspnam in -lgen, too.
87695         From Marco Franzen.
87696
87697 2000-03-07  Paul Eggert  <eggert@twinsun.com>
87698
87699         * lib/savedir.c (savedir): Work even if directory size is
87700         negative; this can happen with some screwy NFS configurations.
87701
87702 2000-03-06  Jim Meyering  <meyering@lucent.com>
87703
87704         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
87705         if it's NULL (because we ran out of memory).  From Bruno Haible.
87706
87707 2000-03-05  Jim Meyering  <meyering@lucent.com>
87708
87709         * lib/localcharset.c ("path-concat.h"): Include.
87710         (get_charset_aliases): Use path_concat instead of ANSI string
87711         concatenation.
87712
87713         * lib/unicodeio.h (PARAMS): Define.
87714         Use it to guard prototype.
87715
87716 2000-03-04  Jim Meyering  <meyering@lucent.com>
87717
87718         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
87719         for lib/localcharset.c.
87720
87721 2000-03-04  Jim Meyering  <meyering@lucent.com>
87722
87723         * lib/Makefile.am (install-exec-local): Create $(libdir) before
87724         installing into it.
87725         (uninstall-local): Uncomment this rule so `make distcheck' works
87726         once again.
87727
87728         * lib/unicodeio.c (<errno.h>): Include it.
87729         (errno): Declare if not defined.
87730
87731         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
87732
87733         * lib/config.charset: New version, incorporating remarks from a linux
87734         i18n mailing list.  From Bruno Haible.
87735
87736 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
87737
87738         * m4/codeset.m4: New file.
87739         * m4/iconv.m4: New file.
87740         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
87741
87742 2000-03-03  Jim Meyering  <meyering@lucent.com>
87743
87744         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
87745
87746 2000-03-02  Jim Meyering  <meyering@lucent.com>
87747
87748         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
87749         the messages come out on separate lines.
87750
87751         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
87752         rather than jm_CHECK_DECLARATIONS.
87753         * m4/decl.m4: Remove now-unused file.
87754
87755         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
87756         geteuid.
87757
87758 2000-03-02  Jim Meyering  <meyering@lucent.com>
87759
87760         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
87761
87762 2000-03-01  Jim Meyering  <meyering@lucent.com>
87763
87764         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
87765         * lib/unicodeio.c: Likewise.
87766
87767 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
87768
87769         * lib/config.charset: New file.
87770         * lib/localcharset.c: New file.
87771         * lib/unicodeio.h, lib/unicodeio.c: New files.
87772         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
87773         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
87774         (noinst_HEADERS): Add unicodeio.h.
87775         (all-local, install-exec-local, charset.alias): New targets.
87776
87777 2000-02-28  Paul Eggert  <eggert@twinsun.com>
87778
87779         * lib/quotearg.c (ALERT_CHAR): New macro.
87780         (quotearg_buffer_restyled): Use it.
87781
87782 2000-02-27  Jim Meyering  <meyering@lucent.com>
87783
87784         * m4/check-decl.m4: Add getenv to the list.
87785
87786 2000-02-27  Jim Meyering  <meyering@lucent.com>
87787
87788         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
87789         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
87790
87791         * lib/backupfile.c: Guard inclusion of stdlib.h with
87792         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
87793         Declare malloc if needed.
87794
87795         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
87796         `#ifndef HAVE_DECL..'
87797         now that autoconf always defines the HAVE_DECL_ symbols.
87798         * lib/human.c: Likewise.
87799         * lib/same.c: Likewise.
87800         * lib/strtoumax.c: Likewise.
87801
87802         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
87803         declaration check was not run.
87804         * lib/hash.c: Likewise.
87805         * lib/human.c: Likewise.
87806         * lib/same.c: Likewise.
87807         * lib/strtoumax.c: Likewise.
87808
87809         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
87810         `.', then first look up the entire `.'-containing string as a login
87811         name.
87812
87813 2000-02-23  Jim Meyering  <meyering@lucent.com>
87814
87815         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
87816         in place of my hack.
87817
87818 2000-02-18  Paul Eggert  <eggert@twinsun.com>
87819
87820         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
87821         (textint): New typedef.
87822         (parser_control): Member year changed from int to textint.
87823         All uses changed.
87824         (YYSTYPE): Removed; replaced by %union with int and textint members.
87825         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
87826         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
87827         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
87828         (tSNUMBER, tUNUMBER): Now of type <textintval>.
87829         (date, number, to_year): Use width of number in digits, not its value,
87830         to determine whether it's a 2-digit year, or a 2-digit time.
87831         (yylex): Store number of digits of numeric tokens.
87832         Reported by John Kendall.
87833
87834         (parser_control): Changed from struct parser_control to typedef (for
87835         consistency).  All uses changed.
87836
87837         (tID): Removed; not used.
87838         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
87839
87840 2000-02-14  Paul Eggert  <eggert@twinsun.com>
87841
87842         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
87843         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
87844
87845 2000-02-12  Jim Meyering  <meyering@lucent.com>
87846
87847         * lib/userspec.c (ISDIGIT): Define it.
87848         (isdigit): Remove definition.
87849         (is_number): Use ISDIGIT, not isdigit.
87850         <libintl.h>: Include.
87851         (_ and N_): Define.
87852         (parse_user_spec): Mark translatable strings.
87853
87854 2000-02-10  Jim Meyering  <meyering@lucent.com>
87855
87856         With these changes, nanosleep.[ch] are finally enough like the other
87857         lib/* replacement files to compile on a few more losing systems.
87858
87859         * lib/nanosleep.h: Don't include config.h.
87860         Remove prototype from declaration of nanosleep.
87861         (PARAMS): Remove now-unneeded definition.
87862         * lib/nanosleep.c: #undef nanosleep.
87863         (rpl_nanosleep): Rename from nanosleep.
87864
87865 2000-02-10  Jim Meyering  <meyering@lucent.com>
87866
87867         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
87868         gnu_nanosleep to rpl_nanosleep.
87869
87870 2000-02-09  Jim Meyering  <meyering@lucent.com>
87871
87872         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
87873         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
87874
87875 2000-02-08  Akim Demaille  <akim@epita.fr>
87876
87877         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
87878         `[' and `]' and remove uses of `changequote'.
87879         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
87880         (AC_SYS_LARGEFILE): Likewise.
87881         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
87882         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
87883         of changequote.
87884         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
87885         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
87886         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
87887         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
87888
87889 2000-02-05  Jim Meyering  <meyering@lucent.com>
87890
87891         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
87892         Remove explicit use of AC_HEADER_TIME.  It is required by
87893         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
87894         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
87895         in autoconf whereby the expansion of the latter ended up preceding
87896         the expansion of its prerequisite, AC_HEADER_TIME.
87897         Reported by Volker Borchert.
87898
87899 2000-02-03  Jim Meyering  <meyering@lucent.com>
87900
87901         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
87902
87903 2000-02-03  Jim Meyering  <meyering@lucent.com>
87904
87905         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
87906         rather than with `#if HAVE_UTMPNAME'.
87907
87908 2000-02-02  Jim Meyering  <meyering@lucent.com>
87909
87910         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
87911         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
87912         Reported by Eli Zaretskii.
87913
87914 2000-02-01  Jim Meyering  <meyering@lucent.com>
87915
87916         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
87917
87918 2000-01-31  Jim Meyering  <meyering@lucent.com>
87919
87920         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
87921         functions.  Add the time.h and sys/time.h headers along with the
87922         AC_REQUIRE'ment of AC_HEADER_TIME.
87923
87924 2000-01-31  Jim Meyering  <meyering@lucent.com>
87925
87926         * lib/nanosleep.h (nanosleep): Guard declaration with
87927         `#if ! HAVE_DECL_NANOSLEEP'.
87928         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
87929         the declaration in that vendor's sys/timers.h.
87930         Reported by Christian Krackowizer.
87931
87932         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
87933         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
87934         (ISPRINT): Likewise.
87935         Reported by Tom Tromey.
87936
87937 2000-01-30  Jim Meyering  <meyering@lucent.com>
87938
87939         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
87940
87941         * m4/prereq.m4 (utmp_includes): Define.
87942         Check for ut_user and ut_name members in both struct utmpx
87943         and struct utmp.
87944
87945 2000-01-30  Jim Meyering  <meyering@lucent.com>
87946
87947         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
87948         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
87949         header files where only utmpx.ut_user is declared.
87950
87951         * lib/readutmp.h (UT_USER): Define.
87952
87953 2000-01-29  Jim Meyering  <meyering@lucent.com>
87954
87955         * m4/lib-check.m4: New file containing library-related checks from
87956         fileutils and sh-utils (textutils had none).
87957
87958 2000-01-28  Jim Meyering  <meyering@lucent.com>
87959
87960         * m4/perl.m4: Change format of warning message to look more like that
87961         from the missing script.  Suggestion from François Pinard.
87962
87963 2000-01-25  Jim Meyering  <meyering@lucent.com>
87964
87965         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
87966         well as time.h in the compile check.
87967         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
87968         Fix typo in cross-compiling case: s/yes/no/.
87969
87970 2000-01-23  Jim Meyering  <meyering@lucent.com>
87971
87972         * m4/jm-macros.m4: Move df-related tests here from
87973         fileutils/configure.in
87974
87975         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
87976         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
87977
87978         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
87979         s/space/ac_fsusage_space/.
87980         (jm_FILE_SYSTEM_USAGE): Take two parameters.
87981
87982         * m4/ftruncate.m4: New file (derived from part of
87983         fileutils/configure.in).
87984         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
87985         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
87986
87987         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
87988         AC_SUBST these here, rather than just in sh-util/configure.in, so
87989         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
87990         all the same.
87991         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
87992         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
87993         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
87994         (AC_SUBST(POW_LIBM)): Likewise.
87995         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
87996
87997 2000-01-23  Jim Meyering  <meyering@lucent.com>
87998
87999         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
88000         obstack.c.
88001
88002 2000-01-22  Jim Meyering  <meyering@lucent.com>
88003
88004         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
88005
88006         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
88007
88008         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
88009         configure.in
88010         (AC_CHECK_HEADERS): Likewise for sh-utils.
88011         (AC_CHECK_HEADERS): Likewise for textutils.
88012         Merge the three lists of headers.
88013
88014         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
88015         from fileutils' configure.in.
88016
88017         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
88018         code. Moved tests into their own function (_jm_DECL_HEADERS) in
88019         check-decl.m4.
88020
88021         * m4/check-decl.m4: Use #if rather than #ifdef.
88022         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
88023         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
88024         (_jm_DECL_HEADERS): Define new function.
88025         (jm_CHECK_DECLARATIONS): Require it.
88026
88027 2000-01-22  Jim Meyering  <meyering@lucent.com>
88028
88029         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
88030         [! HAVE_DECL_STRTOULL]: Declare strtoull.
88031         Required for some AIX systems.  Reported by Christian Krackowizer.
88032         [TESTING] (main): New function.
88033
88034         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
88035         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
88036         letters.
88037
88038         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
88039         iswprint.
88040
88041         * lib/strverscmp.c (ISDIGIT): Define.
88042         (strverscmp): Use ISDIGIT, not isdigit.
88043
88044 2000-01-19  Jim Meyering  <meyering@lucent.com>
88045
88046         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
88047         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
88048         defines `struct timespec' in <sys/time.h>
88049
88050         * m4/c-bs-a.m4: Remove uses of changequote altogether.
88051         Thanks to Akim for explaining.
88052
88053 2000-01-17  Paul Eggert  <eggert@twinsun.com>
88054
88055         * lib/nanosleep.c (nanosleep):
88056         Don't use SA_INTERRUPT to decide whether to call sigaction, as
88057         POSIX.1 doesn't require SA_INTERRUPT and some systems
88058         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
88059         it's been part of POSIX.1 since day 1 (in 1988).
88060
88061 2000-01-17  Jim Meyering  <meyering@lucent.com>
88062
88063         * lib/interlock: Remove unused file.  Reported by François Pinard.
88064
88065 2000-01-16  Paul Eggert  <eggert@twinsun.com>
88066
88067         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
88068         alert, backslash, formfeed, and vertical tab unnecessarily in
88069         shell quoting style.
88070
88071 2000-01-16  Jim Meyering  <meyering@lucent.com>
88072
88073         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
88074         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
88075         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
88076         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
88077
88078 2000-01-16  Jim Meyering  <meyering@lucent.com>
88079
88080         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
88081         because the latter didn't work.
88082
88083 2000-01-15  Jim Meyering  <meyering@lucent.com>
88084
88085         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
88086         (AC_REPLACE_FUNCS): Add memcpy and memset.
88087         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
88088         Add strpbrk.
88089         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
88090
88091 2000-01-12  Jim Meyering  <meyering@lucent.com>
88092
88093         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
88094         (jm_PREREQ): Use it.
88095         (jm_PREREQ_READUTMP): New macro.
88096         (jm_PREREQ): Use it.
88097
88098 2000-01-11  Paul Eggert  <eggert@twinsun.com>
88099
88100         Quote multibyte characters correctly.
88101         * m4/c-bs-a.m4: New file.
88102         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
88103         (jm_PREREQ): Use it.
88104
88105 2000-01-11  Paul Eggert  <eggert@twinsun.com>
88106
88107         * m4/uintmax_t.m4: Port to autoconf 2.13.
88108
88109 2000-01-08  Jim Meyering  <meyering@ascend.com>
88110
88111         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
88112         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
88113
88114 2000-01-04  Jim Meyering  <meyering@ascend.com>
88115
88116         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
88117         jm_STRUCT_DIRENT_D_TYPE.
88118         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
88119         jm_STRUCT_DIRENT_D_INO.
88120         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
88121         jm_STRUCT_UTIMBUF.
88122         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
88123         renamings.
88124         * m4/utime.m4: Likewise.
88125
88126         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
88127         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
88128
88129 2000-01-03  Paul Eggert  <eggert@twinsun.com>
88130
88131         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
88132         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
88133
88134 2000-01-02  Jim Meyering  <meyering@ascend.com>
88135
88136         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
88137         remember if this is necessary.
88138
88139 1999-12-26  Jim Meyering  <meyering@ascend.com>
88140
88141         * m4/jm-macros.m4: Use it here.
88142         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
88143
88144 1999-12-23  Jim Meyering  <meyering@ascend.com>
88145
88146         * m4/jm-macros.m4: Check for clock_gettime (moved from
88147         fileutils/configure.in)
88148         Check for gettimeofday.
88149
88150 1999-12-20  Jim Meyering  <meyering@ascend.com>
88151
88152         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
88153         autoconf-2.14a-1999-12-20.
88154
88155 1999-12-19  Jim Meyering  <meyering@ascend.com>
88156
88157         * m4/lstat-slash.m4: New file.
88158         * m4/jm-macros.m4: Use the new macro:
88159         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
88160
88161 1999-12-07  Jim Meyering  <meyering@ascend.com>
88162
88163         * m4/perl.m4: Require that File::Compare be available, too.
88164         Too many systems seem to lack it.
88165
88166         * m4/strftime.m4: Add checks for most of the cpp macros tested in
88167         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
88168
88169 1999-11-18  Paul Eggert  <eggert@twinsun.com>
88170
88171         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
88172         problem with the QNX 4.25 shell, which doesn't propagate exit
88173         status of failed commands inside shell assignments.
88174
88175 1999-11-17  Jim Meyering  <meyering@ascend.com>
88176
88177         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
88178
88179 1999-11-07  Jim Meyering  <meyering@ascend.com>
88180
88181         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
88182
88183 1999-11-06  Jim Meyering  <meyering@ascend.com>
88184
88185         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
88186         * m4/jm-macros.m4 (jm_MACROS): Use it here.
88187
88188 1999-11-05  Jim Meyering  <meyering@ascend.com>
88189
88190         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
88191         configure.in of textutils, fileutils, and sh-utils into this one
88192         (shared between those packages) file.
88193         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
88194         AC_STRUCT_ST_BLKSIZE.
88195
88196 1999-11-03  Jim Meyering  <meyering@ascend.com>
88197
88198         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
88199         of AC_CHECK_TYPE checks includes unistd.h.
88200         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
88201         Suggestion from Akim Demaille.
88202
88203 1999-10-30  Jim Meyering  <meyering@ascend.com>
88204
88205         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
88206         m4-quoted string.
88207         * m4/ls-mntd-fs.m4: Likewise.
88208         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
88209         * m4/jm-winsz1.m4: Likewise.
88210
88211         * m4/const.m4: Remove file, since the fix made it into the experimental
88212         version of autoconf.
88213         * m4/mktime.m4: Likewise.
88214
88215         * m4/check-type.m4: Remove file, now that the latest version of
88216         AC_CHECK_TYPE takes a third arg to specify additional #includes.
88217
88218         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
88219         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
88220         AC_CHECK_TYPE.
88221
88222 1999-10-04  Jim Meyering  <meyering@ascend.com>
88223
88224         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
88225
88226 1999-09-22  Paul Eggert  <eggert@twinsun.com>
88227
88228         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
88229         2.95.1 bug with HP-UX 10.20.
88230
88231 1999-09-17  Jim Meyering  <meyering@ascend.com>
88232
88233         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
88234         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
88235         due to missing strdup (against sh-utils-2.0).
88236
88237 1999-08-29  Jim Meyering  <meyering@ascend.com>
88238
88239         * m4/jm-macros.m4: Require jm_BISON.
88240         * m4/bison.m4: New file.
88241
88242 1999-08-17  Paul Eggert  <eggert@twinsun.com>
88243
88244         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
88245         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
88246
88247 1999-08-05  Jim Meyering  <meyering@ascend.com>
88248
88249         * m4/getline.m4: Rename test file from conftestdata to conftest.data
88250         to avoid conflicts with `conftest' on 8+3 filesystems.
88251         Suggestion from Eli Zaretskii.
88252
88253 1999-08-04  Jim Meyering  <meyering@ascend.com>
88254
88255         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
88256         fileutils and sh-utils (textutils's getline test was inadequate).
88257         (AM_FUNC_GETLINE): Run this test.
88258         (AC_CHECK_FUNCS): Check for getdelim.
88259         Reported by Bob Proulx.
88260
88261 1999-08-02  Jim Meyering  <meyering@ascend.com>
88262
88263         * m4/jm-macros.m4: Add a comment.
88264
88265 1999-08-01  Paul Eggert  <eggert@twinsun.com>
88266
88267         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
88268         <inttypes.h> defines strtoumax as a macro (and not as a
88269         function).
88270
88271 1999-08-01  Paul Eggert  <eggert@twinsun.com>
88272
88273         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
88274         that we can shift, multiply and divide unsigned long long
88275         values; Ultrix cc can't do it.
88276
88277 1999-08-01  Paul Eggert  <eggert@twinsun.com>
88278
88279         * m4/mktime.m4: New file, which is a preview of what should appear
88280         in the next public autoconf release.
88281
88282 1999-08-01  Paul Eggert  <eggert@twinsun.com>
88283
88284         * m4/lfs.m4: Remove this file.
88285         * m4/largefile.m4: New file.  It contains the old contents of
88286         lfs.m4, except that all names with prefix AC_LFS have been
88287         changed to use the prefix AC_SYS_LARGEFILE instead, to be
88288         compatible with future autoconf versions.  Also, some minor m4
88289         quoting problems have been fixed.
88290
88291 1999-08-01  Paul Eggert  <eggert@twinsun.com>
88292
88293         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
88294         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
88295         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
88296         and simplify the shell code.
88297
88298 1999-08-01  Jim Meyering  <meyering@ascend.com>
88299
88300         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
88301         m4.
88302
88303 1999-07-20  Jim Meyering  <meyering@ascend.com>
88304
88305         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
88306
88307 1999-07-15  Jim Meyering  <meyering@ascend.com>
88308
88309         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
88310
88311 1999-05-22  Jim Meyering  <meyering@ascend.com>
88312
88313         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
88314
88315 1999-05-20  Jim Meyering  <meyering@ascend.com>
88316
88317         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
88318         Add a colon after each `then' in case $4 is empty.
88319
88320 1999-05-16  Jim Meyering  <meyering@ascend.com>
88321
88322         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
88323
88324 1999-05-10  Jim Meyering  <meyering@ascend.com>
88325
88326         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
88327
88328         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
88329         AC_FUNC_MKTIME.
88330
88331 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
88332
88333         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
88334
88335 1999-05-04  Paul Eggert  <eggert@twinsun.com>
88336
88337         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
88338         not CPPFLAGS, so that linking works correctly in IRIX.
88339
88340 1999-04-30  Paul Eggert  <eggert@twinsun.com>
88341
88342         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
88343
88344 1999-04-20  Paul Eggert  <eggert@twinsun.com>
88345
88346         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
88347         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
88348         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
88349         jm_AC_TYPE_UNSIGNED_LONG_LONG.
88350         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
88351
88352         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
88353
88354 1999-04-20  Jim Meyering  <meyering@ascend.com>
88355
88356         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
88357         AC_REPLACE xstroull if necessary.  From Paul Eggert.
88358         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
88359
88360 1999-04-18  Jim Meyering  <meyering@ascend.com>
88361
88362         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
88363         * m4/jm-macros.m4: Use it.
88364
88365 1999-04-06  Jim Meyering  <meyering@ascend.com>
88366
88367         * m4/strftime.m4: Remove test for %f.
88368
88369 1999-03-29  Jim Meyering  <meyering@ascend.com>
88370
88371         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
88372         superset of the AC_TYPE_* checks in the textutils, fileutils,
88373         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
88374         AC_TYPE_PID_T.
88375
88376 1999-03-28  Jim Meyering  <meyering@ascend.com>
88377
88378         * m4/jm-macros.m4: Define GNU_PACKAGE here.
88379         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
88380         replaced e.g., in the *.sh files of the sh-utils.
88381
88382 1999-03-20  Jim Meyering  <meyering@ascend.com>
88383
88384         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
88385         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
88386         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
88387
88388 1999-03-19  Jim Meyering  <meyering@ascend.com>
88389
88390         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
88391
88392 1999-03-12  Jim Meyering  <meyering@ascend.com>
88393
88394         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
88395
88396 1999-03-07  Jim Meyering  <meyering@ascend.com>
88397
88398         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
88399         declared.
88400
88401 1999-02-17  Jim Meyering  <meyering@ascend.com>
88402
88403         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
88404         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
88405
88406 1999-02-07  Jim Meyering  <meyering@ascend.com>
88407
88408         * m4/group-member.m4: New file -- extracted from sh-utils'
88409         configure.in.
88410
88411         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
88412         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
88413
88414 1999-02-06  Jim Meyering  <meyering@ascend.com>
88415
88416         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
88417         * m4/fnmatch.m4: Likewise.
88418         * m4/getgroups.m4: Likewise.
88419         * m4/lstat.m4: Likewise.
88420         * m4/malloc.m4: Likewise.
88421         * m4/putenv.m4: Likewise.
88422         * m4/realloc.m4: Likewise.
88423         * m4/regex.m4: Likewise.
88424         * m4/stat.m4: Likewise.
88425         * m4/strftime.m4: Likewise.
88426         Suggestion from Alain Magloire.
88427
88428         * m4/chown.m4: Use `.$ac_objext', not `.o'.
88429         * m4/fnmatch.m4: Likewise.
88430         * m4/getgroups.m4: Likewise.
88431         * m4/getline.m4: Likewise.
88432         * m4/lstat.m4: Likewise.
88433         * m4/malloc.m4: Likewise.
88434         * m4/memcmp.m4: Likewise.
88435         * m4/putenv.m4: Likewise.
88436         * m4/realloc.m4: Likewise.
88437         * m4/regex.m4: Likewise.
88438         * m4/stat.m4: Likewise.
88439         * m4/strftime.m4: Likewise.
88440         Suggestion from Alain Magloire.
88441
88442         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
88443         an argument.
88444
88445         * m4/regex.m4: Add a run-time Test for proper operation of
88446         re_compile_pattern.
88447
88448 1999-01-31  Jim Meyering  <meyering@ascend.com>
88449
88450         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
88451
88452 1999-01-30  Jim Meyering  <meyering@ascend.com>
88453
88454         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
88455
88456         * m4/jm-mktime.m4: Make this a wrapper around the official
88457         AM_FUNC_MKTIME rather than my private copy, now that the official one
88458         is up to date.
88459         * m4/mktime.m4: Remove file.
88460
88461         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
88462         * m4/uptime.m4: Likewise.
88463         * m4/uintmax_t.m4: Likewise.
88464
88465 1999-01-28  Jim Meyering  <meyering@ascend.com>
88466
88467         * m4/jm-macros.m4: Use jm_AFS.
88468         * m4/afs.m4: New file (from fileutils' configure.in).
88469
88470         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
88471         * m4/chown.m4: Likewise.
88472         * m4/d-ino.m4: Likewise.
88473         * m4/d-type.m4: Likewise.
88474         * m4/fnmatch.m4: Likewise.
88475         * m4/getgroups.m4: Likewise.
88476         * m4/gettext.m4: Likewise.
88477         * m4/jm-mktime.m4: Likewise.
88478         * m4/jm-winsz2.m4: Likewise.
88479         * m4/lcmessage.m4: Likewise.
88480         * m4/ls-mntd-fs.m4: Likewise.
88481         * m4/malloc.m4: Likewise.
88482         * m4/memcmp.m4: Likewise.
88483         * m4/putenv.m4: Likewise.
88484         * m4/realloc.m4: Likewise.
88485         * m4/st_mtim.m4: Likewise.
88486         * m4/strftime.m4: Likewise.
88487
88488 1999-01-16  Jim Meyering  <meyering@ascend.com>
88489
88490         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
88491         (ARGMATCH_DIE_DECL): Define.
88492
88493 1999-01-12  Jim Meyering  <meyering@ascend.com>
88494
88495         * m4/Makefile.am.in: Rewrite to avoid using fmt.
88496         Reported by Lars Hecking.
88497
88498 1999-01-10  Jim Meyering  <meyering@ascend.com>
88499
88500         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
88501         gross kludge.
88502         * m4/inttypes_h.m4: Likewise.
88503         * m4/lstat.m4: Likewise.
88504         * m4/malloc.m4: Likewise.
88505         * m4/readdir.m4: Likewise.
88506         * m4/realloc.m4: Likewise.
88507         * m4/st_dm_mode.m4: Likewise.
88508         * m4/stat.m4: Likewise.
88509         * m4/utimbuf.m4: Likewise.
88510         * m4/utimes.m4: Likewise.
88511
88512         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
88513         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
88514         comments in config.h.in are meaningful.
88515
88516         * m4/jm-macros.m4: Require autoconf-2.13 here.
88517
88518         * m4/regex.m4: By default, don't use the included regex.c on systems
88519         with glibc 2.  Suggestion from Uli Drepper.
88520
88521 1999-01-02  Jim Meyering  <meyering@ascend.com>
88522
88523         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
88524
88525 1998-12-18  Jim Meyering  <meyering@ascend.com>
88526
88527         * m4/Makefile.am.in (Makefile.am): Simplify rule.
88528         Based on a suggestion from Lars Hecking.
88529
88530 1998-11-16  Paul Eggert  <eggert@twinsun.com>
88531
88532         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
88533
88534 1998-11-16  Jim Meyering  <meyering@ascend.com>
88535
88536         * m4/lfs.m4: Double-quote the `uname...` expression.
88537
88538 1998-11-14  Jim Meyering  <meyering@ascend.com>
88539
88540         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
88541         * m4/stat.m4: Likewise.
88542
88543 1998-11-03  Jim Meyering  <meyering@ascend.com>
88544
88545         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
88546         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
88547
88548 1998-10-18  Jim Meyering  <meyering@ascend.com>
88549
88550         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
88551
88552 1998-10-17  Jim Meyering  <meyering@ascend.com>
88553
88554         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
88555         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
88556         calls for those previously hard-coded headers.  Instead, take a new
88557         parameter.
88558         (jm_CHECK_DECLARATIONS): Reflect interface change.
88559         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
88560         (jm_CHECK_DECL_LOCALTIME_R): New macro.
88561
88562         * m4/mktime.m4: Test for spring-forward gap before long-running test.
88563
88564 1998-10-14  Jim Meyering  <meyering@ascend.com>
88565
88566         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
88567         instead of "TZ=America/Vancouver".  From Paul Eggert.
88568
88569 1998-10-11  Jim Meyering  <meyering@ascend.com>
88570
88571         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
88572         This adds a test for a recently added compatibility fix for mktime.c.
88573         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
88574
88575 1998-09-27  Jim Meyering  <meyering@ascend.com>
88576
88577         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
88578
88579         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
88580         ../configure.in, including a change from Gordon Matzigkeit to allow
88581         cross-compiling for the Hurd.
88582
88583         * m4/glibc.m4: New file/macro to test for the GNU C Library
88584         versions 1 and 2.  From Gordon Matzigkeit.
88585         Indent.
88586
88587 1998-09-21  Jim Meyering  <meyering@ascend.com>
88588
88589         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
88590
88591 1998-08-18  Paul Eggert  <eggert@twinsun.com>
88592
88593         Port nanosecond-resolution times to UnixWare 2.1.2 and
88594         pedantic Solaris 2.6.
88595
88596         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
88597         AC_STRUCT_ST_MTIM.
88598         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
88599         Generate name of ns member, instead of just 1 or undef.
88600         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
88601
88602 1998-08-15  Jim Meyering  <meyering@ascend.com>
88603
88604         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
88605         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
88606         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
88607         instead of jm_TYPE_SSIZE_T.
88608
88609 1998-08-12  Jim Meyering  <meyering@ascend.com>
88610
88611         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
88612
88613 1998-08-02  Jim Meyering  <meyering@ascend.com>
88614
88615         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
88616         in acconfig.h manually.
88617
88618 1998-07-31  Paul Eggert  <eggert@twinsun.com>
88619
88620         * m4/st_mtim.m4: New file.
88621
88622 1998-07-28  Jim Meyering  <meyering@ascend.com>
88623
88624         * m4/utimes.m4: Undef stat.
88625
88626 1998-07-25  Jim Meyering  <meyering@ascend.com>
88627
88628         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
88629         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
88630
88631 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
88632
88633         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
88634         uid and gid actually remain unchanged.
88635
88636 1998-07-07  Jim Meyering  <meyering@ascend.com>
88637
88638         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
88639
88640 1998-07-04  Jim Meyering  <meyering@ascend.com>
88641
88642         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
88643         to prove that this macro can be used in packages without regex.c.
88644
88645 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
88646
88647         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
88648         is to be used.
88649
88650 1998-07-03  Jim Meyering  <meyering@ascend.com>
88651
88652         * m4/gettext.m4: Add -lintl if it's found to be necessary.
88653
88654         * m4/gettext.m4: New file -- from gettext-0.10.35.
88655         * m4/lcmessage.m4: Likewise.
88656         * m4/progtest.m4: Likewise.
88657
88658         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
88659         * m4/jm-macros.m4: Require the new macro.
88660
88661 1998-06-29  Jim Meyering  <meyering@ascend.com>
88662
88663         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
88664         for the definition of NGROUPS (used in a system header included
88665         by sys/mount.h).
88666
88667 1998-06-28  Jim Meyering  <meyering@ascend.com>
88668
88669         * m4/ls-mntd-fs.m4: New file.
88670         * m4/fstypename.m4: New file.
88671
88672         * m4/jm-macros.m4: Require the new macro.
88673         * m4/jm-glibc-io.m4: New file.
88674
88675 1998-05-19  Jim Meyering  <meyering@ascend.com>
88676
88677         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
88678         * m4/lchown.m4: New file.
88679
88680         * m4/Makefile.am.in: New file.
88681         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
88682
88683 1998-05-14  Jim Meyering  <meyering@ascend.com>
88684
88685         * m4/Makefile.am (EXTRA_DIST): Add them.
88686         * m4/jm-macros.m4: New file.
88687         * m4/utimbuf.m4: New file.
88688
88689 1998-05-12  Jim Meyering  <meyering@ascend.com>
88690
88691         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
88692
88693 1998-05-11  Jim Meyering  <meyering@ascend.com>
88694
88695         * m4/isc-posix.m4: New file.
88696
88697 1998-05-10  Jim Meyering  <meyering@ascend.com>
88698
88699         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
88700
88701 1998-05-09  Jim Meyering  <meyering@ascend.com>
88702
88703         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
88704         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
88705         with automake.
88706
88707         * m4/ssize_t.m4: New file.
88708         * m4/mktime.m4: Remove file -- the new automake has this now.
88709
88710 1998-04-26  Jim Meyering  <meyering@ascend.com>
88711
88712         * m4/assert.m4: New file.
88713         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
88714
88715 1998-04-05  Jim Meyering  <meyering@ascend.com>
88716
88717         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
88718         (jm_PREREQ): Use it here.
88719
88720 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
88721
88722         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
88723         in acconfig.h.
88724
88725 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
88726
88727         * m4/prereq.m4: New file.
88728         * m4/error.m4: New file.
88729         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
88730
88731 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
88732
88733         * m4/getline.m4: Don't set am_cv_func_working_getline before the
88734         cache-check for the same variable -- that defeated the purpose of
88735         the test; the test program was never run.  This was a problem only
88736         on systems with losing getline functions -- HP-UX 10.20 is one.
88737         Reported by Bjorn Helgaas.
88738
88739 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
88740
88741         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
88742
88743 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
88744
88745         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
88746
88747         * m4/const.m4: New file.  Use an initializer in this declaration
88748         typedef int charset[2]; const charset x;
88749         Reported by Bob Glickstein.
88750
88751 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
88752
88753         * m4/chown.m4: Fix reversed types on -1 args to chown.
88754         From Kaveh Ghazi.
88755
88756 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
88757
88758         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
88759         Add lseek and memchr.
88760
88761         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
88762         T.E.Dickey <dickey@clark.net> said that some older preprocessors
88763         have a 20-character limit on names.
88764
88765 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
88766
88767         * m4/inttypes_h.m4: New file.
88768         * m4/uintmax_t.m4: New file.
88769         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
88770
88771
88772         -----
88773
88774         Local Variables:
88775         coding: utf-8
88776         End:
88777
88778         Copyright (C) 1997-2011 Free Software Foundation, Inc.
88779
88780         Copying and distribution of this file, with or without
88781         modification, are permitted provided the copyright notice
88782         and this notice are preserved.